/* ==========================================================================
   Hucknall Hope Lea Project – site styles
   Palette taken from the charity banner (sky blue + deep teal) with warm
   accents drawn from the photos (bunting yellow, apron coral).
   ========================================================================== */

:root {
    --sky: #62c9f3;
    --sky-deep: #1f9fd6;
    --sky-soft: #e4f5fd;
    --navy: #0f4661;
    --navy-deep: #0a3247;
    --ink: #183a4b;
    --muted: #46626f;
    --sun: #ffc845;
    --sun-soft: #fff1c6;
    --coral: #f26b5b;
    --coral-soft: #ffe4df;
    --cream: #fffcf5;
    --white: #ffffff;
    --line: #d8e7ee;

    --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --font-head: "Nunito", "Segoe UI Rounded", "Segoe UI", system-ui, Arial, sans-serif;

    --radius: 22px;
    --radius-sm: 14px;
    --shadow: 0 10px 30px rgba(15, 70, 97, 0.12);
    --shadow-sm: 0 4px 14px rgba(15, 70, 97, 0.1);
    --wrap: 1180px;
    --header-h: 84px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

/* Stops iPhones enlarging text when rotated. Wrapped so browsers that don't know this Apple/Chrome property
   (desktop Firefox) skip it silently instead of logging a warning. */
@supports (-webkit-text-size-adjust: 100%) {
    html { -webkit-text-size-adjust: 100%; }
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
main { overflow-x: clip; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--navy);
    line-height: 1.15;
    margin: 0 0 0.6em;
    font-weight: 800;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.55rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--sky-deep); }

:focus-visible {
    outline: 4px solid var(--sun);
    outline-offset: 3px;
    border-radius: 6px;
}

.container { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 200;
    background: var(--navy); color: #fff; padding: 0.8rem 1.2rem; border-radius: 0 0 12px 12px;
    font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-head); font-weight: 800; font-size: 0.95rem;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--navy); background: var(--sun); padding: 0.35rem 0.95rem; border-radius: 999px;
    margin-bottom: 1.1rem;
}
.eyebrow--sky { background: var(--sky-soft); color: var(--navy); }
.lead { font-size: 1.28rem; line-height: 1.65; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 52px; padding: 0.8rem 1.7rem; border-radius: 999px; border: 3px solid transparent;
    font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; text-decoration: none;
    cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    background: var(--navy); color: #fff; box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--navy-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--sun { background: var(--sun); color: var(--navy); }
.btn--sun:hover { background: #ffd570; color: var(--navy); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); box-shadow: none; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--sun-soft); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    border-top: 6px solid var(--sky);
    transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 22px rgba(15, 70, 97, 0.14); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: calc(var(--header-h) - 6px); }

.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--navy); }
.brand-logo { width: 62px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 900; font-size: 1.25rem; }
.brand-sub { font-size: 0.9rem; color: var(--muted); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.4rem; }
.site-nav a {
    display: inline-block; padding: 0.55rem 1.05rem; border-radius: 999px;
    font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; text-decoration: none; color: var(--navy);
    position: relative;
}
.site-nav a { white-space: nowrap; }
@media (min-width: 941px) and (max-width: 1199px) {          /* six menu items: tighten up so every label stays on one line */
    .header-inner { gap: 0.6rem; }
    .brand { gap: 0.6rem; }
    .brand-logo { width: 52px; }
    .brand-name { font-size: 1.08rem; }
    .brand-sub { font-size: 0.82rem; }
    .site-nav ul { gap: 0.05rem; }
    .site-nav a { padding: 0.5rem 0.68rem; font-size: 0.98rem; }
    .site-nav a.nav-cta { padding-inline: 1.1rem; margin-left: 0.2rem; }
}
.site-nav a:hover { background: var(--sky-soft); color: var(--navy); }
.site-nav a[aria-current="page"]:not(.nav-cta) { background: var(--sun-soft); }
.site-nav a.nav-cta { background: var(--navy); color: #fff; margin-left: 0.4rem; padding-inline: 1.5rem; }
.site-nav a.nav-cta:hover { background: var(--navy-deep); color: #fff; }
.site-nav a.nav-cta[aria-current="page"] { background: var(--sun); color: var(--navy); }

.nav-toggle {
    display: none; align-items: center; gap: 0.6rem;
    background: var(--sky-soft); border: 0; border-radius: 999px; padding: 0.6rem 1.1rem; min-height: 48px;
    font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: var(--navy); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 22px; height: 3px; background: var(--navy); border-radius: 3px; transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Wave dividers ---------- */
.has-wave { position: relative; }
.wave { position: absolute; left: 0; right: 0; height: clamp(38px, 6vw, 84px); pointer-events: none; line-height: 0; z-index: 1; }
.wave svg { width: 100%; height: 100%; display: block; }
.wave--bottom { bottom: -1px; }
.wave--top { top: calc(-1 * clamp(38px, 6vw, 84px) + 1px); }

/* ---------- Hero (home) ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(circle at 90% 8%, rgba(255, 214, 120, 0.28) 0, rgba(255, 214, 120, 0) 28%),
        radial-gradient(circle at 6% 92%, rgba(98, 201, 243, 0.45) 0, rgba(98, 201, 243, 0) 40%),
        var(--sky-soft);
    padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(6rem, 10vw, 9rem);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: 0.45em; }
.hero h1 .accent { color: var(--sky-deep); position: relative; white-space: nowrap; }
.hero h1 .accent::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -0.05em; height: 0.28em; z-index: -1;
    background: var(--sun); border-radius: 8px; transform: rotate(-1deg);
}
.hero-trust { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin: 1.8rem 0 0; padding: 0; list-style: none; font-size: 1rem; color: var(--muted); }
.hero-trust li::before { content: "✔"; color: var(--sky-deep); font-weight: 900; margin-right: 0.45rem; }

.photo-cluster { position: relative; aspect-ratio: 1 / 1.08; max-width: 540px; margin-inline: auto; width: 100%; }
.photo-cluster .p { position: absolute; margin: 0; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.photo-cluster img { width: 100%; height: 100%; object-fit: cover; }
.photo-cluster .p-main { inset: 0 0 0 16%; border-radius: 999px 999px 28px 28px; border: 8px solid #fff; }
.photo-cluster .p-round { width: 40%; aspect-ratio: 1; left: 0; bottom: 6%; border-radius: 50%; border: 8px solid #fff; }
.photo-cluster .p-small { width: 30%; aspect-ratio: 4 / 5; right: -2%; top: 46%; border-radius: 20px; border: 6px solid #fff; transform: rotate(4deg); }
.photo-cluster .dot { position: absolute; border-radius: 50%; z-index: -1; }
.photo-cluster .dot--sun { width: 26%; aspect-ratio: 1; background: var(--sun); top: -4%; left: 6%; }
.photo-cluster .dot--coral { width: 12%; aspect-ratio: 1; background: var(--coral); bottom: 2%; right: 12%; }
.hours-badge {
    position: absolute; z-index: 3; right: 2%; top: 4%;
    background: var(--navy); color: #fff; border-radius: 18px; padding: 0.7rem 1rem; box-shadow: var(--shadow);
    font-size: 0.95rem; line-height: 1.3; transform: rotate(3deg);
}
.hours-badge strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--sun); }

/* ---------- Generic sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; position: relative; }
.section--tint { background: var(--sky-soft); }
.section--white { background: #fff; }
.section--navy { background: var(--navy); color: #e9f6fc; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section.has-wave { padding-bottom: clamp(6rem, 10vw, 9rem); }
.pt-0 { padding-top: 0; }
.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.2rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse > :first-child { order: 2; }
.frame { position: relative; margin: 0; }
.frame img { width: 100%; object-fit: cover; box-shadow: var(--shadow); }
.frame--arch img { border-radius: 999px 999px var(--radius) var(--radius); aspect-ratio: 4 / 5; border: 8px solid #fff; }
.frame--round img { border-radius: var(--radius); aspect-ratio: 4 / 4.6; border: 8px solid #fff; }
.frame::before {
    content: ""; position: absolute; z-index: -1; width: 60%; aspect-ratio: 1; border-radius: 50%;
    background: var(--sun); right: -6%; bottom: -6%;
}
.frame--sky::before { background: var(--sky); left: -6%; right: auto; top: -6%; bottom: auto; }
.frame figcaption { font-size: 0.95rem; color: var(--muted); margin-top: 0.9rem; text-align: center; }

.ticks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.75rem; }
.ticks li { display: flex; gap: 0.8rem; align-items: flex-start; }
.ticks li::before {
    content: "✔"; flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--sun);
    color: var(--navy); font-weight: 900; font-size: 0.95rem; display: grid; place-items: center; margin-top: 0.1rem;
}

/* ---------- Stats strip ---------- */
.stats { padding: 0; margin-top: -3.5rem; position: relative; z-index: 4; }
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 1.6rem 1.4rem; text-align: center; border-right: 2px dashed var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { display: block; font-family: var(--font-head); font-weight: 900; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--sky-deep); line-height: 1.05; }
.stat-label { display: block; font-size: 1rem; color: var(--muted); margin-top: 0.35rem; line-height: 1.4; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
    background: #fff; border-radius: var(--radius); padding: 1.9rem 1.7rem; box-shadow: var(--shadow-sm);
    border: 2px solid transparent; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sky); }
.card h3 { margin-bottom: 0.4em; }
.card p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.icon-bubble {
    width: 3.6rem; height: 3.6rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.75rem;
    margin-bottom: 1.1rem; background: var(--sky-soft);
}
.card:nth-child(3n+2) .icon-bubble { background: var(--sun-soft); }
.card:nth-child(3n+3) .icon-bubble { background: var(--coral-soft); }

/* ---------- Community list ---------- */
.community-list { display: grid; gap: 1rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.community-list li {
    display: flex; gap: 1rem; align-items: center; background: #fff; border-radius: var(--radius-sm);
    padding: 0.95rem 1.2rem; box-shadow: var(--shadow-sm);
}
.community-list .em { font-size: 1.7rem; flex: none; }
.community-list strong { font-family: var(--font-head); color: var(--navy); display: block; line-height: 1.25; }
.community-list span.sub { color: var(--muted); font-size: 0.98rem; line-height: 1.4; display: block; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery-item { position: relative; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); text-align: left; font: inherit; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .cap {
    position: absolute; inset: auto 0 0 0; padding: 2.4rem 1.1rem 0.95rem; color: #fff;
    font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; line-height: 1.25;
    background: linear-gradient(to top, rgba(10, 50, 71, 0.88), rgba(10, 50, 71, 0));
}

.lightbox {
    border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%;
    overflow: hidden;
}
.lightbox::backdrop { background: rgba(6, 30, 44, 0.9); }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.5rem; padding: 1rem; }
.lightbox figure { margin: 0; text-align: center; min-width: 0; }
.lightbox img { max-height: 82vh; max-width: 100%; width: auto; margin-inline: auto; border-radius: var(--radius-sm); border: 6px solid #fff; }
.lightbox figcaption { color: #fff; margin-top: 0.9rem; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.lightbox-close, .lightbox-nav {
    background: #fff; color: var(--navy); border: 0; width: 52px; height: 52px; border-radius: 50%;
    font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; font-family: var(--font-head); font-weight: 900;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--sun); }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; z-index: 2; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--sky); color: var(--navy); overflow: hidden; position: relative; }
.cta-inner { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 2rem; align-items: center; position: relative; z-index: 2; }
.cta-band h2 { color: var(--navy); margin-bottom: 0.4em; }
.cta-band p { color: var(--navy-deep); font-size: 1.2rem; margin: 0; }
.cta-band .btn-row { margin: 0; justify-content: flex-end; }
.cta-band .btn { background: var(--navy); color: #fff; }
.cta-band .btn:hover { background: var(--navy-deep); }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; z-index: 1; }
.cta-band::before { width: 340px; height: 340px; background: rgba(255, 255, 255, 0.28); right: -80px; top: -140px; }
.cta-band::after { width: 200px; height: 200px; background: rgba(255, 255, 255, 0.3); left: -60px; bottom: -110px; }

/* ---------- Inner-page hero ---------- */
.page-hero {
    background:
        radial-gradient(circle at 94% 14%, rgba(255, 214, 120, 0.3) 0, rgba(255, 214, 120, 0) 26%),
        radial-gradient(circle at 4% 100%, rgba(98, 201, 243, 0.5) 0, rgba(98, 201, 243, 0) 40%),
        var(--sky-soft);
    padding: clamp(2.6rem, 5vw, 4.2rem) 0 clamp(5.5rem, 9vw, 8rem);
}
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); margin-bottom: 0.4em; max-width: 18ch; }
.page-hero p { max-width: 640px; }

/* ---------- Pull quote / aim ---------- */
.aim {
    position: relative; background: #fff; border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 3rem) clamp(1.6rem, 4vw, 3.2rem);
    box-shadow: var(--shadow); border-left: 12px solid var(--sun);
}
.aim p { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.4; color: var(--navy); margin: 0; }
.aim .label { display: block; font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--coral); margin-bottom: 0.7rem; }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.value { background: rgba(255, 255, 255, 0.09); border: 2px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius); padding: 1.6rem; }
.value h3 { color: var(--sun); margin-bottom: 0.3em; }
.value p { margin: 0; color: #d5eef9; font-size: 1.02rem; }

/* ---------- Services duo ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.service { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); border-top: 8px solid var(--sky); }
.service:nth-child(2) { border-top-color: var(--sun); }
.service h3 { font-size: 1.5rem; }
.service p:last-child { margin-bottom: 0; }

/* ---------- Events ---------- */
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.event { background: #fff; border-radius: var(--radius); padding: 1.7rem; text-align: center; box-shadow: var(--shadow-sm); }
.event .em { font-size: 2.6rem; display: block; margin-bottom: 0.5rem; }
.event h3 { margin-bottom: 0.3em; }
.event p { margin: 0; color: var(--muted); font-size: 1.02rem; }

/* ---------- Facts panel ---------- */
.facts { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.6rem 1.8rem; }
.facts dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.7rem 1.4rem; }
.facts dt { font-family: var(--font-head); font-weight: 800; color: var(--navy); }
.facts dd { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.form-card, .info-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.5rem, 3.5vw, 2.6rem); }
.info-stack { display: grid; gap: 1.3rem; }
.info-card { padding: 1.7rem; box-shadow: var(--shadow-sm); }
.info-card h2 { font-size: 1.35rem; margin-bottom: 0.5em; display: flex; align-items: center; gap: 0.6rem; }
.info-card address { font-style: normal; margin-bottom: 1rem; }
.info-card p:last-child { margin-bottom: 0; }
.info-card--sun { background: var(--sun-soft); }

.form-card h2 { font-size: 1.8rem; }
.field { margin-bottom: 1.4rem; }
.field label, .field legend { display: block; font-family: var(--font-head); font-weight: 800; color: var(--navy); margin-bottom: 0.4rem; font-size: 1.05rem; }
.field .hint { display: inline; font-family: var(--font-body); font-weight: 400; font-size: 0.95rem; color: var(--muted); margin-left: 0.35rem; }
.req { color: var(--coral); }
.input, .select, .textarea {
    width: 100%; font: inherit; color: var(--ink); background: #fff; border: 3px solid #b9d3df; border-radius: var(--radius-sm);
    padding: 0.85rem 1rem; min-height: 54px; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.textarea { min-height: 170px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--sky-deep); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px var(--sun); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #c73a2b; background: #fff8f7; }
.error-msg { color: #a52a1c; font-weight: 700; font-size: 1rem; margin-top: 0.4rem; display: flex; gap: 0.4rem; align-items: flex-start; }
.error-msg::before { content: "!"; flex: none; background: #c73a2b; color: #fff; width: 1.35rem; height: 1.35rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.85rem; margin-top: 0.15rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.3rem; }
.check { display: flex; gap: 0.9rem; align-items: flex-start; }
.check input { flex: none; width: 1.7rem; height: 1.7rem; margin-top: 0.15rem; accent-color: var(--navy); }
.check label { font-family: var(--font-body); font-weight: 400; color: var(--ink); margin: 0; font-size: 1.02rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; margin-bottom: 1.6rem; border: 3px solid; }
.alert h2, .alert h3 { font-size: 1.2rem; margin: 0 0 0.4em; }
.alert p, .alert ul { margin: 0; }
.alert ul { padding-left: 1.2rem; }
.alert--error { background: #fff3f1; border-color: #e3877c; color: #7d1f14; }
.alert--error h2, .alert--error h3 { color: #7d1f14; }
.alert--error a { color: #7d1f14; }
.alert--success { background: #eefaf0; border-color: #7cc48b; color: #175226; }
.alert--success h2 { color: #175226; }
.success-panel { text-align: center; padding: 1rem 0; }
.success-panel .em { font-size: 3.4rem; display: block; margin-bottom: 0.4rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--navy); color: #d5eef9; margin-top: clamp(38px, 6vw, 84px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.7fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(2.2rem, 4vw, 3.2rem) 0 2.4rem; }
.footer-brand { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.footer-logo { flex: none; }
.footer-logo img { width: 72px; height: 72px; background: #fff; border-radius: 50%; }
.footer-name { font-family: var(--font-head); font-weight: 900; font-size: 1.35rem; color: #fff; line-height: 1.15; }
.site-footer h2 { font-size: 1.15rem; color: var(--sun); margin-bottom: 0.8em; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sun); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.footer-col address { font-style: normal; margin-bottom: 0.9rem; }
.footer-hours span { font-size: 0.95rem; color: #a9d5e8; }
.footer-social { display: flex; gap: 1.2rem; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.18); padding: 1.2rem 0; font-size: 0.95rem; color: #a9d5e8; }
.footer-legal p { margin: 0; }

/* ---------- Motion ---------- */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal[data-delay="1"] { transition-delay: 0.1s; }
html.js .reveal[data-delay="2"] { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .card-grid, .event-grid, .values { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 2px dashed var(--line); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 940px) {
    :root { --header-h: 76px; }
    .brand-logo { width: 52px; }
    .brand-name { font-size: 1.08rem; }
    .brand-sub { display: none; }
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 2px solid var(--line);
        box-shadow: 0 16px 26px rgba(15, 70, 97, 0.16); padding: 1rem 1.25rem 1.4rem; display: none;
    }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.4rem; }
    .site-nav a { display: block; padding: 0.95rem 1.2rem; font-size: 1.15rem; border-radius: 14px; }
    .site-nav a.nav-cta { margin: 0.4rem 0 0; text-align: center; }

    .hero-grid, .split, .contact-grid, .cta-inner, .duo { grid-template-columns: 1fr; }
    .split--reverse > :first-child { order: 0; }
    .hero { padding-bottom: 7rem; }
    .photo-cluster { max-width: 430px; }
    .cta-band .btn-row { justify-content: flex-start; margin-top: 1.4rem; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .frame { max-width: 460px; margin-inline: auto; }
}

@media (max-width: 600px) {
    body { font-size: 1.06rem; }
    .container { width: min(100% - 2rem, var(--wrap)); }
    .card-grid, .event-grid, .values { grid-template-columns: 1fr; }
    .stat { padding: 1.2rem 0.8rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .lightbox[open] { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
    .lightbox-nav { position: absolute; bottom: 1rem; z-index: 2; }
    .lightbox-prev { left: 1rem; }
    .lightbox-next { right: 1rem; }
    .hours-badge { right: 0; font-size: 0.85rem; }
    .btn { width: 100%; }
    .btn-row { flex-direction: column; }
}

/* ---------- Services: dropdown menu ---------- */
.site-nav li { position: relative; }
.site-nav .has-sub { display: flex; align-items: center; }
.site-nav .has-sub.is-active > a:not(.nav-cta) { background: var(--sun-soft); }
.sub-toggle {
    width: 34px; height: 40px; margin-left: -0.55rem; padding: 0; border: 0; background: transparent; cursor: pointer;
    border-radius: 999px; display: grid; place-items: center; color: var(--navy);
}
.sub-toggle::before {
    content: ""; width: 9px; height: 9px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor;
    transform: translateY(-3px) rotate(45deg); transition: transform 0.2s ease;
}
.sub-toggle[aria-expanded="true"]::before { transform: translateY(2px) rotate(225deg); }
.sub-toggle:hover { background: var(--sky-soft); }
.site-nav .subnav { list-style: none; margin: 0; padding: 0; display: none; }
.site-nav .subnav a { display: block; border-radius: 12px; text-align: left; }

@media (min-width: 941px) {
    .site-nav .subnav {
        position: absolute; top: 100%; left: 0; min-width: 320px; z-index: 150; padding: 0.6rem;
        background: #fff; border-radius: 18px; box-shadow: 0 18px 40px rgba(15, 70, 97, 0.2); border: 2px solid var(--line);
        flex-direction: column; align-items: stretch; gap: 0.15rem;
    }
    .site-nav .has-sub.sub-right > .subnav { left: auto; right: 0; min-width: 230px; }   /* items near the right edge: open leftwards so nothing runs off-screen */
    .site-nav .has-sub:hover > .subnav, .site-nav .has-sub:focus-within > .subnav, .site-nav .has-sub.open > .subnav { display: flex; }
    .site-nav .has-sub.force-closed > .subnav { display: none; }
    .site-nav .subnav a { padding: 0.65rem 0.9rem; font-size: 1rem; white-space: nowrap; }
    .site-nav .subnav a[aria-current="page"] { background: var(--sun-soft); }
    .site-nav .subnav .subnav-all { border-top: 2px dashed var(--line); margin-top: 0.3rem; padding-top: 0.3rem; }
}

@media (max-width: 940px) {
    .site-nav .has-sub { flex-wrap: wrap; }
    .site-nav .has-sub > a { flex: 1; }
    .sub-toggle { width: 52px; height: 52px; margin-left: 0.3rem; background: var(--sky-soft); }
    .site-nav .has-sub.open > .subnav { display: block; flex-basis: 100%; padding: 0.3rem 0 0.4rem 0.8rem; margin-top: 0.2rem; border-left: 4px solid var(--sun); }
    .site-nav .subnav a { padding: 0.8rem 1rem; font-size: 1.05rem; }
}

/* ---------- Service cards, breadcrumb, service pages ---------- */
.card--service { display: flex; flex-direction: column; }
.card--service p { flex: 1; }
.card .btn--sm { margin-top: 1.3rem; align-self: flex-start; }
.btn--sm { min-height: 46px; padding: 0.5rem 1.3rem; font-size: 1rem; }

.breadcrumb { margin-bottom: 1.1rem; font-size: 1rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 0.6rem; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.6rem; color: var(--muted); font-weight: 700; }
.breadcrumb a { color: var(--navy); }
.breadcrumb [aria-current="page"] { color: var(--muted); }

.split--top { align-items: start; }
.panel-visual {
    aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); border: 8px solid #fff; box-shadow: var(--shadow);
    background: linear-gradient(160deg, var(--sky-soft), var(--sun-soft)); display: grid; place-items: center;
}
.panel-visual span { font-size: clamp(5rem, 14vw, 9rem); line-height: 1; }

.photo-row { display: grid; gap: 1.4rem; grid-template-columns: repeat(2, 1fr); }
.photo-row--1 { grid-template-columns: minmax(0, 560px); justify-content: center; }
.photo-row figure { margin: 0; }
.photo-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 6px solid #fff; }
.photo-row figcaption { font-size: 0.95rem; color: var(--muted); margin-top: 0.7rem; text-align: center; }

.facts-title { font-size: 1.4rem; margin-bottom: 0.8em; }
.related { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.related a {
    display: inline-flex; gap: 0.5rem; align-items: center; padding: 0.6rem 1.15rem; border-radius: 999px; background: #fff;
    text-decoration: none; font-family: var(--font-head); font-weight: 800; color: var(--navy); box-shadow: var(--shadow-sm);
    border: 2px solid transparent; transition: border-color 0.15s ease, transform 0.15s ease;
}
.related a:hover { border-color: var(--sky); transform: translateY(-2px); color: var(--navy); }

.footer-sub { margin: 0.4rem 0 0.2rem; padding-left: 1rem; border-left: 3px solid rgba(255, 200, 69, 0.6); font-size: 0.95rem; }

@media (max-width: 860px) {
    .photo-row { grid-template-columns: 1fr; }
}

/* ---------- reCAPTCHA v3 ---------- */
/* The floating badge is hidden; Google permits this because the notice below the form carries its required wording. */
.grecaptcha-badge { visibility: hidden; }
.recaptcha-note { margin: 1.1rem 0 0; font-size: 0.92rem; color: var(--muted); }

/* ---------- Cookie banner + settings ---------- */
.cookie-banner {
    position: fixed; z-index: 300; left: 0; right: 0; bottom: 0; background: #fff; border-top: 6px solid var(--sun);
    box-shadow: 0 -10px 30px rgba(15, 70, 97, 0.2); padding: 1.1rem 0;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: center; }
.cookie-banner-text p { margin: 0.2rem 0 0; font-size: 1rem; line-height: 1.55; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie-banner .btn { min-height: 46px; padding: 0.5rem 1.2rem; font-size: 1rem; box-shadow: none; }
.cookie-prefs { border: 0; border-radius: var(--radius); padding: 0; width: min(94vw, 640px); max-height: 90vh; box-shadow: var(--shadow); color: var(--ink); }
.cookie-prefs::backdrop { background: rgba(6, 30, 44, 0.65); }
.cookie-prefs-form { display: flex; flex-direction: column; max-height: 90vh; }
.cookie-prefs-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.4rem; border-bottom: 2px solid var(--line); }
.cookie-prefs-head h2 { margin: 0; font-size: 1.5rem; }
.cookie-prefs-close { background: var(--sky-soft); border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; color: var(--navy); }
.cookie-prefs-body { padding: 1rem 1.4rem; overflow-y: auto; }
.cookie-cat { border: 0; border-bottom: 2px dashed var(--line); margin: 0 0 1rem; padding: 0 0 1rem; min-width: 0; }
.cookie-cat:last-child { border-bottom: 0; }
.cookie-cat-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cookie-cat h3 { margin: 0; font-size: 1.15rem; }
.cookie-cat p { margin: 0.4rem 0; font-size: 1rem; }
.cookie-always { font-weight: 700; color: var(--muted); font-size: 0.95rem; white-space: nowrap; }
.cookie-list { margin: 0.5rem 0 0; padding-left: 1.2rem; font-size: 0.95rem; }
.cookie-cat summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.cookie-switch { position: relative; display: inline-block; width: 58px; height: 32px; flex: none; }
.cookie-switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.cookie-switch-ui { position: absolute; inset: 0; background: #9db6c2; border-radius: 999px; transition: background 0.2s; }
.cookie-switch-ui::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; background: #fff; border-radius: 50%; transition: transform 0.2s; }
.cookie-switch input:checked + .cookie-switch-ui { background: var(--navy); }
.cookie-switch input:checked + .cookie-switch-ui::after { transform: translateX(26px); }
.cookie-switch input:focus-visible + .cookie-switch-ui { outline: 4px solid var(--sun); outline-offset: 2px; }
.cookie-prefs-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 1rem 1.4rem; border-top: 2px solid var(--line); background: var(--cream); }
.footer-legal-links { margin-top: 0.4rem; }
.footer-legal-links a, .link-button { color: #fff; margin-right: 1.2rem; }
.link-button { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; cursor: pointer; }
.link-button:hover { color: var(--sun); }
.link-button--dark { color: var(--navy); margin-right: 0; }
.link-button--dark:hover { color: var(--sky-deep); }
.human-check { background: var(--sky-soft); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: 1.4rem; }
.human-check[hidden] { display: none; }
.human-check .hint { font-size: 0.95rem; color: var(--muted); }
.container.prose { max-width: 860px; }
.prose h2 { margin-top: 2rem; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: 1rem; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 2px solid var(--line); vertical-align: top; }
.prose th { background: var(--sky-soft); color: var(--navy); }
.prose .table-wrap { overflow-x: auto; }
@media (max-width: 760px) {
    .cookie-banner-inner { grid-template-columns: 1fr; }
    .cookie-banner-actions .btn { flex: 1 1 100%; }
}

/* ---------- Team page ---------- */
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 1.8rem; }
.team-card { display: flex; }
.team-card article { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; width: 100%; border-bottom: 6px solid var(--sun); transition: transform 0.2s, box-shadow 0.2s; }
.team-card article:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(15, 70, 97, 0.2); }
.team-photo { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: var(--sky-soft); }
.team-photo--initials { display: grid; place-items: center; font-size: 4.5rem; font-weight: 800; color: var(--navy); background: linear-gradient(135deg, var(--sky-soft), var(--sky)); }
.team-body { padding: 1.3rem 1.4rem 1.5rem; }
.team-body h2 { margin: 0 0 0.2rem; font-size: 1.5rem; }
.team-position { margin: 0 0 0.9rem; font-weight: 700; color: var(--coral); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.9rem; }
.team-bio p { margin: 0 0 0.8rem; } .team-bio p:last-child { margin-bottom: 0; }
.team-empty { text-align: center; max-width: 560px; margin: 2rem auto; }
.team-join { text-align: center; margin: 2.4rem 0 0; font-size: 1.1rem; }
@media (prefers-reduced-motion: reduce) { .team-card article { transition: none; } .team-card article:hover { transform: none; } }

/* ---------- Utilities ---------- */
.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
