/* Public franchise About page (templates/public/franchise_about.html).
   Loaded with ?v=<asset_version>, so a deploy busts the one-year static cache. */
/* Fonts are self-hosted (static/fonts): no render-blocking request to
   Google Fonts, and nothing to break if that service is slow. */
@font-face {
    font-family: 'Gabarito';
    src: url('/static/fonts/Gabarito-latin.woff2') format('woff2');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Gabarito';
    src: url('/static/fonts/Gabarito-latin-ext.woff2') format('woff2');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'SAF';
    src: url('/static/fonts/SAF-Regular.woff2') format('woff2'),
         url('/static/fonts/SAF-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ComputerXplorers brand tokens — Jan 2026 guidelines */
:root {
    --cx-teal: #00A8AB;        /* Trust Teal (primary) */
    --cx-teal-deep: #006E71;
    --cx-teal-700: #007E80;
    --cx-teal-50: #E1F5F5;
    --cx-navy: #0E012D;        /* Night Code Navy */
    --cx-navy-800: #1B0A45;
    --cx-canvas: #F8F3EF;      /* Warm Canvas */
    --cx-canvas-200: #EFE7DF;
    --cx-lime: #D9EA05;        /* Curiosity Lime */
    --cx-blue: #00A4FF;
    --cx-orange: #FF7300;
    --cx-purple: #9E65C6;
    --cx-yellow: #FFCE00;
    --cx-pink: #FFA1CC;
    --cx-ink: #3f3a50;
    --cx-ink-muted: #5B5470;
    --cx-line: #E5DCD2;
    --cx-radius: 20px;
    --cx-pill: 999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-padding-top: 6rem; }

/* Visible keyboard focus on everything interactive (WCAG 2.4.7). */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid #00777a;
    outline-offset: 2px;
}
.footer a:focus-visible, .footer button:focus-visible { outline-color: var(--cx-navy); }
.hero a:focus-visible, .newsletter-section input:focus-visible,
.newsletter-section button:focus-visible, .lightbox button:focus-visible {
    outline-color: var(--cx-lime);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 2000;
    background: var(--cx-navy);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: var(--cx-pill);
    font-weight: 700;
    text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-cta:hover, .nav-book-btn:hover, .program-card:hover,
    .btn:hover, .nav-icon-btn:hover, .offer-card:hover,
    .floating-book-pill:hover { transform: none !important; }
}

body {
    font-family: 'Gabarito', 'Helvetica Neue', system-ui, -apple-system, sans-serif;
    background: #FFFFFF;
    color: var(--cx-navy);
    line-height: 1.7;
    font-size: 18px;
}

h1, h2, h3, .section-title {
    font-family: 'SAF', 'Gabarito', sans-serif;
    letter-spacing: -0.02em;
    /* Only SAF Regular 400 is loaded: any heavier weight is a
       browser-faked bold that smears next to the main site. */
    font-weight: 400;
}

.header {
    background: transparent;
    color: var(--cx-navy);
    padding: 1rem 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
}

/* Three pills, like the main site: logo, links, call + book. Below 1180px
   (or when the links do not fit: .is-collapsed) they become one bar with a
   drop-down menu. */
.header-content {
    width: 100%;
    max-width: 74rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 0.6rem;
    position: relative;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--cx-navy);
    font-family: 'Gabarito', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;   /* overflow must be visible to the fit check, not squashed */
    background: #FFFFFF;           /* the navy lettering needs a light pill */
    border-radius: var(--cx-pill);
    padding: 0.4rem 1.1rem;
    box-shadow: 0 8px 24px rgba(14,1,45,0.18);
}
.logo img {
    display: block;
    height: 44px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}
.logo span {
    border-left: 1px solid rgba(14,1,45,0.2);
    padding-left: 0.75rem;
}

.nav-links {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
}
.nav-main, .nav-cta {
    display: flex;
    align-items: center;
    border-radius: var(--cx-pill);
    box-shadow: 0 8px 24px rgba(14,1,45,0.18);
}
.nav-main {
    gap: 1.25rem;
    padding: 0 1.5rem;
    background: var(--cx-navy);
    border: 2px solid #FFFFFF;
}
.nav-cta {
    gap: 0.3rem;
    padding: 0.4rem 0.45rem 0.4rem 0.9rem;
    background: #FFFFFF;
}

.nav-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s;
}

/* Menu button: only shown when the links no longer fit on one line. */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0 1.1rem;
    border: 0;
    border-radius: var(--cx-pill);
    background: var(--cx-lime);
    color: var(--cx-navy);
    font: 700 0.95rem 'Gabarito', sans-serif;
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block;
    width: 16px; height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.nav-links a:hover {
    color: var(--cx-lime);
}
.header a:focus-visible, .header button:focus-visible { outline-color: var(--cx-lime); }

.hero {
    background: linear-gradient(128deg, var(--cx-navy) 0%, var(--cx-navy-800) 68%, #12384e 100%);
    color: #FFFFFF;
    padding: 7.5rem 2rem 5rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 52rem);
    gap: 3.5rem;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
}

.hero-locality-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: var(--cx-pill);
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.22);
    color: var(--cx-lime);
    font-family: 'Gabarito', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
}
.hero-locality-badge svg { stroke: var(--cx-teal); }

.hero h1 {
    font-size: clamp(2.6rem, 5.4vw, 4.5rem);
    font-weight: 400;
    margin: 0;
    line-height: 1.08;
    color: #FFFFFF;
}
.hero h1 .hero-accent {
    color: var(--cx-lime);
    position: relative;
    display: inline-block;
}
.hero-accent .hero-loop {
    position: absolute;
    left: 0;
    bottom: -0.6rem;
    width: 100%;
    height: 0.7rem;
    opacity: 0.45;
}

.hero .tagline {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    color: rgba(255,255,255,0.86);
    max-width: 30rem;
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
}

.hero-brandline {
    color: var(--cx-lime);
    font-family: 'SAF', 'Gabarito', sans-serif;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    margin: 0;
}

.hero-ctas {
    margin-top: 0.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.9rem;
    border-radius: var(--cx-pill);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.hero-cta-primary {
    padding: 0.55rem 0.55rem 0.55rem 1.9rem;
    background: var(--cx-lime);
    color: var(--cx-navy);
    box-shadow: 0 8px 22px rgba(217,234,5,0.24);
}
.hero-cta-primary::after {
    content: '\2192';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--cx-navy);
    color: var(--cx-lime);
    font-size: 1.1rem;
    letter-spacing: 0;
}
.hero-cta-primary:hover { transform: translateY(-2px); background: var(--cx-lime); box-shadow: 0 10px 24px rgba(217,234,5,0.4); }
.hero-cta-secondary {
    background: rgba(255,255,255,0.08);
    color: #FFFFFF;
    border: 1px solid rgba(255,255,255,0.3);
}
.hero-cta-secondary:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }
/* Holiday-camp ticker: a lime tab on the hero's bottom-right edge (main site style).
   The strip only exists when the franchise has a camp on sale. */
.announce-strip {
    position: relative;
    z-index: 3;
    height: 0;
    pointer-events: none;
}
.announce-wrap { display: flex; justify-content: flex-end; }
.announce-tab {
    pointer-events: auto;
    display: block;
    width: min(34rem, 100%);
    overflow: hidden;
    transform: translateY(-100%);   /* sits on top of the hero's bottom edge */
    background: var(--cx-lime);
    color: var(--cx-navy);
    border-radius: 1.1rem 1.1rem 0 0;
    padding: 0.85rem 0;
    font-family: 'Gabarito', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    white-space: nowrap;
}
.announce-tab:focus-visible { outline: 3px solid var(--cx-navy); outline-offset: -5px; }
.announce-track { display: inline-flex; animation: announce-scroll 24s linear infinite; }
.announce-tab:hover .announce-track { animation-play-state: paused; }
.announce-group, .announce-dup { display: inline-flex; align-items: center; }
/* Each copy is at least as wide as the tab, so a short custom message never leaves a gap in the loop. */
.announce-group { min-width: min(34rem, 100vw); justify-content: space-around; flex: none; }
.announce-star { font-style: normal; margin: 0 1.1rem; }
@keyframes announce-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .announce-track { animation: none; }
    .announce-dup { display: none; }
    .announce-tab { text-align: center; }
    .announce-group { justify-content: center; width: 100%; }
    .announce-more { display: none; }
}
@media (max-width: 640px) {
    .announce-strip { height: auto; }
    .announce-strip .announce-wrap { padding: 0; }
    .announce-tab { width: 100%; transform: none; border-radius: 0; }
}
.hero-link {
    align-self: center;
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    padding: 0.6rem 0.25rem;
}
.hero-link:hover { color: var(--cx-lime); }

/* Hero decoration: the brand squiggle, bleeding off the right edge */
.hero-deco-loop {
    position: absolute;
    top: 6rem;
    right: -7rem;
    width: 26rem;
    height: auto;
    z-index: 1;
    pointer-events: none;
}

/* Photo-led hero: the franchise photo fills the section under a navy overlay,
   darkest behind the text. No photo = the navy gradient above. */
.hero-has-photo { padding-top: 9rem; padding-bottom: 6.5rem; background: var(--cx-navy); }
.hero-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center right;
    z-index: 0;
}
.hero-has-photo::before {
    content: '';
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(14,1,45,0.92) 0%, rgba(14,1,45,0.72) 42%, rgba(14,1,45,0.28) 100%);
    pointer-events: none;
}
.hero-has-photo .hero-content { z-index: 2; }

/* Trust points under the buttons: facts that hold for the whole network */
.hero-trust {
    list-style: none;
    display: flex; flex-wrap: wrap;
    margin: 0.75rem 0 0; padding: 0;
    font-family: 'Gabarito', sans-serif;
    font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
    line-height: 1.35;
    color: rgba(255,255,255,0.92);
}
.hero-trust li { display: flex; align-items: center; gap: 0.65rem; padding: 0 1.5rem; }
.hero-trust li:first-child { padding-left: 0; }
.hero-trust li + li { border-left: 1px solid rgba(255,255,255,0.3); }
.hero-trust svg { flex: 0 0 auto; color: var(--cx-lime); }
.nav-book-btn {
    display: inline-flex; align-items: center; gap: 0.7rem;
    background: var(--cx-lime);
    color: var(--cx-navy) !important;
    padding: 0.55rem 0.55rem 0.55rem 1.4rem;
    border-radius: var(--cx-pill);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    font-weight: 800;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    box-shadow: 0 6px 16px rgba(217,234,5,0.22);
}
.nav-book-btn:hover { transform: translateY(-2px); background: #E7F43B; box-shadow: 0 10px 22px rgba(217,234,5,0.34); color: var(--cx-navy) !important; }
.nav-book-arrow {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,0.55);
}
.offer-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(14,1,45,0.13); }

.nav-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    color: #006E71; background: #e0f2f1;
    transition: background 0.2s, transform 0.2s;
}
.nav-icon-btn:hover { background: #b2dfdb; transform: translateY(-2px); }
.nav-icon-wa { color: #25D366; background: #e8f8ee; }
.nav-icon-wa:hover { background: #c8efd5; }

.floating-book-pill {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 999;
    display: none; align-items: center; gap: 0.5rem;
    background: var(--cx-lime); color: var(--cx-navy);
    padding: 0.85rem 1.4rem; border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    font-weight: 700; text-decoration: none; font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: -0.02em;
}
.floating-book-pill svg { stroke: #0E012D; }
.floating-book-pill:hover { transform: translateY(-2px); }
@media (max-width: 768px) { .floating-book-pill { display: inline-flex; } }


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 3.75rem 0;
}

/* Strip-style sections (logo grids, badge rows, single-line CTAs) —
   these don't carry enough content to justify the same breathing
   room as a section built around a full card grid. */
.section-compact {
    padding: 2.5rem 0;
}

.section-alt {
    background: var(--cx-canvas);
}

.section-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--cx-teal-deep);
    margin-bottom: 0.75rem;
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--cx-navy);
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.1;
}

.section-title span {
    color: var(--cx-teal-deep);
}

.section-subtitle {
    text-align: center;
    color: #3f3a50;
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    align-items: start;
}

.franchisee-photo {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}

.franchisee-photo-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 4rem;
}

.bio-content {
    font-size: 1.15rem;
    color: #3f3a50;
}

.bio-content p {
    margin-bottom: 1.25rem;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    background: white;
    border-radius: var(--cx-radius);
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(14,1,45,0.06);
    border: 1px solid var(--cx-line);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(14,1,45,0.10), 0 10px 10px -5px rgba(14,1,45,0.04);
    border-color: var(--cx-teal);
}
.program-card:focus-visible {
    outline: 3px solid var(--cx-teal);
    outline-offset: 3px;
    border-color: var(--cx-teal);
}

.program-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    color: var(--cx-teal-deep);
    font-weight: 700;
    font-size: 0.95rem;
}
.program-card-cta span.arrow {
    transition: transform 0.2s;
}
.program-card:hover .program-card-cta span.arrow {
    transform: translateX(3px);
}

.program-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.85rem;
}
/* Accent palette — rotates per card index */
.program-icon.accent-0 { background: #e6f6ff; color: var(--cx-blue); }
.program-icon.accent-1 { background: #fbfdc9; color: var(--cx-navy); }
.program-icon.accent-2 { background: #fff1e6; color: var(--cx-orange); }
.program-icon.accent-3 { background: #f5f0f9; color: var(--cx-purple); }
.program-icon.accent-4 { background: #fff0f6; color: var(--cx-pink); }
.program-icon.accent-5 { background: var(--cx-teal-50); color: var(--cx-teal); }

.program-card h3 {
    font-size: 1.35rem;
    font-weight: 400;
    color: #0E012D;
    margin-bottom: 0.75rem;
}

.program-card p {
    color: #5B5470;
    font-size: 1rem;
    line-height: 1.7;
}

.classes-section {
    /* The class finder is the national finder's own look: a navy band, the small label with a lime rule,
       a chunky white heading, then the finder (same navy) with its lime buttons and cream Refine bar. */
    background: var(--cx-navy);
    color: var(--cx-canvas);
}
.classes-section .cf-eyebrow {
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cx-canvas);
}
.classes-section .cf-eyebrow::after {
    content: "";
    display: block;
    width: 2.5rem;
    height: 3px;
    background: var(--cx-lime);
    margin: 0.6rem 0 1rem;
}
.classes-section .section-title {
    color: #fff;
    text-align: left;
    max-width: 880px;
    margin: 0;
    text-transform: uppercase;
}
.classes-section .cf-sub {
    color: var(--cx-canvas);
    margin: 0.9rem 0 0.5rem;
    max-width: 520px;
    font-size: 1.05rem;
}
/* Embedded national class finder (pre-filtered to this franchise) */
#cx-about-class-finder {
    display: block;
    width: 100%;
    border: 0;
    min-height: 480px;
    transition: height 120ms ease-out;
    background: transparent;
}
.finder-fallback {
    padding: 1rem;
    text-align: center;
    color: #555;
    font-size: 0.9rem;
}
.finder-fallback a { color: var(--cx-teal-deep); font-weight: 600; text-decoration: none; }
.classes-section .finder-fallback { color: #ded9e7; }
.classes-section .finder-fallback a { color: var(--cx-lime); }

/* The crawlable class list sits inside the navy class-finder band: light text, same links. */
.classes-section .class-index { color: #ded9e7; }
.classes-section .class-index-title { color: #fff; }
.classes-section .class-index-town h3 { color: #fff; border-bottom-color: #493c60; }
.classes-section .class-index-venue,
.classes-section .class-index-place { color: #ded9e7; }
.classes-section .class-index-list a { color: #fff; }
.classes-section .class-index-list a:hover { color: var(--cx-lime); }
.classes-section details.class-index > summary:focus-visible { outline-color: var(--cx-lime); }

/* Compact crawlable class list (SEO fallback for the iframe tiles) */
.class-index, .quick-answers {
    margin: 2rem auto 0;
    max-width: 920px;
    font-size: 0.92rem;
    color: var(--cx-ink-muted);
}
.class-index-title {
    color: var(--cx-navy);
    font-size: 1.2rem;
    margin: 0 0 0.75rem;
    text-align: center;
}
details.class-index > summary {
    cursor: pointer;
    list-style: none;
    margin: 0;
    padding: 0.6rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
details.class-index > summary::-webkit-details-marker { display: none; }
details.class-index > summary::after {
    content: "";
    width: 0.5rem; height: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .15s;
}
details.class-index[open] > summary::after { transform: rotate(-135deg); }
details.class-index > summary:focus-visible { outline: 2px solid var(--cx-teal); outline-offset: 3px; }
.class-index-town { margin-top: 1rem; }
.class-index-town h3 {
    color: var(--cx-navy);
    font-size: 1rem;
    margin: 0 0 0.25rem;
    border-bottom: 1px solid #E5DCD2;
    padding-bottom: 0.25rem;
}
.class-index-venue {
    margin: 0.5rem 0 0.1rem;
    font-weight: 600;
    color: var(--cx-ink-muted);
    font-size: 0.85rem;
}
.class-index-list {
    list-style: none;
    margin: 0.25rem 0 0;
    padding: 0;
    columns: 2;
    column-gap: 2rem;
}
.class-index-list li {
    padding: 0.2rem 0;
    break-inside: avoid;
    line-height: 1.4;
}
.class-index-list a {
    color: var(--cx-navy);
    font-weight: 600;
    text-decoration: none;
}
.class-index-list a:hover { color: var(--cx-teal); text-decoration: underline; }
.class-index-place { color: var(--cx-ink-muted); font-weight: 400; }
.quick-answers dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
    margin: 0;
}
.quick-answer {
    background: #fff;
    border: 1px solid #E5DCD2;
    border-radius: 12px;
    padding: 0.9rem 1rem;
}
.quick-answer dt { color: var(--cx-navy); font-weight: 700; margin-bottom: 0.3rem; }
.quick-answer dd { margin: 0; line-height: 1.55; }
@media (max-width: 640px) {
    .class-index-list { columns: 1; }
    .class-index, .quick-answers { font-size: 0.88rem; }
}
.footer-brand-note { font-size: 0.8rem; opacity: 0.85; margin-top: 0.4rem; }

/* Contact navy CTA banner */
.contact-cta-banner {
    position: relative;
    overflow: hidden;
    background: var(--cx-navy);
    color: #FFFFFF;
    border-radius: var(--cx-radius);
    padding: 3.5rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
}
.contact-cta-banner::before,
.contact-cta-banner::after {
    content: '';
    position: absolute;
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}
.contact-cta-banner::before {
    top: -4rem; right: -4rem;
    background: var(--cx-teal);
    opacity: 0.30;
}
.contact-cta-banner::after {
    bottom: -4rem; left: -4rem;
    background: var(--cx-purple);
    opacity: 0.20;
}
.contact-cta-inner { position: relative; z-index: 1; }
.contact-cta-banner h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #FFFFFF;
    margin-bottom: 1rem;
    line-height: 1.1;
}
.contact-cta-banner p {
    color: var(--cx-canvas-200);
    font-size: 1.15rem;
    max-width: 36rem;
    margin: 0 auto 1.75rem;
}
.contact-cta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}
.contact-cta-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.contact-cta-links a:hover { color: var(--cx-yellow); }
.contact-cta-links a svg { stroke: currentColor; }

/* Careers / we're hiring banner */
.careers-banner {
    background: var(--cx-navy);
    color: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
.careers-banner-text { flex: 1; min-width: 260px; }
.careers-banner h2 { color: #fff; font-size: 1.8rem; margin-bottom: 0.5rem; }
.careers-banner p { color: rgba(255,255,255,0.85); margin: 0; max-width: 34rem; }
.careers-list { display: flex; flex-direction: column; gap: 0.75rem; min-width: 280px; }
.careers-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.careers-link:hover { background: var(--cx-teal); transform: translateY(-2px); }
.careers-link-title { font-weight: 600; }
.careers-link-arrow { white-space: nowrap; color: var(--cx-lime); font-weight: 600; }


.class-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s;
}

.class-card:hover {
    border-color: #00A8AB;
}

.class-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0E012D;
    margin-bottom: 0.75rem;
}

.class-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.class-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(0,168,171,0.1);
    color: #00A8AB;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.class-details {
    color: #5B5470;
    font-size: 0.95rem;
}

.contact-section {
    background: var(--cx-canvas);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0E012D;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #3f3a50;
    margin-bottom: 0.85rem;
    font-size: 1.05rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #3f3a50;
    font-size: 1.05rem;
}

.contact-item svg {
    color: #00A8AB;
    flex-shrink: 0;
}

.contact-form {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1);
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0E012D;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #0E012D;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #FFFFFF;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.form-control:focus {
    outline: 2px solid #00777a;
    outline-offset: 1px;
    border-color: #00777a;
    box-shadow: 0 0 0 3px rgba(0,119,122,0.18);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #00777a;   /* white on #00A8AB is only 2.9:1 */
    color: white;
    border: none;
    border-radius: var(--cx-pill);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background: #006064;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,168,171,0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #00777a;
    color: #00777a;
}

.btn-outline:hover {
    background: #00777a;
    color: white;
}

.footer {
    background: var(--cx-teal);   /* Trust Teal, as on the main site */
    color: var(--cx-navy);
    padding: 4rem 0 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 45px;
    filter: brightness(0);
}

.footer-centres {
    margin-bottom: 2rem;
}

.footer-centres-title {
    color: var(--cx-navy);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-centres ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer a {
    color: var(--cx-navy);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.footer a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}
.footer-sitelinks {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.75rem;
    margin: 0 0 2rem;
    font-family: 'SAF', 'Gabarito', sans-serif;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}
.footer-sitelinks a { font-weight: 400; }

.footer-bottom {
    border-top: 1px solid rgba(14,1,45,0.25);
    padding-top: 2rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.flash {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.flash-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.flash-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #5B5470;
}

.newsletter-section { background: var(--cx-navy); color: #FFFFFF; }
.newsletter-section .section-title { color: #FFFFFF; }
.newsletter-section .subscribe-btn {
    background: var(--cx-lime); color: var(--cx-navy);
    border: none; padding: 1rem 2rem; border-radius: var(--cx-pill);
    font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em;
    cursor: pointer;
}

/* Stats Section */
.stats-section {
    background: var(--cx-canvas);
    color: var(--cx-navy);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.stat-value {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    display: block;
    font-family: 'SAF', 'Gabarito', sans-serif;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--cx-navy);
}

.stat-suffix {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    display: block;
    line-height: 1;
    min-height: 1em;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cx-ink-muted);
    margin-top: auto;
    padding-top: 0.5rem;
}

/* Video Section */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    max-width: 800px;
    margin: 2rem auto 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Why Choose Us */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.why-choose-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.why-choose-card h3 {
    color: #006E71;
    margin-bottom: 0.5rem;
}

.why-choose-card p {
    color: #5B5470;
    font-size: 0.95rem;
}

/* Testimonials */
/* Every card is stacked in the same grid cell, so the carousel is
   always as tall as its LONGEST testimonial -- rotating between a
   short and a long quote no longer changes the section's height
   and shoves the rest of the page up and down (ticket #34). Only
   the active card is visible; the others keep their space but are
   hidden from sight and from screen readers. */
.testimonials-carousel {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.testimonial-card {
    grid-area: 1 / 1;
    display: flex;
    visibility: hidden;
    opacity: 0;
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    min-height: 360px;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.testimonial-card.active {
    visibility: visible;
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-card.active { animation: none; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial-stars {
    color: #b45309;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-card blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: #374151;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Local FAQs */
.local-faqs {
    max-width: 820px;
    margin: 0 auto;
}
.local-faq {
    background: #fff;
    border: 1px solid #E5DCD2;
    border-radius: 14px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.local-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 1.15rem 1.35rem;
    color: var(--cx-navy);
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.local-faq summary::-webkit-details-marker { display: none; }
.local-faq summary::after {
    content: '+';
    color: var(--cx-teal);
    font-size: 1.35rem;
    line-height: 1;
}
.local-faq[open] summary::after { content: '−'; }
.local-faq-answer {
    padding: 0 1.35rem 1.25rem;
    color: #3f3a50;
    line-height: 1.7;
    white-space: pre-line;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-author img,
.author-initial {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-initial {
    background: #00A8AB;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.testimonial-author strong {
    display: block;
    color: #1e1e1e;
}

.testimonial-author span {
    color: #5B5470;
    font-size: 0.9rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    background: #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.dot:focus-visible {
    outline: 2px solid #00A8AB;
    outline-offset: 3px;
}

.dot.active {
    background: #00A8AB;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.team-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.team-photo,
.team-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
}

.team-photo-placeholder {
    background: linear-gradient(135deg, #007A7C 0%, #006E71 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
}

.team-card h3 {
    color: #1e1e1e;
    margin-bottom: 0.25rem;
}

.team-role {
    color: #006E71;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-bio {
    color: #5B5470;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.team-bio-toggle {
    background: none;
    border: none;
    color: var(--cx-teal-deep);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 0.15rem;
    display: none;
}

.team-bio-toggle:hover {
    text-decoration: underline;
}

.team-bio-toggle:focus-visible {
    outline: 2px solid #00A8AB;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Long bios get the button server-side, so it is there even before
   (or without) the clamp check below; the JS then shows it for any
   other bio the clamp actually cuts short (ticket #32). */
.team-bio-toggle.is-visible {
    display: inline;
}

/* A clamped preview is itself a click target for the full bio. */
.team-bio.is-clamped {
    cursor: pointer;
}

/* Briefly applied while measuring a bio's natural height. */
.team-bio.is-measuring {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 1rem 0.75rem 0.5rem;
    font-size: 0.85rem;
}

/* Awards */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.award-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.award-card img {
    max-width: 100px;
    max-height: 80px;
    margin-bottom: 1rem;
}

.award-card h3 {
    color: #1e1e1e;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.award-year {
    color: #006E71;
    font-weight: 600;
    font-size: 0.9rem;
}

.award-card p {
    color: #5B5470;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Success Stories */
.success-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.success-card {
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
}

.success-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.success-card h3,
.success-card p {
    padding: 0 1.5rem;
}

.success-card h3 {
    color: #1e1e1e;
    margin: 1rem 0 0.5rem;
}

.success-card p {
    color: #5B5470;
    padding-bottom: 1.5rem;
}

/* Local News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.news-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--cx-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--cx-line);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(14,1,45,0.12);
}
.news-card-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--cx-teal-50);
}
.news-card-img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cx-teal);
    background: var(--cx-teal-50);
}
.news-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.news-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.65rem;
    border-radius: var(--cx-pill);
    margin-bottom: 0.75rem;
}
.news-badge--network { background: var(--cx-navy); color: var(--cx-lime); }
.news-badge--local { background: var(--cx-teal-50); color: var(--cx-teal-deep); }
.news-card-body h3 {
    font-size: 1.2rem;
    color: var(--cx-navy);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.news-card-body p {
    color: var(--cx-ink);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.news-card-meta {
    font-size: 0.85rem;
    color: var(--cx-ink-muted);
    margin-top: auto;
    margin-bottom: 0.75rem;
}
.news-card-readmore {
    font-weight: 700;
    color: var(--cx-teal);
    font-size: 0.95rem;
}

/* Partners */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.partner-logo img {
    max-height: 60px;
    max-width: 150px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    border-radius: 50%;
    color: #5B5470;
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--cx-navy);
    color: white;
}

/* Share this page (sits in the footer social row) */
.social-link--share {
    border: none;
    cursor: pointer;
    padding: 0;
    font: inherit;
}
.share-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%) translateY(20px);
    max-width: calc(100vw - 2rem);
    background: var(--cx-navy);
    color: #fff;
    padding: 0.7rem 1.25rem;
    border-radius: var(--cx-pill);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1200;
}
.share-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    font-size: 2rem;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    background: none;
    border: none;
}

/* Team bio modal */
.bio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 1200;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.bio-modal.active {
    display: flex;
}

.bio-modal-card {
    background: white;
    border-radius: 20px;
    max-width: 580px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 70px rgba(14, 1, 45, 0.35);
}

.bio-modal-scroll {
    max-height: 85vh;
    overflow-y: auto;
}

.bio-modal-banner {
    height: 96px;
    background: linear-gradient(135deg, var(--cx-teal) 0%, var(--cx-navy) 100%);
}

.bio-modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.22);
    border: none;
    border-radius: 50%;
    z-index: 2;
    transition: background 0.15s;
}

.bio-modal-close:hover {
    background: rgba(255, 255, 255, 0.38);
}

.bio-modal-header {
    position: relative;
    z-index: 1;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 2rem 1.5rem;
    margin-top: -52px;
}

.bio-modal-photo,
.bio-modal-photo-placeholder {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 6px 18px rgba(14, 1, 45, 0.25);
    flex-shrink: 0;
}

.bio-modal-photo {
    object-fit: cover;
}

.bio-modal-photo-placeholder {
    background: var(--cx-teal);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 400;
    font-family: 'SAF', 'Gabarito', sans-serif;
}

/* display:flex above beats the UA stylesheet's [hidden]{display:none}
   at equal specificity, so the empty placeholder stays visible next
   to a real photo unless we win that fight back explicitly. */
.bio-modal-photo[hidden],
.bio-modal-photo-placeholder[hidden] {
    display: none;
}

.bio-modal-name {
    margin: 0.85rem 0 0;
    font-size: 1.4rem;
    font-weight: 400;
    font-family: 'SAF', 'Gabarito', sans-serif;
    color: var(--cx-navy);
}

.bio-modal-role {
    margin: 0.5rem 0 0;
    display: inline-block;
    background: var(--cx-teal-50);
    color: var(--cx-teal-deep);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
}

.bio-modal-accent {
    width: 40px;
    height: 4px;
    background: var(--cx-lime);
    border-radius: 999px;
    margin: 1rem auto 0;
}

.bio-modal-body {
    padding: 1.5rem 2rem 2rem;
    border-top: 1px solid var(--cx-line);
}

.bio-modal-text {
    color: var(--cx-ink);
    font-size: 1rem;
    line-height: 1.75;
    white-space: pre-line;
    margin: 0;
}

@media (max-width: 1180px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        padding: 0.75rem;
        background: #fff;
        border-radius: 1.5rem;
        box-shadow: 0 16px 40px rgba(14,1,45,0.18);
        border: 1px solid rgba(14,1,45,0.06);
    }
    .nav-links.open { display: flex; }
    .header-content {
        background: #FFFFFF; border-radius: var(--cx-pill);
        padding: 0.4rem 0.5rem 0.4rem 1.1rem; align-items: center;
        box-shadow: 0 8px 24px rgba(14,1,45,0.18);
    }
    .logo { background: none; box-shadow: none; padding: 0; }
    .nav-main, .nav-cta { display: contents; }
    .logo { min-width: 0; flex-shrink: 1; }
    .nav-links a:not(.nav-icon-btn):not(.nav-book-btn) {
        display: flex; align-items: center;
        min-height: 44px; padding: 0 1rem;
        border-radius: 12px;
        color: var(--cx-navy);
    }
    .nav-links a:not(.nav-icon-btn):not(.nav-book-btn):hover { background: var(--cx-canvas); color: var(--cx-navy); }
    .nav-links a:focus-visible { outline-color: #00777a; }
    .nav-links .nav-icon-btn { align-self: flex-start; margin: 0.25rem 0 0; }
    .nav-links .nav-book-btn { text-align: center; margin-top: 0.4rem; padding: 0.85rem 1.4rem; }
}
/* Same menu, switched on by script when the links do not fit on one line
   (many optional links, long franchise name) at any width. */
    .header.is-collapsed .nav-toggle { display: inline-flex; }
.header.is-collapsed .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.75rem;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 16px 40px rgba(14,1,45,0.18);
    border: 1px solid rgba(14,1,45,0.06);
}
.header.is-collapsed .nav-links.open { display: flex; }
.header.is-collapsed .header-content {
    background: #FFFFFF; border-radius: var(--cx-pill);
    padding: 0.4rem 0.5rem 0.4rem 1.1rem; align-items: center;
    box-shadow: 0 8px 24px rgba(14,1,45,0.18);
}
.header.is-collapsed .logo { background: none; box-shadow: none; padding: 0; min-width: 0; flex-shrink: 1; }
.header.is-collapsed .nav-main, .header.is-collapsed .nav-cta { display: contents; }
.header.is-collapsed .nav-links a:not(.nav-icon-btn):not(.nav-book-btn) {
    display: flex; align-items: center;
    min-height: 44px; padding: 0 1rem;
    border-radius: 12px;
    color: var(--cx-navy);
}
.header.is-collapsed .nav-links a:not(.nav-icon-btn):not(.nav-book-btn):hover { background: var(--cx-canvas); color: var(--cx-navy); }
.header.is-collapsed .nav-links a:focus-visible { outline-color: #00777a; }
.header.is-collapsed .nav-links .nav-icon-btn { align-self: flex-start; margin: 0.25rem 0 0; }
.header.is-collapsed .nav-links .nav-book-btn { text-align: center; margin-top: 0.4rem; padding: 0.85rem 1.4rem; }
@media (max-width: 520px) {
    /* Phone: icon-only menu button and logo without the centre name
       (the hero badge already says where we are). */
    .logo { flex: 1 1 0; min-width: 0; }
    .logo img { height: 36px; }
    .nav-toggle { width: 44px; padding: 0; }
    .nav-toggle-label {
        position: absolute; width: 1px; height: 1px; margin: -1px;
        overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
    }
    .logo span { display: none; }
}
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 3.5rem;
    }
    .hero { padding-top: 6rem; }
    .hero-has-photo { padding-top: 6rem; padding-bottom: 4rem; }
    .hero-deco-loop { display: none; }
    .hero-has-photo::before { background: linear-gradient(180deg, rgba(14,1,45,0.9) 0%, rgba(14,1,45,0.78) 100%); }
}
@media (max-width: 768px) {
    .hero h1 {
        font-size: clamp(2.2rem, 9vw, 3rem);
    }
    
    .hero .tagline {
        font-size: 1.05rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-grid .franchisee-photo,
    .about-grid .franchisee-photo-placeholder {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section {
        padding: 2rem 0;
    }

    .section-compact {
        padding: 1.5rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    .testimonial-card {
        min-height: 420px;
        padding: 1.75rem 1.25rem;
    }
    .testimonial-card blockquote {
        font-size: 1rem;
        line-height: 1.65;
    }
}


/* Video poster button (click-to-load player) */
.video-facade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--cx-navy) 0%, var(--cx-navy-800) 100%);
    color: #fff;
    font: 700 1rem 'Gabarito', sans-serif;
}
.video-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--cx-lime);
    color: var(--cx-navy);
    font-size: 1.6rem;
    padding-left: 0.25rem;
    transition: transform 0.15s;
}
.video-facade:hover .video-play { transform: scale(1.08); }
.video-facade-label { text-transform: uppercase; letter-spacing: -0.02em; }

/* ===== Phone layout (640px and under): same content, tighter and aligned =====
   Every section now shares one 20px-ish gutter (the hero used to add its own
   32px on top of the container's, which put its text 64px in while the other
   sections sat at 32px), grids go two-up where cards are small, and the
   contact area is centred like the headings above it. */
@media (max-width: 640px) {
    .container { padding: 0 1.25rem; }
    body { line-height: 1.6; }

    .hero { padding-left: 0; padding-right: 0; padding-bottom: 3.25rem; }
    .hero-content { gap: 2.25rem; }
    .hero-text { gap: 1.1rem; }
    .hero-brandline { font-size: 1.2rem; line-height: 1.2; }
    .hero-ctas { width: 100%; flex-direction: column; align-items: stretch; gap: 0.75rem; }
    .hero-cta { width: 100%; justify-content: center; }
    .hero-cta-primary { justify-content: space-between; }
    .hero-link { align-self: center; }
    .hero-trust { flex-direction: column; gap: 0.9rem; }
    .hero-trust li, .hero-trust li + li { padding: 0; border-left: 0; }

    .bio-content p { line-height: 1.6; }

    .why-choose-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
    .why-choose-card { padding: 1rem 0.75rem; }
    .why-choose-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .why-icon { font-size: 2rem; margin-bottom: 0.5rem; }
    .why-choose-card h3 { font-size: 1rem; }
    .why-choose-card p { font-size: 0.85rem; line-height: 1.45; }

    .programs-grid { gap: 0.75rem; }
    .program-card {
        padding: 1rem;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 1rem;
        align-items: center;
    }
    .program-icon { grid-row: 1 / span 4; width: 52px; height: 52px; margin-bottom: 0; font-size: 1.5rem; }
    .program-card h3 { margin-bottom: 0.2rem; font-size: 1.15rem; }
    .program-card p { font-size: 0.9rem; line-height: 1.45; }
    .program-card-cta { margin-top: 0.4rem; }

    .quick-answer { padding: 0.8rem 0.9rem; }

    .contact-info { text-align: center; }
    .contact-info h3 { text-align: center; font-size: 1.4rem; }
    .contact-item { justify-content: center; margin-bottom: 0.6rem; }
    .contact-form { padding: 1.25rem; }
    .contact-form h3 { font-size: 1.25rem; margin-bottom: 1rem; }
    .form-group { margin-bottom: 1rem; }
}


/* ===== Trust strip, optional photos, short contact form ===== */
.trust-strip {
    background: var(--cx-canvas);
    border-bottom: 1px solid var(--cx-line);
}
.trust-strip-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 2rem;
    margin: 0 auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--cx-navy);
}
.trust-strip-list li::before {
    content: '\2713';
    color: var(--cx-teal-deep);
    margin-right: 0.5rem;
    font-weight: 800;
}
.trust-strip-list a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* No About photo: the text uses the whole width. */
.about-grid--no-photo { grid-template-columns: 1fr; max-width: 52rem; margin: 0 auto; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-group label .optional { font-weight: 400; color: var(--cx-ink-muted); }
@media (max-width: 420px) { .form-row-2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .trust-strip-list { flex-direction: column; align-items: flex-start; gap: 0.35rem; font-size: 0.9rem; }
}

/* "Meet your local team": a short strip under the hero (helpers/about_intro). The owner's own opening words and
   the faces of the franchise's own team, so the story is not half way down the page. */
.meet-strip { background: var(--cx-canvas); padding: 2.75rem 0; }
.meet-strip-inner { display: flex; gap: 3.5rem; align-items: center; }
.meet-who { flex: 1; min-width: 0; display: flex; gap: 2rem; align-items: center; }
.meet-photo { flex: none; display: block; width: 132px; height: 132px; border-radius: 50%; object-fit: cover; background: var(--cx-teal-50); }
.meet-eyebrow { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cx-teal-deep); }
.meet-strip h2 { margin: 0.5rem 0 0; font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 400; color: var(--cx-navy); line-height: 1.05; }
.meet-sub { margin-top: 0.4rem; color: var(--cx-ink-muted); font-size: 0.95rem; }
.meet-text p { margin: 0.9rem 0 0; max-width: 38rem; font-size: 1.05rem; line-height: 1.55; color: #3f3a50; }
.meet-link { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; margin-top: 0.4rem; font-weight: 800; color: var(--cx-teal-deep); text-decoration: none; }
.meet-link:hover { text-decoration: underline; }
.meet-link:focus-visible { outline: 2px solid var(--cx-teal); outline-offset: 3px; }
.meet-faces { flex: none; width: 330px; box-sizing: border-box; background: #fff; border: 1px solid #E5DCD2; border-radius: 16px; padding: 1.4rem; }
.meet-faces-title { font-weight: 800; font-size: 1.05rem; line-height: 1.3; color: var(--cx-navy); }
.meet-face-row { list-style: none; display: flex; align-items: center; margin: 1rem 0 0.2rem; padding: 0; }
.meet-face-row li { margin-left: -14px; }
.meet-face-row li:first-child { margin-left: 0; }
.meet-face { width: 52px; height: 52px; border-radius: 50%; border: 3px solid #fff; box-sizing: border-box; object-fit: cover; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--cx-navy); }
.meet-face--initial { background: var(--cx-teal-50); }
.meet-face--more { background: var(--cx-canvas-200); font-size: 0.9rem; }
@media (max-width: 900px) {
    .meet-strip-inner { flex-direction: column; align-items: stretch; gap: 1.5rem; }
    .meet-faces { width: auto; }
}
@media (max-width: 600px) {
    .meet-strip { padding: 1.75rem 0; }
    /* photo beside the heading, the excerpt and link full width underneath */
    .meet-who { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 0.4rem 1rem; align-items: center; }
    .meet-text { display: contents; }
    .meet-photo { width: 84px; height: 84px; grid-row: span 2; }
    .meet-sub { display: none; }
    .meet-text p, .meet-who .meet-link { grid-column: 1 / -1; }
    .meet-text p { margin-top: 0.5rem; font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
