@charset "utf-8";
/* ==========================================================================
   Samvedna Society — site theme
   --------------------------------------------------------------------------
   Layout grammar follows the Charitify NGO template brief: utility bar over a
   sticky shrinking header, full-bleed hero slider, angular image clips, offset
   split sections, circular impact rings, counter strip, carousels, navy footer.

   The palette is sampled from the two supplied logo files (see tools/Build-Assets.ps1)
   rather than the template's orange/dark defaults.
   ========================================================================== */

/* --------------------------------------------------------------- tokens --- */
:root {
    /* Sampled from Samvedna_Logo_Original.png */
    --color-primary: #0A305F;          /* navy — wordmark, ring, central figure */
    --color-primary-dark: #06203F;
    --color-primary-light: #14487F;
    --color-secondary: #EA892A;        /* orange — outer ring, child figure */
    --color-secondary-dark: #C96F16;
    --color-accent-green: #568832;     /* leaves, "SOCIETY" wordmark */
    --color-accent-purple: #5B317E;    /* empowerment icon */

    --color-ink: #2B2B2B;
    --color-muted: #5F6B7A;
    --color-line: #E3E8EF;
    --color-surface: #FFFFFF;
    --color-surface-alt: #F5F8FC;
    --color-surface-tint: #FFF6EC;

    --font-display: "Poppins", "Segoe UI", "Trebuchet MS", sans-serif;
    --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;

    --container: 1200px;
    --gutter: 24px;
    --section-y: 100px;

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 2px 10px rgba(10, 48, 95, .07);
    --shadow: 0 10px 30px rgba(10, 48, 95, .10);
    --shadow-lg: 0 24px 60px rgba(10, 48, 95, .16);

    --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-ink);
    background: var(--color-surface);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 .6em;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

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

a { color: var(--color-primary); text-decoration: none; transition: color .25s var(--ease); }
a:hover, a:focus { color: var(--color-secondary); }

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

ul, ol { margin: 0 0 1.15em; padding-left: 1.2em; }

hr { border: 0; border-top: 1px solid var(--color-line); margin: 2rem 0; }

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

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

.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;
}

/* -------------------------------------------------------------- layout ---- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow { max-width: 860px; }

.row { display: flex; flex-wrap: wrap; margin-inline: -16px; }
.row > [class^="col"] { padding-inline: 16px; width: 100%; }

.col-6  { flex: 0 0 50%;     max-width: 50%; }
.col-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
.col-3  { flex: 0 0 25%;     max-width: 25%; }
.col-8  { flex: 0 0 66.6667%; max-width: 66.6667%; }
.col-5  { flex: 0 0 41.6667%; max-width: 41.6667%; }
.col-7  { flex: 0 0 58.3333%; max-width: 58.3333%; }
.col-12 { flex: 0 0 100%;    max-width: 100%; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .62); }
.section--alt { background: var(--color-surface-alt); }
.section--tint { background: var(--color-surface-tint); }
.section--navy { background: var(--color-primary); color: rgba(255,255,255,.86); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }

.grid { display: grid; gap: 30px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
/* The team grid holds however many people the Society has named — centre them
   rather than stretching two cards across four columns. */
.grid--team { grid-template-columns: repeat(auto-fit, minmax(230px, 270px)); justify-content: center; }

/* ------------------------------------------------------- section heading -- */
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: "";
    display: inline-block;
    width: 26px; height: 2px;
    background: var(--color-secondary);
    vertical-align: middle;
    margin-right: 10px;
}
.section-head--left .eyebrow::before { display: none; }
.section--navy .eyebrow { color: var(--color-secondary); }

.section-head p { color: var(--color-muted); font-size: 1.05rem; }
.section--navy .section-head p { color: rgba(255,255,255,.78); }

/* -------------------------------------------------------------- buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .02em;
    padding: 15px 34px;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color .3s var(--ease), color .3s var(--ease),
                border-color .3s var(--ease), transform .25s var(--ease), box-shadow .3s var(--ease);
    text-align: center;
}
.btn:hover, .btn:focus { transform: translateY(-2px); }

.btn--primary { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.btn--primary:hover, .btn--primary:focus {
    background: var(--color-secondary); border-color: var(--color-secondary); color: #fff;
    box-shadow: 0 12px 26px rgba(234, 137, 42, .32);
}

.btn--accent { background: var(--color-secondary); border-color: var(--color-secondary); color: #fff; }
.btn--accent:hover, .btn--accent:focus {
    background: var(--color-primary); border-color: var(--color-primary); color: #fff;
    box-shadow: 0 12px 26px rgba(10, 48, 95, .3);
}

.btn--outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn--outline:hover, .btn--outline:focus { background: var(--color-primary); color: #fff; }

.btn--ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover, .btn--ghost:focus { background: #fff; border-color: #fff; color: var(--color-primary); }

.btn--sm { padding: 11px 24px; font-size: .84rem; }

.link-more {
    white-space: nowrap;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .86rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.link-more::after { content: "→"; transition: transform .25s var(--ease); }
.link-more:hover::after { transform: translateX(5px); }

/* ---------------------------------------------------------- utility bar --- */
.topbar {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,.82);
    font-size: .85rem;
}
.topbar .container { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: space-between; min-height: 44px; }
.topbar a { color: rgba(255,255,255,.82); }
.topbar a:hover { color: var(--color-secondary); }
.topbar__contact { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.topbar__contact span { display: inline-flex; align-items: center; gap: 8px; }
.topbar__social { display: flex; gap: 6px; }
.topbar__social a {
    width: 30px; height: 30px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08);
    transition: background-color .25s var(--ease), color .25s var(--ease);
}
.topbar__social a:hover { background: var(--color-secondary); color: #fff; }
.topbar__social svg { width: 15px; height: 15px; fill: currentColor; }

/* --------------------------------------------------------------- header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 120;
    background: #fff;
    box-shadow: 0 1px 0 var(--color-line);
    transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(10, 48, 95, .12); }

/* No min-height or vertical padding: the logo alone sets the bar height. */
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 0;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 84px; width: auto; transition: height .3s var(--ease); }
.site-header.is-stuck .brand img { height: 64px; }

.nav-toggle {
    display: none;
    width: 46px; height: 46px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-primary); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .93rem;
    padding: 12px 14px;
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    position: relative;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 6px;
    height: 2px;
    background: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s var(--ease);
}
.main-nav a:hover::after, .main-nav a:focus::after, .main-nav .is-current a::after { transform: scaleX(1); }
.main-nav .is-current a { color: var(--color-secondary); }

.header-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* ------------------------------------------------------------ hero slider - */
.hero {
    position: relative;
    min-height: min(84vh, 760px);
    display: grid;
    isolation: isolate;
    background: var(--color-primary-dark);
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.1s var(--ease), transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__slide::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(6,32,63,.93) 0%, rgba(6,32,63,.78) 42%, rgba(6,32,63,.42) 100%);
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    padding-block: 120px 130px;
}
.hero__content { max-width: 720px; color: #fff; }
.hero__content h1 { color: #fff; margin-bottom: .45em; }
.hero__content p { font-size: 1.14rem; color: rgba(255,255,255,.86); max-width: 600px; margin-bottom: 2rem; }
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--font-display); font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase; font-size: .8rem;
    color: var(--color-secondary);
    margin-bottom: 20px;
}
.hero__eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--color-secondary); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Slide copy animates in each time its slide becomes active. */
.hero__slide-copy { display: none; }
.hero__slide-copy.is-active { display: block; animation: heroIn .8s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero__dots {
    position: absolute;
    left: 50%; bottom: 116px; transform: translateX(-50%);
    z-index: 3;
    display: flex; gap: 10px;
}
.hero__dots button {
    width: 34px; height: 4px; border: 0; padding: 0; border-radius: 999px;
    background: rgba(255,255,255,.34); cursor: pointer;
    transition: background-color .3s var(--ease), width .3s var(--ease);
}
.hero__dots button[aria-selected="true"] { background: var(--color-secondary); width: 52px; }

.hero__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 3;
    width: 50px; height: 50px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.34);
    background: rgba(6,32,63,.3);
    color: #fff; font-size: 1.3rem; line-height: 1;
    cursor: pointer;
    display: grid; place-items: center;
    transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.hero__arrow:hover { background: var(--color-secondary); border-color: var(--color-secondary); }
.hero__arrow--prev { left: 26px; }
.hero__arrow--next { right: 26px; }

/* -------------------------------------------------------- page banner ----- */
.page-banner {
    position: relative;
    padding-block: 110px 96px;
    background: var(--color-primary-dark) center/cover no-repeat;
    color: #fff;
    text-align: center;
    isolation: isolate;
}
.page-banner::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(6,32,63,.9), rgba(6,32,63,.82));
}
.page-banner h1 { color: #fff; margin-bottom: .35em; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; font-size: .92rem; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: var(--color-secondary); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: rgba(255,255,255,.45); }
.breadcrumb [aria-current] { color: var(--color-secondary); }

/* ----------------------------------------------------- promo icon strip --- */
.promo-strip { position: relative; z-index: 4; margin-top: -80px; }
.promo-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 44px 34px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    height: 100%;
}
.promo-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.promo-card__icon {
    width: 84px; height: 84px; margin: 0 auto 22px;
    border-radius: 26px 26px 26px 8px;
    display: grid; place-items: center;
    background: var(--color-surface-tint);
    color: var(--color-secondary);
    transition: background-color .35s var(--ease), color .35s var(--ease);
}
.promo-card:hover .promo-card__icon { background: var(--color-secondary); color: #fff; }
.promo-card__icon svg { width: 40px; height: 40px; fill: currentColor; }
.promo-card p { color: var(--color-muted); }

/* ------------------------------------------------------ focus-area cards -- */
.cause-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    --accent: var(--color-secondary);
}
.cause-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.cause-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    /* the template's angled bottom edge */
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}
.cause-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cause-card:hover .cause-card__media img { transform: scale(1.07); }

.cause-card__tag {
    position: absolute; top: 16px; left: 16px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display); font-weight: 600; font-size: .72rem;
    letter-spacing: .1em; text-transform: uppercase;
    padding: 7px 14px; border-radius: 999px;
}

.cause-card__body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 14px; flex: 1; position: relative; }
/* Keep the heading clear of the impact ring that overhangs the card's top-right. */
.cause-card__body h3 { margin: 0; padding-right: 96px; }
.cause-card__body p { color: var(--color-muted); font-size: .96rem; margin: 0; flex: 1; }

/* Circular impact ring — the template's percentage ring, repurposed to carry a
   real on-ground number instead of a fundraising percentage. */
.impact-ring {
    position: absolute;
    top: -46px; right: 24px;
    width: 92px; height: 92px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow);
}
.impact-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.impact-ring circle { fill: none; stroke-width: 5; }
.impact-ring .ring-track { stroke: var(--color-line); }
.impact-ring .ring-value {
    stroke: var(--accent);
    stroke-linecap: round;
    stroke-dasharray: 251.2;           /* 2πr with r = 40 */
    stroke-dashoffset: 251.2;
    transition: stroke-dashoffset 1.6s var(--ease);
}
.impact-ring.is-visible .ring-value { stroke-dashoffset: var(--ring-offset, 63); }
.impact-ring__num {
    position: relative;
    width: 68px;                       /* keep the label inside the ring */
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .92rem;
    color: var(--color-primary);
    text-align: center;
    line-height: 1.05;
    overflow-wrap: anywhere;
}
.impact-ring__num small {
    display: block;
    font-size: .5rem;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1.15;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-top: 2px;
}

.cause-card__foot {
    border-top: 1px solid var(--color-line);
    padding-top: 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.cause-card__stat { font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: .95rem; }

/* ------------------------------------------------------ split / feature --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split--reverse .split__media { order: 2; }

.split__media { position: relative; }
.split__media img {
    width: 100%;
    border-radius: var(--radius-lg);
    /* the template's cut corner */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%, 0 86%);
}
/* Overlapping secondary image, as used in the template's About block. */
.split__media--stacked { padding-bottom: 90px; padding-right: 70px; }
.split__media--stacked .split__inset {
    position: absolute; right: 0; bottom: 0;
    width: 56%;
    border: 8px solid #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.split__media--stacked .split__inset img { clip-path: none; border-radius: 0; }

.split__badge {
    position: absolute;
    left: -26px; bottom: 60px;
    background: var(--color-secondary);
    color: #fff;
    padding: 22px 26px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-family: var(--font-display);
    text-align: center;
    max-width: 190px;
}
.split__badge strong { display: block; font-size: 2rem; line-height: 1; margin-bottom: 6px; }
.split__badge span { font-size: .8rem; letter-spacing: .04em; opacity: .92; }

.check-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; color: var(--color-muted); }
.check-list li::before {
    content: "";
    position: absolute; left: 0; top: .5em;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--color-accent-green);
    /* tick mark */
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm-1.2 14.4l-4.2-4.2 1.7-1.7 2.5 2.5 5.2-5.2 1.7 1.7-6.9 6.9z'/%3E%3C/svg%3E") center/contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm-1.2 14.4l-4.2-4.2 1.7-1.7 2.5 2.5 5.2-5.2 1.7 1.7-6.9 6.9z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.section--navy .check-list li { color: rgba(255,255,255,.84); }

/* ------------------------------------------------------- chairman quote --- */
.founder {
    display: grid;
    grid-template-columns: minmax(260px, 400px) 1fr;
    gap: 64px;
    align-items: center;
}
.founder__photo { position: relative; }
.founder__photo img {
    width: 100%;
    border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.founder__photo::before {
    content: "";
    position: absolute;
    inset: 22px -22px -22px 22px;
    border: 2px solid var(--color-secondary);
    border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
    z-index: -1;
}
.founder blockquote {
    margin: 0 0 26px;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.2vw, 1.7rem);
    font-weight: 500;
    line-height: 1.5;
    color: var(--color-primary);
    position: relative;
    padding-top: 46px;
}
.founder blockquote::before {
    content: "“";
    position: absolute; top: -18px; left: -6px;
    font-family: Georgia, serif;
    font-size: 6rem;
    line-height: 1;
    color: var(--color-secondary);
    opacity: .28;
}
.founder__sign {
    font-family: "Brush Script MT", "Segoe Script", cursive;
    font-size: 2.4rem;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 6px;
}
.founder__role { font-family: var(--font-display); font-weight: 600; color: var(--color-secondary); letter-spacing: .04em; }

/* ------------------------------------------------- dignitary photographs -- */
/* Two-up feature under "Meet Our Chairman": the Prime Minister photograph
   leads at full column height, the Lt. Governor photograph sits beside it. */
.dignitaries {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 70px;
    align-items: stretch;          /* both cards share one height */
}
.dignitary {
    margin: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--color-secondary);
}
.dignitary--lead { border-top-color: var(--color-primary); }
.dignitary a { display: block; cursor: zoom-in; }
.dignitary img { width: 100%; height: auto; display: block; }
/* Same frame for both photographs so the pair reads as a matched set. */
.dignitary img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
.dignitary figcaption { padding: 24px 28px 28px; flex: 1; }
.dignitary figcaption .eyebrow { margin-bottom: 8px; }
.dignitary figcaption strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.08rem;
    line-height: 1.4;
    color: var(--color-primary);
}
.dignitary figcaption p { margin: 10px 0 0; color: var(--color-muted); font-size: .95rem; }

/* ---------------------------------------------------- featured campaign --- */
.campaign {
    background: var(--color-primary);
    border-radius: var(--radius-lg);
    color: #fff;
    padding: 56px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 56px;
    align-items: center;
}
.campaign h2, .campaign h3 { color: #fff; }
.campaign p { color: rgba(255,255,255,.8); }

.progress { margin-block: 26px 10px; }
.progress__labels { display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.progress__track { height: 10px; border-radius: 999px; background: rgba(255,255,255,.18); overflow: hidden; }
.progress__bar {
    height: 100%; width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-secondary), #F7B15E);
    transition: width 1.8s var(--ease);
}

.campaign__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.campaign__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* --------------------------------------------------------------- counters - */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.counter__value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: var(--color-secondary);
    line-height: 1;
    margin-bottom: 10px;
}
.counter__label { font-size: .95rem; color: rgba(255,255,255,.8); }
.section--alt .counter__label { color: var(--color-muted); }

/* ------------------------------------------------------------ team grid --- */
.person-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    height: 100%;
}
.person-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.person-card__photo { aspect-ratio: 3/4; overflow: hidden; background: var(--color-surface-alt); }
.person-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ease); }
.person-card:hover .person-card__photo img { transform: scale(1.06); }
.person-card__body { padding: 22px 20px 26px; }
.person-card__body h3 { font-size: 1.15rem; margin-bottom: 4px; }
.person-card__role { color: var(--color-secondary); font-family: var(--font-display); font-weight: 600; font-size: .88rem; letter-spacing: .04em; }
.person-card__bio { color: var(--color-muted); font-size: .92rem; margin-top: 12px; }

.person-card--placeholder { border: 2px dashed var(--color-line); box-shadow: none; display: grid; place-items: center; padding: 40px 24px; }
.person-card--placeholder p { color: var(--color-muted); font-size: .9rem; margin: 0; }

/* -------------------------------------------------------------- events ---- */
.event-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; height: 100%;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.event-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.event-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.event-card:hover .event-card__media img { transform: scale(1.07); }
.event-card__date {
    position: absolute; left: 18px; bottom: 18px;
    background: var(--color-secondary);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    text-align: center;
    font-family: var(--font-display);
    line-height: 1.1;
    box-shadow: var(--shadow-sm);
}
.event-card__date strong { display: block; font-size: 1.5rem; }
.event-card__date span { font-size: .68rem; letter-spacing: .08em; }
.event-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.event-card__body h3 { font-size: 1.18rem; margin: 0; }
.event-card__meta { display: grid; gap: 6px; font-size: .88rem; color: var(--color-muted); }
.event-card__meta span { display: flex; gap: 8px; align-items: flex-start; }
.event-card__meta svg { width: 15px; height: 15px; fill: var(--color-secondary); flex-shrink: 0; margin-top: .35em; }
.event-card__body p { color: var(--color-muted); font-size: .95rem; margin: 0; flex: 1; }

/* ---------------------------------------------------------- testimonials -- */
.testimonials { position: relative; }
.testimonial-track { display: flex; transition: transform .6s var(--ease); }
.testimonial-viewport { overflow: hidden; }
.testimonial {
    flex: 0 0 100%;
    padding-inline: 12px;
}
.testimonial__inner {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 44px 48px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 820px;
    margin-inline: auto;
}
.testimonial__quote { font-size: 1.1rem; color: var(--color-ink); font-style: italic; margin-bottom: 22px; }
.testimonial__name { font-family: var(--font-display); font-weight: 700; color: var(--color-primary); }
.testimonial__role { font-size: .88rem; color: var(--color-muted); }
.testimonial__badge {
    display: inline-block; margin-bottom: 20px;
    width: 54px; height: 54px; border-radius: 50%;
    background: var(--color-surface-tint);
    color: var(--color-secondary);
    display: grid; place-items: center;
    margin-inline: auto;
}
.testimonial__badge svg { width: 24px; height: 24px; fill: currentColor; }

.carousel-nav { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.carousel-nav button {
    width: 11px; height: 11px; border-radius: 50%; border: 0; padding: 0;
    background: var(--color-line); cursor: pointer;
    transition: background-color .3s var(--ease), width .3s var(--ease);
}
.carousel-nav button[aria-selected="true"] { background: var(--color-secondary); width: 30px; border-radius: 999px; }

.note-paraphrase { font-size: .85rem; color: var(--color-muted); text-align: center; margin-top: 22px; font-style: italic; }

/* --------------------------------------------------------------- blog ----- */
.post-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; height: 100%;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.post-card__media { aspect-ratio: 16/10; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.07); }
.post-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card__date { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--color-secondary); font-family: var(--font-display); font-weight: 600; }
.post-card__body h3 { font-size: 1.15rem; margin: 0; }
.post-card__body p { color: var(--color-muted); font-size: .95rem; margin: 0; flex: 1; }

.post-body { font-size: 1.05rem; }
.post-body p { margin-bottom: 1.3em; }

/* --------------------------------------------------------- gallery grid --- */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.filter-bar a, .filter-bar button {
    font-family: var(--font-display); font-weight: 600; font-size: .86rem;
    padding: 10px 20px; border-radius: 999px;
    border: 1px solid var(--color-line);
    background: #fff; color: var(--color-primary);
    cursor: pointer;
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.filter-bar a:hover, .filter-bar button:hover,
.filter-bar .is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.filter-bar .count { opacity: .6; font-weight: 500; margin-left: 6px; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-surface-alt);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(6,32,63,0) 45%, rgba(6,32,63,.92) 100%);
    opacity: 0;
    transition: opacity .35s var(--ease);
    display: flex; align-items: flex-end;
    padding: 16px;
}
.gallery-item:hover .gallery-item__overlay, .gallery-item:focus-visible .gallery-item__overlay { opacity: 1; }
.gallery-item__overlay span { color: #fff; font-size: .82rem; line-height: 1.4; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(6,32,63,.94);
    display: none;
    align-items: center; justify-content: center;
    padding: 40px 20px;
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: 1100px; max-height: 100%; text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin-inline: auto; border-radius: var(--radius); }
.lightbox figcaption { color: rgba(255,255,255,.88); margin-top: 16px; font-size: .95rem; }
.lightbox__close, .lightbox__prev, .lightbox__next {
    position: absolute;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3);
    color: #fff; width: 48px; height: 48px; border-radius: 50%;
    cursor: pointer; font-size: 1.4rem; line-height: 1;
    display: grid; place-items: center;
    transition: background-color .25s var(--ease);
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: var(--color-secondary); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------- awards cards --- */
.award-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; height: 100%;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.award-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.award-card__media {
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--color-surface-alt);
    cursor: zoom-in;
    position: relative;
}
.award-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.award-card__dept {
    position: absolute; top: 14px; left: 14px;
    font-family: var(--font-display); font-weight: 600; font-size: .68rem;
    letter-spacing: .1em; text-transform: uppercase;
    padding: 6px 12px; border-radius: 999px;
    background: rgba(6,32,63,.86); color: #fff;
}
.award-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.award-card__body h3 { font-size: 1.08rem; margin: 0; }
.award-card__role { font-size: .87rem; color: var(--color-secondary); font-family: var(--font-display); font-weight: 600; }
.award-card__body p { font-size: .93rem; color: var(--color-muted); margin: 0; flex: 1; }

/* ------------------------------------------------------------- timeline --- */
.timeline { position: relative; padding-left: 34px; margin: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--color-line); }
.timeline li { position: relative; padding-bottom: 28px; }
.timeline li::before {
    content: ""; position: absolute; left: -32px; top: 7px;
    width: 20px; height: 20px; border-radius: 50%;
    background: #fff; border: 4px solid var(--color-secondary);
}
.timeline time { display: block; font-family: var(--font-display); font-weight: 700; color: var(--color-secondary); font-size: .86rem; letter-spacing: .06em; text-transform: uppercase; }
.timeline h4 { margin: 4px 0 4px; font-size: 1.05rem; }
.timeline p { color: var(--color-muted); font-size: .93rem; margin: 0; }

/* ------------------------------------------------------------- partners --- */
.partner-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.partner-badge {
    display: flex; align-items: center; gap: 12px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: 18px 26px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .92rem;
    color: var(--color-primary);
    transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.partner-badge:hover { border-color: var(--color-secondary); transform: translateY(-3px); }
.partner-badge__mark {
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--color-surface-alt);
    color: var(--color-primary);
}
.partner-badge__mark svg { width: 20px; height: 20px; fill: currentColor; }

/* ----------------------------------------------------------------- forms -- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: grid; gap: 8px; }
.form-field--wide { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--color-primary); }
.form-field .req { color: var(--color-secondary); }
/* Text inputs only — a submit button inside a .form-field keeps its .btn styling. */
.form-field input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.form-field textarea, .form-field select {
    width: 100%;
    font-family: var(--font-body);
    font-size: .98rem;
    padding: 14px 16px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--color-ink);
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:not([type="submit"]):not([type="button"]):focus,
.form-field textarea:focus, .form-field select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(234, 137, 42, .16);
}
.field-error { color: #C0392B; font-size: .85rem; }

.alert { border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; font-size: .95rem; }
.alert--success { background: #EAF6EC; border: 1px solid #BEE0C4; color: #2C6B36; }
.alert--error { background: #FDECEA; border: 1px solid #F5C6C0; color: #A93226; }

.contact-detail { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-detail__icon {
    width: 50px; height: 50px; flex-shrink: 0;
    border-radius: 16px 16px 16px 5px;
    background: var(--color-surface-tint);
    color: var(--color-secondary);
    display: grid; place-items: center;
}
.contact-detail__icon svg { width: 22px; height: 22px; fill: currentColor; }
.contact-detail h4 { margin: 0 0 2px; font-size: 1rem; }
.contact-detail p, .contact-detail a { color: var(--color-muted); font-size: .95rem; margin: 0; }

.map-frame { border: 0; width: 100%; height: 420px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }

/* ------------------------------------------------------------- pagination - */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 44px; height: 44px;
    display: grid; place-items: center;
    padding-inline: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-line);
    font-family: var(--font-display); font-weight: 600; font-size: .9rem;
    background: #fff;
}
.pagination a:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.pagination .is-current { background: var(--color-secondary); border-color: var(--color-secondary); color: #fff; }

/* ------------------------------------------------------------------ CTA --- */
.cta-band {
    background: linear-gradient(115deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 54px 60px;
    display: flex; flex-wrap: wrap; gap: 30px;
    align-items: center; justify-content: space-between;
}
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { color: rgba(255,255,255,.82); margin: 0; max-width: 560px; }

/* --------------------------------------------------------------- footer --- */
.site-footer { background: var(--color-primary-dark); color: rgba(255,255,255,.72); padding-block: 76px 0; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--color-secondary); }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: var(--color-secondary); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }

/* The original circular emblem, on a white plate so its navy ring reads on the dark footer. */
.footer-brand img {
    width: 150px; height: auto; margin-bottom: 20px;
    background: #fff;
    padding: 12px;
    border-radius: var(--radius);
}
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: grid; place-items: center;
    transition: background-color .25s var(--ease);
}
.footer-social a:hover { background: var(--color-secondary); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; fill: var(--color-secondary); flex-shrink: 0; margin-top: .4em; }

.footer-bottom {
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-block: 24px;
    display: flex; flex-wrap: wrap; gap: 12px;
    align-items: center; justify-content: space-between;
    font-size: .88rem;
}

.footer-credit a { color: #fff; font-weight: 600; }
.footer-credit a:hover { color: var(--color-secondary); }

/* ------------------------------------------------------------ scroll-top -- */
.to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 90;
    width: 46px; height: 46px; border-radius: 50%;
    border: 0; cursor: pointer;
    background: var(--color-secondary); color: #fff;
    display: grid; place-items: center;
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ------------------------------------------------------- reveal on scroll - */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------- admin ---- */
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background: var(--color-primary-dark); color: rgba(255,255,255,.76); padding: 28px 22px; }
.admin-side h1 { color: #fff; font-size: 1.1rem; margin-bottom: 28px; }
.admin-side nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.admin-side nav a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: rgba(255,255,255,.76); font-size: .93rem; }
.admin-side nav a:hover, .admin-side nav .is-current a { background: rgba(255,255,255,.1); color: #fff; }
.admin-main { padding: 34px 38px; background: var(--color-surface-alt); }

.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--color-line); font-size: .92rem; vertical-align: top; }
.table th { background: var(--color-surface-alt); font-family: var(--font-display); font-weight: 600; color: var(--color-primary); }
.table tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: var(--color-surface-tint); color: var(--color-secondary-dark); }
.badge--muted { background: var(--color-surface-alt); color: var(--color-muted); }

/* Admin "browse for a photograph" control */
.image-picker { display: grid; grid-template-columns: 160px 1fr; gap: 18px; align-items: start; }
.image-picker__preview {
    width: 160px; aspect-ratio: 4/3; border-radius: var(--radius-sm);
    background: var(--color-surface-alt); border: 1px solid var(--color-line);
    overflow: hidden; display: grid; place-items: center;
}
.image-picker__preview img { width: 100%; height: 100%; object-fit: cover; }
.image-picker__empty { font-size: .8rem; color: var(--color-muted); text-align: center; padding: 10px; }
.image-picker__label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .86rem; color: var(--color-primary); margin-bottom: 8px; }
.image-picker__controls input[type="file"] { font-size: .9rem; }
.image-picker__advanced { margin-top: 12px; font-size: .86rem; color: var(--color-muted); }
.image-picker__advanced summary { cursor: pointer; }
.image-picker__advanced input { width: 100%; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--color-line); border-radius: var(--radius-sm); font-family: var(--font-body); }
.image-picker__advanced small { display: block; margin-top: 6px; }
@media (max-width: 560px) { .image-picker { grid-template-columns: 1fr; } }

.admin-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); max-width: 880px; margin-bottom: 30px; }
.admin-card h2 { font-size: 1.1rem; }
.admin-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.login-shell { min-height: 100vh; display: grid; place-items: center; background: var(--color-primary-dark); padding: 24px; }
.login-card { background: #fff; border-radius: var(--radius-lg); padding: 40px; width: min(420px, 100%); box-shadow: var(--shadow-lg); }

/* ----------------------------------------------------------- responsive --- */
@media (max-width: 1080px) {
    :root { --section-y: 78px; }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .counters { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
    .split { gap: 44px; }
    .campaign { padding: 44px; gap: 40px; }
}

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute;
        left: 0; right: 0; top: 100%;
        background: #fff;
        border-top: 1px solid var(--color-line);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s var(--ease);
    }
    .main-nav.is-open { max-height: 70vh; overflow-y: auto; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 0; }
    .main-nav a { padding: 14px 24px; }
    .main-nav a::after { display: none; }
    .site-header .container { flex-wrap: wrap; position: relative; }
    .header-cta .btn { padding: 12px 22px; }

    .grid--3, .grid--2 { grid-template-columns: 1fr; }
    .split, .founder, .campaign, .dignitaries { grid-template-columns: 1fr; }
    .split--reverse .split__media { order: 0; }
    .split__media--stacked { padding-bottom: 70px; padding-right: 50px; }
    .split__badge { left: 0; }
    .founder__photo { max-width: 380px; margin-inline: auto; }
    .cta-band { padding: 40px 32px; }
    .col-6, .col-4, .col-3, .col-8, .col-5, .col-7 { flex: 0 0 100%; max-width: 100%; }
    .form-grid { grid-template-columns: 1fr; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-main { padding: 24px 20px; }
}

@media (max-width: 720px) {
    :root { --section-y: 62px; --gutter: 18px; }
    /* The logo, the hamburger and the CTA together are wider than a phone, which
       would push the whole document sideways — shrink the logo and the button. */
    .brand img, .site-header.is-stuck .brand img { height: 56px; }
    .header-cta .btn { padding: 10px 18px; font-size: .8rem; }
    .site-header .container { gap: 12px; }
    .hero { min-height: auto; }
    .hero__inner { padding-block: 90px 100px; }
    .hero__arrow { display: none; }
    .promo-strip { margin-top: -50px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .testimonial__inner { padding: 32px 24px; }
    .campaign { padding: 32px 24px; }
    .page-banner { padding-block: 74px 62px; }
    .footer-bottom { justify-content: center; text-align: center; }
    .table { display: block; overflow-x: auto; }
}

@media (max-width: 460px) {
    .brand img, .site-header.is-stuck .brand img { height: 46px; }
    .header-cta .btn { padding: 9px 14px; font-size: .74rem; letter-spacing: 0; }
    .nav-toggle { width: 42px; height: 42px; }
    .topbar__address { display: none; }
    .hero__actions .btn { width: 100%; justify-content: center; }
    .impact-ring { width: 78px; height: 78px; top: -40px; right: 18px; }
    .impact-ring__num { width: 58px; font-size: .8rem; }
    .cause-card__body h3 { padding-right: 76px; }
    .cause-card__foot { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ------------------------------------------------------------ motion ------ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    .hero__slide { transform: none; }
}

/* --------------------------------------------------------------- print ---- */
@media print {
    .topbar, .site-header, .site-footer, .to-top, .hero__dots, .hero__arrow, .filter-bar { display: none !important; }
    body { font-size: 12pt; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
