/* ==========================================================================
   FBRO DESIGN SYSTEM & CORE STYLESHEET
   Future Builders Refugee Organization - Kakuma, Kenya
   Vanilla CSS | WCAG 2.2 AA Compliant | Light & Dark Mode
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. SELF-HOSTED FONTS (No CDN Dependencies)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/bricolage-grotesque-500-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/bricolage-grotesque-700-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/bricolage-grotesque-800-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/source-serif-4-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/source-serif-4-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/source-serif-4-600-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS (Light Theme Default)
   -------------------------------------------------------------------------- */
:root {
  /* Brand Palette */
  --navy: #0b1f4a;
  --navy-2: #12295c;
  --blue: #0870c8;
  --sky: #1b85d6;
  --leaf: #367f19;
  --leaf-light: #52a829;
  --green-ui: #367f19;

  /* Semantic Color Tokens (Light) */
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --bg-card: #ffffff;
  --surface: #ffffff;
  --surface-hover: #f7f9fc;
  --text: #101a2e;
  --text-muted: #455268;
  --heading: #0b1f4a;
  --line: rgba(11, 31, 74, 0.14);
  --line-strong: rgba(11, 31, 74, 0.28);
  --focus-outline: #0870c8;
  --focus-ring: rgba(8, 112, 200, 0.4);
  --progress-bar: #367f19;
  --header-bg: rgba(255, 255, 255, 0.98);
  --topbar-bg: #0b1f4a;
  --footer-bg: #0b1f4a;
  --card-shadow: 0 10px 30px rgba(11, 31, 74, 0.09);
  --card-shadow-hover: 0 16px 36px rgba(11, 31, 74, 0.15);
  --modal-backdrop: rgba(6, 14, 34, 0.75);

  /* Typography */
  --head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Spacing Scale (4/8-based) */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */

  /* Radius Scale */
  --radius-xs: 3px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 5px rgba(11, 31, 74, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 31, 74, 0.10);
  --shadow-lg: 0 16px 40px rgba(11, 31, 74, 0.14);
  --shadow-header: 0 4px 20px rgba(11, 31, 74, 0.08);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Dimensions */
  --bar: 76px;
  --header-height: 76px;
}

/* --------------------------------------------------------------------------
   2. DARK THEME OVERRIDES (Applied only when user explicitly selects dark mode)
   -------------------------------------------------------------------------- */
:root[data-theme="dark"] {
  --bg: #070d19;
  --bg-alt: #0e172a;
  --bg-card: #101c34;
  --surface: #101c34;
  --surface-hover: #162544;
  --text: #f0f4fc;
  --text-muted: #9eb0cc;
  --heading: #ffffff;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.26);
  --focus-outline: #4db3f7;
  --focus-ring: rgba(77, 179, 247, 0.45);
  --progress-bar: #4db3f7; /* Light blue on dark */
  --header-bg: rgba(10, 18, 35, 0.96);
  --topbar-bg: #040812;
  --footer-bg: #050a14;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --card-shadow-hover: 0 16px 36px rgba(0, 0, 0, 0.6);
  --modal-backdrop: rgba(2, 5, 12, 0.85);
  --navy: #132448;
  --navy-2: #0e1b36;
  --blue: #4db3f7;
  --green-ui: #44c222;
}

/* --------------------------------------------------------------------------
   3. BASE & RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.25rem);
  color-scheme: light dark;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
  text-underline-offset: 0.2em;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover {
  color: var(--navy);
}

:root[data-theme="dark"] a:hover {
  color: #ffffff;
}

/* Accessible focus visible */
:focus-visible {
  outline: 3px solid var(--focus-outline);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* Typography hierarchy */
h1, h2, h3, h4 {
  font-family: var(--head);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--heading);
}

h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.8rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.85rem, 3.8vw, 2.9rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
}

p {
  margin: 0 0 1.15em;
}

.wrap {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 44ch;
  margin-top: var(--space-4);
}

.prose {
  max-width: 64ch;
}

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

/* --------------------------------------------------------------------------
   4. SKIP LINK
   -------------------------------------------------------------------------- */
.skip, .skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-2);
  background: var(--navy);
  color: #ffffff;
  padding: var(--space-3) var(--space-5);
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 1000;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.skip:focus, .skip-link:focus {
  left: var(--space-4);
}

/* --------------------------------------------------------------------------
   5. SCROLL PROGRESS BAR
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: var(--progress-bar);
  z-index: 2000;
  transition: width 80ms ease-out, background-color var(--transition-normal);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   6. TOPBAR
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--topbar-bg);
  color: #ffffff;
  font-family: var(--head);
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-in {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-1) 0;
}

.topbar a {
  color: #ffffff;
  text-decoration: none;
}

@media (hover: hover) {
  .topbar a:hover {
    text-decoration: underline;
    color: #e2eeff;
  }
}

.topbar .tb-left {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.topbar .tb-left span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.topbar .tb-left span + span::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.35);
  margin-right: var(--space-4);
}

.topbar svg {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* Remove contact info from top bar on mobile phone and mobile sizes */
@media (max-width: 960px) {
  .topbar .tb-left {
    display: none;
  }
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }
}


/* --------------------------------------------------------------------------
   7. STICKY HEADER & BRAND
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--line);
  transition: height var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-header.scrolled {
  box-shadow: var(--shadow-header);
}

.bar {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  transition: height var(--transition-normal);
}

.site-header.scrolled .bar {
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--heading);
}

.brand-logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-normal), padding var(--transition-normal);
}

:root[data-theme="dark"] .brand-logo-frame {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 3px 6px;
  border-radius: var(--radius-sm);
}


.brand img {
  height: 50px;
  width: auto;
  transition: height var(--transition-normal);
}

.site-header.scrolled .brand img {
  height: 42px;
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-family: var(--head);
  line-height: 1.1;
}

.brand-name b {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--heading);
}

.brand-name span {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   8. NAVIGATION & CONTROLS
   -------------------------------------------------------------------------- */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav a:not(.btn) {
  color: var(--text);
  text-decoration: none;
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

@media (hover: hover) {
  .nav a:not(.btn):hover {
    color: var(--green-ui);
  }
}

.nav a[aria-current="page"]:not(.btn) {
  color: var(--green-ui);
  border-bottom-color: var(--green-ui);
}

/* Header utility button (Theme) */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.5rem;
  min-width: 42px;
  min-height: 42px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

@media (hover: hover) {
  .theme-toggle:hover {
    background-color: var(--surface-hover);
    border-color: var(--line-strong);
    color: var(--heading);
  }
}

.theme-toggle:active {
  transform: scale(0.96);
}

.theme-icon-sun, .theme-icon-moon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* By default in light mode, show moon (to switch to dark) */
.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }

/* In dark mode, show sun (to switch to light) */
:root[data-theme="dark"] .theme-icon-sun { display: block; }
:root[data-theme="dark"] .theme-icon-moon { display: none; }


/* Hamburger toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line-strong);
  color: var(--heading);
  border-radius: var(--radius-md);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  width: 44px;
  height: 44px;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.hamburger-box {
  width: 22px;
  height: 16px;
  position: relative;
  display: inline-block;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 22px;
  height: 2px;
  background-color: currentColor;
  position: absolute;
  left: 0;
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-inner::before {
  content: "";
  top: -7px;
}

.hamburger-inner::after {
  content: "";
  bottom: -7px;
}

/* Animated Close State */
.nav-toggle[aria-expanded="true"] .hamburger-inner {
  transform: translateY(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger-inner::before {
  top: 0;
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger-inner::after {
  top: 0;
  bottom: 0;
  transform: rotate(-90deg);
}

.nav-toggle-text {
  display: none !important;
}

/* --------------------------------------------------------------------------
   9. MOBILE NAVIGATION PANEL (320px - 960px)
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  /* Prevent backdrop-filter from creating a containing block that traps position:fixed nav */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    background-color: var(--bg);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: var(--space-5) var(--space-6) var(--space-10);
    gap: var(--space-3);
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 600;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
  }

  .site-header.scrolled .nav {
    top: 64px;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    max-height: calc(100dvh - 64px);
  }

  .nav.open {
    display: flex;
    animation: menuFadeIn var(--transition-normal) ease-out;
  }

  .nav a:not(.btn) {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.15rem;
  }

  .nav .theme-toggle {
    width: 100%;
    justify-content: flex-start;
    padding: var(--space-3) var(--space-4);
    font-family: var(--head);
    font-size: 1rem;
    border-color: var(--line);
  }

  .brand-name span {
    display: none;
  }
}

body.menu-open .site-header {
  z-index: 950;
}

body.menu-open .floating-actions {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

@keyframes menuFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   10. BUTTON SYSTEM
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.75rem 1.4rem;
  min-height: 44px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.btn:disabled,
.btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Primary / Solid */
.btn-solid, .btn-primary, .btn-green {
  background-color: var(--green-ui);
  color: #ffffff;
  border-color: var(--green-ui);
}

@media (hover: hover) {
  .btn-solid:hover, .btn-primary:hover, .btn-green:hover {
    background-color: #2b6814;
    border-color: #2b6814;
    color: #ffffff;
  }
}

/* Secondary / Light */
.btn-light, .btn-secondary {
  background-color: #ffffff;
  color: var(--navy);
  border-color: #ffffff;
}

@media (hover: hover) {
  .btn-light:hover, .btn-secondary:hover {
    background-color: #e6f3de;
    color: var(--navy);
  }
}

/* Ghost */
.btn-ghost {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.75);
  color: #ffffff;
}

@media (hover: hover) {
  .btn-ghost:hover {
    background-color: #ffffff;
    color: var(--navy);
  }
}

/* Sizes */
.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  min-height: 38px;
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
  min-height: 48px;
}

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

/* --------------------------------------------------------------------------
   11. CARDS
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: -5.5rem;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6) var(--space-6);
  text-align: center;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.card svg {
  width: 52px;
  height: 52px;
  stroke: var(--green-ui);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: var(--space-4);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-2);
  color: var(--heading);
}

.card p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 var(--space-4);
  color: var(--text-muted);
}

.card .read {
  margin-top: auto;
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-ui);
  text-decoration: none;
  padding: var(--space-1) 0;
}

@media (hover: hover) {
  .card .read:hover {
    text-decoration: underline;
  }
}

.card.featured {
  background-color: var(--green-ui);
  border-color: var(--green-ui);
  color: #ffffff;
}

.card.featured svg {
  stroke: #ffffff;
}

.card.featured h3,
.card.featured p,
.card.featured .read {
  color: #ffffff;
}

@media (min-width: 900px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    align-items: stretch;
  }
  .card.featured {
    margin-top: -1.6rem;
    padding-bottom: 3.5rem;
  }
}

/* --------------------------------------------------------------------------
   12. FORM FIELDS
   -------------------------------------------------------------------------- */
.form {
  background-color: var(--bg-alt);
  padding: clamp(var(--space-6), 4vw, var(--space-8));
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  display: grid;
  gap: var(--space-2);
}

.form h3 {
  margin-bottom: var(--space-3);
}

.form label {
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--heading);
  margin-top: var(--space-3);
}

.form input,
.form textarea,
.form select {
  font: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-md);
  background-color: var(--bg);
  color: var(--text);
  width: 100%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form input:focus-visible,
.form textarea:focus-visible,
.form select:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 1px;
  border-color: var(--focus-outline);
}

.form .btn {
  margin-top: var(--space-4);
  justify-self: start;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   13. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(480px, 70vh, 640px);
  display: flex;
  align-items: center;
  background-color: var(--navy);
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}

.hero-panel {
  max-width: 520px;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  color: #ffffff;
  background: rgba(11, 31, 74, 0.75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  margin: 2.5rem 0 7rem;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: var(--space-4) 0 var(--space-6);
  color: rgba(255, 255, 255, 0.92);
}

.hero-panel .btn {
  margin: 0;
}

@media (max-width: 760px) {
  .hero {
    align-items: flex-end;
  }
  .hero-panel {
    margin: 4.5rem 0 6.5rem;
  }
}

.hero-cards {
  position: relative;
  z-index: 2;
}

.hero-cards + .section {
  padding-top: clamp(4rem, 8vw, 6.5rem);
}

/* --------------------------------------------------------------------------
   14. ABOUT & VISION/MISSION
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  gap: var(--space-8) var(--space-12);
  grid-template-columns: 1fr;
  align-items: start;
}

.vm {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.vm-item {
  padding-top: var(--space-4);
  border-top: 4px solid var(--blue);
}

.vm-item.vm-mission {
  border-color: var(--leaf);
}

.vm-item h3 {
  margin-bottom: var(--space-2);
}

.vm-item p {
  font-size: 1.25rem;
  line-height: 1.55;
  max-width: 36ch;
  margin: 0;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 5fr 6fr;
  }
  .vm {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }
}

/* --------------------------------------------------------------------------
   15. PROGRAMS (Home Tab Switcher & Inner Page Rows)
   -------------------------------------------------------------------------- */
.programs {
  background-color: var(--navy);
  color: #ffffff;
}

.programs h2 {
  color: #ffffff;
}

.programs .lead {
  color: rgba(255, 255, 255, 0.82);
}

.programs-grid {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-8);
  grid-template-columns: 1fr;
  align-items: start;
}

.program-frame {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--navy-2);
  aspect-ratio: 4 / 3;
}

.program-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease-out;
}

.program-frame img.swap {
  opacity: 0;
}

.program-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.program-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.program-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  padding: var(--space-4) 0 var(--space-4) var(--space-4);
  cursor: pointer;
  position: relative;
  transition: background-color var(--transition-fast);
}

.program-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--space-4);
  bottom: var(--space-4);
  width: 4px;
  background: transparent;
  border-radius: 2px;
  transition: background-color var(--transition-fast);
}

.program-title {
  display: block;
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition-fast);
}

.program-desc {
  display: none;
  margin-top: var(--space-2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 48ch;
}

@media (hover: hover) {
  .program-btn:hover .program-title {
    color: #ffffff;
  }
}

.program-btn[aria-expanded="true"]::before {
  background-color: var(--leaf-light);
}

.program-btn[aria-expanded="true"] .program-title {
  color: #ffffff;
}

.program-btn[aria-expanded="true"] .program-desc {
  display: block;
}

@media (min-width: 900px) {
  .programs-grid {
    grid-template-columns: 6fr 5fr;
    gap: var(--space-10);
  }
  .program-frame {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
  }
}

/* Inner Programs rows */
.program-row {
  display: grid;
  gap: var(--space-6) var(--space-10);
  grid-template-columns: 1fr;
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
}

.program-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.program-row figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--bg-alt);
  aspect-ratio: 4 / 3;
}

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

.program-row h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-bottom: var(--space-3);
}

.program-row p {
  max-width: 48ch;
  font-size: 1.15rem;
  margin: 0;
}

@media (min-width: 900px) {
  .program-row {
    grid-template-columns: 1fr 1fr;
  }
  .program-row:nth-of-type(even) figure {
    order: 2;
  }
}

/* --------------------------------------------------------------------------
   16. FIELD MOSAIC & GALLERY
   -------------------------------------------------------------------------- */
.field h2 {
  margin-bottom: var(--space-6);
}

.mosaic {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

.mosaic figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: var(--bg-alt);
  aspect-ratio: 4 / 3;
}

.mosaic figure.m2 {
  aspect-ratio: 3 / 4;
}

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

.mosaic figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem var(--space-4) var(--space-3);
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(11, 31, 74, 0.85), rgba(11, 31, 74, 0));
}

@media (min-width: 900px) {
  .mosaic {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(6, 88px);
  }
  .mosaic figure, .mosaic figure.m2 {
    aspect-ratio: auto;
    min-height: 0;
  }
  .mosaic .m1 { grid-column: 1 / 8; grid-row: 1 / 4; }
  .mosaic .m2 { grid-column: 8 / 13; grid-row: 1 / 5; }
  .mosaic .m3 { grid-column: 1 / 5; grid-row: 4 / 7; }
  .mosaic .m4 { grid-column: 8 / 13; grid-row: 5 / 7; }
  .mosaic .m5 { grid-column: 5 / 8; grid-row: 4 / 7; }
}

/* Gallery page columns */
.g-group + .g-group {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.g-group h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: var(--space-5);
}

.g-cols {
  columns: 1;
  column-gap: var(--space-4);
}

@media (min-width: 560px) { .g-cols { columns: 2; } }
@media (min-width: 960px) { .g-cols { columns: 3; } }

.g-cols figure {
  margin: 0 0 var(--space-4);
  break-inside: avoid;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-alt);
}

.g-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.g-btn img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow);
}

@media (hover: hover) {
  .g-btn:hover img {
    transform: scale(1.03);
  }
}

.g-cols figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.25rem var(--space-3) var(--space-2);
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.92rem;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(11, 31, 74, 0.85), rgba(11, 31, 74, 0));
  pointer-events: none;
}

/* Gallery Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
}

.lightbox::backdrop {
  background: var(--modal-backdrop);
}

.lb-inner {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  padding: var(--space-4);
  gap: var(--space-3);
}

.lb-inner img {
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
  align-self: center;
}

.lb-cap {
  color: #ffffff;
  font-family: var(--head);
  font-weight: 600;
  text-align: center;
  margin: 0;
  padding-bottom: var(--space-2);
}

.lb-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 0;
  border-radius: var(--radius-md);
  font-family: var(--head);
  font-weight: 700;
  font-size: 1rem;
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

@media (hover: hover) {
  .lb-btn:hover {
    background-color: rgba(255, 255, 255, 0.32);
  }
}

.lb-close { top: var(--space-4); right: var(--space-4); }
.lb-prev { left: var(--space-4); top: 50%; transform: translateY(-50%); }
.lb-next { right: var(--space-4); top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------------------------
   17. SECTIONS & GRIDS
   -------------------------------------------------------------------------- */
.who {
  background-color: var(--bg-alt);
}

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

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.plain-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
}

@media (min-width: 900px) {
  .who-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.partner {
  background-color: var(--navy-2);
  color: #ffffff;
}

.partner h2 {
  color: #ffffff;
}

.partner .lead {
  color: rgba(255, 255, 255, 0.85);
}

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

.partner p {
  color: rgba(255, 255, 255, 0.94);
}

@media (min-width: 900px) {
  .partner-grid {
    grid-template-columns: 5fr 6fr;
    gap: var(--space-10);
  }
}

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

.people {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-6);
  grid-template-columns: 1fr;
}

.people-card {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

@media (hover: hover) {
  .people-card:hover {
    border-color: var(--green-ui);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
  }
}

.people h3,
.people-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-1);
}

.people .role,
.people-card .role {
  color: var(--green-ui);
  font-weight: 700;
  font-size: 0.88rem;
  margin: 0.1rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--head);
}

.people p {
  margin-bottom: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

@media (min-width: 640px) {
  .people {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 5fr 6fr;
    gap: var(--space-12);
  }
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.page-head {
  background-color: var(--bg-alt);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  max-width: 18ch;
}

.banner {
  margin: 0;
  aspect-ratio: 21 / 8;
  overflow: hidden;
  background-color: var(--navy);
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

@media (max-width: 700px) {
  .banner {
    aspect-ratio: 16 / 9;
  }
}

.section.tight {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

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

@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 5fr 6fr;
  }
  .two-col.even {
    grid-template-columns: 1fr 1fr;
  }
}

.objectives {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.objectives li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.15rem;
  max-width: 62ch;
}

.more-link {
  display: inline-block;
  margin-top: var(--space-5);
  font-family: var(--head);
  font-weight: 700;
  color: var(--green-ui);
}

.programs .more-link,
.partner .more-link {
  color: #ffffff;
}

.visit {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  max-width: 40ch;
}

/* --------------------------------------------------------------------------
   18. EXPANDABLE FAQ ACCORDION (Feature 11)
   -------------------------------------------------------------------------- */
.faq-section {
  margin-top: var(--space-8);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  font-family: var(--head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background-color var(--transition-fast);
}

.faq-summary::-webkit-details-marker {
  display: none;
}

@media (hover: hover) {
  .faq-summary:hover {
    background-color: var(--surface-hover);
  }
}

.faq-icon {
  width: 20px;
  height: 20px;
  stroke: var(--green-ui);
  fill: none;
  stroke-width: 2.2;
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.65;
}

.faq-content p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   19. COPY-TO-CLIPBOARD BUTTONS (Feature 15)
   -------------------------------------------------------------------------- */
.copy-wrapper {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--head);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 8px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

@media (hover: hover) {
  .copy-btn:hover {
    background-color: var(--surface-hover);
    color: var(--heading);
    border-color: var(--line-strong);
  }
}

.copy-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.copy-btn.copied {
  background-color: #ebfae8;
  color: #216a0f;
  border-color: #216a0f;
}

:root[data-theme="dark"] .copy-btn.copied {
  background-color: rgba(68, 194, 34, 0.2);
  color: #55d633;
  border-color: #55d633;
}

/* --------------------------------------------------------------------------
   20. FLOATING BUTTONS: WHATSAPP & BACK-TO-TOP (Features 6 & 10)
   -------------------------------------------------------------------------- */
.floating-actions {
  position: fixed;
  right: var(--space-5);
  bottom: calc(var(--space-5) + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  z-index: 800;
  pointer-events: none;
}

.floating-actions > * {
  pointer-events: auto;
}

.whatsapp-btn {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background-color: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(18, 140, 126, 0.4);
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

@media (hover: hover) {
  .whatsapp-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(18, 140, 126, 0.55);
  }
}

.whatsapp-btn:active {
  transform: scale(0.96);
}

.back-to-top {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--bg-card);
  border: 1.5px solid var(--line-strong);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal), background-color var(--transition-fast);
}

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

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

@media (hover: hover) {
  .back-to-top:hover {
    background-color: var(--surface-hover);
    color: var(--heading);
  }
}

.back-to-top:active {
  transform: scale(0.94);
}

@media print {
  .floating-actions, .whatsapp-btn, .back-to-top, .scroll-progress {
    display: none !important;
  }
}


/* --------------------------------------------------------------------------
   22. LOADING & REVEAL ANIMATIONS (Feature 7)
   -------------------------------------------------------------------------- */
/* Only enabled when JS runs via html.js class (Progressive enhancement) */
html.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

html.js .reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Shimmer skeleton behind lazy-loaded images */
.img-wrap {
  position: relative;
  background-color: var(--bg-alt);
  overflow: hidden;
}

.img-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  opacity: 1;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.img-wrap.loaded::before {
  opacity: 0;
  animation: none;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .img-wrap::before {
    animation: none !important;
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   23. FOOTER & NEWSLETTER (Feature 12)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--footer-bg);
  color: rgba(255, 255, 255, 0.88);
  padding: clamp(3.5rem, 6vw, 5rem) 0 var(--space-8);
  font-size: 1rem;
}

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

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

.foot-brand p {
  margin: 0;
  font-family: var(--head);
  font-weight: 600;
  line-height: 1.4;
  color: #ffffff;
}

.plate {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 0.5rem;
  display: inline-flex;
}

.plate img {
  height: 56px;
  width: auto;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  font-family: var(--head);
  font-weight: 600;
}

.foot-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color var(--transition-fast);
}

@media (hover: hover) {
  .foot-nav a:hover {
    color: var(--leaf-light);
    text-decoration: underline;
  }
}

/* Footer newsletter component */
.footer-newsletter {
  padding: var(--space-6) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.newsletter-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

.newsletter-grid h3 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: var(--space-1);
}

.newsletter-grid p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 0.98rem;
}

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

.newsletter-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.newsletter-input {
  flex: 1 1 240px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: inherit;
  font-size: 0.95rem;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.newsletter-input:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 1px;
  background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-privacy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-privacy a {
  color: #ffffff;
  text-decoration: underline;
}

.form-feedback {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-4) 0;
}

.form-feedback svg {
  flex-shrink: 0;
}

.form-feedback a {
  color: inherit;
  text-decoration: underline;
  font-weight: 700;
}

/* Light theme defaults (high contrast) */
.form-feedback.is-success {
  background-color: #eaf5e5;
  border: 1px solid #2b6814;
  color: #144d0d;
}

.form-feedback.is-error {
  background-color: #fee2e2;
  border: 1px solid #dc2626;
  color: #991b1b;
}

.form-feedback.is-info {
  background-color: #e0f2fe;
  border: 1px solid #0284c7;
  color: #0369a1;
}

/* Dark theme & dark container overrides */
[data-theme="dark"] .form-feedback.is-success,
footer .form-feedback.is-success {
  background-color: rgba(54, 127, 25, 0.25);
  border: 1px solid var(--leaf-light);
  color: #ffffff;
}

[data-theme="dark"] .form-feedback.is-error,
footer .form-feedback.is-error {
  background-color: rgba(220, 38, 38, 0.25);
  border: 1px solid #f87171;
  color: #ffffff;
}

[data-theme="dark"] .form-feedback.is-info,
footer .form-feedback.is-info {
  background-color: rgba(14, 165, 233, 0.25);
  border: 1px solid var(--sky);
  color: #ffffff;
}

.copy {
  grid-column: 1 / -1;
  margin: var(--space-4) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

@media (min-width: 900px) {
  .newsletter-grid {
    grid-template-columns: 5fr 6fr;
    align-items: center;
  }
}
