/* ==========================================================================
   Accelerate Tutors — design tokens
   Navy grounded in the logo mark; champagne gold lifted from the brand's own
   flyer accents; distances are real (Toronto/Manchester/Northampton→Ghana).
   ========================================================================== */
:root{
    --ink:        #0A1B33;
    --navy:       #0F2A4A;
    --navy-2:     #163a63;
    --blue:       #1E6FD9;
    --blue-2:     #4A8EE8;
    --gold:       #C9A24B;
    --gold-2:     #E4C374;
    --paper:      #F7F5F0;
    --paper-2:    #EEEAE1;
    --card:       #FFFFFF;
    --text:       #17233A;
    --text-soft:  #4E5B72;
    --text-mute:  #8792A3;
    --rule:       #E1DCCF;
    --rule-dark:  rgba(247,245,240,0.14);

    --display: "Fraunces", "Iowan Old Style", Georgia, serif;
    --body:    "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    --container: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
    html{ scroll-behavior:auto; }
    *,*::before,*::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

body,html{ margin:0; padding:0; }
body{
    font-family:var(--body);
    background:var(--paper);
    color:var(--text);
    font-size:17px;
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
.container{ max-width:var(--container); margin:0 auto; padding:0 32px; }
:focus-visible{ outline:2px solid var(--blue); outline-offset:3px; }

h1,h2,h3,h4{ font-family:var(--display); font-weight:600; color:var(--ink); margin:0; letter-spacing:-0.01em; }
.eyebrow{
    font-family:var(--mono); font-size:0.74rem; letter-spacing:0.14em; text-transform:uppercase;
    color:var(--gold); font-weight:500; margin:0 0 14px 0; display:flex; align-items:center; gap:10px;
}
.eyebrow::before{ content:""; width:22px; height:1px; background:var(--gold); display:inline-block; }
p{ color:var(--text-soft); margin:0 0 1em 0; }
p:last-child{ margin-bottom:0; }

.btn{
    display:inline-flex; align-items:center; gap:10px; font-family:var(--body); font-weight:600;
    font-size:0.95rem; padding:15px 30px; border-radius:2px; border:1px solid transparent;
    cursor:pointer; transition:background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
}
.btn.gold{ background:var(--gold); color:var(--ink); }
.btn.gold:hover{ background:var(--gold-2); transform:translateY(-1px); }
.btn.outline{ border-color:rgba(247,245,240,0.4); color:var(--paper); }
.btn.outline:hover{ background:rgba(247,245,240,0.08); border-color:var(--paper); }
.btn.dark{ background:var(--ink); color:var(--paper); }
.btn.dark:hover{ background:var(--navy-2); }

/* ---------- Header ---------- */
.site-header{
    position:fixed; top:0; left:0; right:0; z-index:100;
    background:rgba(10,27,51,0.72); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
    border-bottom:1px solid rgba(247,245,240,0.08);
}
.site-header .container{ display:flex; align-items:center; justify-content:space-between; height:82px; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height:34px; width:auto; }
.brand-word{ font-family:var(--display); font-weight:600; font-size:1.15rem; color:var(--paper); letter-spacing:0.01em; }
.brand-word b{ color:var(--gold); font-weight:600; }
.main-nav{ display:flex; align-items:center; gap:36px; }
.main-nav a{ font-size:0.92rem; color:rgba(247,245,240,0.82); transition:color .2s ease; position:relative; }
.main-nav a:hover{ color:var(--paper); }
.main-nav a::after{
    content:""; position:absolute; left:0; right:0; bottom:-6px; height:1px; background:var(--gold);
    transform:scaleX(0); transform-origin:left; transition:transform .25s ease;
}
.main-nav a:hover::after{ transform:scaleX(1); }
.nav-cta{ display:flex; align-items:center; gap:20px; }
.menu-toggle{ display:none; }

/* ---------- Hero ---------- */
.hero{
    position:relative; min-height:100vh; display:flex; align-items:flex-end;
    background:var(--ink); overflow:hidden;
}
.hero-media{ position:absolute; inset:0; }
.hero-media img{ width:100%; height:100%; object-fit:cover; object-position:60% 30%; opacity:0.9; }
.hero-scrim{
    position:absolute; inset:0;
    background:
        linear-gradient(180deg, rgba(10,27,51,0.55) 0%, rgba(10,27,51,0.25) 38%, rgba(10,27,51,0.88) 100%),
        linear-gradient(100deg, rgba(10,27,51,0.96) 0%, rgba(10,27,51,0.55) 46%, rgba(10,27,51,0.15) 75%);
}
.hero-inner{ position:relative; z-index:2; padding:180px 0 96px 0; width:100%; }
.hero-tag{ color:var(--gold-2); }
.hero h1{
    color:var(--paper); font-size:clamp(2.4rem, 5.2vw, 4.4rem); line-height:1.04; max-width:15ch;
    font-weight:600;
}
.hero h1 em{ font-style:italic; color:var(--gold-2); font-weight:500; }
.hero-sub{ max-width:46ch; margin-top:24px; }
.hero-sub p{ color:rgba(247,245,240,0.82); font-size:1.08rem; }
.hero-cta{ display:flex; gap:16px; flex-wrap:wrap; margin-top:38px; }
.hero-meta{
    margin-top:56px; display:flex; gap:36px; flex-wrap:wrap; font-family:var(--mono); font-size:0.78rem;
    color:rgba(247,245,240,0.6); letter-spacing:0.04em;
}
.hero-meta strong{ color:var(--paper); font-weight:600; display:block; font-size:1rem; font-family:var(--body); }

/* reveal-on-load hero choreography */
.hero-tag,.hero h1,.hero-sub,.hero-cta,.hero-meta{
    opacity:0; transform:translateY(18px); animation:hero-in .9s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-tag{ animation-delay:.15s; }
.hero h1{ animation-delay:.3s; }
.hero-sub{ animation-delay:.5s; }
.hero-cta{ animation-delay:.68s; }
.hero-meta{ animation-delay:.85s; }
@keyframes hero-in{ to{ opacity:1; transform:translateY(0); } }

/* ---------- Trust strip (curricula) ---------- */
.trust-strip{ background:var(--ink); border-top:1px solid var(--rule-dark); padding:22px 0; overflow:hidden; }
.trust-track{ display:flex; gap:0; white-space:nowrap; animation:marquee 34s linear infinite; width:max-content; }
.trust-track span{
    font-family:var(--mono); font-size:0.8rem; letter-spacing:0.1em; text-transform:uppercase;
    color:rgba(247,245,240,0.55); padding:0 28px; border-right:1px solid rgba(247,245,240,0.15);
}
@keyframes marquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* ---------- Section shell ---------- */
section{ padding:120px 0; }
.section-head{ max-width:640px; margin-bottom:64px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size:clamp(1.9rem, 3.4vw, 2.7rem); line-height:1.12; }
.section-head p{ margin-top:18px; font-size:1.05rem; }

/* ---------- Global reach (signature) ---------- */
.reach{ background:var(--paper-2); }
.reach-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; margin-top:8px; }
.reach-card{ background:var(--card); border:1px solid var(--rule); overflow:hidden; border-radius:3px; }
.reach-card img{ width:100%; aspect-ratio:16/12; object-fit:cover; }
.reach-card figcaption{ padding:20px 22px 24px 22px; }
.reach-card figcaption .route{ font-family:var(--mono); font-size:0.78rem; color:var(--text-mute); letter-spacing:0.02em; }
.reach-card figcaption .route b{ color:var(--ink); font-weight:600; }
.reach-card figcaption .km{ font-family:var(--mono); font-size:1.5rem; color:var(--blue); font-weight:600; margin-top:6px; }
.reach-card figcaption .km span{ font-size:0.85rem; color:var(--text-mute); font-weight:400; margin-left:6px; }

.connector{ margin-top:80px; }
.connector-line{
    position:relative; display:flex; align-items:center; justify-content:space-between;
    padding:0 6px;
}
.connector-line::before{
    content:""; position:absolute; left:6%; right:6%; top:50%; height:1px;
    background:repeating-linear-gradient(90deg, var(--blue) 0 8px, transparent 8px 16px);
    transform:translateY(-50%); z-index:0;
}
.connector-node{ position:relative; z-index:1; background:var(--paper-2); text-align:center; padding:0 10px; }
.connector-dot{ width:11px; height:11px; border-radius:50%; background:var(--ink); margin:0 auto 12px auto; border:2px solid var(--paper-2); box-shadow:0 0 0 1px var(--blue); }
.connector-node.origin .connector-dot{ background:var(--gold); box-shadow:0 0 0 1px var(--gold); width:14px; height:14px; }
.connector-city{ font-family:var(--body); font-weight:600; font-size:0.92rem; color:var(--ink); white-space:nowrap; }
.connector-country{ font-family:var(--mono); font-size:0.72rem; color:var(--text-mute); text-transform:uppercase; letter-spacing:0.06em; margin-top:2px; }

/* ---------- Programmes ---------- */
.programmes-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--rule); border:1px solid var(--rule); margin-top:8px; }
.pathway{ background:var(--card); padding:40px 34px; }
.pathway .path-label{ font-family:var(--mono); font-size:0.72rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--blue); margin-bottom:18px; display:block; }
.pathway h3{ font-size:1.35rem; margin-bottom:20px; }
.pathway ul{ list-style:none; margin:0; padding:0; }
.pathway li{
    padding:13px 0; border-top:1px solid var(--rule); font-size:0.98rem; color:var(--text);
    display:flex; align-items:baseline; justify-content:space-between; gap:12px;
}
.pathway li:first-child{ border-top:none; }
.pathway li .tag{ font-family:var(--mono); font-size:0.68rem; color:var(--text-mute); white-space:nowrap; }

/* ---------- Why us — photo rows ---------- */
.why-row{ display:grid; grid-template-columns:1fr 1fr; gap:72px; align-items:center; margin-bottom:110px; }
.why-row:last-child{ margin-bottom:0; }
.why-row.reverse .why-media{ order:2; }
.why-row.reverse .why-copy{ order:1; }
.why-media{ position:relative; }
.why-media img{ width:100%; border-radius:3px; }
.why-media::after{ content:""; position:absolute; inset:-14px -14px auto auto; width:64%; height:64%; border:1px solid var(--gold); z-index:-1; border-radius:3px; }
.why-copy h3{ font-size:1.7rem; margin-bottom:16px; }
.why-copy ul{ list-style:none; margin:22px 0 0 0; padding:0; }
.why-copy li{ padding:10px 0 10px 30px; position:relative; color:var(--text); font-size:0.98rem; border-top:1px solid var(--rule); }
.why-copy li:first-child{ border-top:none; }
.why-copy li::before{ content:"—"; position:absolute; left:0; color:var(--gold); font-weight:600; }

/* ---------- Pricing ---------- */
.pricing{ background:var(--ink); color:var(--paper); }
.pricing .section-head h2{ color:var(--paper); }
.pricing .section-head p{ color:rgba(247,245,240,0.7); }
.pricing .eyebrow{ color:var(--gold-2); }
.price-table{ width:100%; border-collapse:collapse; margin-top:8px; }
.price-table th{
    text-align:left; font-family:var(--mono); font-size:0.72rem; letter-spacing:0.1em; text-transform:uppercase;
    color:rgba(247,245,240,0.55); font-weight:500; padding:0 0 16px 0; border-bottom:1px solid var(--rule-dark);
}
.price-table th:last-child, .price-table td:last-child{ text-align:right; }
.price-table td{ padding:18px 0; border-bottom:1px solid var(--rule-dark); font-size:1.02rem; }
.price-table td.fee{ font-family:var(--mono); font-size:1.15rem; color:var(--gold-2); font-weight:600; text-align:right; }
.price-note{
    margin-top:28px; padding:20px 24px; background:rgba(247,245,240,0.05); border:1px solid var(--rule-dark);
    border-radius:2px; display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap;
}
.price-note .fee{ font-family:var(--mono); color:var(--gold-2); font-weight:600; font-size:1.1rem; }
.terms-grid{ display:grid; grid-template-columns:1fr 1fr; gap:44px; margin-top:64px; }
.terms-grid h4{ color:var(--paper); font-size:1rem; font-family:var(--body); font-weight:600; margin-bottom:14px; letter-spacing:0.01em; }
.terms-grid ul{ list-style:none; margin:0; padding:0; }
.terms-grid li{ padding:8px 0 8px 20px; position:relative; font-size:0.92rem; color:rgba(247,245,240,0.72); }
.terms-grid li::before{ content:"·"; position:absolute; left:0; color:var(--gold); font-weight:700; font-size:1.3rem; line-height:0.8; }

/* ---------- Register CTA ---------- */
.register-cta{ background:var(--paper); }
.register-grid{ display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.register-card{
    background:var(--card); border:1px solid var(--rule); padding:48px 42px; border-radius:3px;
    transition:transform .25s ease, box-shadow .25s ease;
}
.register-card:hover{ transform:translateY(-4px); box-shadow:0 24px 48px -24px rgba(10,27,51,0.25); }
.register-card .eyebrow{ margin-bottom:20px; }
.register-card h3{ font-size:1.5rem; margin-bottom:14px; }
.register-card p{ margin-bottom:28px; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--ink); color:rgba(247,245,240,0.7); padding:80px 0 32px 0; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:48px; padding-bottom:56px; border-bottom:1px solid var(--rule-dark); }
.footer-brand .brand-word{ font-size:1.3rem; }
.footer-brand p{ color:rgba(247,245,240,0.6); margin-top:16px; max-width:34ch; }
.footer-tagline{ font-family:var(--display); font-style:italic; color:var(--gold-2); margin-top:20px; font-size:1.05rem; }
.footer-col h5{
    font-family:var(--mono); font-size:0.72rem; letter-spacing:0.1em; text-transform:uppercase; color:rgba(247,245,240,0.45);
    margin:0 0 18px 0; font-weight:500;
}
.footer-col a, .footer-col p{ display:block; color:rgba(247,245,240,0.78); font-size:0.94rem; margin-bottom:12px; }
.footer-col a:hover{ color:var(--gold-2); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:28px; font-size:0.82rem; color:rgba(247,245,240,0.45); flex-wrap:wrap; gap:12px; }

/* ---------- Scroll reveal ---------- */
/* Only hide .reveal content once JS confirms it's actually running (class
   set synchronously in <head>) — otherwise no-JS users would see nothing. */
.has-js .reveal{ opacity:0; transform:translateY(24px); }
.reveal{ transition:opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible{ opacity:1; transform:translateY(0); }

/* ---------- Responsive ---------- */
@media screen and (max-width:980px){
    .why-row{ grid-template-columns:1fr; gap:32px; }
    .why-row.reverse .why-media{ order:1; }
    .why-row.reverse .why-copy{ order:2; }
    .programmes-grid{ grid-template-columns:1fr; }
    .reach-grid{ grid-template-columns:1fr; }
    .terms-grid{ grid-template-columns:1fr; }
    .footer-grid{ grid-template-columns:1fr; gap:36px; }
    .register-grid{ grid-template-columns:1fr; }
    .connector-line{ flex-direction:column; gap:28px; }
    .connector-line::before{ left:50%; right:auto; top:6%; bottom:6%; width:1px; height:auto; background:repeating-linear-gradient(180deg, var(--blue) 0 8px, transparent 8px 16px); }
}
@media screen and (max-width:760px){
    .main-nav{ display:none; }
    .container{ padding:0 22px; }
    section{ padding:80px 0; }
    .hero-inner{ padding:150px 0 64px 0; }
    .hero-meta{ gap:24px; }
}

/* ==========================================================================
   Registration forms — tutor / parent
   ========================================================================== */
.reg-page{ padding:168px 0 100px 0; max-width:820px; margin:0 auto; }
.reg-page .eyebrow{ justify-content:flex-start; }
.reg-page h2{ font-size:clamp(1.8rem,3vw,2.4rem); margin-bottom:8px; }
.reg-lede{ color:var(--text-soft); margin-bottom:40px; max-width:60ch; }

.reg-notice{ border-radius:3px; padding:22px 26px; margin:0 0 32px 0; border:1px solid var(--rule); }
.reg-notice p{ color:var(--text); margin-bottom:10px; }
.reg-notice p:last-child{ margin-bottom:0; }
.reg-notice ul{ margin:10px 0; padding-left:20px; color:var(--text); }
.reg-notice-success{ background:#f3f7f0; border-color:#cfe0c4; }
.reg-notice-error{ background:#fbeceb; border-color:#eec3c1; }

.reg-hero{ display:flex; align-items:center; gap:28px; margin:0 0 40px 0; background:var(--card); border:1px solid var(--rule); border-radius:3px; padding:20px; }
.reg-hero img{ width:220px; height:auto; border-radius:3px; flex-shrink:0; }
.reg-hero-copy h3{ font-size:1.15rem; margin-bottom:8px; color:var(--ink); }
.reg-hero-copy p{ margin:0; font-size:0.92rem; }

.reg-form{ }
.reg-honeypot{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

.reg-section{ background:var(--card); border:1px solid var(--rule); border-radius:3px; padding:32px; margin-bottom:24px; }
.reg-section legend{ font-family:var(--display); font-weight:600; font-size:1.15rem; padding:0 8px; color:var(--ink); }

.reg-grid{ display:grid; grid-template-columns:1fr 1fr; gap:0 20px; }

.reg-form label{ display:block; font-weight:600; font-size:0.88rem; color:var(--text-soft); margin-bottom:4px; }
.reg-form input[type="text"], .reg-form input[type="email"], .reg-form input[type="tel"],
.reg-form input[type="date"], .reg-form input[type="file"], .reg-form textarea, .reg-form select{
    display:block; width:100%; box-sizing:border-box; margin:0 0 18px 0;
    padding:12px 14px; border:1px solid var(--rule); background:#fff; border-radius:2px;
    font-size:0.98rem; font-family:var(--body); color:var(--text);
}
.reg-form input:focus, .reg-form select:focus, .reg-form textarea:focus{
    outline:none; border-color:var(--blue); box-shadow:0 0 0 3px rgba(30,111,217,0.14);
}
.reg-form textarea{ min-height:84px; resize:vertical; }

.reg-label{ font-weight:600; font-size:0.88rem; color:var(--text-soft); margin:0 0 8px 0; }
.reg-checkbox-grid{ display:grid; grid-template-columns:1fr 1fr; gap:4px 20px; margin-bottom:18px; }
.reg-checkbox{ display:flex !important; align-items:center; gap:9px; font-weight:400 !important; color:var(--text) !important; margin-bottom:0 !important; }
.reg-checkbox input[type="checkbox"], .reg-checkbox input[type="radio"]{ width:auto; margin:0; }

.reg-hint{ color:var(--text-mute); font-size:0.85rem; margin:0 0 16px 0; }
.reg-fee-note{ font-weight:400; color:var(--text-mute); font-size:0.85em; }
.reg-fee-line{ margin:2px 0 18px 0; font-size:0.9rem; color:var(--text-soft); }
.reg-fee-amount{ font-weight:600; color:var(--blue); }
.reg-total-line{ font-size:1.15rem; font-weight:600; color:var(--ink); margin:0 0 18px 0; font-family:var(--mono); }
.reg-payment-options{ display:flex; flex-direction:column; gap:12px; margin-bottom:14px; }

.reg-student{ position:relative; }
.reg-student legend{ display:flex; align-items:center; gap:12px; }
.reg-remove-student{
    font-family:var(--body); font-size:0.75rem; font-weight:600; color:#b23b32;
    background:none; border:1px solid #b23b32; border-radius:2px; padding:4px 10px; cursor:pointer;
}
.reg-remove-student:hover{ background:#b23b32; color:#fff; }
.reg-add-student-row{ margin:-8px 0 24px 0; }

.reg-form input[type="submit"]{
    border:none; background:var(--gold); border-radius:2px; padding:16px 30px; color:var(--ink);
    font-weight:700; cursor:pointer; font-family:var(--body); font-size:0.98rem;
}
.reg-form input[type="submit"]:hover{ background:var(--gold-2); }

@media screen and (max-width:700px){
    .reg-grid, .reg-checkbox-grid{ grid-template-columns:1fr; }
    .reg-section{ padding:22px; }
    .reg-page{ padding:150px 20px 70px 20px; }
    .reg-hero{ flex-direction:column; align-items:flex-start; }
    .reg-hero img{ width:100%; }
}
