/* ==========================================================================
   HIMS International WCF — Main Stylesheet
   ==========================================================================

   Table of Contents:
   01. Reset & Base
   02. Custom Properties (Design Tokens)
   03. Typography
   04. Layout Utilities
   05. Components: Skip Link, Buttons, Badges
   06. Components: Navigation
   07. Components: Cards
   08. Components: Image Placeholders
   09. Components: Section Headers
   10. Components: Stats Counter
   11. Components: Testimonials
   12. Components: Newsletter
   13. Components: Forms
   14. Page Sections: Hero
   15. Page Sections: Mission
   16. Page Sections: Projects Grid
   17. Page Sections: How Donations Help
   18. Page Sections: Get Involved
   19. Page Sections: News
   20. Page Sections: Trust Signals
   21. Page: About
   22. Page: Our Work
   23. Page: Donate
   24. Page: Get Involved
   25. Page: News & Gallery
   26. Page: Contact
   27. Page: Project Detail
   28. Footer
   29. Animations & Motion
   30. Responsive
   31. Print & Reduced Motion
   ========================================================================== */

/* ============================================================
   01. RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul, ol {
  list-style: none;
}

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

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

/* ============================================================
   02. CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */

:root {
  /* Brand Palette */
  --color-primary:    #0F172A;
  --color-secondary:  #10B981;
  --color-accent:     #F59E0B;
  --color-background: #FAFAF9;
  --color-text:       #1F2937;

  /* Extended Palette */
  --color-primary-light:    #1e2d45;
  --color-secondary-light:  #D1FAE5;
  --color-secondary-dark:   #059669;
  --color-accent-light:     #FEF3C7;
  --color-accent-dark:      #D97706;
  --color-text-muted:       #6B7280;
  --color-text-light:       #9CA3AF;
  --color-white:            #FFFFFF;
  --color-off-white:        #F8FAFC;
  --color-border:           #E5E7EB;
  --color-border-light:     #F3F4F6;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Fluid Font Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.8125rem);
  --text-sm:   clamp(0.875rem, 0.82rem + 0.3vw,  0.9375rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.0625rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.625vw, 1.25rem);
  --text-xl:   clamp(1.25rem,  1.1rem  + 0.75vw, 1.5rem);
  --text-2xl:  clamp(1.5rem,   1.25rem + 1.25vw, 2rem);
  --text-3xl:  clamp(2rem,     1.6rem  + 2vw,    3rem);
  --text-4xl:  clamp(2.5rem,   1.75rem + 3.75vw, 4.5rem);
  --text-hero: clamp(2.75rem,  1.5rem  + 6.5vw,  5.5rem);

  /* Fluid Spacing */
  --space-1:       0.25rem;
  --space-2:       0.5rem;
  --space-3:       0.75rem;
  --space-4:       1rem;
  --space-5:       1.25rem;
  --space-6:       1.5rem;
  --space-8:       2rem;
  --space-10:      2.5rem;
  --space-12:      3rem;
  --space-16:      4rem;
  --space-20:      5rem;
  --space-24:      6rem;
  --space-section: clamp(4rem, 3rem + 5vw, 8rem);

  /* Layout */
  --container-max:    1280px;
  --container-wide:   1440px;
  --container-narrow: 740px;
  --nav-height:       148px;

  /* Border Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 6px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12), 0 6px 16px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 32px 64px rgba(15, 23, 42, 0.16);

  /* Motion */
  --dur-fast:   150ms;
  --dur-normal: 300ms;
  --dur-slow:   500ms;
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   03. TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); font-weight: 600; }
h6 { font-size: var(--text-base); font-weight: 600; }

p { line-height: 1.75; }

.text-xs   { font-size: var(--text-xs); }
.text-sm   { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg   { font-size: var(--text-lg); }
.text-xl   { font-size: var(--text-xl); }
.text-2xl  { font-size: var(--text-2xl); }
.text-3xl  { font-size: var(--text-3xl); }

.font-medium  { font-weight: 500; }
.font-semi    { font-weight: 600; }
.font-bold    { font-weight: 700; }
.font-extra   { font-weight: 800; }
.font-heading { font-family: var(--font-heading); }

.text-primary   { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent    { color: var(--color-accent); }
.text-muted     { color: var(--color-text-muted); }
.text-white     { color: var(--color-white); }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.lead {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-text-muted);
}

blockquote {
  border-left: 4px solid var(--color-secondary);
  padding-left: var(--space-6);
  font-size: var(--text-xl);
  font-family: var(--font-heading);
  font-weight: 500;
  font-style: italic;
  color: var(--color-primary);
  line-height: 1.5;
}

/* ============================================================
   04. LAYOUT UTILITIES
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--space-section);
}

.section--sm {
  padding-block: clamp(2rem, 1.5rem + 2.5vw, 4rem);
}

.section--dark {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section--light {
  background-color: var(--color-off-white);
}

.section--green {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.section--accent {
  background-color: var(--color-accent-light);
}

.grid {
  display: grid;
  gap: var(--space-6);
}

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

.grid--auto-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); }
.grid--auto-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid--auto-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
}

.split--60-40 { grid-template-columns: 60fr 40fr; }
.split--40-60 { grid-template-columns: 40fr 60fr; }

.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

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

/* ============================================================
   05. COMPONENTS: SKIP LINK, BUTTONS, BADGES
   ============================================================ */

/* Skip Navigation */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  background: var(--color-secondary);
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus {
  top: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  transition:
    background-color var(--dur-normal) var(--ease-out),
    color            var(--dur-normal) var(--ease-out),
    border-color     var(--dur-normal) var(--ease-out),
    transform        var(--dur-fast)   var(--ease-out),
    box-shadow       var(--dur-normal) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}
.btn--primary:hover {
  background: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
}

.btn--donate {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
  font-weight: 700;
}
.btn--donate:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.7);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--color-white);
}

.btn--outline-green {
  background: transparent;
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}
.btn--outline-green:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: var(--text-base);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-xs);
}

/* Icon arrow in button */
.btn .btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.25rem 0.75rem;
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.badge--green  { background: var(--color-secondary-light); color: var(--color-secondary-dark); }
.badge--amber  { background: var(--color-accent-light); color: var(--color-accent-dark); }
.badge--navy   { background: rgba(15,23,42,0.08); color: var(--color-primary); }
.badge--white  { background: rgba(255,255,255,0.2); color: var(--color-white); }

/* ============================================================
   06. COMPONENTS: NAVIGATION
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition:
    background-color var(--dur-normal) var(--ease-out),
    box-shadow       var(--dur-normal) var(--ease-out);
}

.site-header--transparent {
  background-color: transparent;
}

.site-header--solid {
  background-color: var(--color-primary);
  box-shadow: 0 2px 24px rgba(0,0,0,0.2);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  width: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  padding: 0;
  line-height: 0;
}

.logo img {
  height: 56px;
  width: auto;
  display: block;
}

.logo__wordmark {
  display: flex;
  align-items: center;
  gap: 0.2em;
}

.logo__hims {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.logo__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-secondary);
  flex-shrink: 0;
  margin-left: 2px;
}

.logo__sub {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Main Nav Links */
.main-nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav__item {
  position: relative;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.5rem 0.75rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-md);
  transition: color var(--dur-fast), background-color var(--dur-fast);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-white);
  background-color: rgba(255,255,255,0.1);
}

/* Dropdown */
.nav__dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-3);
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity    var(--dur-normal) var(--ease-out),
    visibility var(--dur-normal) var(--ease-out),
    transform  var(--dur-normal) var(--ease-out);
  z-index: 100;
}

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

.nav__dropdown a {
  display: block;
  padding: 0.625rem var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: background-color var(--dur-fast), color var(--dur-fast);
}

.nav__dropdown a:hover {
  background-color: var(--color-secondary-light);
  color: var(--color-secondary-dark);
}

.nav__chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-fast) var(--ease-out);
}
.nav__item:hover .nav__chevron {
  transform: rotate(180deg);
}

/* Donate CTA in Nav */
.nav-donate {
  margin-left: var(--space-4);
  flex-shrink: 0;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  margin-left: auto;
  border-radius: var(--radius-md);
  transition: background-color var(--dur-fast);
}
.nav-toggle:hover { background-color: rgba(255,255,255,0.1); }

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--dur-normal) var(--ease-out), opacity var(--dur-normal);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-primary);
  padding: var(--space-6) var(--space-4) var(--space-8);
  z-index: 999;
  overflow-y: auto;
  max-height: calc(100vh - var(--nav-height));
  border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-menu__link {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-lg);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-md);
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.mobile-menu__link:hover {
  background-color: rgba(255,255,255,0.1);
  color: var(--color-white);
}

.mobile-menu__sub {
  padding-left: var(--space-4);
  margin-top: var(--space-1);
  border-left: 2px solid rgba(255,255,255,0.15);
}
.mobile-menu__sub a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-base);
  color: rgba(255,255,255,0.65);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast);
}
.mobile-menu__sub a:hover { color: var(--color-white); }

.mobile-menu__donate {
  margin-top: var(--space-6);
  width: 100%;
  text-align: center;
  padding: 1rem;
}

/* ============================================================
   07. COMPONENTS: CARDS
   ============================================================ */

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    box-shadow  var(--dur-normal) var(--ease-out),
    transform   var(--dur-normal) var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card__image {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  flex-shrink: 0;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.card:hover .card__image img { transform: scale(1.04); }

.card__body {
  padding: var(--space-6);
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-primary);
}

.card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-secondary);
  transition: gap var(--dur-fast);
}
.card__link:hover { gap: var(--space-3); }

.card__link svg {
  width: 16px;
  height: 16px;
}

/* Project Card variant */
.project-card {
  border-bottom: 3px solid var(--color-secondary);
}

/* News Card date */
.card__date {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  font-weight: 500;
}

/* Involve Card */
.involve-card {
  text-align: center;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-normal) var(--ease-out), transform var(--dur-normal) var(--ease-out);
}
.involve-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.involve-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--color-secondary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
}
.involve-card__icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-secondary);
}

.involve-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.involve-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.7;
}

/* Impact Card */
.impact-card {
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Focus Area Card */
.focus-card {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--color-secondary);
  transition: box-shadow var(--dur-normal) var(--ease-out), transform var(--dur-normal) var(--ease-out);
}
.focus-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.focus-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-secondary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.focus-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-secondary);
}

.focus-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.focus-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================================
   08. COMPONENTS: IMAGE PLACEHOLDERS
   ============================================================ */

.img-ph {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0F172A 0%, #1a3054 50%, #0f2940 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-ph::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
}

.img-ph__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-8);
  max-width: 360px;
}

.img-ph__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  color: rgba(255,255,255,0.3);
}

.img-ph__label {
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

.img-ph--16-9  { aspect-ratio: 16 / 9; }
.img-ph--4-3   { aspect-ratio: 4 / 3; }
.img-ph--1-1   { aspect-ratio: 1; }
.img-ph--3-2   { aspect-ratio: 3 / 2; }
.img-ph--hero  { min-height: 100vh; }
.img-ph--tall  { min-height: 560px; }
.img-ph--mid   { min-height: 400px; }

/* ============================================================
   09. COMPONENTS: SECTION HEADERS
   ============================================================ */

.section-header {
  max-width: 640px;
}

.section-header--center {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.section-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-4);
}

.section-header__eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.section-header--dark .section-header__eyebrow {
  color: var(--color-accent);
}

.section-header__title {
  margin-bottom: var(--space-4);
  color: inherit;
}

.section-header--dark .section-header__title {
  color: var(--color-white);
}

.section-header__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
}

.section-header--dark .section-header__body {
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   10. COMPONENTS: STATS COUNTER
   ============================================================ */

.stat-block {
  text-align: center;
}

.stat-block__number {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-block__number .stat-suffix {
  color: var(--color-accent);
}

.stat-block__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-block__divider {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--color-secondary);
  margin: var(--space-3) auto;
  border-radius: 2px;
}

/* ============================================================
   11. COMPONENTS: TESTIMONIALS
   ============================================================ */

.testimonial {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial::before {
  content: '\201C';
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 1;
  color: var(--color-secondary-light);
}

.testimonial__text {
  font-size: var(--text-lg);
  font-style: italic;
  line-height: 1.7;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  padding-top: var(--space-8);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-secondary-light);
}

.testimonial__name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-primary);
}

.testimonial__role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ============================================================
   12. COMPONENTS: NEWSLETTER
   ============================================================ */

.newsletter-form {
  display: flex;
  gap: var(--space-3);
  max-width: 480px;
}

.newsletter-form--center {
  margin-inline: auto;
}

.newsletter-form__input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  font-size: var(--text-sm);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-full);
  color: var(--color-white);
  outline: none;
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}

.newsletter-form__input::placeholder {
  color: rgba(255,255,255,0.5);
}

.newsletter-form__input:focus {
  border-color: var(--color-accent);
  background: rgba(255,255,255,0.2);
}

/* ============================================================
   13. COMPONENTS: FORMS
   ============================================================ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-size: var(--text-base);
  font-family: var(--font-body);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

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

.form-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.form-grid {
  display: grid;
  gap: var(--space-5);
}

.form-grid--2 {
  grid-template-columns: 1fr 1fr;
}

/* ============================================================
   14. PAGE SECTIONS: HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.88) 0%,
    rgba(15, 23, 42, 0.70) 50%,
    rgba(15, 23, 42, 0.40) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-height);
  padding-bottom: var(--space-section);
  width: 100%;
}

.hero__inner {
  max-width: 720px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  padding: 0.375rem 1rem;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.hero__title em {
  font-style: normal;
  color: var(--color-accent);
}

.hero__desc {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.5);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}

.hero__scroll svg {
  width: 20px;
  height: 20px;
}

/* Page Hero (inner pages) */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-height) + clamp(3rem, 5vw, 5rem));
  padding-bottom: clamp(3rem, 5vw, 5rem);
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-color: #0a1628;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.92) 0%,
    rgba(15, 23, 42, 0.80) 50%,
    rgba(10, 22, 40, 0.88) 100%
  );
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
}
.page-hero__breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: color var(--dur-fast);
}
.page-hero__breadcrumb a:hover { color: var(--color-white); }
.page-hero__breadcrumb span { color: var(--color-accent); }

.page-hero__title {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.page-hero__desc {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  line-height: 1.7;
}

/* ============================================================
   15. PAGE SECTIONS: MISSION
   ============================================================ */

.mission-section {
  padding-block: var(--space-section);
}

.mission__values {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.mission__value-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem 1rem;
  background: var(--color-secondary-light);
  color: var(--color-secondary-dark);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
}

.mission__value-pill::before {
  content: '✓';
  font-weight: 800;
}

/* ============================================================
   16. PAGE SECTIONS: PROJECTS GRID
   ============================================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--space-6);
}

/* ============================================================
   17. PAGE SECTIONS: HOW DONATIONS HELP
   ============================================================ */

.donation-tier {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  text-align: center;
  border-top: 4px solid var(--color-border);
  transition: border-color var(--dur-normal), box-shadow var(--dur-normal), transform var(--dur-normal) var(--ease-out);
}

.donation-tier:hover,
.donation-tier.featured {
  border-top-color: var(--color-secondary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.donation-tier__amount {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.donation-tier__period {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.donation-tier__impact {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

/* ============================================================
   18. PAGE SECTIONS: GET INVOLVED
   ============================================================ */

.get-involved-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a3054 100%);
  padding-block: var(--space-section);
  position: relative;
  overflow: hidden;
}

.get-involved-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 65%);
}

/* ============================================================
   19. PAGE SECTIONS: NEWS
   ============================================================ */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: var(--space-6);
}

/* ============================================================
   20. PAGE SECTIONS: TRUST SIGNALS
   ============================================================ */

.trust-bar {
  background: var(--color-primary);
  padding-block: var(--space-5);
}

.trust-bar__items {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255,255,255,0.7);
  font-size: var(--text-sm);
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-secondary);
  flex-shrink: 0;
}

.trust-item strong {
  color: var(--color-white);
}

/* ============================================================
   21. PAGE: ABOUT
   ============================================================ */

.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-secondary), transparent);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-8);
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) - 5px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-secondary);
  border: 2px solid var(--color-white);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.timeline__year {
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-2);
}

.timeline__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.timeline__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: var(--space-6);
}

.team-card {
  text-align: center;
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.team-card__name {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.team-card__role {
  font-size: var(--text-sm);
  color: var(--color-secondary);
  font-weight: 500;
}

/* ============================================================
   22. PAGE: OUR WORK
   ============================================================ */

.work-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  padding-block: var(--space-section);
}

.work-overview + .work-overview {
  border-top: 1px solid var(--color-border);
}

/* ============================================================
   23. PAGE: DONATE
   ============================================================ */

.donate-hero {
  background: var(--color-primary);
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 3rem;
  text-align: center;
}

.donate-panel {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-8);
  max-width: 560px;
  margin: calc(-1 * var(--space-12)) auto 0;
  position: relative;
  z-index: 1;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.amount-btn {
  padding: 0.875rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  background: transparent;
  cursor: pointer;
  transition: all var(--dur-fast);
  text-align: center;
}

.amount-btn:hover,
.amount-btn.selected {
  border-color: var(--color-secondary);
  background: var(--color-secondary-light);
  color: var(--color-secondary-dark);
}

.custom-amount {
  position: relative;
}

.custom-amount__symbol {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-weight: 600;
}

.custom-amount input {
  padding-left: 2rem;
}

.gift-aid {
  background: var(--color-secondary-light);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.gift-aid svg {
  width: 24px;
  height: 24px;
  color: var(--color-secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.gift-aid__text {
  font-size: var(--text-sm);
  color: var(--color-secondary-dark);
  line-height: 1.6;
}

.secure-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.secure-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
}

.secure-badge svg {
  width: 16px;
  height: 16px;
  color: var(--color-secondary);
}

/* ============================================================
   24. PAGE: GET INVOLVED
   ============================================================ */

.involve-hero-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.faq-list {
  max-width: var(--container-narrow);
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  text-align: left;
}

.faq-trigger svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--dur-normal) var(--ease-out);
  color: var(--color-secondary);
}

.faq-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur-slow) var(--ease-out);
}

.faq-body.is-open {
  max-height: 500px;
}

.faq-body p {
  padding-bottom: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.8;
}

/* ============================================================
   25. PAGE: NEWS & GALLERY
   ============================================================ */

.news-hero-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: var(--space-8);
}

.news-hero-card__body {
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: var(--space-3);
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  transition: opacity var(--dur-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-item__overlay { opacity: 1; }

.gallery-item__overlay svg {
  width: 36px;
  height: 36px;
  color: var(--color-white);
}

/* ============================================================
   26. PAGE: CONTACT
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-12);
  align-items: start;
}

.contact-info-card {
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  color: var(--color-white);
}

.contact-info-card h3 {
  color: var(--color-white);
  margin-bottom: var(--space-6);
}

.contact-info-item {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.contact-info-item:last-child { margin-bottom: 0; }

.contact-info-item__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-item__icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-secondary);
}

.contact-info-item__label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.contact-info-item__value {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}

.contact-info-item__value a {
  color: rgba(255,255,255,0.9);
  transition: color var(--dur-fast);
}
.contact-info-item__value a:hover { color: var(--color-secondary); }

.contact-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.contact-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.contact-social a:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}
.contact-social svg { width: 18px; height: 18px; }

.contact-form-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   27. PAGE: PROJECT DETAIL
   ============================================================ */

.project-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.project-stat {
  text-align: center;
  padding: 1.375rem 1rem;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.project-stat__num {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.project-stat__label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  font-family: var(--font-body);
}

.project-detail__sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.project-donate-box {
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  color: var(--color-white);
}

.project-donate-box h3 {
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-8);
}

.project-nav-link {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.project-nav-link__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.project-nav-link__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-secondary);
}

/* ============================================================
   28. FOOTER
   ============================================================ */

.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.7);
}

.footer-main {
  padding-block: var(--space-section);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: clamp(2rem, 4vw, 4rem);
}

.footer-brand .logo {
  margin-bottom: var(--space-5);
}

.footer-brand .logo img {
  height: 64px;
}

.footer-tagline {
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: var(--space-6);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.footer-social a:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}
.footer-social svg { width: 16px; height: 16px; }

.footer-col__title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--dur-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.footer-links a:hover { color: var(--color-white); }
.footer-links a::before {
  content: '→';
  font-size: 0.7em;
  opacity: 0.5;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
}
.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-secondary);
  flex-shrink: 0;
  margin-top: 3px;
}
.footer-contact-item a { color: rgba(255,255,255,0.6); }
.footer-contact-item a:hover { color: var(--color-white); }

.footer-newsletter {
  margin-top: var(--space-4);
}

.footer-newsletter-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  color: var(--color-white);
  font-size: var(--text-sm);
  outline: none;
  margin-bottom: var(--space-3);
  transition: border-color var(--dur-fast);
}
.footer-newsletter-input::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter-input:focus { border-color: var(--color-secondary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: var(--space-5);
}

.footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom__copy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}

.footer-bottom__links {
  display: flex;
  gap: var(--space-5);
}

.footer-bottom__links a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  transition: color var(--dur-fast);
}
.footer-bottom__links a:hover { color: rgba(255,255,255,0.8); }

/* ============================================================
   29. ANIMATIONS & MOTION
   ============================================================ */

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.animate-fade-up {
  animation: fadeInUp var(--dur-slow) var(--ease-out) both;
}

.animate-delay-1 { animation-delay: 100ms; }
.animate-delay-2 { animation-delay: 200ms; }
.animate-delay-3 { animation-delay: 300ms; }
.animate-delay-4 { animation-delay: 400ms; }

/* Scroll-reveal (class added via JS) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity  var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   30. RESPONSIVE
   ============================================================ */

/* Large desktop */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .split,
  .split--60-40,
  .split--40-60 {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .news-hero-card {
    grid-template-columns: 1fr;
  }

  .work-overview {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

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

  .form-grid--2 { grid-template-columns: 1fr; }
}

/* Mobile menu breakpoint */
@media (max-width: 900px) {
  .main-nav,
  .nav-donate {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --nav-height: 88px;
  }

  .logo img {
    height: 48px;
  }

  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom__inner {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form__input {
    border-radius: var(--radius-md);
  }

  .project-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-bar__items {
    flex-direction: column;
    gap: var(--space-4);
  }

  .donate-panel {
    margin-inline: var(--space-4);
    padding: var(--space-6);
  }
}

/* ============================================================
   31. PRINT & REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__scroll {
    animation: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero__scroll,
  .newsletter-section,
  .btn--donate,
  .nav-donate {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #666;
  }
}
