/* ==========================================================================
   COODU TRUST — Components & Chrome
   Shared UI components (buttons, eyebrow, section-head, card, icon-chip,
   stat, badge) + the global chrome (header, nav, mega panels, drawer,
   footer). Mobile-first; fluid responsive. Styled strictly to the shared
   class convention + tokens.

   Motion contract: structural open/closed states live here so the chrome
   works standalone; the *animation* of those states is gated behind
   (prefers-reduced-motion: no-preference) so reduced-motion users get
   instant, accessible behavior.
   ========================================================================== */

/* ==========================================================================
   1. BUTTONS — .btn + modifiers
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid transparent;
  border-radius: var(--radius-btn);
  background: var(--color-primary);
  color: var(--color-on-dark);
}

.btn svg,
.btn [data-lucide] { width: 18px; height: 18px; flex: none; }

/* Green primary */
.btn--primary { background: var(--color-primary); color: var(--color-on-dark); }
.btn--primary:hover { background: var(--color-primary-dark); color: var(--color-on-dark); }

/* Outline (green border, transparent) — for light backgrounds */
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover { background: var(--color-primary); color: var(--color-on-dark); }

/* Donate / CTA — the one action to click */
.btn--cta {
  background: var(--color-accent);
  color: var(--color-on-dark);
  box-shadow: var(--shadow-donate);
}
.btn--cta:hover { background: var(--color-accent-dark); color: var(--color-on-dark); }

/* White on dark surfaces */
.btn--light { background: var(--color-on-dark); color: var(--color-primary); }
.btn--light:hover { background: var(--surface-alt); color: var(--color-primary-dark); }

/* Transparent ghost on dark surfaces (white border).
   --ghost-dark is the alias used on the dark CTA bands. */
.btn--ghost-light,
.btn--ghost-dark {
  background: transparent;
  color: var(--color-on-dark);
  border-color: var(--border-on-dark);
}
.btn--ghost-light:hover,
.btn--ghost-dark:hover { background: var(--color-on-dark); color: var(--color-deep); }

/* Full-width helper (hero/CTA on mobile) */
.btn--block { width: 100%; }

/* Larger hit area + full width on small screens for primary actions */
@media (max-width: 599.98px) {
  .btn--block { min-height: 48px; }
}

/* Light-surface focus ring for dark contexts */
.btn--light:focus-visible,
.btn--ghost-light:focus-visible,
.btn--ghost-dark:focus-visible { outline-color: var(--color-on-dark); }

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease); }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(0); }
}

/* ==========================================================================
   2. EYEBROW — .eyebrow (uppercase kicker with leading dash)
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  line-height: 1;
  color: var(--color-primary);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
  flex: none;
}

/* On dark surfaces (hero / CTA band / dark band) */
.eyebrow--on-dark { color: var(--color-amber-light); }

/* ==========================================================================
   3. SECTION HEAD — .section-head > .eyebrow + h2 + p
   ========================================================================== */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  max-width: var(--maxw-text);
  margin-inline: auto;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head .eyebrow { justify-content: center; }

/* Centered heads flank the eyebrow with a trailing dash too */
.section-head:not(.section-head--left) .eyebrow::after {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
  flex: none;
}

.section-head__title { margin: 0; }

.section-head__sub {
  margin: 0;
  max-width: 640px;
  color: var(--text-muted);
}

/* Left-aligned variant for split layouts */
.section-head--left {
  align-items: flex-start;
  text-align: left;
  margin-inline: 0;
}

/* ==========================================================================
   4. ICON CHIP — .icon-chip (rounded square w/ Lucide icon)
   ========================================================================== */
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--radius-icon);
  background: var(--surface-tint);
  color: var(--color-primary);
}

.icon-chip svg,
.icon-chip [data-lucide] { width: 22px; height: 22px; }

.icon-chip--sm { width: 38px; height: 38px; }
.icon-chip--sm svg { width: 19px; height: 19px; }

.icon-chip--lg { width: 54px; height: 54px; }
.icon-chip--lg svg { width: 26px; height: 26px; }

/* Orange variant (Women Empowerment / income / make-a-difference) */
.icon-chip--accent {
  background: var(--surface-tint-orange);
  color: var(--color-accent);
}

/* White chip on dark surfaces */
.icon-chip--light {
  background: var(--color-on-dark);
  color: var(--color-primary);
  box-shadow: var(--shadow-1);
}

/* Amber chip on dark band */
.icon-chip--amber {
  background: color-mix(in srgb, var(--color-amber) 18%, transparent);
  color: var(--color-amber);
}

/* ==========================================================================
   5. BADGE / TAG — .badge (pill)
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--color-amber-light);
  color: var(--text-strong);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .625rem;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  line-height: 1;
}

/* Story category badge (solid green, white text) */
.badge--category { background: var(--color-primary); color: var(--color-on-dark); }

/* ==========================================================================
   6. STAT — .stat > .stat__num + .stat__label
   ========================================================================== */
.stat { display: flex; flex-direction: column; gap: 4px; }

.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-stat);
  line-height: 1;
  color: var(--text-strong);
}

.stat__num--primary { color: var(--color-primary); }
.stat__num--amber   { color: var(--color-amber-text); } /* amber on white */

.stat__label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Bordered card variant (mobile 2x2) */
.stat--card {
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-1);
}

/* Dark-band variant (one-planet live counters) */
.stat--dark {
  padding: 18px 16px;
  border: 1px solid var(--border-on-dark-soft);
  border-radius: var(--radius-frame);
}
.stat--dark .stat__num { color: var(--color-amber); }
.stat--dark .stat__label { color: var(--on-dark-60); }

/* Count-up target stays stable while animating */
.counter { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   7. CARD — .card > .card__media + .card__body
   ========================================================================== */
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  text-decoration: none;
  color: inherit;
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-alt);
}

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

.card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 20px 22px 22px;
}

.card__title { margin: 0; color: var(--text-strong); font-size: var(--fs-h3); }

.card__text {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--text-body);
}

.card__link {
  margin-top: auto;
  padding-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-decoration: none;
}

.card__link svg,
.card__link [data-lucide] { width: 15px; height: 15px; }

/* Program modifier: corner icon-chip + optional "New" badge in the media */
.card--program .card__media > .icon-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--color-on-dark);
  box-shadow: var(--shadow-1);
}

.card--program .card__media > .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

/* Horizontal card (Focus Areas): icon left, text right */
.card--horizontal { flex-direction: row; align-items: flex-start; gap: 18px; padding: 24px; }
.card--horizontal .card__body { padding: 0; }

/* Impact card (surface-alt fill, no link) */
.card--impact { background: var(--surface-alt); box-shadow: none; }

@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
  .card__media img { transition: transform var(--ease); }
  a.card:hover,
  .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
    border-color: var(--border-soft);
  }
  a.card:hover .card__media img,
  .card:hover .card__media img { transform: scale(1.03); }
  .card__link svg { transition: transform var(--ease); }
  .card:hover .card__link svg { transform: translateX(3px); }
}

/* ==========================================================================
   8. CHROME — HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: transparent;            /* leaf shows through at the top of the page */
  border-bottom: 1px solid transparent;
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}
/* On scroll: keep the LEAF in the bar (fixed attachment aligns it with the page),
   softened so the nav stays readable. (JS toggles .is-scrolled) */
.site-header.is-scrolled {
  background-color: var(--surface);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.80), rgba(255, 255, 255, 0.86)),
    url('https://res.cloudinary.com/dvxbg6to3/image/upload/v1754456792/coodu-trust/images/aboutus/background.jpg');
  background-attachment: fixed;
  background-position: center top;
  background-size: cover;
  border-bottom-color: var(--border);
}

/* Green->amber scroll-progress line on the bottom edge of the bar. */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  transform: scaleX(var(--scroll, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--color-primary), var(--color-amber));
  z-index: 3;
  pointer-events: none;
}

.site-header .container {
  position: relative; /* positioning context for mega panels */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  min-height: var(--header-h-mobile);
  padding-block: 8px;
}

@media (prefers-reduced-motion: no-preference) {
  .site-header { transition: box-shadow var(--ease), padding var(--ease); }
}

/* Optional scrolled state (JS toggles .is-scrolled) */
.site-header.is-scrolled { box-shadow: var(--shadow-1); }

/* ---- Brand lockup ------------------------------------------------------- */
.brand {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas: "logo name";
  align-items: center;
  column-gap: 9px;
  text-decoration: none;
  color: inherit;
}

.brand > img,
.brand__logo {
  grid-area: logo;
  width: 64px;
  height: 64px;
  border-radius: 13px;
  object-fit: cover;
  align-self: center;
}

.brand__name {
  grid-area: name;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: var(--ls-wordmark);
  text-transform: uppercase;
  line-height: 1;
  color: var(--text-strong);
}

.brand__sub {
  grid-area: sub;
  display: none;
  font-family: var(--font-body);
  font-size: .625rem;
  letter-spacing: var(--ls-tagline);
  text-transform: uppercase;
  line-height: 1;
  color: var(--text-muted);
}

/* ---- Primary nav (desktop only; drawer below 1200) ---------------------- */
.nav { display: none; }

/* scoped to the bar list only — the mega panels contain their own <ul>s */
.nav > .nav__list {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link,
.has-mega > button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .875rem;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  line-height: 1;
  color: var(--text-body);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav__link:hover,
.has-mega > button:hover { color: var(--color-primary); }

.nav svg,
.nav [data-lucide] { width: 14px; height: 14px; }

/* Amber active/hover underline (per-page active state) */
.nav__link::after,
.has-mega > button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--color-amber);
  transform: scaleX(0);
  transform-origin: center;
}

.nav__link:hover::after,
.nav__link.is-active::after,
.has-mega > button:hover::after,
.has-mega > [aria-expanded="true"]::after,
.has-mega.is-open > .nav__trigger::after { transform: scaleX(1); }

.nav__link.is-active,
.has-mega > [aria-expanded="true"],
.has-mega.is-open > .nav__trigger { color: var(--color-primary); }

.has-mega > [aria-expanded="true"] svg,
.has-mega.is-open > .nav__trigger svg { transform: rotate(180deg); }

@media (prefers-reduced-motion: no-preference) {
  .nav__link::after,
  .has-mega > button::after { transition: transform var(--ease); }
  .nav svg { transition: transform var(--ease); }
}

/* ---- Mega panel (.mega) --------------------------------------------------
   Panels anchor under their own trigger (<li class="has-mega">), not the
   header container. Visibility is the [hidden] attribute (JS syncs it);
   .is-open on the li drives the trigger state + entry animation. */
.has-mega { position: relative; }

.mega {
  --mega-w: min(560px, calc(100vw - 48px));
  text-align: left;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: var(--mega-w);
  z-index: var(--z-mega);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-frame);
  box-shadow: var(--shadow-menu);
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .has-mega.is-open .mega { animation: mega-in var(--ease) both; }
}
@keyframes mega-in {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* Head strip: kicker + note */
.mega__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 15px 20px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border-soft);
}
.mega__kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-primary);
}
.mega__headnote { font-size: .8125rem; color: var(--text-muted); }

/* Sector tiles (Programs): 2-col grid of icon + title + one-liner.
   .mega__grid is a real <ul> so SRs announce "list, 6 items". */
.mega__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 0;
  padding: 14px;
  list-style: none;
}
.mega__grid > li { display: flex; }
.mega__tile {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
}
.mega__tile:hover { background: var(--surface-tint); border-color: var(--border-soft); }
.mega__tile--accent:hover { background: var(--surface-tint-orange); }

.mega__tile-head { display: flex; align-items: center; gap: 10px; }
.mega__tile .icon-chip { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.mega__tile .icon-chip svg,
.mega__tile .icon-chip [data-lucide] { width: 19px; height: 19px; }

.mega__tile-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: var(--ls-wordmark);
  text-transform: uppercase;
  line-height: 1.12;
  color: var(--text-strong);
}
.mega__tile:hover .mega__tile-title { color: var(--color-primary); }
.mega__tile--accent:hover .mega__tile-title { color: var(--color-accent-dark); }
.mega__tile-sub { font-size: .8125rem; line-height: 1.4; color: var(--text-muted); }

/* Foot strip: view-all link + compact Donate */
.mega__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: var(--surface-alt);
  border-top: 1px solid var(--border-soft);
}
.mega__foot-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-primary);
  text-decoration: none;
}
.mega__foot-link svg,
.mega__foot-link [data-lucide] { width: 16px; height: 16px; }
.mega__foot-cta { min-height: 40px; padding: 10px 18px; font-size: .8125rem; }
/* re-assert the .btn icon size — `.nav [data-lucide]` (14px) ties on
   specificity and would win by source order otherwise */
.mega__foot-cta svg,
.mega__foot-cta [data-lucide] { width: 18px; height: 18px; }

/* Small menu variant (Get Involved): icon rows with title + sub.
   .mega__rows is a real <ul> so SRs announce "list, 4 items". */
.mega--menu {
  --mega-w: min(320px, calc(100vw - 48px));
  padding: 8px;
}
.mega__rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mega__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
}
.mega__item:hover { background: var(--surface-alt); }
.mega__item--accent:hover { background: var(--surface-tint-orange); }

.mega__item .icon-chip { width: 38px; height: 38px; flex: none; }
.mega__item .icon-chip svg,
.mega__item .icon-chip [data-lucide] { width: 19px; height: 19px; }

.mega__item-txt { display: flex; flex-direction: column; gap: 2px; }
.mega__item-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: var(--ls-wordmark);
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--text-strong);
}
.mega__item:hover .mega__item-title { color: var(--color-primary); }
.mega__item--accent:hover .mega__item-title { color: var(--color-accent-dark); }
.mega__item-sub { font-size: .78rem; line-height: 1.3; color: var(--text-muted); }

@media (prefers-reduced-motion: no-preference) {
  .mega__tile,
  .mega__item { transition: background var(--ease), border-color var(--ease); }
  .mega__foot-link svg { transition: transform var(--ease); }
  .mega__foot-link:hover svg { transform: translateX(3px); }
}

/* ---- Header actions + hamburger ---------------------------------------- */
.header__actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

/* Compact Donate in the bar on mobile; full padding on tablet+ */
.site-header .btn--cta { padding-inline: 14px; font-size: .8125rem; }

.hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-strong);
}

.hamburger svg,
.hamburger [data-lucide] { width: 22px; height: 22px; }
.hamburger:hover { border-color: var(--color-primary); color: var(--color-primary); }

@media (prefers-reduced-motion: no-preference) {
  .hamburger { transition: border-color var(--ease), color var(--ease); }
}

/* ---- Header responsive -------------------------------------------------- */
@media (min-width: 600px) {
  .brand { grid-template-areas: "logo name"; align-items: center; column-gap: 14px; }
  .brand > img,
  .brand__logo { width: 72px; height: 72px; border-radius: 14px; }
  .brand__name { align-self: center; font-size: 1.55rem; }
  .brand__sub { display: none; }   /* "COODU TRUST" alone — tagline removed per request */

  .site-header .btn--cta { padding-inline: 22px; font-size: .875rem; }
}

@media (min-width: 1200px) {
  .site-header .container { min-height: var(--header-h-desktop); padding-block: 10px; }
  .nav { display: block; }
  .hamburger { display: none; }
}

/* ==========================================================================
   9. CHROME — MOBILE DRAWER (.drawer)
   ========================================================================== */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  pointer-events: none;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  opacity: 0;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--drawer-w);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  box-shadow: var(--shadow-drawer);
  transform: translateX(100%);
}

/* Open state (JS toggles .is-open on .drawer) */
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .drawer__backdrop { transition: opacity var(--ease); }
  .drawer__panel { transition: transform var(--ease); }
}

/* Desktop has inline nav — drawer never shows */
@media (min-width: 1200px) {
  .drawer { display: none; }
}

/* ---- Drawer head -------------------------------------------------------- */
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.drawer__head .brand > img,
.drawer__head .brand__logo { width: 34px; height: 34px; border-radius: 9px; }
.drawer__head .brand__name { font-size: 1rem; }
.drawer__head .brand__sub { display: none; }

.drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-strong);
}
.drawer__close svg,
.drawer__close [data-lucide] { width: 20px; height: 20px; }
.drawer__close:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ---- Drawer nav --------------------------------------------------------- */
.drawer__nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 14px;
  -webkit-overflow-scrolling: touch;
}

.drawer__link,
.acc__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 2px;
  border: 0;
  border-radius: 9px;
  background: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .9375rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-align: left;
  color: var(--text-body);
  text-decoration: none;
}

.drawer__link:hover,
.acc__trigger:hover { color: var(--color-primary); }

.drawer__link svg,
.acc__trigger svg { width: 17px; height: 17px; flex: none; }

/* Active top-level row: tinted bg + green text + amber dot */
.drawer__link.is-active {
  background: var(--surface-tint);
  color: var(--color-primary);
}
.drawer__link.is-active::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-amber);
  flex: none;
}

/* ---- Drawer accordion (.acc) ------------------------------------------- */
.acc__trigger[aria-expanded="true"] { color: var(--color-primary); }
.acc__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.acc__panel {
  display: none;
  margin: 0 6px 6px 8px;
  padding: 2px 0 6px;
  border-left: 2px solid var(--border);
}

.acc__trigger[aria-expanded="true"] + .acc__panel,
.acc.is-open .acc__panel { display: block; }

/* Sub-links switch to Source Sans, sentence case */
.acc__link,
.acc__panel a {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .875rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text-muted);
  text-decoration: none;
}
.acc__link:hover,
.acc__panel a:hover { color: var(--color-primary); }
.acc__link.is-active,
.acc__panel a.is-active { color: var(--color-primary); font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .acc__trigger svg,
  .drawer__link,
  .acc__trigger { transition: color var(--ease), transform var(--ease), background var(--ease); }
}

/* ---- Drawer footer (pinned) -------------------------------------------- */
.drawer__foot {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--border);
}

.drawer__foot .btn--cta { width: 100%; min-height: 48px; font-size: .9375rem; padding-inline: 20px; }

.drawer__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: .8125rem;
  color: var(--text-muted);
  text-decoration: none;
}
.drawer__phone svg,
.drawer__phone [data-lucide] { width: 14px; height: 14px; }
.drawer__phone:hover { color: var(--color-primary); }

/* ==========================================================================
   10. CHROME — FOOTER (.site-footer)
   ========================================================================== */
.site-footer {
  /* Deepest green of the stack — planet (bright) pops above it. */
  background: #0a2613;
  color: var(--footer-text);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-block: clamp(40px, 6vw, 60px) 0;
}

.footer__col { min-width: 0; }

/* Brand block — wide white wordmark logo on the deep-green footer. */
.footer__brand {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  text-decoration: none;
}
/* Override the global square .brand__logo (64x64, cover, rounded) so the wide
   logo (278x85, ratio ~3.27) shows at natural ratio, contained, never cropped. */
.footer__brand img,
.footer__brand .brand__logo {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: clamp(48px, 9vw, 60px);
  max-width: 100%;
  aspect-ratio: 278 / 85;
  border-radius: 0;
  background: none;
  object-fit: contain;
}
/* The white footer logo already includes the "COODU TRUST" wordmark — never
   render a duplicate text label even if the span is present. */
.footer__brand .brand__name,
.site-footer .brand__name { display: none; }

.footer__about {
  max-width: 300px;
  font-family: var(--font-body);
  font-size: .90625rem; /* ~14.5px */
  line-height: 1.6;
  color: var(--footer-text-muted);
}

/* Column headings */
.footer__title,
.footer__col h2,
.footer__col h3,
.footer__col h4 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-on-dark);
}

/* Link lists */
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__links a,
.site-footer address a {
  font-family: var(--font-body);
  font-size: .90625rem;
  color: var(--footer-text-muted);
  text-decoration: none;
}
.footer__links a:hover,
.site-footer address a:hover { color: var(--color-on-dark); }

/* Contact (address) */
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-body);
  font-size: .90625rem;
  color: var(--footer-text-muted);
}
.footer__contact > * {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.footer__contact svg,
.footer__contact [data-lucide] {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
  color: var(--footer-text);
}

/* Social tiles */
.footer__socials {
  display: flex;
  gap: 10px;
}
.footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--footer-social-bg);
  color: var(--footer-text);
}
.footer__socials svg { width: 19px; height: 19px; }
.footer__socials a:hover { background: var(--color-primary); color: var(--color-on-dark); }

@media (prefers-reduced-motion: no-preference) {
  .footer__links a,
  .footer__socials a,
  .site-footer address a { transition: color var(--ease), background var(--ease); }
}

/* Footer bottom bar */
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-block: 20px;
  border-top: 1px solid var(--footer-hairline);
  font-family: var(--font-body);
  font-size: .8125rem;
  color: var(--footer-text-faint);
  text-align: center;
}
.footer__bottom nav,
.footer__bottom ul {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__bottom a { color: var(--footer-text-faint); text-decoration: none; }
.footer__bottom a:hover { color: var(--color-on-dark); }

/* Dark-surface focus rings */
.site-footer a:focus-visible,
.drawer__panel a:focus-visible { outline-offset: 3px; }
.site-footer a:focus-visible { outline-color: var(--footer-text); }

/* ---- Footer responsive -------------------------------------------------- */
@media (min-width: 600px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; padding-block: 48px 0; }
  .footer__bottom { justify-content: space-between; text-align: left; }
}

@media (min-width: 1200px) {
  .footer__grid {
    grid-template-columns: 1.6fr 1fr 1.3fr 1fr;
    gap: 40px;
    padding-block: 60px 0;
  }
}
