/* ================================================================
   HILLCREST — hillcrest.fr
   Premium single-page site for French student exchange programs
   ================================================================ */

/* ---------- 1. Custom Properties ---------- */
:root {
    --navy:          #1B2A4A;
    --navy-deep:     #111d35;
    --navy-mid:      #243658;
    --gold:          #C8963E;
    --gold-light:    #d4a85a;
    --gold-muted:    rgba(200, 150, 62, 0.12);
    --teal:          #2A9D8F;
    --teal-muted:    rgba(42, 157, 143, 0.08);
    --parchment:     #F8F6F2;
    --parchment-dim: #f0ece5;
    --white:         #FFFFFF;
    --text:          #1A1A1A;
    --text-2:        #5A6377;
    --text-light:    rgba(255,255,255,0.85);
    --text-muted:    rgba(255,255,255,0.55);
    --border:        #e0ddd6;

    --ff-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --ff-body:    'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;

    --header-h:  72px;
    --max-w:     1140px;
    --gutter:    clamp(1.25rem, 4vw, 2.5rem);
    --section-y: clamp(4.5rem, 9vw, 7.5rem);

    --r-sm:   6px;
    --r-md:   12px;
    --r-lg:   20px;
    --r-pill: 50px;

    --shadow-s: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-m: 0 4px 24px rgba(0,0,0,0.07);
    --shadow-l: 0 12px 40px rgba(0,0,0,0.10);
    --shadow-gold: 0 4px 18px rgba(200,150,62,0.30);

    --ease:  cubic-bezier(.25,.46,.45,.94);
    --speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--ff-body);
    font-size: 1rem;
    line-height: 1.72;
    color: var(--text);
    background: var(--parchment);
    overflow-x: hidden;
}

img    { max-width:100%; height:auto; display:block; }
a      { color:inherit; text-decoration:none; }
ul,ol  { list-style:none; }
fieldset { border:none; }
button { cursor:pointer; border:none; background:none; font:inherit; }
input,select,textarea { font:inherit; }

/* ---------- 3. Typography ---------- */
h1,h2,h3,h4 {
    font-family: var(--ff-heading);
    font-weight: 600;
    line-height: 1.18;
    color: var(--navy);
}
h1 { font-size: clamp(2.25rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.55rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }

/* ---------- 4. Layout ---------- */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; }

.section-header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}
.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: var(--gold);
    margin: .8rem auto 0;
    border-radius: 2px;
}
.section-title--light { color: var(--white); }
.section-title--light::after { background: var(--gold); }

.section-intro {
    max-width: 620px;
    margin: 0 auto;
    color: var(--text-2);
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    line-height: 1.82;
}

/* ---------- 5. Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 1.8rem;
    border-radius: var(--r-pill);
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .025em;
    transition: all var(--speed) var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
    border: 2px solid var(--gold);
}
.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,.35);
}
.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,.08);
    transform: translateY(-2px);
}

/* ---------- 6. Header ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    z-index: 100;
    transition: background var(--speed) var(--ease),
                box-shadow var(--speed) var(--ease);
}
.site-header.scrolled {
    background: rgba(27,42,74,.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 24px rgba(0,0,0,.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    z-index: 101;
    display: flex;
    align-items: center;
    gap: .65rem;
}
.logo-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.logo-text {
    font-family: var(--ff-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .22em;
    color: var(--white);
    position: relative;
}
.logo-text::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: var(--gold);
    margin-top: 3px;
    opacity: .55;
}

/* Desktop nav (hidden on mobile, visible from 768px+) */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-links a {
    color: rgba(255,255,255,.75);
    font-size: .88rem;
    font-weight: 500;
    letter-spacing: .02em;
    position: relative;
    transition: color var(--speed);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--speed) var(--ease);
}
.nav-links a:hover       { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.btn-cta-nav {
    display: inline-flex;
    align-items: center;
    padding: .5rem 1.15rem;
    background: var(--gold);
    color: var(--navy);
    font-size: .82rem;
    font-weight: 600;
    border-radius: var(--r-pill);
    letter-spacing: .015em;
    transition: all var(--speed) var(--ease);
}
.btn-cta-nav:hover {
    background: var(--gold-light);
    box-shadow: var(--shadow-gold);
}

.menu-close { display: none; }

/* ---- Mobile nav ---- */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--white);
    padding: .4rem;
    z-index: 101;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 99;
    pointer-events: none;
    transition: background .4s var(--ease);
}
.nav-overlay.active {
    background: rgba(0,0,0,.45);
    pointer-events: all;
}

/* ---------- 7. Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 25% -5%, rgba(200,150,62,.09) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 110%, rgba(42,157,143,.06) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 50%, var(--navy-mid) 0%, var(--navy) 55%, var(--navy-deep) 100%);
}

.hero-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px;
    opacity: .45;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    padding-top: calc(var(--header-h) + 1.5rem);
    padding-bottom: 5rem;
}

.hero-label {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.6rem;
}

.hero-title {
    color: var(--white);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 1.3rem;
    text-shadow: 0 2px 40px rgba(0,0,0,.18);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.7vw, 1.12rem);
    color: var(--text-light);
    line-height: 1.78;
    margin-bottom: 2.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.35);
    transition: color var(--speed);
    animation: bounce 2.5s var(--ease) infinite;
}
.hero-scroll:hover { color: var(--gold); }

@keyframes bounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%     { transform: translateX(-50%) translateY(9px); }
}

/* ---------- 8. Trust Bar ---------- */
.trust-bar {
    background: var(--white);
    border-top: 3px solid var(--gold);
    padding: 1.35rem 0;
}
.trust-bar-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem .75rem;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .82rem;
    font-weight: 500;
    color: var(--navy);
}
.trust-item svg { flex-shrink: 0; color: var(--gold); }

/* ---------- 9. Programmes ---------- */
.section--programmes { background: var(--parchment); }

.programmes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.programme-card {
    background: var(--white);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-s);
    transition: transform var(--speed) var(--ease),
                box-shadow var(--speed) var(--ease);
}
.programme-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-l);
}

.programme-card-image {
    height: 200px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1rem;
}
.england-bg {
    background:
        linear-gradient(to bottom, rgba(27,42,74,0) 30%, rgba(27,42,74,.6) 100%),
        url('assets/images/lycee-uk.jpg') center 10%/ cover no-repeat;
}
.usa-bg {
    background:
        linear-gradient(to bottom, rgba(27,42,74,0) 30%, rgba(27,42,74,.6) 100%),
        url('assets/images/lycee-us.jpg') center 10% / cover no-repeat;
}
.programme-flag {
    font-size: 2rem;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
}

.programme-card-body { padding: 1.75rem; }

.programme-card-title {
    font-size: 1.4rem;
    margin-bottom: .3rem;
}
.programme-card-subtitle {
    font-size: .88rem;
    color: var(--text-2);
    margin-bottom: 1rem;
}

.programme-durations {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: 1.1rem;
}
.pill {
    display: inline-block;
    padding: .3rem .85rem;
    border-radius: var(--r-pill);
    background: var(--teal-muted);
    color: var(--teal);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .01em;
}

.programme-card-desc {
    font-size: .92rem;
    color: var(--text-2);
    line-height: 1.72;
    margin-bottom: 1.25rem;
}

.programme-card-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--gold);
    transition: gap var(--speed) var(--ease), color var(--speed);
}
.programme-card-link:hover {
    color: var(--gold-light);
    gap: .7rem;
}

/* ---------- 10. Pourquoi / Benefits ---------- */
.section--pourquoi { background: var(--white); }

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.benefit-card {
    padding: 1.75rem;
    border-radius: var(--r-md);
    background: var(--parchment);
    transition: transform var(--speed) var(--ease),
                box-shadow var(--speed) var(--ease);
}
.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-m);
}

.benefit-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gold-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--gold);
}

.benefit-card h3 {
    margin-bottom: .45rem;
}
.benefit-card p {
    font-size: .9rem;
    color: var(--text-2);
    line-height: 1.72;
}

/* ---------- 11. Slogan ---------- */
.section--slogan {
    padding: 6rem 1.5rem;
    background:
        radial-gradient(ellipse at 20% 60%, rgba(200,150,62,.10) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 40%, rgba(200,150,62,.07) 0%, transparent 55%),
        var(--navy);
    text-align: center;
}

.slogan-inner {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
}

.slogan-eyebrow {
    font-family: var(--ff-body);
    font-size: .8rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
}

.slogan-headline {
    font-family: var(--ff-heading);
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.18;
    color: var(--white);
    margin: 0;
}

.slogan-headline em {
    font-style: italic;
    color: var(--gold);
}

.slogan-ornament {
    display: block;
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: .7;
}

.slogan-cta {
    margin-top: .4rem;
}

/* ---------- 12. Processus / Steps ---------- */
.section--processus { background: var(--parchment); }

.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.step {
    display: flex;
    gap: 1.25rem;
    padding-bottom: 2.5rem;
    position: relative;
}
.step:last-child { padding-bottom: 0; }

/* Vertical connecting line (mobile) */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 23px;
    top: 52px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), rgba(200,150,62,.15));
    border-radius: 1px;
}

.step-marker {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 3px 12px rgba(200,150,62,.3);
}
.step-marker span {
    font-family: var(--ff-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
}

.step-body { padding-top: .25rem; }
.step-body h3 { margin-bottom: .3rem; }
.step-body p  {
    font-size: .9rem;
    color: var(--text-2);
    line-height: 1.72;
}

/* ---------- 13. Contact ---------- */
.section--contact { background: var(--white); }

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

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; position: relative; }

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.form-group label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: .35rem;
}
.label-hint {
    font-weight: 400;
    color: var(--border);
    font-size: .78rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: .7rem 0;
    border: none;
    border-bottom: 2px solid var(--border);
    background: transparent;
    color: var(--text);
    border-radius: 0;
    transition: border-color var(--speed);
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-bottom-color: var(--gold);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235A6377' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 1.5rem;
    cursor: pointer;
}

.form-group textarea {
    width: 100%;
    padding: .75rem .85rem;
    border: 2px solid var(--border);
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--text);
    resize: vertical;
    min-height: 100px;
    transition: border-color var(--speed);
}
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-fieldset { margin: 0; padding: 0; }
.form-fieldset legend {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: .55rem;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.radio-pill {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: .45rem 1rem;
    border-radius: var(--r-pill);
    border: 1.5px solid var(--border);
    font-size: .88rem;
    font-weight: 500;
    color: var(--text-2);
    transition: all var(--speed) var(--ease);
}
.radio-pill input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.radio-pill:has(input:checked) {
    border-color: var(--gold);
    background: var(--gold-muted);
    color: var(--navy);
    font-weight: 600;
}
.radio-pill:hover {
    border-color: var(--gold);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: .95rem;
    margin-top: .5rem;
}

.form-result {
    display: none;
    padding: .875rem 1rem;
    border-radius: var(--radius);
    font-size: .9rem;
    margin-top: 1rem;
}
.form-result--error {
    display: block;
    background: #fff4f4;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Success overlay — covers the form on send */
@keyframes formSuccessFadeIn {
    from { opacity: 0; transform: scale(.97); }
    to   { opacity: 1; transform: scale(1); }
}
.form-success {
    display: none;
    position: absolute;
    inset: 0;
    background: var(--white);
    border-radius: var(--r-sm);
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    z-index: 2;
}
.form-success.is-visible {
    display: flex;
    animation: formSuccessFadeIn .35s ease both;
}
.form-success-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 28rem;
}
.form-success-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--gold-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}
.form-success h3 {
    font-size: 1.3rem;
    color: var(--navy);
    margin: 0;
}
.form-success p {
    color: var(--text-2);
    font-size: .95rem;
    line-height: 1.55;
    margin: 0;
}

/* Contact aside */
.contact-info-card {
    background: var(--parchment);
    border-radius: var(--r-md);
    padding: 2rem;
}
.contact-info-card h3 {
    margin-bottom: 1.25rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: 1rem;
    font-size: .92rem;
    color: var(--text-2);
}
.contact-detail:last-child { margin-bottom: 0; }
.contact-detail svg { flex-shrink: 0; color: var(--gold); }
.contact-detail a {
    color: var(--navy);
    transition: color var(--speed);
}
.contact-detail a:hover { color: var(--gold); }

.contact-reassurance {
    margin-top: 1.5rem;
    padding: 1.15rem 1.25rem;
    background: var(--teal-muted);
    border-radius: var(--r-sm);
    border-left: 3px solid var(--teal);
}
.contact-reassurance p {
    font-size: .88rem;
    color: var(--text-2);
    line-height: 1.65;
}

/* ---------- 14. Footer ---------- */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,.65);
    padding-top: clamp(3rem, 6vw, 4.5rem);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(200,150,62,.18);
}

.footer-logo {
    font-family: var(--ff-heading);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .2em;
    color: var(--white);
    display: inline-block;
    margin-bottom: .65rem;
}
.footer-col p {
    font-size: .88rem;
    line-height: 1.72;
}
.footer-col h4 {
    font-family: var(--ff-body);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255,255,255,.9);
    margin-bottom: .85rem;
}
.footer-col ul li { margin-bottom: .45rem; }
.footer-col ul a {
    font-size: .88rem;
    transition: color var(--speed);
}
.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
    padding: 1.25rem 0;
}
.footer-bottom p {
    font-size: .78rem;
    text-align: center;
    color: rgba(255,255,255,.35);
}

/* ---------- 15. Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s var(--ease),
                transform .65s var(--ease);
    transition-delay: var(--delay, 0s);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 16. Responsive ---------- */

/* -- Tablet (≥ 640px) -- */
@media (min-width: 640px) {
    .trust-bar-inner   { grid-template-columns: repeat(4, 1fr); gap: 1rem; justify-items: center; }
    .benefits-grid     { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr 1fr; }
}

/* -- Desktop (≥ 768px) -- */
@media (min-width: 768px) {
    .menu-toggle { display: none !important; }
    .menu-close  { display: none !important; }

    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: none;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 2rem;
        box-shadow: none;
        transform: none;
    }

    .programmes-grid { grid-template-columns: repeat(2, 1fr); }

    .contact-grid {
        grid-template-columns: 1.25fr .75fr;
        gap: 3.5rem;
        align-items: start;
    }
    .btn-submit { width: auto; }

    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }

    /* Process — horizontal timeline */
    .steps {
        flex-direction: row;
        gap: 0;
        position: relative;
    }
    /* Horizontal connector line behind circles */
    .steps::before {
        content: '';
        position: absolute;
        top: 24px;
        left: calc(12.5% + 24px);
        right: calc(12.5% + 24px);
        height: 2px;
        background: rgba(200,150,62,.25);
        border-radius: 1px;
    }
    .step {
        flex: 1;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding-bottom: 0;
    }
    .step:not(:last-child)::after { display: none; }
}

/* -- Wide (≥ 1024px) -- */
@media (min-width: 1024px) {
    .benefits-grid     { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
    .programme-card-image { height: 240px; }
}

/* -- Mobile only (< 768px) -- */
@media (max-width: 767px) {
    .menu-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 82%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        padding: 5rem 2rem 2rem;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        box-shadow: -8px 0 30px rgba(0,0,0,.12);
        z-index: 100;
        transform: translateX(100%);
        transition: transform .4s var(--ease);
    }
    .nav-menu.open {
        transform: translateX(0);
    }

    .menu-close {
        display: block;
        position: absolute;
        top: 1.25rem;
        right: 1.25rem;
        color: var(--navy);
        padding: .25rem;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    .nav-links a {
        color: var(--navy);
        font-size: 1.05rem;
    }
    .nav-links a::after { display: none; }

    .btn-cta-nav {
        align-self: flex-start;
    }
}
