/* ── RESET & BASE ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --ivory:      #F7F3EA;
    --sage:       #7B8B6F;
    --olive:      #3F4B38;
    --terracotta: #B86F52;
    --sand:       #DCCCB5;
    --charcoal:   #2F302C;
    --white:      #ffffff;
    --font-h:     'Playfair Display', Georgia, serif;
    --font-b:     'Inter', system-ui, sans-serif;
    --max:        1200px;
    --pad:        5rem 1.5rem;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-b);
    color: var(--charcoal);
    background: var(--ivory);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-h); line-height: 1.2; color: var(--olive); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ── BUTTONS ────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 4px;
    font-family: var(--font-b);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}
.btn-primary { background: var(--olive); color: var(--white); border-color: var(--olive); }
.btn-primary:hover { background: var(--charcoal); border-color: var(--charcoal); }
.btn-outline { background: transparent; color: var(--terracotta); border-color: var(--terracotta); }
.btn-outline:hover { background: var(--terracotta); color: var(--white); }
.btn-white { background: var(--white); color: var(--olive); border-color: var(--white); }
.btn-white:hover { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost { background: transparent; color: var(--sand); border-color: rgba(220,204,181,0.5); }
.btn-ghost:hover { background: var(--sand); color: var(--olive); border-color: var(--sand); }
.btn-sage { background: var(--olive); color: var(--white); border-color: var(--olive); }
.btn-sage:hover { background: var(--charcoal); border-color: var(--charcoal); }

/* ── LABELS & SECTION HEADS ─────────────────── */
.label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 0.75rem;
}
.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 0.75rem; }
.section-head p { color: var(--charcoal); opacity: 0.72; max-width: 540px; margin: 0 auto; font-size: 1rem; line-height: 1.7; }

/* ── NAV ───────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: var(--ivory);
    border-bottom: 1px solid rgba(63,75,56,0.1);
    padding: 0.9rem 0;
    transition: box-shadow 0.3s ease;
}
.nav-inner {
    max-width: var(--max); margin: 0 auto; padding: 0 1.5rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-logo img { height: 54px; width: auto; }
.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links a {
    text-decoration: none; color: var(--olive);
    font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02em;
    transition: color 0.2s; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
    height: 2px; background: var(--terracotta);
    transform: scaleX(0); transition: transform 0.2s; transform-origin: left;
}
.nav-links a:hover { color: var(--sage); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--olive); font-weight: 600; }
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--olive); transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    display: none; position: fixed; inset: 0;
    background: var(--ivory); z-index: 101;
    padding: 0 2rem 2rem;
    flex-direction: column; gap: 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav-header {
    display: flex; align-items: center;
    padding: 0.9rem 0; border-bottom: 1px solid rgba(63,75,56,0.1);
}
.mobile-nav-header .nav-logo img { height: 54px; }
.mobile-nav > a:not(.btn) {
    text-decoration: none; color: var(--olive);
    font-family: var(--font-h); font-size: 1.75rem;
    padding: 1.1rem 0;
}
.mobile-nav .btn { margin-top: 1.5rem; width: fit-content; }
.mobile-close {
    margin-left: auto; flex-shrink: 0;
    background: none; border: none; font-size: 1.6rem;
    cursor: pointer; color: var(--olive); line-height: 1; padding: 0.25rem;
}

/* ── PAGE HERO (inner pages) ─────────────────── */
.page-hero {
    background: var(--olive);
    padding: 5rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute; bottom: -1px; left: 0; right: 0;
    height: 60px;
    background: var(--ivory);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero-inner {
    max-width: var(--max); margin: 0 auto;
    position: relative; z-index: 1;
}
.page-hero .breadcrumb {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.78rem; color: rgba(255,255,255,0.5);
    margin-bottom: 1.5rem; letter-spacing: 0.04em;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.page-hero .breadcrumb a:hover { color: var(--sand); }
.page-hero .breadcrumb span { color: var(--sand); }
.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--ivory); margin-bottom: 1rem; max-width: 680px;
}
.page-hero h1 em { font-style: italic; color: var(--sand); }
.page-hero p {
    color: rgba(255,255,255,0.65); font-size: 1.05rem;
    max-width: 560px; line-height: 1.75;
}

/* ── TRUST STRIP ───────────────────────────── */
.trust { background: var(--olive); padding: 2.5rem 1.5rem; }
.trust-grid {
    max-width: var(--max); margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr);
    text-align: center;
}
.trust-item {
    padding: 1.25rem 1rem;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.trust-item:last-child { border-right: none; }
.trust-num {
    display: block; font-family: var(--font-h);
    font-size: 2rem; font-weight: 700;
    color: var(--sand); line-height: 1; margin-bottom: 0.4rem;
}
.trust-lbl { font-size: 0.78rem; color: rgba(255,255,255,0.65); letter-spacing: 0.04em; }

/* ── WHY CARDS ─────────────────────────────── */
.why { padding: var(--pad); background: var(--sand); }
.why-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; max-width: var(--max); margin: 0 auto;
}
.why-card {
    background: var(--ivory); border-radius: 14px; padding: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(63,75,56,0.1); }
.why-icon {
    width: 48px; height: 48px; background: var(--sage);
    border-radius: 12px; display: flex; align-items: center;
    justify-content: center; margin-bottom: 1.25rem;
}
.why-icon svg { width: 22px; height: 22px; stroke: white; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.why-card h3 { font-size: 1.05rem; margin-bottom: 0.55rem; }
.why-card p { font-size: 0.875rem; opacity: 0.78; line-height: 1.65; }

/* ── PROGRAMME CARDS ───────────────────────── */
.programmes { padding: var(--pad); background: var(--ivory); }
.prog-grid {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem; max-width: var(--max); margin: 0 auto;
}
.prog-card {
    background: var(--white); border-radius: 16px;
    overflow: hidden; border: 1px solid rgba(63,75,56,0.08);
    display: flex; flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.prog-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(63,75,56,0.12); }
.prog-top {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 3px solid var(--c, var(--sage));
}
.prog-emoji { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.prog-card h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.prog-age { font-size: 0.78rem; color: var(--c, var(--sage)); font-weight: 600; letter-spacing: 0.02em; }
.prog-body { padding: 1rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.prog-body p { font-size: 0.85rem; opacity: 0.78; line-height: 1.6; flex: 1; }
.prog-link {
    font-size: 0.78rem; font-weight: 600; color: var(--c, var(--sage));
    text-decoration: none; letter-spacing: 0.05em; text-transform: uppercase;
}
.prog-link::after { content: ' →'; }

/* ── GALLERY ───────────────────────────────── */
.gallery { padding: var(--pad); background: var(--sand); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 300px 300px;
    gap: 0.75rem;
    max-width: var(--max); margin: 0 auto 2rem;
}
.g-item { overflow: hidden; border-radius: 12px; }
.g-item:first-child { grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.g-item:hover img { transform: scale(1.05); }
.gallery-cta { text-align: center; }

/* ── TESTIMONIALS ──────────────────────────── */
.testimonials { padding: var(--pad); background: var(--ivory); }
.testi-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem; max-width: var(--max); margin: 0 auto;
}
.testi-card {
    background: var(--white); border-radius: 16px; padding: 2rem;
    border-left: 4px solid var(--sage);
    box-shadow: 0 2px 16px rgba(63,75,56,0.06);
}
.testi-q { font-family: var(--font-h); font-size: 3rem; color: var(--sage); line-height: 0.6; margin-bottom: 1rem; }
.testi-card p { font-size: 0.92rem; line-height: 1.78; font-style: italic; margin-bottom: 1.5rem; }
.testi-name { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--olive); }
.testi-name span { color: var(--sage); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ── ADMISSIONS CTA ────────────────────────── */
.admissions-cta { padding: var(--pad); background: var(--olive); text-align: center; }
.admissions-cta .label { color: var(--sand); }
.admissions-cta h2 { color: var(--ivory); font-size: clamp(1.8rem, 3vw, 2.7rem); margin-bottom: 1rem; }
.admissions-cta > .container > p { color: rgba(255,255,255,0.65); max-width: 540px; margin: 0 auto 3rem; line-height: 1.75; }
.steps {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 2rem; max-width: 780px; margin: 0 auto 3rem;
}
.step { text-align: center; position: relative; }
.step-n {
    width: 56px; height: 56px; border-radius: 50%;
    border: 2px solid rgba(220,204,181,0.5);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-h); font-size: 1.25rem;
    color: var(--sand); margin: 0 auto 1rem;
}
.step h4 { color: var(--ivory); font-size: 1rem; margin-bottom: 0.35rem; }
.step p { color: rgba(255,255,255,0.55); font-size: 0.82rem; line-height: 1.5; }
.step-line {
    position: absolute; top: 28px; left: calc(50% + 28px);
    width: calc(100% - 56px); height: 1px;
    background: rgba(255,255,255,0.15);
}
.step:last-child .step-line { display: none; }
.adm-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ────────────────────────────────── */
.footer { background: var(--charcoal); padding: 4rem 1.5rem 2rem; }
.footer-grid {
    max-width: var(--max); margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem; margin-bottom: 3rem;
}
.footer-brand img { height: 56px; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: 0.75; }
.footer-tagline { font-family: var(--font-h); font-style: italic; color: var(--sand) !important; font-size: 0.95rem; margin-bottom: 0.75rem; display: block; }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 0.875rem; line-height: 1.7; margin-bottom: 1.25rem; }
.socials { display: flex; gap: 0.6rem; }
.s-link {
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: background 0.2s;
    font-size: 0.85rem; color: rgba(255,255,255,0.55);
}
.s-link:hover { background: var(--sage); color: var(--white); }
.footer-col h4 { color: var(--ivory); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.25rem; font-family: var(--font-b); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--sand); }
.f-contact { display: flex; gap: 0.75rem; margin-bottom: 1rem; align-items: flex-start; }
.f-contact svg { flex-shrink: 0; margin-top: 2px; }
.f-contact p, .f-contact a { color: rgba(255,255,255,0.45); font-size: 0.85rem; line-height: 1.55; text-decoration: none; transition: color 0.2s; }
.f-contact a:hover { color: var(--sand); }
.footer-bottom {
    max-width: var(--max); margin: 0 auto;
    padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.08);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.78rem; }

/* ── WHATSAPP FLOAT ────────────────────────── */
@keyframes waPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50%       { box-shadow: 0 4px 28px rgba(37,211,102,0.65), 0 0 0 10px rgba(37,211,102,0.08); }
}
.wa-float {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
    display: inline-flex; align-items: center; gap: 0.75rem;
    background: #25D366; color: white; text-decoration: none;
    padding: 0.875rem 1.25rem; border-radius: 50px;
    font-size: 0.85rem; font-weight: 600; font-family: var(--font-b);
    transition: transform 0.2s;
    animation: waPulse 3s ease-in-out infinite;
}
.wa-float:hover { transform: translateY(-2px); animation: none; }

/* ── WAVE DIVIDERS ─────────────────────────── */
.wave-sand-to-ivory { background: var(--sand); overflow: hidden; line-height: 0; }
.wave-ivory-to-sand { background: var(--ivory); overflow: hidden; line-height: 0; }
.wave-sand-to-ivory svg, .wave-ivory-to-sand svg { display: block; width: 100%; height: 52px; }

/* ── ANIMATIONS ─────────────────────────────── */
@keyframes fadeSlideUp   { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeSlideRight{ from { opacity:0; transform:translateX(-20px); } to { opacity:1; transform:translateX(0); } }
@keyframes scaleIn       { from { opacity:0; transform:scale(0.88); } to { opacity:1; transform:scale(1); } }
@keyframes popIn         { 0%{opacity:0;transform:scale(0.6) translateY(10px);}65%{transform:scale(1.06) translateY(-3px);}100%{opacity:1;transform:scale(1) translateY(0);} }
@keyframes spin          { to { transform: rotate(360deg); } }

/* Page hero entrance */
.page-hero h1 { animation: fadeSlideUp 0.65s ease 0.15s both; }
.page-hero p  { animation: fadeSlideUp 0.65s ease 0.3s both; }
.page-hero .breadcrumb { animation: fadeSlideUp 0.5s ease 0.05s both; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── UTILITY ───────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.pill {
    display: inline-block; padding: 0.3rem 0.85rem;
    background: var(--sand); color: var(--olive);
    border-radius: 100px; font-size: 0.78rem; font-weight: 600;
}

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 1024px) {
    .prog-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 767px) {
    :root { --pad: 3.5rem 1.25rem; }
    .nav-links, .nav > .nav-inner > .btn-sage { display: none; }
    .hamburger { display: flex; }
    .nav-logo img { height: 38px; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .trust-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.1); }
    .trust-item:nth-last-child(-n+2) { border-bottom: none; }
    .why-grid { grid-template-columns: 1fr; }
    .prog-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 200px); }
    .g-item:first-child { grid-row: span 1; }
    .testi-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; gap: 1.5rem; max-width: 320px; }
    .step-line { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .wa-float span { display: none; }
    .wa-float { padding: 1rem; border-radius: 50%; }
    .page-hero { padding: 3.5rem 1.25rem 6rem; }
    .page-hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
}

@media (max-width: 480px) {
    .prog-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .g-item { height: 220px; }
}
