/* =========================================================================
   Sohagi Public School — design system
   Hand-written responsive CSS. No build step required.
   Sections: 1 tokens · 2 reset · 3 layout · 4 typography · 5 buttons
             6 header/nav · 7 hero · 8 components · 9 forms · 10 footer
             11 gallery/lightbox · 12 utilities · 13 motion
   ========================================================================= */

/* 1 · Design tokens --------------------------------------------------------- */
:root {
    /* brand */
    --brand-50:  #eef5ff;
    --brand-100: #d9e8ff;
    --brand-200: #b6d0ff;
    --brand-300: #86b1ff;
    --brand-400: #5688f6;
    --brand-500: #2f66e6;
    --brand-600: #1d4ecb;
    --brand-700: #193fa2;
    --brand-800: #193781;
    --brand-900: #172f66;

    --accent-500: #f5a524;
    --accent-600: #d98d13;

    /* neutrals */
    --ink:       #14181f;
    --ink-soft:  #3d4757;
    --muted:     #6b7688;
    --line:      #e4e8ef;
    --surface:   #ffffff;
    --surface-2: #f5f7fb;
    --surface-3: #eef1f7;

    --ok:   #1c9e6b;
    --warn: #d97706;

    /* type */
    --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --font-display: "Poppins", var(--font-sans);

    /* fluid scale */
    --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
    --step-0:  clamp(0.98rem, 0.94rem + 0.20vw, 1.08rem);
    --step-1:  clamp(1.18rem, 1.09rem + 0.45vw, 1.45rem);
    --step-2:  clamp(1.45rem, 1.28rem + 0.85vw, 2.05rem);
    --step-3:  clamp(1.80rem, 1.48rem + 1.60vw, 2.95rem);
    --step-4:  clamp(2.20rem, 1.65rem + 2.75vw, 4.00rem);

    /* structure */
    --container: 1160px;
    --gutter: clamp(1rem, 0.6rem + 2vw, 2.25rem);
    --radius: 14px;
    --radius-sm: 9px;
    --radius-lg: 22px;

    --shadow-sm: 0 1px 2px rgba(20, 30, 55, .06), 0 1px 3px rgba(20, 30, 55, .10);
    --shadow-md: 0 10px 24px -8px rgba(20, 30, 55, .18);
    --shadow-lg: 0 30px 60px -20px rgba(20, 30, 55, .28);

    --header-h: 76px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 2 · Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    font-size: var(--step-0);
    line-height: 1.65;
    color: var(--ink-soft);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
ul, ol { padding-left: 1.15em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; border-radius: 4px; }

body.nav-open { overflow: hidden; }

/* 3 · Layout ------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: clamp(3rem, 2rem + 6vw, 6rem); }
.section--tight { padding-block: clamp(2.25rem, 1.6rem + 3vw, 3.5rem); }
.section--alt { background: var(--surface-2); }
.section--brand { background: var(--brand-800); color: #dbe6ff; }
.section--brand h2, .section--brand h3 { color: #fff; }

.grid { display: grid; gap: clamp(1.1rem, .7rem + 1.6vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

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

@media (max-width: 900px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; }
    .split--flip .split__media { order: -1; }
}
@media (max-width: 560px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* 4 · Typography ------------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    color: var(--ink);
    font-weight: 650;
    letter-spacing: -0.01em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p + p { margin-top: 0.9em; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: var(--step--1);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand-600);
    margin-bottom: .6rem;
}
.section--brand .eyebrow { color: var(--accent-500); }

.section-head { max-width: 640px; margin-bottom: clamp(1.8rem, 1rem + 3vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.lead { font-size: var(--step-1); color: var(--ink-soft); }

.prose { max-width: 68ch; }
.prose h3 { margin-top: 2rem; }
.prose h4 { margin-top: 1.6rem; color: var(--brand-700); }
.prose > * + * { margin-top: 1rem; }
.prose ul { display: grid; gap: .5rem; }
.signature { margin-top: 1.6rem; font-weight: 700; color: var(--brand-700); }
.signature span { display: block; font-weight: 500; color: var(--muted); font-size: var(--step--1); }

/* 5 · Buttons --------------------------------------------------------- */
.btn {
    --_bg: var(--brand-600);
    --_fg: #fff;
    display: inline-flex;
    align-items: center;
    gap: .55em;
    padding: .8em 1.5em;
    background: var(--_bg);
    color: var(--_fg);
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    font-size: var(--step--1);
    letter-spacing: .01em;
    cursor: pointer;
    transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s;
    box-shadow: var(--shadow-sm);
}
.btn:hover { color: var(--_fg); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--accent { --_bg: var(--accent-500); --_fg: #22160a; }
.btn--ghost {
    --_bg: transparent; --_fg: var(--brand-700);
    border-color: var(--brand-200);
    box-shadow: none;
}
.btn--ghost:hover { background: var(--brand-50); }
.btn--light { --_bg: #fff; --_fg: var(--brand-700); }
.btn--lg { padding: 1em 1.9em; font-size: var(--step-0); }

/* 6 · Header / navigation ------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s, background .25s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); background: rgba(255, 255, 255, .96); }
body { padding-top: var(--header-h); }

.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-display); }
.brand img { height: 46px; width: auto; }
.brand__text { line-height: 1.1; }
.brand__text strong { display: block; font-size: 1.02rem; color: var(--brand-800); font-weight: 700; }
.brand__text span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 400px) { .brand__text { display: none; } }

.primary-nav > ul {
    list-style: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: clamp(.3rem, .1rem + 1vw, 1.4rem);
}
.primary-nav a {
    display: block;
    padding: .55rem .35rem;
    color: var(--ink-soft);
    font-weight: 550;
    font-size: .95rem;
    border-bottom: 2px solid transparent;
}
.primary-nav a:hover,
.primary-nav .is-active > a { color: var(--brand-700); border-color: var(--brand-500); }

.has-sub { position: relative; }
.has-sub > a::after {
    content: "";
    display: inline-block;
    margin-left: .4em;
    border: 4px solid transparent;
    border-top-color: currentColor;
    transform: translateY(2px);
}
.subnav {
    list-style: none;
    padding: .4rem;
    margin: 0;
    position: absolute;
    top: calc(100% + .4rem);
    left: 0;
    min-width: 220px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s, transform .18s, visibility .18s;
}
.has-sub:hover .subnav,
.has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav a { padding: .55rem .7rem; border-radius: 6px; border: 0; font-size: .9rem; }
.subnav a:hover { background: var(--brand-50); }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 20px; height: 2px;
    background: var(--ink);
    transform: translateX(-50%);
    transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateX(-50%) rotate(45deg); top: 0; }
body.nav-open .nav-toggle span::after { transform: translateX(-50%) rotate(-45deg); top: 0; }

.header-cta { margin-left: .4rem; }

@media (max-width: 1000px) {
    .nav-toggle { display: block; }
    .header-cta { display: none; }
    .primary-nav {
        position: fixed;
        inset: var(--header-h) 0 0 auto;
        width: min(360px, 84vw);
        background: var(--surface);
        border-left: 1px solid var(--line);
        padding: 1.25rem;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform .3s var(--ease);
        box-shadow: var(--shadow-lg);
    }
    body.nav-open .primary-nav { transform: translateX(0); }
    .primary-nav > ul { flex-direction: column; align-items: stretch; gap: .15rem; }
    .primary-nav a { padding: .8rem .4rem; border-bottom: 1px solid var(--line); }
    .primary-nav .is-active > a { border-color: var(--line); }
    .has-sub > a::after { float: right; }
    .subnav {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        padding: 0 0 .4rem .8rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s var(--ease);
    }
    .has-sub.open .subnav { max-height: 500px; }
    .has-sub.open > a::after { transform: translateY(2px) rotate(180deg); }
}

.nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 30, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s;
    z-index: 90;
}
body.nav-open .nav-scrim { opacity: 1; visibility: visible; }

/* 7 · Hero ---------------------------------------------------------- */
.hero {
    position: relative;
    padding-block: clamp(3rem, 2rem + 8vw, 7rem);
    background:
        radial-gradient(60% 90% at 85% 10%, rgba(47, 102, 230, .18), transparent 60%),
        linear-gradient(180deg, var(--brand-50), var(--surface));
    overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 1rem + 4vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero p { font-size: var(--step-1); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
    position: absolute;
    left: -18px; bottom: 24px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: .9rem 1.1rem;
    display: flex;
    gap: .7rem;
    align-items: center;
    font-size: var(--step--1);
}
.hero__badge strong { display: block; font-size: 1.4rem; color: var(--brand-700); font-family: var(--font-display); }
@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__media { order: -1; aspect-ratio: 16 / 10; }
}

/* page banner (inner pages) */
.page-banner {
    background:
        linear-gradient(120deg, rgba(23, 47, 102, .92), rgba(29, 78, 203, .82)),
        var(--_img, url("../images/bg2.jpg")) center / cover;
    color: #eaf1ff;
    padding-block: clamp(2.4rem, 1.6rem + 5vw, 4.5rem);
}
.page-banner h1 { color: #fff; }
.breadcrumb { list-style: none; padding: 0; margin-top: .7rem; display: flex; flex-wrap: wrap; gap: .5rem; font-size: var(--step--1); }
.breadcrumb li::after { content: "/"; margin-left: .5rem; opacity: .5; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: #cdddff; }
.breadcrumb [aria-current] { color: #fff; font-weight: 600; }

/* 8 · Components -------------------------------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
    height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
.card__icon {
    width: 52px; height: 52px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--brand-50);
    color: var(--brand-600);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.card h3, .card h4 { margin-bottom: .4rem; }
.card p { font-size: var(--step--1); }

.feature-card { border-top: 3px solid var(--brand-500); }
.feature-card:nth-child(2) { border-color: var(--accent-500); }
.feature-card:nth-child(3) { border-color: var(--ok); }
.feature-card:nth-child(4) { border-color: var(--brand-800); }

.media-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
    height: 100%;
}
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.media-card__img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.media-card__body { padding: 1.25rem 1.4rem 1.5rem; }
.media-card__body h3 { font-size: var(--step-1); margin-bottom: .35rem; }
.media-card__meta { font-size: var(--step--1); color: var(--muted); display: flex; gap: 1rem; margin-bottom: .5rem; }
.pill {
    display: inline-block;
    padding: .25em .8em;
    border-radius: 999px;
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.checklist { list-style: none; padding: 0; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist li::before {
    content: "\2713";
    flex: none;
    width: 1.4em; height: 1.4em;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--brand-100);
    color: var(--brand-700);
    font-size: .8em;
    font-weight: 700;
    margin-top: .15em;
}

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat__num { font-family: var(--font-display); font-size: var(--step-3); color: #fff; font-weight: 700; line-height: 1; }
.stat__label { font-size: var(--step--1); color: #b9c9ee; margin-top: .4rem; }
@media (max-width: 700px) { .stat-row { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; } }

.person {
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1rem;
    box-shadow: var(--shadow-sm);
}
.person img { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; margin: 0 auto .8rem; border: 4px solid var(--brand-50); }
.person h4 { font-size: var(--step-0); }
.person span { font-size: var(--step--1); color: var(--muted); }

.quote {
    border-left: 4px solid var(--brand-400);
    padding: .4rem 0 .4rem 1.4rem;
    font-size: var(--step-1);
    color: var(--ink);
    font-style: italic;
}

.info-band {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding: 1.1rem 1.4rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.info-band div { display: flex; align-items: center; gap: .6rem; font-size: var(--step--1); font-weight: 600; }
.info-band i { color: var(--brand-500); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; min-width: 460px; background: var(--surface); }
table.data th, table.data td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--brand-800); color: #fff; font-family: var(--font-display); font-weight: 600; }
table.data tbody tr:nth-child(even) { background: var(--surface-2); }
table.data tbody tr:hover { background: var(--brand-50); }

.timeline { list-style: none; padding: 0; display: grid; gap: 1.4rem; position: relative; }
.timeline li {
    position: relative;
    padding-left: 2.2rem;
}
.timeline li::before {
    content: "";
    position: absolute;
    left: .45rem; top: .55rem;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--brand-500);
    box-shadow: 0 0 0 4px var(--brand-100);
}
.timeline li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: .95rem; top: 1.4rem;
    bottom: -1.4rem;
    width: 2px;
    background: var(--line);
}
.timeline h4 { font-size: var(--step-0); }

.notice-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.notice-item {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 1.2rem;
    align-items: start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand-500);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    box-shadow: var(--shadow-sm);
}
.notice-date {
    text-align: center;
    background: var(--brand-50);
    border-radius: var(--radius-sm);
    padding: .5rem;
    font-family: var(--font-display);
}
.notice-date strong { display: block; font-size: 1.5rem; color: var(--brand-700); line-height: 1; }
.notice-date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.notice-item h3 { font-size: var(--step-1); margin-bottom: .3rem; }
@media (max-width: 520px) {
    .notice-item { grid-template-columns: 1fr; }
    .notice-date { display: inline-flex; gap: .4rem; align-items: baseline; padding: .3rem .7rem; }
    .notice-date strong { font-size: 1.05rem; }
}

.cta-band {
    background: linear-gradient(120deg, var(--brand-700), var(--brand-500));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(1.8rem, 1rem + 4vw, 3.2rem);
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem 2rem;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #dce7ff; }

.portrait {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.message-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: clamp(1.5rem, 1rem + 4vw, 3.5rem);
    align-items: start;
}
.message-layout .portrait { position: sticky; top: calc(var(--header-h) + 1.5rem); }
@media (max-width: 800px) {
    .message-layout { grid-template-columns: 1fr; }
    .message-layout .portrait { position: static; max-width: 260px; }
}

/* 9 · Forms ------------------------------------------------------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: var(--step--1); margin-bottom: .4rem; color: var(--ink); }
.field .req { color: var(--warn); }
.input, .textarea, .select {
    width: 100%;
    padding: .8rem 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color .2s, box-shadow .2s;
}
.input:focus, .textarea:focus, .select:focus {
    border-color: var(--brand-400);
    box-shadow: 0 0 0 3px var(--brand-100);
    outline: none;
}
.textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: var(--step--1); color: var(--muted); }
.form-status { padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-size: var(--step--1); margin-bottom: 1rem; display: none; }
.form-status.is-ok { display: block; background: #e7f6ef; color: #14603f; border: 1px solid #b7e3cd; }
.form-status.is-err { display: block; background: #fdecec; color: #8a2020; border: 1px solid #f2c2c2; }

.contact-card {
    background: var(--brand-800);
    color: #dbe6ff;
    border-radius: var(--radius);
    padding: 1.8rem;
    display: grid;
    gap: 1.2rem;
}
.contact-card h3 { color: #fff; }
.contact-card a { color: #fff; }
.contact-card .row { display: flex; gap: .9rem; align-items: flex-start; }
.contact-card .row i { color: var(--accent-500); margin-top: .2rem; font-size: 1.1rem; }

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

/* 10 · Footer --------------------------------------------------- */
.site-footer { background: #0f1729; color: #a9b6cf; font-size: var(--step--1); }
.site-footer a { color: #cdd8ec; }
.site-footer a:hover { color: #fff; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: clamp(1.5rem, 1rem + 3vw, 3rem);
    padding-block: clamp(2.5rem, 2rem + 3vw, 4rem);
}
.footer-brand { display: flex; gap: .7rem; align-items: center; margin-bottom: 1rem; }
.footer-brand img { height: 44px; background: #fff; border-radius: 8px; padding: 3px; }
.footer-brand strong { color: #fff; font-family: var(--font-display); }
.site-footer h4 { color: #fff; font-size: var(--step-0); margin-bottom: .9rem; }
.footer-links { list-style: none; padding: 0; display: grid; gap: .55rem; }
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}
.socials a:hover { background: var(--brand-600); color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-block: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    justify-content: space-between;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.to-top {
    position: fixed;
    right: 20px; bottom: 20px;
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--brand-600);
    color: #fff;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    z-index: 80;
}
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; transform: rotate(-90deg); }

/* 11 · Gallery + lightbox ------------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: clamp(.6rem, .3rem + 1vw, 1rem);
}
.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background: var(--surface-3);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery-item::after {
    content: "";
    position: absolute; inset: 0;
    background: rgba(23, 47, 102, .45)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E")
        center / 34px no-repeat;
    opacity: 0;
    transition: opacity .25s;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(8, 12, 22, .92);
    display: none;
    place-items: center;
    padding: 4vw;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox button {
    position: absolute;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 0;
    width: 48px; height: 48px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
}
.lightbox .lb-close { top: 3vw; right: 3vw; }
.lightbox .lb-prev { left: 3vw; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 3vw; top: 50%; transform: translateY(-50%); }
.lightbox button:hover { background: var(--brand-600); }

.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 12 · Utilities --------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .6rem; }
.mt-2 { margin-top: 1.2rem; }
.mt-3 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1.2rem; }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.8rem; }
.flow-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.rounded-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.muted { color: var(--muted); }
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute;
    left: 8px; top: -60px;
    background: var(--brand-700);
    color: #fff;
    padding: .6rem 1rem;
    border-radius: 8px;
    z-index: 300;
    transition: top .2s;
}
.skip-link:focus { top: 8px; color: #fff; }

/* icons (inline SVG) */
.card__icon svg { width: 26px; height: 26px; }
.checklist li svg,
.info-band svg { width: 18px; height: 18px; flex: none; }
.info-band svg { color: var(--brand-500); }
.contact-card .row svg { color: var(--accent-500); width: 20px; height: 20px; flex: none; margin-top: .15rem; }
.socials a svg { width: 18px; height: 18px; }
.btn svg { width: 18px; height: 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.feature-icon-list svg { width: 20px; height: 20px; color: var(--brand-600); flex: none; }

/* 13 · Motion ----------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

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