:root {
    --navy: #0c1a33;
    --navy-light: #162d52;
    --navy-deep: #081224;
    --gold: #c9a227;
    --gold-light: #e4c04a;
    --gold-soft: rgba(201, 162, 39, 0.15);
    --cream: #faf8f4;
    --white: #ffffff;
    --text: #1e1e26;
    --text-muted: #5a5a66;
    --border: #e8e2d6;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 4px 16px rgba(12, 26, 51, 0.06);
    --shadow: 0 12px 40px rgba(12, 26, 51, 0.1);
    --shadow-lg: 0 20px 60px rgba(12, 26, 51, 0.14);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', system-ui, sans-serif;
    --max: 1180px;
    --narrow: 780px;
    --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy-light); transition: color var(--transition); }
a:hover { color: var(--gold); }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 9999;
    padding: 0.75rem 1.25rem; background: var(--gold); color: var(--navy); font-weight: 600;
}
.skip-link:focus { left: 0; }

.container { width: min(var(--max), 92vw); margin: 0 auto; }
.narrow { width: min(var(--narrow), 92vw); margin: 0 auto; }

/* Header */
.site-header {
    background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
    color: var(--white);
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
    backdrop-filter: blur(8px);
}

.header-shell {
    width: min(var(--max), 92vw); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: 0.9rem 0;
}

.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: inherit; }

.brand-mark {
    width: 40px; height: 40px; border-radius: 10px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    border: 1px solid rgba(201, 162, 39, 0.4);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.brand-name {
    display: block; font-family: var(--font-display);
    font-size: 1.2rem; font-weight: 600; letter-spacing: 0.01em;
}

.brand-tag { display: block; font-size: 0.72rem; opacity: 0.78; max-width: 240px; line-height: 1.35; }

.site-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; }

.nav-link {
    color: rgba(255,255,255,0.88); text-decoration: none;
    font-size: 0.9rem; font-weight: 500; padding: 0.4rem 0;
    border-bottom: 2px solid transparent; transition: all var(--transition);
}
.nav-link:hover, .nav-link[aria-current="page"] {
    color: var(--gold-light); border-bottom-color: var(--gold);
}

.menu-btn {
    display: none; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.25); border-radius: 8px;
    width: 44px; height: 44px; cursor: pointer; position: relative;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
    display: block; width: 20px; height: 2px; background: var(--white);
    position: absolute; left: 50%; transform: translateX(-50%);
}
.menu-btn span { top: 50%; margin-top: -1px; }
.menu-btn span::before { content: ''; top: -6px; }
.menu-btn span::after { content: ''; top: 6px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.8rem 1.65rem; border-radius: 10px;
    font-weight: 600; font-size: 0.95rem; text-decoration: none;
    border: 2px solid transparent; cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy); border-color: var(--gold);
    box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}
.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.45); color: var(--navy);
}

.btn-ghost {
    background: transparent; color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--white); }

.section .btn-ghost, .page-head + .section .btn-ghost {
    color: var(--navy); border-color: var(--navy);
}
.section .btn-ghost:hover { background: var(--navy); color: var(--white); }

.btn-light {
    background: var(--white); color: var(--navy); border-color: var(--white);
    box-shadow: var(--shadow-sm);
}
.btn-light:hover { background: var(--cream); }

.text-link {
    font-weight: 600; text-decoration: none; color: var(--navy-light);
    display: inline-flex; align-items: center; gap: 0.35rem;
}
.text-link::after { content: '→'; transition: transform var(--transition); }
.text-link:hover::after { transform: translateX(3px); }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 45%, #1e3a66 100%);
    color: var(--white); padding: 4.5rem 0 5.5rem;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(201,162,39,0.12) 0%, transparent 55%);
    pointer-events: none;
}

.hero-grid {
    display: grid; grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem; align-items: center; position: relative;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.2vw, 3rem);
    line-height: 1.15; margin: 0.6rem 0 1.1rem;
    letter-spacing: -0.01em;
}

.hero-lead { font-size: 1.125rem; opacity: 0.92; margin-bottom: 2rem; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-media {
    position: relative; margin: 0;
}
.hero-media::after {
    content: ''; position: absolute; inset: -8px;
    border: 2px solid rgba(201, 162, 39, 0.35);
    border-radius: calc(var(--radius-lg) + 4px); pointer-events: none;
}
.hero-media img {
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3; object-fit: cover; width: 100%;
}

.kicker {
    text-transform: uppercase; letter-spacing: 0.14em;
    font-size: 0.76rem; font-weight: 700; color: var(--gold); margin: 0;
}
.hero .kicker { color: var(--gold-light); }

/* Page head + banner */
.page-head {
    background: linear-gradient(160deg, var(--navy-deep), var(--navy-light));
    color: var(--white); padding: 3.5rem 0 3rem; text-align: center;
    position: relative;
}
.page-head::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.page-head h1 {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.8vw, 2.65rem);
    margin: 0.5rem 0; line-height: 1.2;
}

.subtitle { font-size: 1.1rem; opacity: 0.92; max-width: 660px; margin: 0 auto; line-height: 1.65; }

.page-banner {
    margin: 0; max-height: 340px; overflow: hidden;
    border-bottom: 3px solid var(--gold-soft);
}
.page-banner img {
    width: 100%; max-height: 340px; object-fit: cover;
    object-position: center 40%;
}

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--white); }
.section-tight { padding: 3rem 0; }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-head h2 {
    font-family: var(--font-display); font-size: clamp(1.65rem, 3vw, 2.15rem);
    color: var(--navy); margin: 0 0 0.85rem;
}
.section-head p { color: var(--text-muted); margin: 0; }

.section-note {
    text-align: center; max-width: 680px; margin: 2rem auto 0;
    color: var(--text-muted); font-size: 0.98rem;
}

/* Feature cards with images */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.75rem;
}

.feature-card {
    background: var(--white); border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    overflow: hidden; transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.section-alt .feature-card { background: var(--cream); }

.feature-card img {
    width: 100%; aspect-ratio: 16/10; object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.feature-card-body { padding: 1.5rem 1.65rem 1.75rem; }

.feature-card h3 {
    font-family: var(--font-display); color: var(--navy);
    margin: 0 0 0.65rem; font-size: 1.18rem;
}

.feature-card p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }

/* Course cards */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--white); border-radius: var(--radius-lg);
    overflow: hidden; border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.course-card img { aspect-ratio: 400/260; object-fit: cover; width: 100%; }
.course-card-body { padding: 1.35rem 1.6rem 1.65rem; }

.course-card h3 {
    font-family: var(--font-display); margin: 0 0 0.55rem; font-size: 1.2rem;
}
.course-card h3 a { text-decoration: none; color: var(--navy); }
.course-card h3 a:hover { color: var(--gold); }

.course-card p { color: var(--text-muted); margin: 0 0 1rem; font-size: 0.97rem; }

/* Split sections */
.split-section {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 3.5rem; align-items: center;
}
.split-section.reverse figure { order: 2; }
.split-section.reverse > div { order: 1; }

.photo-frame {
    margin: 0; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); border: 1px solid var(--border);
}
.photo-frame img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }

/* Portrait crops — keep faces visible when aspect-ratio clips the photo */
.img-focus-face { object-position: center 12%; }

.course-card img.img-focus-face { object-position: center 8%; }

.split-section h2 {
    font-family: var(--font-display); color: var(--navy);
    font-size: clamp(1.5rem, 2.5vw, 1.85rem); margin-top: 0;
}

.split-section p { color: var(--text); }

/* Visual strip — row of photos */
.visual-strip {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
    margin-top: 2rem;
}
.visual-strip figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.visual-strip img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Expect grid */
.expect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.expect-item {
    background: var(--white); padding: 2rem;
    border-radius: var(--radius); border-left: 4px solid var(--gold);
    box-shadow: var(--shadow-sm);
}
.expect-item h3 { color: var(--navy); margin-top: 0; font-family: var(--font-display); }
.expect-item ul { padding-left: 1.25rem; margin-bottom: 0; }
.expect-item li { margin-bottom: 0.45rem; color: var(--text-muted); }

/* CTA band */
.cta-band {
    background: linear-gradient(135deg, var(--navy-deep), var(--navy-light));
    color: var(--white); padding: 4rem 0;
    border-top: 3px solid var(--gold);
}
.cta-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; flex-wrap: wrap;
}
.cta-inner h2 { font-family: var(--font-display); margin: 0 0 0.55rem; font-size: 1.75rem; }
.cta-inner p { margin: 0; opacity: 0.9; max-width: 580px; }

.page-tail { padding-bottom: 4.5rem; }

/* Programme list */
.programme-list { display: flex; flex-direction: column; gap: 3.5rem; }

.programme-row {
    display: grid; grid-template-columns: 1.15fr 1fr;
    gap: 2.75rem; align-items: center;
    padding-bottom: 3.5rem; border-bottom: 1px solid var(--border);
}
.programme-row:last-child { border-bottom: none; padding-bottom: 0; }
.programme-row.reverse img { order: 2; }
.programme-row.reverse .programme-info { order: 1; }

.programme-row img {
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
    object-fit: cover; width: 100%; aspect-ratio: 3/2;
}

.programme-tag {
    text-transform: uppercase; letter-spacing: 0.12em;
    font-size: 0.72rem; font-weight: 700; color: var(--gold); margin: 0 0 0.5rem;
}

.programme-info h2 {
    font-family: var(--font-display); font-size: 1.7rem; margin: 0 0 0.75rem;
}
.programme-info h2 a { color: var(--navy); text-decoration: none; }
.programme-info h2 a:hover { color: var(--gold); }

.programme-meta {
    list-style: none; padding: 0; margin: 1rem 0 1.35rem;
    color: var(--text-muted); font-size: 0.95rem;
}
.programme-meta li { padding: 0.25rem 0; }
.programme-meta li::before { content: "✓ "; color: var(--gold); font-weight: 700; }

/* Module panel */
.module-panel {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}
.module-panel.reverse figure { order: 2; }
.module-panel.reverse .module-list-wrap { order: 1; }

.module-list {
    padding-left: 1.25rem; margin: 0;
}
.module-list li {
    margin-bottom: 0.9rem; padding-left: 0.25rem;
    color: var(--text);
}

/* Enrolment panel */
.enrol-panel {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem;
    align-items: center; background: var(--white);
    padding: 2.5rem; border-radius: var(--radius-lg);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.enrol-panel img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* Contact */
.contact-layout {
    display: grid; grid-template-columns: 1fr 1.15fr;
    gap: 2.5rem; padding: 3rem 0;
}

.contact-panel {
    background: var(--white); padding: 2rem;
    border-radius: var(--radius-lg); border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.contact-panel address { font-style: normal; }
.contact-panel p { margin: 0.45rem 0; }
.contact-photo { margin: 1.25rem 0 0; border-radius: var(--radius); overflow: hidden; }
.contact-photo img { width: 100%; aspect-ratio: 16/7; object-fit: cover; }

.contact-form {
    background: var(--white); padding: 2.25rem;
    border-radius: var(--radius-lg); border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.field { margin-bottom: 1.3rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.4rem; color: var(--navy); }
.field-note { font-weight: 400; color: var(--text-muted); font-size: 0.88rem; }

.field input, .field textarea {
    width: 100%; padding: 0.75rem 0.95rem;
    border: 1px solid var(--border); border-radius: 10px;
    font: inherit; background: var(--cream);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.form-alert {
    background: #fdecea; border: 1px solid #f5c6c0;
    color: #7f1d1d; padding: 1rem; border-radius: 10px; margin-bottom: 1rem;
}

.form-success {
    background: var(--white); padding: 2.25rem;
    border-radius: var(--radius-lg); border: 2px solid var(--gold);
    box-shadow: var(--shadow-sm);
}
.form-success h2 { font-family: var(--font-display); color: var(--navy); margin-top: 0; }

.map-section h2 { font-family: var(--font-display); color: var(--navy); font-size: 1.5rem; }
.map-note { color: var(--text-muted); margin-bottom: 1rem; }

.map-block {
    border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border); background: var(--white);
    box-shadow: var(--shadow-sm); min-height: 360px;
}
.map-embed { width: 100%; height: 400px; border: 0; display: block; }

/* Legal */
.legal-body h2 {
    font-family: var(--font-display); color: var(--navy);
    font-size: 1.35rem; margin-top: 2.25rem;
}
.legal-body h3 { color: var(--navy-light); margin-top: 1.5rem; }
.legal-body code {
    background: var(--white); padding: 0.15rem 0.45rem;
    border-radius: 4px; font-size: 0.9em; border: 1px solid var(--border);
}

/* Footer */
.site-footer {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: rgba(255,255,255,0.88); padding: 3.5rem 0 0;
    border-top: 3px solid rgba(201, 162, 39, 0.3);
}

.footer-grid {
    width: min(var(--max), 92vw); margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 2.25rem; padding-bottom: 2.25rem;
}

.footer-brand {
    font-family: var(--font-display); font-size: 1.25rem;
    color: var(--gold-light); margin: 0 0 0.85rem;
}

.footer-title {
    font-size: 0.82rem; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--gold); margin: 0 0 1rem;
}

.footer-block address { font-style: normal; }
.footer-block p { margin: 0.4rem 0; font-size: 0.94rem; line-height: 1.55; }
.footer-block a { color: rgba(255,255,255,0.92); }
.footer-block a:hover { color: var(--gold-light); }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { text-decoration: none; font-size: 0.94rem; }

.footer-base {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center; padding: 1.35rem;
    font-size: 0.84rem; opacity: 0.72;
}

/* Cookie banner */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--white); border-top: 3px solid var(--gold);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.12); z-index: 200; padding: 1.35rem;
}
.cookie-inner { width: min(var(--max), 92vw); margin: 0 auto; }
.cookie-banner h2 {
    font-family: var(--font-display); font-size: 1.15rem;
    color: var(--navy); margin: 0 0 0.5rem;
}
.cookie-banner p { margin: 0 0 1rem; font-size: 0.94rem; color: var(--text-muted); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Responsive */
@media (max-width: 900px) {
    .hero-grid, .split-section, .expect-grid, .contact-layout,
    .programme-row, .module-panel, .enrol-panel, .visual-strip {
        grid-template-columns: 1fr;
    }
    .visual-strip { grid-template-columns: 1fr 1fr; }
    .split-section.reverse figure, .programme-row.reverse img,
    .programme-row.reverse .programme-info, .module-panel.reverse figure,
    .module-panel.reverse .module-list-wrap { order: unset; }
    .brand-tag { display: none; }
    .menu-btn { display: block; }
    .site-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--navy-light); flex-direction: column;
        padding: 1rem 1.5rem 1.5rem; border-top: 1px solid rgba(255,255,255,0.1);
    }
    .site-nav.open { display: flex; }
    .site-header { position: relative; }
}

@media (max-width: 600px) {
    .hero { padding: 2.75rem 0 3.25rem; }
    .section { padding: 3rem 0; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .visual-strip { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
