/* =========================================================================
   Aid Via Action — design system
   -------------------------------------------------------------------------
   Palette is pulled from the AVA logo: purple #92278F, orange #E07000,
   green #3A6B08. Purple is the primary (links, headings accents, header);
   orange is reserved for the donate CTA. Both are darkened from the logo
   values so white text on them clears WCAG AA (4.5:1).

   Type: Inter for body / UI / nav / buttons; Newsreader for display
   headlines only.
   ========================================================================= */

/* ----------------------------------------------------------------- TOKENS */
:root {
    color-scheme: only light;

    /* Surfaces */
    --paper:      #FFFFFF;   /* page ground */
    --sand:       #F7F5EC;   /* warm band — echoes the original cream */
    --sand-deep:  #EFEBDD;   /* hairlines / hovers on sand */

    /* Ink */
    --ink:        #17161A;   /* headings + body */
    --ink-soft:   #4B4952;   /* secondary copy */
    --ink-faint:  #7A7883;   /* captions, meta */

    /* Brand */
    --primary:      #6D2470;  /* deep purple — links, accents (9.8:1 on white) */
    --primary-dark: #4B1750;  /* footer ground, hovers */
    --primary-tint: #F4EDF5;  /* purple wash for bands + chips */
    --primary-lift: #92278F;  /* logo purple — accents on dark only */

    --cta:          #BE5309;  /* donate orange (4.7:1 with white) */
    --cta-dark:     #9C4207;
    --cta-tint:     #FDF1E6;
    --cta-lift:     #E87511;  /* logo orange — accents on dark only */

    --green:        #3A6B08;  /* logo green — sparing accent */

    --line:       #E3E0D8;   /* hairline */
    --line-soft:  #EFEDE6;
    --error:      #A11C13;

    /* Type */
    --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --display: 'Newsreader', Georgia, 'Times New Roman', serif;

    /* Layout */
    --maxw: 1120px;
    --maxw-wide: 1280px;
    --maxw-narrow: 720px;
    --gutter: 24px;
    --section-y: 96px;

    --radius:    12px;
    --radius-sm: 8px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(23, 22, 26, .05), 0 1px 3px rgba(23, 22, 26, .04);
    --shadow-md: 0 4px 12px rgba(23, 22, 26, .07), 0 2px 4px rgba(23, 22, 26, .04);
    --shadow-lg: 0 18px 40px rgba(23, 22, 26, .12), 0 4px 10px rgba(23, 22, 26, .06);

    --header-h: 76px;
}

/* ----------------------------------------------------------------- RESET */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

::selection { background: var(--primary-tint); color: var(--primary-dark); }

/* Visible, branded focus ring everywhere */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 3px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 var(--radius-sm) 0;
    font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------ TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--display);
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 .4em;
    line-height: 1.1;
    letter-spacing: -0.018em;
}

h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.6vw, 41px); }
h3 { font-size: clamp(21px, 2.1vw, 26px); line-height: 1.2; }
h4 { font-size: 19px; letter-spacing: -0.01em; line-height: 1.3; }

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

strong { font-weight: 650; }
em, i { font-style: italic; }

.lead { font-size: 20px; line-height: 1.6; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: 14.5px; }
.center { text-align: center; }

/* Eyebrow label above a heading */
.eyebrow {
    display: block;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 14px;
}
.eyebrow--light { color: var(--cta-lift); }

/* -------------------------------------------------------------- LAYOUT */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}
.container.wide   { max-width: var(--maxw-wide); }
.container.narrow { max-width: var(--maxw-narrow); }

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--tight { padding-top: 60px; padding-bottom: 60px; }
.section--flush-top { padding-top: 0; }
.section--sand { background: var(--sand); }
.section--tint { background: var(--primary-tint); }

.section-head { margin-bottom: 48px; max-width: 720px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 18px; color: var(--ink-soft); margin: 0; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Standard page header used by every interior page */
.page-heading { text-align: center; margin-bottom: 52px; }
.page-heading h1, .page-heading h2 { margin: 0 0 14px; }
.page-heading p { max-width: 660px; margin: 0 auto; color: var(--ink-soft); font-size: 18px; }
.page-heading--left { text-align: left; }
.page-heading--left p { margin-left: 0; }
.page-title { margin-bottom: 20px; }

/* Short accent rule under a heading */
.rule-accent {
    width: 56px;
    height: 4px;
    border: 0;
    border-radius: 2px;
    background: var(--cta);
    margin: 0 auto 26px;
}
.page-heading--left .rule-accent { margin-left: 0; }
.page-rule { border: 0; border-top: 1px solid var(--line); margin: 0 0 40px; }

/* --------------------------------------------------------------- BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
    border-radius: var(--radius-pill);
    padding: 14px 28px;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease,
                transform .18s ease, box-shadow .18s ease;
}
.btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn:active { transform: none; box-shadow: none; }

/* Donate / conversion button — the only orange on the page */
.btn--cta {
    background: var(--cta);
    border-color: var(--cta);
}
.btn--cta:hover { background: var(--cta-dark); border-color: var(--cta-dark); }

/* Outline button — secondary action */
.btn--ghost {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn--ghost:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* On a dark photo / footer */
.btn--light {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .7);
    color: #fff;
    backdrop-filter: blur(4px);
}
.btn--light:hover { background: #fff; color: var(--primary-dark); border-color: #fff; }

.btn--sm    { padding: 10px 20px; font-size: 14.5px; }
.btn--lg    { padding: 17px 36px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }

/* Text link with a chevron */
.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 16px;
    color: var(--primary);
}
.btn-text::after { content: '\203A'; font-size: 20px; line-height: 1; transition: transform .18s ease; }
.btn-text:hover { text-decoration: none; color: var(--primary-dark); }
.btn-text:hover::after { transform: translateX(3px); }

/* =========================================================================
   HEADER — thin utility bar + sticky white bar (logo left, nav + CTA right)
   ========================================================================= */
.utility-bar {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, .82);
    font-size: 13.5px;
}
.utility-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 38px;
    padding-top: 6px;
    padding-bottom: 6px;
}
.utility-bar__note { margin: 0; }
.utility-bar nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin: 0;
    padding: 0;
}
.utility-bar a { color: rgba(255, 255, 255, .9); font-weight: 500; }
.utility-bar a:hover { color: #fff; text-decoration: underline; }
.utility-bar a.active { color: #fff; }

.site-header {
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 60;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: var(--header-h);
    padding-top: 10px;
    padding-bottom: 10px;
}
.brand-logo { display: block; flex: 0 0 auto; }
.brand-logo img { width: 168px; max-width: 46vw; height: auto; }

.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 26px;
}
.primary-nav a {
    font-size: 15.5px;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
    padding: 6px 0;
    position: relative;
}
.primary-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--cta);
    transform: scaleX(0);
    transition: transform .18s ease;
}
.primary-nav a:hover { color: var(--primary); text-decoration: none; }
.primary-nav a:hover::after,
.primary-nav a.active::after { transform: scaleX(1); }
.primary-nav a.active { color: var(--primary); font-weight: 600; }

.header-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    color: var(--ink);
    cursor: pointer;
}

/* Full-screen mobile menu */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--paper);
    z-index: 100;
    padding: 24px 24px 48px;
    overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    width: 44px;
    height: 44px;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: var(--ink);
}
.mobile-nav ul { list-style: none; margin: 60px 0 28px; padding: 0; }
.mobile-nav ul a {
    display: block;
    font-family: var(--display);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    padding: 12px 0;
    color: var(--ink);
    border-bottom: 1px solid var(--line-soft);
}
.mobile-nav ul a:hover { color: var(--primary); text-decoration: none; }
.mobile-nav-actions { display: flex; flex-direction: column; gap: 12px; }

/* =========================================================================
   HERO — full-bleed photo, gradient scrim, headline + CTAs set in HTML
   ========================================================================= */
.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(78vh, 660px);
    overflow: hidden;
    background: var(--primary-dark);
}
.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* home-hero-wide.jpg is pre-cropped below the printed banner, so a plain
       centre focal point keeps the whole team in frame at every width. */
    object-position: 50% 50%;
}
.hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(20, 10, 22, .58) 0%, rgba(20, 10, 22, .20) 30%, rgba(20, 10, 22, .88) 100%),
        linear-gradient(90deg, rgba(35, 14, 38, .80) 0%, rgba(35, 14, 38, .30) 58%, rgba(35, 14, 38, 0) 100%);
}
.hero__inner {
    position: relative;
    z-index: 1;
    padding-top: 130px;
    padding-bottom: 76px;
    color: #fff;
}
.hero__copy { max-width: 720px; }
.hero h1 {
    color: #fff;
    font-size: clamp(38px, 5.4vw, 64px);
    margin-bottom: 20px;
    text-wrap: balance;
}
.hero__sub {
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.55;
    color: rgba(255, 255, 255, .93);
    max-width: 620px;
    margin-bottom: 30px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Compact photo band used as a header on interior pages */
.page-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 320px;
    overflow: hidden;
    background: var(--primary-dark);
}
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.page-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30, 12, 33, .86) 0%, rgba(30, 12, 33, .62) 55%, rgba(30, 12, 33, .34) 100%);
}
/* padding-block only — these elements are also .container, whose left/right
   gutters a `padding: x 0` shorthand would wipe out. */
.page-hero__inner {
    position: relative;
    z-index: 1;
    color: #fff;
    padding-top: 64px;
    padding-bottom: 64px;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255, 255, 255, .9); max-width: 620px; font-size: 18px; margin: 0; }
.page-hero .eyebrow { color: var(--cta-lift); }

/* =========================================================================
   IMPACT STATS BAND
   Every figure is sourced from copy already on the site — see home.html.
   ========================================================================= */
.stats-band { background: var(--primary-dark); color: #fff; }
.stats-band .section { padding-top: 56px; padding-bottom: 56px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.stat { text-align: center; }
.stat__value {
    display: block;
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(34px, 3.6vw, 46px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 8px;
}
.stat__label {
    display: block;
    font-size: 15px;
    line-height: 1.45;
    color: rgba(255, 255, 255, .93);
    margin: 0;
    max-width: 15em;
    margin-inline: auto;
}
.stat__note {
    display: block;
    font-size: 13px;
    color: var(--cta-lift);
    font-weight: 500;
    margin-top: 6px;
}
.stats-source {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, .72);
    margin: 34px 0 0;
}

/* =========================================================================
   CARDS
   ========================================================================= */
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card--hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--sand-deep); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); margin-bottom: 0; }

.card-grid { display: grid; gap: 28px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* "What We Do" cards — an accent bar + expandable detail */
.do-card { display: flex; flex-direction: column; }
.do-card__mark {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary-tint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    flex: 0 0 auto;
}
.do-card__mark svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* =========================================================================
   DISCLOSURE PANELS (home "Explore our work" / any expandable section)
   ========================================================================= */
.accordions { display: flex; flex-direction: column; gap: 14px; }
.accordion {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.accordion.is-open { border-color: var(--primary); box-shadow: var(--shadow-md); }
.accordion__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color .18s ease, background .18s ease;
}
.accordion__header:hover { color: var(--primary); background: var(--sand); }
.accordion.is-open .accordion__header { color: var(--primary); }
.accordion__icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-tint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    line-height: 1;
    transition: transform .25s ease, background .18s ease;
}
.accordion.is-open .accordion__icon { transform: rotate(90deg); background: var(--primary); color: #fff; }

.accordion__panel {
    overflow: hidden;
    max-height: 0;
    visibility: hidden;
    transition: max-height .3s ease, visibility .3s ease;
}
.accordion.is-open .accordion__panel { max-height: 3000px; visibility: visible; }
.accordion__body {
    margin: 0 24px;
    padding: 22px 0 26px;
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--ink-soft);
    border-top: 1px solid var(--line-soft);
}
.accordion__body p { margin: 0 0 14px; }
.accordion__intro { font-weight: 600; color: var(--ink); }
.accordion__subhead {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 22px 0 10px;
}
.accordion__subhead:first-child { margin-top: 0; }
.accordion__list { margin: 0; padding-left: 20px; }
.accordion__list li { margin-bottom: 7px; }

/* Stat rows inside a panel */
.accordion__stats { list-style: none; margin: 0; padding: 0; max-width: 520px; }
.accordion__stats li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line-soft);
}
.accordion__stats li:last-child { border-bottom: 0; }
.accordion__stat-value {
    font-weight: 650;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}
.accordion__links { list-style: none; margin: 0; padding: 0; }
.accordion__links li { margin-bottom: 10px; }
.accordion__links a { font-weight: 600; }

/* =========================================================================
   GALLERY
   ========================================================================= */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.gallery figure { margin: 0; }
.gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
}
.gallery img:hover { transform: scale(1.015); box-shadow: var(--shadow-md); }
.gallery--lead { grid-template-columns: 1.6fr 1fr 1fr; }
.gallery--lead figure:first-child img { aspect-ratio: 3 / 2; height: 100%; }

/* Two-column media + copy block */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.split--narrow-media { grid-template-columns: 1.15fr .85fr; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.split--reverse .split__media { order: 2; }

/* =========================================================================
   NEWSLETTER
   ========================================================================= */
.newsletter { background: var(--sand); }
.newsletter__inner { text-align: center; }
.newsletter h2 { margin-bottom: 12px; }
.newsletter p { color: var(--ink-soft); margin-bottom: 26px; }
.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 520px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
    flex: 1 1 260px;
    min-width: 200px;
    font-family: var(--sans);
    font-size: 16px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--paper);
    color: var(--ink);
}
.newsletter-form input[type="email"]::placeholder { color: var(--ink-faint); }

/* =========================================================================
   CALL-TO-ACTION BAND
   ========================================================================= */
.cta-band { background: var(--primary); color: #fff; }
.cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 56px;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .88); margin: 0; max-width: 560px; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; flex: 0 0 auto; }

/* =========================================================================
   LISTS
   ========================================================================= */
.rule-list { list-style: none; margin: 0; padding: 0; }
.rule-list li {
    padding: 14px 0 14px 28px;
    border-bottom: 1px solid var(--line-soft);
    position: relative;
}
.rule-list li::before { content: '\2014'; position: absolute; left: 0; color: var(--primary); }

/* Numbered requirement cards */
.step-list { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 14px; }
.step-list li {
    counter-increment: step;
    position: relative;
    padding: 20px 24px 20px 68px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--ink-soft);
}
.step-list li::before {
    content: counter(step);
    position: absolute;
    left: 22px;
    top: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-tint);
    color: var(--primary);
    font-family: var(--sans);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================================
   TEAM CARDS
   ========================================================================= */
.team-card {
    text-align: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 20px 26px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 18px;
    background: var(--sand);
}
.team-card .name {
    font-family: var(--display);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
    color: var(--ink);
}
.team-card .role {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 18px;
}
.team-card .btn { margin-top: auto; }

/* =========================================================================
   SPONSOR LOGO CARDS — uniform box, contained logo
   ========================================================================= */
.sponsor-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.sponsor-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    padding: 26px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease;
}
.sponsor-logo:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sponsor-logo img {
    max-width: 100%;
    max-height: 96px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* =========================================================================
   FORMS
   ========================================================================= */
.form-group-label {
    display: block;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}
.form-field { margin-bottom: 20px; }
.form-field label {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 7px;
}
.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    font-family: var(--sans);
    font-size: 16px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink);
    transition: border-color .16s ease, box-shadow .16s ease;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-tint);
    outline: none;
}
.form-field textarea { min-height: 160px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: var(--error); font-size: 14px; }

/* Boxed form panel */
.form-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-md);
}

/* Messages / alerts */
.alert {
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    background: var(--sand);
    padding: 14px 18px;
    margin: 24px 0;
    font-size: 16px;
}
.alert-success { border-left-color: var(--green); }
.alert-error { border-left-color: var(--error); color: var(--error); background: #FDF2F1; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, .78);
    padding: 72px 0 32px;
    font-size: 15.5px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}
.footer-brand img {
    width: 190px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}
.footer-brand p { color: rgba(255, 255, 255, .72); max-width: 320px; margin: 0 0 20px; font-size: 15px; }
.footer-col h4 {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--cta-lift);
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a, .footer-brand a { color: rgba(255, 255, 255, .82); }
.footer-col a:hover, .footer-brand a:hover { color: #fff; text-decoration: underline; }
.footer-action .btn { margin-bottom: 22px; }

.footer-social { display: flex; gap: 12px; }
.footer-social a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    transition: background .18s ease, border-color .18s ease;
}
.footer-social a:hover { background: #fff; border-color: #fff; }
.footer-social a:hover svg { fill: var(--primary-dark); }
.footer-social svg { width: 17px; height: 17px; fill: rgba(255, 255, 255, .9); }

.footer-legal {
    margin: 56px 0 0;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    text-align: center;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .6);
}

/* Fade-in on scroll */
@media (prefers-reduced-motion: no-preference) {
    .fade-in { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
    .fade-in.is-visible { opacity: 1; transform: none; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1180px) {
    .primary-nav ul { gap: 18px; }
    .primary-nav a { font-size: 14.5px; }
    .brand-logo img { width: 150px; }
}

@media (max-width: 1040px) {
    .utility-bar, .primary-nav, .header-actions { display: none; }
    .nav-toggle { display: inline-flex; }
    .site-header { position: sticky; }
    .hero__inner { padding-top: 96px; }
}

@media (max-width: 980px) {
    :root { --section-y: 68px; }
    .split, .split--narrow-media { grid-template-columns: 1fr; gap: 34px; }
    .split--reverse .split__media { order: 0; }
    .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
    .gallery, .gallery--lead { grid-template-columns: repeat(2, 1fr); }
    .gallery--lead figure:first-child { grid-column: 1 / -1; }
    .sponsor-row { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 767px) {
    body { font-size: 16.5px; }
    .hero { min-height: 560px; }
    .hero__media img { object-position: 50% 38%; }
    .hero__inner { padding-top: 80px; padding-bottom: 56px; }
    .hero__actions .btn { flex: 1 1 auto; }
    .page-hero { min-height: 240px; }
    .page-hero__inner { padding-top: 46px; padding-bottom: 46px; }
    .page-hero__media::after { background: linear-gradient(180deg, rgba(30,12,33,.62) 0%, rgba(30,12,33,.84) 100%); }
    .card-grid--3, .card-grid--4, .card-grid--2 { grid-template-columns: 1fr; }
    .accordion__header { padding: 17px 18px; font-size: 16px; }
    .accordion__body { margin: 0 18px; }
    .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 26px 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .page-heading { margin-bottom: 38px; }
}

@media (max-width: 520px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .gallery, .gallery--lead { grid-template-columns: 1fr; }
    .gallery--lead figure:first-child img { aspect-ratio: 4 / 3; }
    .sponsor-row { grid-template-columns: 1fr; }
}
