/* ==========================================================================
   KINDWEAVE | Charity and Non-profit HTML Template
   File: assets/css/style.css (main stylesheet)

   HOW THIS FILE IS ORGANISED
   Every block below is numbered. Search for the number (for example "09.")
   to jump straight to that block.

   01. Design tokens (colours, fonts, spacing)   <- change your brand here
   02. Reset and base
   03. Typography
   04. Layout helpers
   05. Buttons and links
   06. Forms
   07. Top bar and header
   08. Navigation
   09. Hero (home page)
   10. Page banner (inner pages)
   11. Gift cards
   12. Media blocks (image next to text)
   13. Impact counters
   14. Cause cards and progress bars
   15. Steps
   16. Events and countdown
   17. Testimonials slider
   18. Call to action band
   19. Blog cards, article and comments
   20. Partners marquee
   21. Values, timeline and team
   22. Accordion (FAQ)
   23. Sidebar widgets
   24. Donation form
   25. Contact page
   26. Filters and pagination
   27. Footer
   28. Back to top button
   29. 404 page

   Related files:
   animations.css  all motion (keyframes, scroll reveals)
   responsive.css  tablet and phone layouts
   ========================================================================== */


/* ==========================================================================
   01. DESIGN TOKENS
   Change these values to rebrand the whole template in one place.
   ========================================================================== */
:root {
  /* Brand colours */
  --ink: #1b2260;         /* main dark colour: headings, dark sections */
  --ink-deep: #131945;    /* footer and deepest backgrounds */
  --blue: #3346d3;        /* links and small highlights */
  --sun: #ffb81c;         /* main action colour: donate buttons */
  --sun-deep: #f0a500;    /* hover state of the action colour */
  --coral: #f2545b;       /* urgent tags and alerts */
  --leaf: #1fa67a;        /* progress bars and success states */

  /* Neutral colours */
  --white: #ffffff;
  --mist: #f2f4fb;        /* light section background */
  --line: #dde1f0;        /* borders and dividers */
  --text: #454b6b;        /* body text */
  --muted: #7178a0;       /* small secondary text */

  /* Fonts (loaded from Google Fonts in the <head> of every page) */
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  /* Shape and depth */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 40px -22px rgba(27, 34, 96, 0.35);
  --shadow-lift: 0 28px 60px -28px rgba(27, 34, 96, 0.45);

  /* Layout */
  --container: 1180px;
  --gutter: 20px;
  --section-space: clamp(64px, 9vw, 116px);
  --header-height: 78px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.8, 0.26, 1);
  --speed: 0.3s;
}


/* ==========================================================================
   02. RESET AND BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

/* Clear keyboard focus on every interactive element */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Skip link for keyboard and screen reader users */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: top var(--speed) var(--ease);
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Inline icons (all icons are inline SVG, so they take the text colour) */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ==========================================================================
   03. TYPOGRAPHY
   ========================================================================== */
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 700; letter-spacing: -0.015em; }
h4 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  max-width: 56ch;
}

.text-link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color var(--speed);
}

.text-link:hover {
  color: var(--ink);
}


/* ==========================================================================
   04. LAYOUT HELPERS
   ========================================================================== */
.container {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

/* Vertical rhythm for every page section */
.section {
  padding-block: var(--section-space);
}

.section--mist {
  background: var(--mist);
}

/* Dark section with a dotted cloth pattern */
.section--ink {
  background-color: var(--ink);
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1.5px, transparent 1.6px);
  background-size: 18px 18px;
  color: rgba(255, 255, 255, 0.82);
}

.section--ink h2,
.section--ink h3 {
  color: var(--white);
}

.section--tight-top {
  padding-top: 0;
}

/* Section heading row: title on the left, optional link on the right */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head h2 {
  max-width: 20ch;
  margin-bottom: 0;
}

.section-head p {
  max-width: 46ch;
  margin: 14px 0 0;
}

/* Simple grids */
.grid {
  display: grid;
  gap: 28px;
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Main content with a sidebar (blog, cause details) */
.with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: start;
}

/* Stitched divider: the brand's dashed thread */
.stitch-rule {
  height: 0;
  border: 0;
  border-top: 2px dashed var(--line);
  margin: 32px 0;
}

/* Rounded image wrapper */
.media {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--mist);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tick list */
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 500;
}

.check-list .icon {
  margin-top: 3px;
  padding: 3px;
  border-radius: 50%;
  background: var(--leaf);
  color: var(--white);
  stroke-width: 3;
}


/* ==========================================================================
   05. BUTTONS AND LINKS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform var(--speed) var(--ease), background-color var(--speed),
    color var(--speed), border-color var(--speed), box-shadow var(--speed);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Main action: yellow */
.btn--sun {
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 12px 24px -14px rgba(240, 165, 0, 0.9);
}

.btn--sun:hover {
  background: var(--sun-deep);
}

/* Dark button */
.btn--ink {
  background: var(--ink);
  color: var(--white);
}

.btn--ink:hover {
  background: var(--blue);
}

/* Outline button */
.btn--outline {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--white);
}

/* Outline button for dark backgrounds */
.btn--light {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn--light:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.btn--sm {
  padding: 11px 20px;
  font-size: 0.9375rem;
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Small coloured label (cause category, post category) */
.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--mist);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
}

.tag--education { background: #e3e7ff; color: #2433a8; }
.tag--health    { background: #ffe1e3; color: #b3242b; }
.tag--food      { background: #fff0c9; color: #8a5a00; }
.tag--water     { background: #d9f4ea; color: #0f6b4d; }


/* ==========================================================================
   06. FORMS
   ========================================================================== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.field-label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--speed), box-shadow var(--speed);
}

.textarea {
  min-height: 150px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(51, 70, 211, 0.15);
}

.input::placeholder,
.textarea::placeholder {
  color: #9aa0c0;
}

/* Error state, added by main.js when a required field is empty or invalid */
.is-invalid {
  border-color: var(--coral);
}

.field-error {
  color: #b3242b;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Message shown under a form after it is submitted */
.form-note {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: #d9f4ea;
  color: #0f6b4d;
  font-weight: 500;
}

.form-note.is-visible {
  display: block;
}


/* ==========================================================================
   07. TOP BAR AND HEADER
   ========================================================================== */
.topbar {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 42px;
}

.topbar__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
}

.topbar__list li,
.topbar__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar a:hover {
  color: var(--sun);
}

.topbar .icon {
  color: var(--sun);
  width: 1em;
  height: 1em;
}

.social {
  display: flex;
  gap: 8px;
}

.social a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transition: background-color var(--speed), color var(--speed), transform var(--speed) var(--ease);
}

.social a:hover {
  background: var(--sun);
  color: var(--ink);
  transform: translateY(-2px);
}

.social .icon {
  width: 15px;
  height: 15px;
  color: inherit;
}

/* Sticky header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  transition: box-shadow var(--speed);
}

/* main.js adds .is-scrolled once the page is scrolled */
.site-header.is-scrolled {
  box-shadow: 0 10px 30px -18px rgba(27, 34, 96, 0.4);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
}

/* Logo: a horizontal image. Change the height here to resize it. */
.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.logo img {
  width: auto;
  height: 44px;
}


/* ==========================================================================
   08. NAVIGATION
   ========================================================================== */
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  transition: background-color var(--speed), color var(--speed);
}

.nav__link .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
  transition: transform var(--speed) var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  background: var(--mist);
  color: var(--blue);
}

/* Dropdown menu: opens on hover and on keyboard focus */
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 210px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--speed), transform var(--speed) var(--ease), visibility var(--speed);
}

/* Invisible bridge so the menu stays open while the mouse moves down */
.dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.has-dropdown:hover .nav__link .icon,
.has-dropdown:focus-within .nav__link .icon {
  transform: rotate(180deg);
}

.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--ink);
  transition: background-color var(--speed), padding-left var(--speed) var(--ease);
}

.dropdown a:hover {
  background: var(--mist);
  padding-left: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hamburger button (shown on tablet and phone, see responsive.css) */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--mist);
  place-items: center;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--speed) var(--ease), background-color var(--speed);
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }

/* Hamburger turns into a cross when the menu is open */
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* Dark layer behind the mobile menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(19, 25, 69, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--speed), visibility var(--speed);
}

.nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}


/* ==========================================================================
   09. HERO (HOME PAGE)
   ========================================================================== */
.hero {
  position: relative;
  background: var(--mist);
  padding-block: clamp(48px, 7vw, 96px) clamp(120px, 14vw, 180px);
  overflow: hidden;
}

/* Dotted cloth pattern in the top right corner */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  height: 100%;
  background-image: radial-gradient(rgba(27, 34, 96, 0.13) 1.5px, transparent 1.6px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(to left, #000, transparent);
  mask-image: linear-gradient(to left, #000, transparent);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero__title {
  margin-bottom: 24px;
  line-height: 1;
  letter-spacing: -0.035em;
}

.hero__text {
  margin-bottom: 34px;
}

/* Row of supporter photos under the buttons */
.hero__trust {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  font-size: 0.9375rem;
  color: var(--ink);
}

.hero__trust strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.avatar-stack {
  display: flex;
}

.avatar-stack img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--mist);
  object-fit: cover;
  margin-left: -14px;
}

.avatar-stack img:first-child {
  margin-left: 0;
}

/* Photo collage on the right of the hero */
.hero-collage {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  aspect-ratio: 560 / 600;
}

.hero-collage__item {
  position: absolute;
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow-soft);
}

.hero-collage__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tall arch photo */
.hero-collage__arch {
  top: 0;
  right: 0;
  width: 60%;
  height: 78%;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
}

/* Round photo */
.hero-collage__circle {
  top: 11%;
  left: 0;
  width: 35%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 6px solid var(--white);
}

/* Small landscape photo */
.hero-collage__rect {
  left: 4%;
  bottom: 6%;
  width: 44%;
  aspect-ratio: 300 / 220;
  border-radius: var(--radius-lg);
}

/* The stitched thread that runs behind the photos */
.hero-collage__stitch {
  position: absolute;
  inset: -4% -4% -4% -6%;
  width: 110%;
  height: 108%;
  overflow: visible;
}

.stitch-line {
  fill: none;
  stroke: var(--sun-deep);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 14 12;
}

/* Floating card with a live cause on top of the collage */
.hero-card {
  position: absolute;
  right: -2%;
  bottom: 0;
  width: 60%;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-lift);
}

.hero-card__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

/* Small pulsing dot that shows the cause is live */
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--leaf);
}

.hero-card__title {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.25;
  color: var(--ink);
}


/* ==========================================================================
   10. PAGE BANNER (INNER PAGES)
   ========================================================================== */
.page-banner {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 104px);
  background-color: var(--ink);
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1.5px, transparent 1.6px);
  background-size: 18px 18px;
  color: rgba(255, 255, 255, 0.8);
}

.page-banner h1 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: clamp(2.2rem, 4.6vw, 3.75rem);
}

.page-banner__stitch {
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: min(46%, 520px);
  opacity: 0.9;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.breadcrumb a {
  color: var(--sun);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.5;
}


/* ==========================================================================
   11. GIFT CARDS (what each amount pays for)
   ========================================================================== */
.gifts {
  position: relative;
  z-index: 2;
  margin-top: clamp(-110px, -9vw, -70px);
}

.gift-card {
  display: flex;
  flex-direction: column;
  padding: 32px 30px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed);
}

.gift-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
}

.gift-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border-radius: 50%;
  font-size: 1.25rem;
  transition: transform 0.5s var(--ease);
}

.gift-card:hover .gift-card__icon {
  transform: rotate(-10deg) scale(1.08);
}

.gift-card__icon--education { background: #e3e7ff; color: #2433a8; }
.gift-card__icon--health    { background: #ffe1e3; color: #b3242b; }
.gift-card__icon--food      { background: #fff0c9; color: #8a5a00; }

.gift-card__amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.gift-card p {
  margin: 10px 0 22px;
}

.gift-card .text-link {
  margin-top: auto;
  align-self: flex-start;
}


/* ==========================================================================
   12. MEDIA BLOCKS (image next to text)
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.split--reverse .split__media {
  order: 2;
}

/* Two overlapping photos */
.photo-pair {
  position: relative;
  padding: 0 14% 12% 0;
}

.photo-pair__main {
  border-radius: var(--radius-lg);
}

.photo-pair__small {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  border-radius: 50%;
  border: 8px solid var(--white);
  aspect-ratio: 1;
}

.section--mist .photo-pair__small {
  border-color: var(--mist);
}

/* Small stat box on top of a photo */
.photo-badge {
  position: absolute;
  top: 28px;
  left: -18px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--sun);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.25;
  box-shadow: var(--shadow-soft);
}

.photo-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.split__body .btn-row {
  margin-top: 30px;
}


/* ==========================================================================
   13. IMPACT COUNTERS
   Numbers count up when they scroll into view (see main.js, block 05).
   ========================================================================== */
.counters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.counter {
  padding-left: 22px;
  border-left: 2px dashed rgba(255, 255, 255, 0.28);
}

.counter__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 4.2vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--sun);
  font-variant-numeric: tabular-nums;
}

.counter__label {
  margin-top: 10px;
  font-weight: 500;
}


/* ==========================================================================
   14. CAUSE CARDS AND PROGRESS BARS
   ========================================================================== */
.cause-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed);
}

.cause-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
}

.cause-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 640 / 440;
  background: var(--mist);
}

.cause-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.cause-card:hover .cause-card__media img {
  transform: scale(1.06);
}

.cause-card__media .tag {
  position: absolute;
  top: 16px;
  left: 16px;
}

.cause-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 26px 28px;
}

.cause-card__title a {
  transition: color var(--speed);
}

.cause-card__title a:hover {
  color: var(--blue);
}

.cause-card__body p {
  margin-bottom: 22px;
}

.cause-card__footer {
  margin-top: auto;
}

/* Progress bar. Set the percentage with data-progress="72" in the HTML. */
.progress {
  position: relative;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--mist);
  border: 1px solid var(--line);
}

.progress__bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--leaf);
  transition: width 1.4s var(--ease);
}

.progress--large {
  height: 14px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.9375rem;
}

.progress-meta strong {
  color: var(--ink);
  font-family: var(--font-display);
}

.cause-card__footer .btn {
  margin-top: 20px;
}


/* ==========================================================================
   15. STEPS (how giving works)
   ========================================================================== */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  counter-reset: step;
}

/* The dashed thread that joins the three steps */
.steps::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 8%;
  right: 8%;
  border-top: 2px dashed #c3c9e6;
}

.step {
  position: relative;
  counter-increment: step;
}

.step__number {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--sun);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  box-shadow: 0 0 0 10px var(--white);
  transition: transform 0.5s var(--ease), background-color var(--speed);
}

.section--mist .step__number {
  box-shadow: 0 0 0 10px var(--mist);
}

.step__number::before {
  content: counter(step);
}

.step:hover .step__number {
  transform: scale(1.1) rotate(-6deg);
  background: var(--blue);
}


/* ==========================================================================
   16. EVENTS AND COUNTDOWN
   ========================================================================== */
.events-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.events-layout__media {
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  aspect-ratio: 600 / 720;
}

.event-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 2px dashed var(--line);
  transition: padding-left var(--speed) var(--ease);
}

.event-row:first-child {
  border-top: 2px dashed var(--line);
}

.event-row:hover {
  padding-left: 10px;
}

.event-date {
  display: grid;
  place-items: center;
  width: 78px;
  height: 84px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--white);
  text-align: center;
  line-height: 1.1;
  font-weight: 600;
  font-size: 0.875rem;
}

.event-date strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--sun);
}

.event-row h3 {
  margin-bottom: 8px;
}

.event-row h3 a:hover {
  color: var(--blue);
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.meta-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.meta-list .icon {
  width: 16px;
  height: 16px;
  color: var(--blue);
}

/* Featured event with a countdown (events page) */
.event-feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.event-feature__media {
  min-height: 320px;
}

.event-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-feature__body {
  padding: clamp(28px, 5vw, 56px);
}

.event-feature h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.event-feature .meta-list {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 26px;
}

.event-feature .meta-list .icon {
  color: var(--sun);
}

/* Countdown boxes. Set the date with data-countdown in the HTML. */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 400px;
  margin-bottom: 30px;
}

.countdown__box {
  padding: 14px 6px;
  border-radius: var(--radius-sm);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  text-align: center;
  font-size: 0.8125rem;
}

.countdown__box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--sun);
  font-variant-numeric: tabular-nums;
}

/* Event card (events page grid) */
.event-card .cause-card__body .meta-list {
  margin-bottom: 14px;
}


/* ==========================================================================
   17. TESTIMONIALS SLIDER
   ========================================================================== */
.testimonials {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.slider {
  overflow: hidden;
}

.slider__track {
  display: flex;
  transition: transform 0.7s var(--ease);
}

.slider__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.quote {
  margin: 0;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
}

.quote__mark {
  display: block;
  height: 44px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--sun);
}

.quote__text {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.person {
  display: flex;
  align-items: center;
  gap: 14px;
}

.person img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.person strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
}

.person span {
  font-size: 0.9375rem;
  color: var(--muted);
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.slider-btn {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  color: var(--ink);
  transition: background-color var(--speed), color var(--speed), transform var(--speed) var(--ease);
}

.slider-btn:hover {
  background: var(--ink);
  color: var(--white);
  transform: scale(1.06);
}

.slider-dots {
  display: flex;
  gap: 8px;
  margin-left: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--line);
  transition: width var(--speed) var(--ease), background-color var(--speed);
}

.slider-dot.is-active {
  width: 30px;
  background: var(--blue);
}


/* ==========================================================================
   18. CALL TO ACTION BAND
   ========================================================================== */
.cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 40px;
  align-items: center;
  padding: clamp(32px, 6vw, 72px);
  border-radius: var(--radius-lg);
  background-color: var(--sun);
  background-image: radial-gradient(rgba(27, 34, 96, 0.14) 1.5px, transparent 1.6px);
  background-size: 18px 18px;
  color: var(--ink);
}

.cta h2 {
  max-width: 16ch;
}

.cta p {
  max-width: 48ch;
  font-weight: 500;
}

.cta .btn-row {
  margin-top: 28px;
}

.cta__media {
  justify-self: end;
  width: min(100%, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 8px solid var(--white);
  overflow: hidden;
  background: var(--white);
}

.cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ==========================================================================
   19. BLOG CARDS, ARTICLE AND COMMENTS
   ========================================================================== */
.post-card {
  display: flex;
  flex-direction: column;
}

.post-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 640 / 420;
  border-radius: var(--radius-md);
  background: var(--mist);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.post-card:hover .post-card__media img {
  transform: scale(1.06);
}

.post-card__body {
  padding-top: 22px;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.post-card h3 a {
  background: linear-gradient(var(--sun), var(--sun)) no-repeat 0 100% / 0 3px;
  transition: background-size 0.45s var(--ease);
  padding-bottom: 2px;
}

.post-card:hover h3 a {
  background-size: 100% 3px;
}

/* Full article (blog details and cause details) */
.article > .media {
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
}

.article h2 {
  margin-top: 1.4em;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.article h3 {
  margin-top: 1.4em;
}

.article ul.bullets {
  margin: 0 0 1.2em;
  padding-left: 22px;
  list-style: disc;
}

.article ul.bullets li {
  margin-bottom: 8px;
}

.article ul.bullets li::marker {
  color: var(--sun-deep);
}

.article blockquote {
  margin: 32px 0;
  padding: 26px 30px;
  border-left: 6px solid var(--sun);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--mist);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

.article__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.tag-row a.tag:hover {
  background: var(--ink);
  color: var(--white);
}

/* Author box */
.author-box {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 40px;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--mist);
}

.author-box img {
  width: 96px;
  height: 96px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}

/* Comments */
.comments {
  margin-top: 56px;
}

.comment {
  display: flex;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 2px dashed var(--line);
}

.comment--reply {
  margin-left: 64px;
}

.comment img {
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}

.comment__head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: baseline;
  margin-bottom: 6px;
}

.comment__head strong {
  color: var(--ink);
  font-family: var(--font-display);
}

.comment__head span {
  font-size: 0.875rem;
  color: var(--muted);
}

.comment-form {
  margin-top: 48px;
}


/* ==========================================================================
   20. PARTNERS MARQUEE
   Logos scroll sideways in a loop. main.js clones them for a seamless loop.
   ========================================================================== */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
}

.marquee__track img {
  width: 170px;
  height: auto;
  flex: none;
  border-radius: var(--radius-sm);
  opacity: 0.75;
  transition: opacity var(--speed);
}

.marquee__track img:hover {
  opacity: 1;
}


/* ==========================================================================
   21. VALUES, TIMELINE AND TEAM
   ========================================================================== */
.value-card {
  padding: 30px 28px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform var(--speed) var(--ease), border-color var(--speed);
}

.value-card:hover {
  transform: translateY(-6px);
  border-color: var(--blue);
}

.value-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--sun);
  font-size: 1.15rem;
}

/* Timeline: our story year by year */
.timeline {
  position: relative;
  padding-left: 34px;
  border-left: 2px dashed var(--line);
}

.timeline__item {
  position: relative;
  padding-bottom: 36px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -44px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sun);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 2px var(--ink);
}

.timeline__year {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--blue);
}

.timeline__item h3 {
  margin: 4px 0 8px;
}

/* Team */
.team-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 480 / 560;
  border-radius: var(--radius-md);
  background: var(--mist);
}

.team-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.team-card:hover .team-card__media img {
  transform: scale(1.05);
}

/* Social links slide up over the photo on hover */
.team-card__social {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  transform: translateY(140%);
  transition: transform 0.45s var(--ease);
}

.team-card:hover .team-card__social,
.team-card:focus-within .team-card__social {
  transform: translateY(0);
}

.team-card h3 {
  margin: 18px 0 2px;
}

.team-card p {
  color: var(--muted);
}


/* ==========================================================================
   22. ACCORDION (FAQ)
   ========================================================================== */
.accordion__item {
  border-bottom: 2px dashed var(--line);
}

.accordion__item h3 {
  margin: 0;
}

.accordion__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.accordion__button:hover {
  color: var(--blue);
}

/* Plus sign that turns into a minus when open */
.accordion__sign {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mist);
  transition: background-color var(--speed), transform var(--speed) var(--ease);
}

.accordion__sign::before,
.accordion__sign::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--speed) var(--ease);
}

.accordion__sign::after {
  transform: rotate(90deg);
}

.accordion__button[aria-expanded="true"] .accordion__sign {
  background: var(--sun);
  transform: rotate(180deg);
}

.accordion__button[aria-expanded="true"] .accordion__sign::after {
  transform: rotate(0);
}

/* The answer opens smoothly using a grid row that grows from 0 to full height */
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.accordion__panel > div {
  overflow: hidden;
}

.accordion__panel p {
  padding-bottom: 24px;
  max-width: 68ch;
}

.accordion__item.is-open .accordion__panel {
  grid-template-rows: 1fr;
}


/* ==========================================================================
   23. SIDEBAR WIDGETS
   ========================================================================== */
.sidebar {
  display: grid;
  gap: 28px;
}

.widget {
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--white);
}

.widget--mist {
  background: var(--mist);
  border-color: transparent;
}

.widget h3 {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px dashed var(--line);
}

.search-form {
  position: relative;
}

.search-form .input {
  padding-right: 52px;
}

.search-form button {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  transform: translateY(-50%);
}

.link-list li + li {
  border-top: 1px solid var(--line);
}

.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  font-weight: 500;
  color: var(--ink);
  transition: color var(--speed), padding-left var(--speed) var(--ease);
}

.link-list a:hover {
  color: var(--blue);
  padding-left: 6px;
}

.link-list span {
  color: var(--muted);
}

.mini-post {
  display: flex;
  gap: 14px;
  align-items: center;
}

.mini-post + .mini-post {
  margin-top: 16px;
}

.mini-post img {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.mini-post a {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.mini-post a:hover {
  color: var(--blue);
}

.mini-post span {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Recent donors list */
.donor {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.donor + .donor {
  border-top: 1px solid var(--line);
}

.donor img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.donor strong {
  display: block;
  color: var(--ink);
  line-height: 1.2;
}

.donor span {
  font-size: 0.875rem;
  color: var(--muted);
}

.donor b {
  margin-left: auto;
  font-family: var(--font-display);
  color: var(--leaf);
}


/* ==========================================================================
   24. DONATION FORM
   ========================================================================== */
.donate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: start;
}

.donate-step {
  min-width: 0;
  margin: 0;
  padding: 30px 0;
  border: 0;
  border-bottom: 2px dashed var(--line);
}

.donate-step:first-child {
  padding-top: 0;
}

.donate-step h2 {
  font-size: 1.5rem;
  margin-bottom: 18px;
}

/* Choice chips: real radio buttons styled as pills */
.chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
}

/* Three equal chips inside a narrow sidebar box */
.widget .chips {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.chips--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 420px;
}

.chip {
  position: relative;
  display: block;
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.chip span {
  display: block;
  padding: 14px 10px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  transition: border-color var(--speed), background-color var(--speed), transform var(--speed) var(--ease);
}

.chip:hover span {
  border-color: var(--ink);
}

.chip input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--sun);
  transform: scale(1.03);
}

.chip input:focus-visible + span {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.custom-amount {
  position: relative;
  max-width: 280px;
  margin-top: 16px;
}

.custom-amount span {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.custom-amount .input {
  padding-left: 38px;
}

/* Summary card that follows the page while scrolling */
.summary {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  padding: 30px;
  border-radius: var(--radius-lg);
  background-color: var(--ink);
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1.5px, transparent 1.6px);
  background-size: 18px 18px;
  color: rgba(255, 255, 255, 0.82);
}

.summary h2 {
  color: var(--white);
  font-size: 1.5rem;
}

.summary__total {
  margin: 6px 0 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--sun);
}

.summary dl {
  margin: 22px 0;
}

.summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.25);
}

.summary dt {
  font-weight: 500;
}

.summary dd {
  margin: 0;
  color: var(--white);
  font-weight: 600;
  text-align: right;
}

.summary__secure {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  font-size: 0.875rem;
}

.summary__secure .icon {
  color: var(--sun);
}


/* ==========================================================================
   25. CONTACT PAGE
   ========================================================================== */
.contact-card {
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed);
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.contact-card .value-card__icon {
  border-radius: 50%;
}

.contact-card a:hover {
  color: var(--blue);
}

.map {
  border-radius: var(--radius-lg);
  aspect-ratio: 1200 / 480;
}


/* ==========================================================================
   26. FILTERS AND PAGINATION
   ========================================================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--ink);
  transition: border-color var(--speed), background-color var(--speed), color var(--speed);
}

.filter-btn:hover {
  border-color: var(--ink);
}

.filter-btn.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--sun);
}

/* main.js hides cards that do not match the chosen filter */
.is-filtered-out {
  display: none;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 56px;
}

.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  padding: 0 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  transition: border-color var(--speed), background-color var(--speed), color var(--speed);
}

.pagination a:hover {
  border-color: var(--ink);
}

.pagination .is-current {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--sun);
}


/* ==========================================================================
   27. FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--ink-deep);
  color: rgba(255, 255, 255, 0.72);
}

/* Newsletter strip at the top of the footer */
.newsletter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding-block: 44px;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.18);
}

.newsletter h2 {
  margin-bottom: 6px;
  color: var(--white);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.newsletter__form {
  display: flex;
  flex: 1 1 380px;
  max-width: 500px;
  gap: 10px;
}

.newsletter__form .input {
  border-color: transparent;
  border-radius: var(--radius-pill);
  padding-inline: 22px;
}

.newsletter .form-note {
  flex-basis: 100%;
  margin-top: 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-block: 64px;
}

.footer-main h3 {
  margin-bottom: 20px;
  color: var(--white);
  font-size: 1.125rem;
}

.footer-about p {
  margin: 18px 0 22px;
  max-width: 34ch;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  transition: color var(--speed), padding-left var(--speed) var(--ease);
}

.footer-links a:hover {
  color: var(--sun);
  padding-left: 6px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-contact .icon {
  margin-top: 4px;
  color: var(--sun);
}

.footer-contact a:hover {
  color: var(--sun);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9375rem;
}

.footer-bottom ul {
  display: flex;
  gap: 22px;
}

.footer-bottom a:hover {
  color: var(--sun);
}


/* ==========================================================================
   28. BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--speed), transform var(--speed) var(--ease), visibility var(--speed);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--ink);
  color: var(--sun);
}


/* ==========================================================================
   29. 404 PAGE
   ========================================================================== */
.error-page {
  text-align: center;
}

.error-page__code {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(7rem, 22vw, 15rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.error-page__code span {
  display: inline-block;
  color: var(--sun);
}

.error-page p {
  margin-inline: auto;
}

.error-page .btn-row {
  justify-content: center;
  margin-top: 30px;
}
