/* ===========================================================================
   Reduce Recidivism Ghana — Design System
   Blue & white, anchored on the brand navy #030E59.
   Author note: tokens first, then base, layout, components, utilities.
   ======================================================================== */

/* ---------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------ */
:root {
    /* Brand + blues */
    --navy:        #030E59;   /* exact brand navy (from logo) */
    --navy-700:    #0a1a6e;
    --navy-600:    #142a8a;
    --royal:       #1e40c8;   /* primary action */
    --royal-dark:  #16319e;
    --royal-light: #4f6fe6;
    --sky:         #eaf0ff;   /* light section tint */
    --sky-2:       #f5f8ff;   /* lighter tint */
    --sky-line:    #dde6fb;

    /* Neutrals */
    --ink:         #0e1730;   /* body text */
    --muted:       #56607a;   /* secondary text */
    --muted-2:     #8a93a8;
    --line:        #e4e9f3;
    --white:       #ffffff;
    --cream:       #fbfcff;

    /* Accent (sparingly) — warm gold for highlight numbers only */
    --gold:        #e0a818;

    /* Typography */
    --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --fs-900: clamp(2.6rem, 1.6rem + 4.2vw, 4.5rem);
    --fs-800: clamp(2.1rem, 1.5rem + 2.7vw, 3.25rem);
    --fs-700: clamp(1.7rem, 1.3rem + 1.7vw, 2.4rem);
    --fs-600: clamp(1.35rem, 1.15rem + 0.9vw, 1.7rem);
    --fs-500: 1.2rem;
    --fs-400: 1rem;
    --fs-300: 0.9rem;
    --fs-200: 0.8rem;

    /* Spacing */
    --space-1: 0.25rem;  --space-2: 0.5rem;  --space-3: 0.75rem;
    --space-4: 1rem;     --space-5: 1.5rem;  --space-6: 2rem;
    --space-7: 3rem;     --space-8: 4rem;    --space-9: 6rem;
    --space-10: 8rem;

    /* Radii */
    --r-sm: 8px;  --r: 14px;  --r-lg: 22px;  --r-xl: 30px;  --r-pill: 999px;

    /* Shadows (tinted with navy for cohesion) */
    --shadow-sm: 0 1px 2px rgba(3, 14, 89, .06), 0 1px 3px rgba(3, 14, 89, .05);
    --shadow:    0 8px 30px rgba(3, 14, 89, .08);
    --shadow-md: 0 14px 40px rgba(3, 14, 89, .12);
    --shadow-lg: 0 30px 70px rgba(3, 14, 89, .18);

    /* Layout */
    --container: 1180px;
    --container-narrow: 820px;
    --header-h: 80px;

    --ease: cubic-bezier(.22, .61, .36, 1);
    --transition: .28s var(--ease);
}

/* ---------------------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
    font-family: var(--font-body);
    font-size: var(--fs-400);
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--navy);
}
h1 { font-size: var(--fs-900); }
h2 { font-size: var(--fs-800); }
h3 { font-size: var(--fs-700); }
h4 { font-size: var(--fs-600); }

p { color: var(--ink); }
a { color: var(--royal-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--royal); }

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

:focus-visible {
    outline: 3px solid var(--royal-light);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection { background: var(--navy); color: #fff; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 999;
    background: var(--navy); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------------------------------------------------------------------------
   3. Layout primitives
   ------------------------------------------------------------------------ */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(3.5rem, 2rem + 7vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); }
.section--sky { background: linear-gradient(180deg, var(--sky-2), var(--sky)); }
.section--navy {
    background: radial-gradient(120% 140% at 80% -10%, #14246f 0%, var(--navy) 45%, #020a42 100%);
    color: #dfe4fb;
}
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   4. Section headings
   ------------------------------------------------------------------------ */
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-display);
    font-weight: 700; font-size: var(--fs-200);
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--royal);
}
.eyebrow::before {
    content: ""; width: 26px; height: 2px; background: var(--royal); border-radius: 2px;
}
.section--navy .eyebrow { color: #8ea2ff; }
.section--navy .eyebrow::before { background: #8ea2ff; }

.section-head { max-width: 720px; margin-bottom: var(--space-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: var(--space-4); color: var(--muted); font-size: var(--fs-500); }
.section--navy .section-head .lead { color: #b9c2ee; }

.lead { font-size: var(--fs-500); color: var(--muted); line-height: 1.6; }

/* ---------------------------------------------------------------------------
   5. Buttons
   ------------------------------------------------------------------------ */
.btn {
    --btn-bg: var(--royal); --btn-fg: #fff;
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font-family: var(--font-display); font-weight: 700; font-size: .98rem;
    line-height: 1; text-align: center;
    padding: .95rem 1.6rem; border-radius: var(--r-pill);
    background: var(--btn-bg); color: var(--btn-fg);
    border: 2px solid transparent; cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
    box-shadow: 0 10px 24px rgba(30, 64, 200, .25);
}
.btn:hover { background: var(--royal-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px rgba(30, 64, 200, .32); }
.btn:active { transform: translateY(0); }

.btn--navy { --btn-bg: var(--navy); box-shadow: 0 10px 24px rgba(3, 14, 89, .28); }
.btn--navy:hover { background: var(--navy-600); }

.btn--outline {
    background: transparent; color: var(--navy); border-color: var(--sky-line); box-shadow: none;
}
.btn--outline:hover { background: var(--sky); color: var(--navy); border-color: var(--royal-light); box-shadow: none; transform: translateY(-2px); }

.btn--ghost-light {
    background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); box-shadow: none;
    backdrop-filter: blur(4px);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, .2); color: #fff; border-color: #fff; }

.btn--white { background: #fff; color: var(--navy); box-shadow: 0 10px 30px rgba(3, 14, 89, .25); }
.btn--white:hover { background: var(--sky); color: var(--navy); }

.btn--lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
.btn--sm { padding: .6rem 1.1rem; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }

.arrow-link {
    display: inline-flex; align-items: center; gap: .4rem;
    font-family: var(--font-display); font-weight: 700; color: var(--royal-dark);
}
.arrow-link svg { transition: transform var(--transition); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------------------------------------------------------------------------
   6. Header / navigation
   ------------------------------------------------------------------------ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.nav {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-h); gap: var(--space-5);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
@media (max-width: 420px) { .brand img { height: 36px; } }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand .brand-text strong { font-family: var(--font-display); font-weight: 800; color: var(--navy); font-size: 1.05rem; letter-spacing: -.01em; }
.brand .brand-text span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; padding: 0; margin: 0; }
.nav-links a {
    display: inline-block; padding: .55rem .85rem; border-radius: var(--r-pill);
    font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--ink);
}
.nav-links a:hover { color: var(--royal-dark); background: var(--sky); }
.nav-links a[aria-current="page"] { color: var(--royal-dark); background: var(--sky); }

.nav-cta { display: flex; align-items: center; gap: .75rem; }

.nav-toggle {
    display: none; width: 46px; height: 46px; border: 1px solid var(--line);
    background: #fff; border-radius: var(--r-sm); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; transition: var(--transition);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1024px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        position: fixed; inset: var(--header-h) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: .2rem;
        background: #fff; padding: 1rem 1.25rem 1.5rem;
        border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
        transform: translateY(-130%); transition: transform .35s var(--ease); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    }
    body.menu-open .nav-links { transform: translateY(0); }
    .nav-links a { padding: .85rem 1rem; font-size: 1.05rem; }
    .nav-cta .btn { display: none; }
    .nav-links .mobile-cta { display: block; margin-top: .75rem; }
}
.nav-links .mobile-cta { display: none; }

/* ---------------------------------------------------------------------------
   7. Hero
   ------------------------------------------------------------------------ */
.hero {
    position: relative; overflow: hidden;
    background: radial-gradient(130% 120% at 85% -20%, #18287a 0%, var(--navy) 48%, #020a42 100%);
    color: #e7ebff;
    padding-block: clamp(3.5rem, 2rem + 8vw, 7rem);
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 12% 20%, rgba(120, 145, 255, .18), transparent 38%),
        radial-gradient(circle at 90% 80%, rgba(70, 100, 255, .14), transparent 40%);
    pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .55rem;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
    padding: .5rem 1rem; border-radius: var(--r-pill); font-size: .82rem; font-weight: 600;
    color: #cdd6ff; margin-bottom: 1.5rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #5ce0a0; box-shadow: 0 0 0 4px rgba(92, 224, 160, .25); }
.hero h1 { color: #fff; margin-bottom: 1.4rem; }
.hero h1 .accent { color: #9db2ff; }
.hero p.lead { color: #c2cbf2; max-width: 38ch; }
.hero .btn-row { margin-top: 2.2rem; }

.hero-figure { position: relative; }
.hero-figure .photo {
    border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg);
    border: 6px solid rgba(255, 255, 255, .08); aspect-ratio: 4 / 5; background: #0a1660;
}
.hero-figure .photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure .floating-stat {
    position: absolute; left: -28px; bottom: 28px;
    background: #fff; color: var(--navy); border-radius: var(--r); padding: 1rem 1.25rem;
    box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .85rem; max-width: 230px;
}
.hero-figure .floating-stat .num { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--royal); line-height: 1; }
.hero-figure .floating-stat .lbl { font-size: .8rem; color: var(--muted); line-height: 1.25; }

.hero-trust { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; opacity: .9; }
.hero-trust span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #99a4dd; }
.hero-trust img { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: .8; }

@media (max-width: 880px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-figure { max-width: 420px; margin-inline: auto; order: -1; }
    .hero-figure .floating-stat { left: 0; }
}

/* ---------------------------------------------------------------------------
   8. Cards
   ------------------------------------------------------------------------ */
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    overflow: hidden; height: 100%; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--sky-line); }

/* Program card */
.program-card { padding: 0; }
.program-card .media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sky); }
.program-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.program-card:hover .media img { transform: scale(1.06); }
.program-card .body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.program-card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.program-card p { color: var(--muted); font-size: .95rem; margin-bottom: 1.1rem; }
.program-card .arrow-link { margin-top: auto; }

.icon-badge {
    width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--royal), var(--navy)); color: #fff; margin-bottom: 1.1rem;
    box-shadow: 0 10px 24px rgba(30, 64, 200, .25);
}
.icon-badge svg { width: 26px; height: 26px; }

/* Feature card (no image) */
.feature-card { padding: 2rem 1.8rem; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.feature-card p { color: var(--muted); font-size: .95rem; }

/* Post card */
.post-card .media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sky); }
.post-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .media img { transform: scale(1.05); }
.post-card .body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; gap: .75rem; align-items: center; font-size: .78rem; color: var(--muted-2); margin-bottom: .6rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.post-meta .tag { color: var(--royal); }
.post-card h3 { font-size: 1.2rem; line-height: 1.25; margin-bottom: .6rem; }
.post-card h3 a { color: var(--navy); }
.post-card h3 a:hover { color: var(--royal-dark); }
.post-card p { color: var(--muted); font-size: .92rem; margin-bottom: 1.1rem; }
.post-card .arrow-link { margin-top: auto; font-size: .9rem; }

/* Stat card */
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.4rem); color: var(--navy); line-height: 1; letter-spacing: -.03em; }
.stat .num .suffix { color: var(--royal); }
.stat .lbl { margin-top: .6rem; color: var(--muted); font-weight: 500; font-size: .98rem; }
.section--navy .stat .num { color: #fff; }
.section--navy .stat .num .suffix { color: #9db2ff; }
.section--navy .stat .lbl { color: #b9c2ee; }
.stat-divider { border: none; border-left: 1px solid var(--line); }

/* Testimonial card */
.testimonial {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 2rem 1.9rem; box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column;
}
.testimonial .quote-mark { font-family: var(--font-display); font-size: 3.2rem; line-height: .6; color: var(--sky-line); margin-bottom: .4rem; }
.testimonial blockquote { font-size: 1.02rem; color: var(--ink); line-height: 1.6; margin-bottom: 1.3rem; flex: 1; }
.testimonial .who { display: flex; align-items: center; gap: .85rem; }
.testimonial .who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--sky-line); }
.testimonial .who .avatar-fallback { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 700; }
.testimonial .who strong { display: block; font-family: var(--font-display); color: var(--navy); font-size: .98rem; }
.testimonial .who span { font-size: .82rem; color: var(--muted); }

/* Team card */
.team-card { text-align: center; }
.team-card .photo { aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--sky); margin-bottom: 1.1rem; box-shadow: var(--shadow-sm); }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.18rem; margin-bottom: .2rem; }
.team-card .role { color: var(--royal); font-weight: 600; font-size: .9rem; }
.team-card .bio { color: var(--muted); font-size: .9rem; margin-top: .7rem; }

/* ---------------------------------------------------------------------------
   9. Split / media sections
   ------------------------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); width: 100%; }
.split-media .stack { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.split-media .stack img { aspect-ratio: 1; object-fit: cover; }
.split-media .stack img:first-child { grid-row: span 2; aspect-ratio: auto; height: 100%; }
@media (max-width: 820px) {
    .split { grid-template-columns: 1fr; }
    .split.reverse .split-media { order: 0; }
}

.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; color: var(--ink); }
.checklist li svg { flex-shrink: 0; width: 24px; height: 24px; color: var(--royal); margin-top: 1px; }
.section--navy .checklist li { color: #d7ddf7; }
.section--navy .checklist li svg { color: #7e96ff; }

/* ---------------------------------------------------------------------------
   10. CTA band
   ------------------------------------------------------------------------ */
.cta-band {
    background: radial-gradient(120% 160% at 10% 0%, #1a2b80 0%, var(--navy) 50%, #020a42 100%);
    border-radius: var(--r-xl); padding: clamp(2.5rem, 2rem + 4vw, 4.5rem);
    color: #fff; text-align: center; position: relative; overflow: hidden;
}
.cta-band::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 120%, rgba(120, 145, 255, .25), transparent 45%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; max-width: 16ch; margin-inline: auto; }
.cta-band p { color: #c2cbf2; max-width: 50ch; margin: 1rem auto 2rem; }

/* ---------------------------------------------------------------------------
   11. Page hero (inner pages)
   ------------------------------------------------------------------------ */
.page-hero {
    background: radial-gradient(120% 140% at 85% -30%, #16267a 0%, var(--navy) 50%, #020a42 100%);
    color: #fff; padding-block: clamp(3rem, 2rem + 5vw, 5.5rem); text-align: center;
}
.page-hero .breadcrumb { justify-content: center; margin-bottom: 1rem; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #c2cbf2; max-width: 60ch; margin: 1.2rem auto 0; font-size: var(--fs-500); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .85rem; color: #aab4e8; }
.breadcrumb a { color: #cdd5f6; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .5; }

/* ---------------------------------------------------------------------------
   12. Article / prose
   ------------------------------------------------------------------------ */
.prose { font-size: 1.08rem; line-height: 1.8; color: #25304d; }
.prose > * + * { margin-top: 1.3em; }
.prose h2 { font-size: 1.7rem; margin-top: 2em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.6em; }
.prose p { color: #25304d; }
.prose a { color: var(--royal-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-top: .5em; }
.prose img { border-radius: var(--r); box-shadow: var(--shadow); margin-block: 1.5em; }
.prose blockquote {
    border-left: 4px solid var(--royal); background: var(--sky-2);
    padding: 1.2rem 1.5rem; border-radius: 0 var(--r) var(--r) 0; font-size: 1.15rem; color: var(--navy); font-style: italic;
}
.prose strong { color: var(--navy); }

/* ---------------------------------------------------------------------------
   13. Forms
   ------------------------------------------------------------------------ */
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: .45rem; }
.field .req { color: #d23b3b; }
.input, .textarea, .select {
    width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
    background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm);
    padding: .85rem 1rem; transition: border-color var(--transition), box-shadow var(--transition);
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--royal-light); box-shadow: 0 0 0 4px rgba(79, 111, 230, .15); }
.textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.6rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow); }

/* Newsletter (footer) */
.newsletter-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter-form input {
    flex: 1; min-width: 200px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2);
    color: #fff; border-radius: var(--r-pill); padding: .8rem 1.2rem;
}
.newsletter-form input::placeholder { color: #9aa4d6; }
.newsletter-form input:focus { outline: none; border-color: #fff; }

/* ---------------------------------------------------------------------------
   14. Alerts / flash
   ------------------------------------------------------------------------ */
.alert { padding: 1rem 1.25rem; border-radius: var(--r-sm); margin-bottom: 1rem; font-size: .95rem; border: 1px solid; }
.alert--success { background: #ecfdf3; border-color: #abefc6; color: #197a45; }
.alert--error { background: #fef3f2; border-color: #fdada5; color: #b42318; }
.alert--info { background: var(--sky-2); border-color: var(--sky-line); color: var(--navy); }

/* ---------------------------------------------------------------------------
   15. Gallery
   ------------------------------------------------------------------------ */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-grid a { border-radius: var(--r); overflow: hidden; aspect-ratio: 1; background: var(--sky); display: block; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.08); }
.gallery-grid .wide { grid-column: span 2; aspect-ratio: 2 / 1; }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .gallery-grid .wide { grid-column: span 2; } }

/* Partner logos */
.partner-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.5rem 3.5rem; }
.partner-row img { height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: var(--transition); }
.partner-row a:hover img, .partner-row img:hover { filter: grayscale(0); opacity: 1; }

/* ---------------------------------------------------------------------------
   16. Footer
   ------------------------------------------------------------------------ */
.site-footer { background: radial-gradient(120% 120% at 80% 0%, #0b1a6e 0%, var(--navy) 45%, #020a42 100%); color: #b7c0e8; }
.footer-top { padding-block: clamp(3rem, 2rem + 4vw, 4.5rem); display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem; }
.footer-brand img { height: 44px; margin-bottom: 1.1rem; }
.footer-brand p { color: #9aa4d6; font-size: .92rem; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.footer-col a { color: #b7c0e8; font-size: .94rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; color: #b7c0e8; font-size: .92rem; margin-bottom: .7rem; }
.footer-contact svg { flex-shrink: 0; width: 18px; height: 18px; color: #7e96ff; margin-top: 3px; }
.newsletter-note { color: #9aa4d6; font-size: .88rem; margin: .4rem 0 1rem; }

.social-row { display: flex; gap: .6rem; margin-top: 1.2rem; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: var(--transition); }
.social-row a:hover { background: var(--royal); transform: translateY(-3px); }
.social-row svg { width: 18px; height: 18px; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .85rem; color: #8b95cc; }
.footer-bottom a { color: #b7c0e8; }
.footer-bottom .legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }

@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   17. Misc utilities
   ------------------------------------------------------------------------ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: .4rem; background: var(--sky); color: var(--royal-dark); font-weight: 600; font-size: .8rem; padding: .35rem .85rem; border-radius: var(--r-pill); }
.divider { border: none; border-top: 1px solid var(--line); margin-block: var(--space-7); }
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.flow > * + * { margin-top: 1.2rem; }

.back-to-top {
    position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%;
    background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition); z-index: 90; border: none; cursor: pointer;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--royal); }

/* ---------------------------------------------------------------------------
   18. Scroll reveal animation
   ------------------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .card:hover, .btn:hover { transform: none; }
}
