/* =========================================================================
   Elite Public School, Gummidipoondi
   Premium design system — "Prestige Academic"
   Palette from the crest: deep navy, heritage gold, brick accent.
   ========================================================================= */
:root {
    --navy:        #102a54;
    --navy-2:      #0b1f40;
    --navy-3:      #081832;
    --navy-soft:   #20407a;
    --gold:        #e0a82e;
    --gold-2:      #f4c84a;
    --gold-deep:   #c08a16;
    --brick:       #b6442f;
    --ink:         #1b2436;
    --muted:       #5d6677;
    --line:        #ece7db;
    --line-2:      #e3ddcf;
    --cream:       #faf7f0;
    --cream-2:     #f4efe4;
    --paper:       #ffffff;
    --navy-tint:   #eef2fa;

    --radius:      20px;
    --radius-sm:   12px;
    --radius-lg:   28px;
    --shadow-xs:   0 2px 8px rgba(16,42,84,.06);
    --shadow-sm:   0 10px 30px rgba(16,42,84,.08);
    --shadow:      0 22px 50px rgba(16,42,84,.13);
    --shadow-lg:   0 40px 90px rgba(8,24,50,.28);
    --gold-grad:   linear-gradient(135deg, #f4c84a 0%, #e0a82e 55%, #c08a16 100%);
    --navy-grad:   linear-gradient(135deg, #16356a 0%, #0b1f40 60%, #081832 100%);

    --container:   1220px;
    --font-display:'Poppins', system-ui, -apple-system, sans-serif;
    --font-sans:   'Open Sans', system-ui, -apple-system, sans-serif;
    --ease:        cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.75;
    font-size: 1.02rem;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    line-height: 1.12;
    color: var(--navy);
    font-weight: 600;
    letter-spacing: -.01em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--gold); color: var(--navy-3); }

.container { width: min(var(--container), 92%); margin-inline: auto; }

/* ---------------- Buttons ---------------- */
.btn {
    position: relative; display: inline-flex; align-items: center; gap: .55rem;
    font-family: var(--font-sans); font-weight: 600; font-size: .96rem; letter-spacing: .2px;
    padding: .95rem 1.9rem; border-radius: 50px; cursor: pointer;
    border: 1.5px solid transparent; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
    overflow: hidden; white-space: nowrap; line-height: 1;
}
.btn--sm { padding: .68rem 1.35rem; font-size: .88rem; }
.btn--gold { background: var(--gold-grad); color: var(--navy-3); box-shadow: 0 14px 30px rgba(224,168,46,.38); }
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(224,168,46,.5); }
.btn--navy { background: var(--navy); color: #fff; box-shadow: 0 14px 30px rgba(16,42,84,.28); }
.btn--navy:hover { background: var(--navy-2); transform: translateY(-3px); box-shadow: 0 20px 40px rgba(16,42,84,.36); }
.btn--ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; transform: translateY(-3px); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn--outline:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-3px); }

/* ---------------- Top bar ---------------- */
.topbar { background: var(--navy-3); color: #b9c6e2; font-size: .82rem; letter-spacing: .2px; border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem 0; flex-wrap: wrap; }
.topbar__contact, .topbar__cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar a, .topbar__meta { display: inline-flex; align-items: center; gap: .45rem; transition: color .2s; }
.topbar__contact a:hover { color: #fff; }
.topbar__apply { color: var(--gold-2); font-weight: 600; }
.topbar__apply:hover { color: #fff; }
.topbar__sep { width: 1px; height: 14px; background: rgba(255,255,255,.18); }
.ico { color: var(--gold); }

/* ---------------- Header / Nav ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.86); backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s, background .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,.96); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .7rem 0; }

.brand { display: flex; align-items: center; gap: .9rem; }
.brand__logo-wrap { display: grid; place-items: center; flex: none; }
.brand__logo { width: 60px; height: 60px; object-fit: contain; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-size: 1.42rem; font-weight: 600; color: var(--navy); letter-spacing: -.01em; }
.brand__sub { font-size: .68rem; color: var(--gold-deep); font-weight: 600; text-transform: uppercase; letter-spacing: 2.4px; margin-top: 2px; }

.main-nav { display: flex; align-items: center; gap: 1.3rem; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: .15rem; }
.main-nav a { position: relative; font-weight: 500; font-size: .94rem; color: var(--ink); padding: .6rem .85rem; border-radius: 8px; transition: color .2s; }
.main-nav a::after { content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .42rem; height: 2px; border-radius: 2px; background: var(--gold-grad); transform: scaleX(0); transform-origin: center; transition: transform .3s var(--ease); }
.main-nav a:hover { color: var(--navy); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--navy); }
.nav-apply { font-weight: 600; font-size: .92rem; color: var(--navy-3); background: var(--gold-grad); padding: .68rem 1.35rem; border-radius: 50px; box-shadow: 0 10px 22px rgba(224,168,46,.32); transition: transform .3s var(--ease), box-shadow .3s; white-space: nowrap; }
.nav-apply:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(224,168,46,.45); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 110; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 3px; transition: .3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.6s ease; }
.hero__slide.is-active { opacity: 1; animation: kenburns 9s ease forwards; }
@keyframes kenburns { from { transform: scale(1.14);} to { transform: scale(1);} }
.hero__overlay { position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(105deg, rgba(8,24,50,.96) 0%, rgba(11,31,64,.86) 42%, rgba(16,42,84,.5) 75%, rgba(16,42,84,.28) 100%),
    radial-gradient(120% 90% at 80% 10%, rgba(224,168,46,.18), transparent 55%); }
.hero__orb { position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; opacity: .5; }
.hero__orb--1 { width: 420px; height: 420px; background: rgba(224,168,46,.4); top: -120px; right: -80px; }
.hero__orb--2 { width: 360px; height: 360px; background: rgba(32,64,122,.6); bottom: -140px; left: -100px; opacity: .7; }

.hero__inner { position: relative; z-index: 2; padding: 7rem 0 8.5rem; max-width: 820px; }
.hero__badge { display: inline-flex; align-items: center; gap: .6rem; background: rgba(255,255,255,.08); border: 1px solid rgba(244,200,74,.45); color: #fff; font-weight: 500; font-size: .82rem; padding: .5rem 1.1rem; border-radius: 50px; letter-spacing: .4px; backdrop-filter: blur(6px); }
.hero__badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 4px rgba(244,200,74,.25); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 4px rgba(244,200,74,.25);} 50%{ box-shadow: 0 0 0 8px rgba(244,200,74,0);} }
.hero__tagline { display: block; margin-top: 1.6rem; font-weight: 600; color: var(--gold-2); letter-spacing: 4px; text-transform: uppercase; font-size: .82rem; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 500; margin: .7rem 0 0; letter-spacing: -.02em; }
.hero h1 .accent { color: var(--gold-2); }
.hero p.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: #d7e0f2; margin: 1.5rem 0 2.2rem; max-width: 600px; font-weight: 400; }
.hero__btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__trust { list-style: none; display: flex; gap: 1.8rem; flex-wrap: wrap; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.14); }
.hero__trust li { display: flex; align-items: center; gap: .55rem; font-size: .92rem; color: #cdd8ef; font-weight: 500; }
.hero__trust-ico { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(224,168,46,.2); color: var(--gold-2); font-size: .7rem; }
.hero__dots { position: absolute; bottom: 2.4rem; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: .55rem; }
.hero__dots button { width: 28px; height: 5px; border-radius: 5px; border: none; background: rgba(255,255,255,.4); cursor: pointer; transition: .3s; padding: 0; }
.hero__dots button.is-active { background: var(--gold-2); width: 46px; }

/* ---------------- Stats (overlapping card) ---------------- */
.stats { position: relative; z-index: 5; margin-top: -4.5rem; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stat { display: flex; align-items: center; gap: 1rem; padding: 1.8rem 1.7rem; border-right: 1px solid var(--line); transition: background .3s; }
.stat:last-child { border-right: none; }
.stat:hover { background: var(--cream); }
.stat__icon { flex: none; width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; font-size: 1.5rem; background: var(--navy-tint); color: var(--navy); }
.stat__value { font-family: var(--font-display); font-weight: 700; font-size: 1.85rem; color: var(--navy); line-height: 1; }
.stat__label { font-size: .82rem; color: var(--muted); margin-top: .3rem; font-weight: 500; }

/* ---------------- Page hero (inner) ---------------- */
.page-hero { position: relative; background: var(--hero-img) center/cover no-repeat, var(--navy); padding: 5.5rem 0 4.5rem; color: #fff; isolation: isolate; }
.page-hero__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, rgba(8,24,50,.95), rgba(16,42,84,.6)), radial-gradient(100% 100% at 90% 0%, rgba(224,168,46,.2), transparent 55%); }
.page-hero__inner { position: relative; z-index: 2; max-width: 760px; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 500; }
.page-hero p { color: #d7e0f2; margin-top: .7rem; font-size: 1.12rem; }
.breadcrumb { margin-top: 1.3rem; font-size: .88rem; color: #c2cee8; font-weight: 500; }
.breadcrumb a { color: var(--gold-2); }
.breadcrumb span { margin: 0 .4rem; opacity: .8; }

/* ---------------- Sections ---------------- */
.section { padding: 6rem 0; }
.section--soft { background: var(--cream); }
.section--navy { background: var(--navy-grad); color: #d7e0f2; position: relative; isolation: isolate; overflow: hidden; }
.section--navy::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 22px 22px; opacity: .6; }
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.4rem; }
.section-head--left { text-align: left; margin-inline: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-sans); font-weight: 600; font-size: .76rem; letter-spacing: 3px; text-transform: uppercase; color: var(--brick); margin-bottom: 1rem; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--gold); border-radius: 2px; }
.section-head:not(.section-head--left) .eyebrow::after { content: ''; width: 28px; height: 2px; background: var(--gold); border-radius: 2px; }
.section--navy .eyebrow { color: var(--gold-2); }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 500; }
.section-head p { color: var(--muted); margin-top: 1rem; font-size: 1.08rem; }
.section--navy .section-head p { color: #b9c6e2; }
.divider { width: 70px; height: 3px; background: var(--gold-grad); border-radius: 3px; margin: 1.3rem auto 0; }
.section-head--left .divider { margin-inline: 0; }

/* ---------------- Split / about ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split__media { position: relative; }
.split__media::before { content: ''; position: absolute; inset: -16px -16px 24px 24px; border: 2px solid var(--gold); border-radius: var(--radius); z-index: 0; opacity: .5; }
.split__media img { position: relative; z-index: 1; border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; max-height: 500px; }
.split__media .badge-float { position: absolute; bottom: -18px; right: -14px; z-index: 2; background: var(--gold-grad); color: var(--navy-3); font-weight: 700; padding: 1.1rem 1.5rem; border-radius: var(--radius-sm); box-shadow: var(--shadow); text-align: center; line-height: 1.05; font-size: .92rem; }
.split__media .badge-float span { display: block; font-family: var(--font-display); font-size: 1.7rem; }
.split__body h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 500; margin-bottom: 1.1rem; }
.split__body p { color: var(--muted); margin-bottom: 1rem; }
.feature-list { list-style: none; display: grid; gap: .8rem; margin: 1.4rem 0 2rem; }
.feature-list li { display: flex; gap: .8rem; align-items: flex-start; font-size: .98rem; color: var(--ink); }
.feature-list .tick { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--navy-tint); color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: .78rem; margin-top: 2px; }
.section--navy .feature-list li { color: #d7e0f2; }

/* ---------------- Cards ---------------- */
.grid { display: grid; gap: 1.7rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem 1.9rem; box-shadow: var(--shadow-xs); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; overflow: hidden; }
.card::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold-grad); transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::after { transform: scaleY(1); }
.card__icon { width: 62px; height: 62px; border-radius: 16px; background: var(--navy-grad); color: var(--gold-2); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 1.3rem; box-shadow: var(--shadow-xs); }
.card h3 { font-size: 1.28rem; font-weight: 600; margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .97rem; }

/* ---------------- Programme cards ---------------- */
.prog-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.prog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.prog-card__media { height: 230px; overflow: hidden; position: relative; }
.prog-card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,24,50,.35), transparent 55%); }
.prog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.prog-card:hover .prog-card__media img { transform: scale(1.09); }
.prog-card__body { padding: 1.7rem; }
.prog-card__tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brick); background: rgba(182,68,47,.08); padding: .3rem .7rem; border-radius: 50px; }
.prog-card__body h3 { margin: .7rem 0 .55rem; font-size: 1.35rem; font-weight: 600; }
.prog-card__body p { color: var(--muted); font-size: .96rem; }
.prog-card .feature-list { margin: 1rem 0 0; gap: .5rem; }
.prog-card .feature-list .tick { width: 20px; height: 20px; border-radius: 6px; background: transparent; color: var(--gold-deep); }

/* ---------------- Why (navy numbered) ---------------- */
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
.why-item { position: relative; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 2rem 1.9rem; transition: transform .4s var(--ease), background .4s; backdrop-filter: blur(4px); }
.why-item:hover { background: rgba(255,255,255,.1); transform: translateY(-6px); }
.why-item .num { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--gold-2); margin-bottom: .4rem; }
.why-item h3 { color: #fff; font-size: 1.22rem; font-weight: 600; margin: .3rem 0 .5rem; }
.why-item p { color: #b9c6e2; font-size: .95rem; }

/* ---------------- Gallery ---------------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery a { position: relative; overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 4/3; box-shadow: var(--shadow-xs); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery a:hover img { transform: scale(1.12); }
.gallery a::after { content: '\2197'; position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; display: grid; place-items: center; color: #fff; font-size: 1.1rem; background: rgba(16,42,84,.65); border-radius: 50%; opacity: 0; transform: scale(.8); transition: .35s var(--ease); backdrop-filter: blur(2px); }
.gallery a:hover::after { opacity: 1; transform: scale(1); }

/* ---------------- Lightbox ---------------- */
.lightbox { position: fixed; inset: 0; z-index: 999; background: rgba(8,24,50,.95); display: none; align-items: center; justify-content: center; padding: 4vw; backdrop-filter: blur(6px); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.12); border: none; color: #fff; width: 54px; height: 54px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; transition: .25s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--gold); color: var(--navy-3); }
.lightbox__close { top: 4%; right: 4%; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 3%; }
.lightbox__nav--next { right: 3%; }

/* ---------------- Tables ---------------- */
.doc-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); background: var(--paper); }
.doc-table, .simple-table { width: 100%; border-collapse: collapse; background: var(--paper); }
.doc-table { min-width: 760px; }
.doc-table thead, .simple-table thead { background: var(--navy-grad); color: #fff; }
.doc-table th, .doc-table td, .simple-table th, .simple-table td { padding: 1.1rem 1.4rem; text-align: left; }
.doc-table th, .simple-table th { font-weight: 600; font-size: .9rem; letter-spacing: .3px; }
.doc-table tbody tr, .simple-table tbody tr { border-top: 1px solid var(--line); transition: background .2s; }
.doc-table tbody tr:hover { background: var(--cream); }
.doc-table .doc-title { font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; color: var(--navy); }
.doc-table .doc-desc { color: var(--muted); font-size: .89rem; margin-top: .2rem; }
.doc-num { font-family: var(--font-display); font-weight: 700; color: var(--gold-deep); font-size: 1.05rem; }
.tag-pill { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .4px; padding: .3rem .8rem; border-radius: 50px; background: var(--navy-tint); color: var(--navy); }
.dl-btn { display: inline-flex; align-items: center; gap: .5rem; background: var(--gold-grad); color: var(--navy-3); font-weight: 600; font-size: .86rem; padding: .62rem 1.2rem; border-radius: 50px; transition: transform .3s var(--ease), box-shadow .3s; box-shadow: 0 8px 18px rgba(224,168,46,.28); }
.dl-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(224,168,46,.42); }
.simple-table { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.simple-table tbody tr:nth-child(even) { background: var(--cream); }
.simple-table .center { text-align: center; }

/* ---------------- Forms ---------------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.6rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 600; color: var(--navy); letter-spacing: .2px; }
.field input, .field select, .field textarea { font-family: var(--font-sans); font-size: 1rem; padding: .9rem 1.1rem; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--cream); transition: .22s; width: 100%; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(16,42,84,.1); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.alert { padding: 1.1rem 1.3rem; border-radius: var(--radius-sm); font-size: .95rem; margin-bottom: 1.5rem; font-weight: 500; }
.alert--ok { background: #e9f8ef; color: #1c7a40; border: 1px solid #b6e4c6; }
.alert--err { background: #fdecea; color: #b13225; border: 1px solid #f5c2bc; }

/* ---------------- Info / contact ---------------- */
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-xs); display: flex; gap: 1.1rem; align-items: flex-start; transition: transform .35s var(--ease), box-shadow .35s; }
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.info-card__icon { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--navy-grad); color: var(--gold-2); display: grid; place-items: center; font-size: 1.3rem; }
.info-card h4 { font-size: 1.08rem; font-weight: 600; margin-bottom: .3rem; }
.info-card p, .info-card a { color: var(--muted); font-size: .95rem; word-break: break-word; }
.info-card a:hover { color: var(--navy); }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 440px; border: 0; display: block; }

/* ---------------- Message / leadership ---------------- */
.message-card { display: grid; grid-template-columns: 320px 1fr; gap: 0; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.message-card__media { background: var(--navy); position: relative; }
.message-card__media img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }
.message-card__body { padding: 3rem; position: relative; }
.message-card__body .quote { font-family: var(--font-display); font-size: 4rem; color: var(--gold); line-height: .6; height: 2rem; }
.message-card__body p { color: var(--muted); font-style: italic; font-size: 1.05rem; }
.message-card__sign { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.message-card__sign strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); display: block; }
.message-card__sign span { font-size: .9rem; color: var(--brick); font-weight: 600; }

/* ---------------- Steps ---------------- */
.steps { display: grid; gap: 1.5rem; counter-reset: step; }
.step { display: grid; grid-template-columns: 72px 1fr; gap: 1.5rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.9rem; box-shadow: var(--shadow-xs); transition: transform .35s var(--ease), box-shadow .35s; counter-increment: step; }
.step:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.step__num { width: 72px; height: 72px; border-radius: 18px; background: var(--navy-grad); color: var(--gold-2); font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; display: grid; place-items: center; }
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .3rem; }
.step p { color: var(--muted); font-size: .96rem; }

/* ---------------- CTA strip ---------------- */
.cta-strip { background: var(--navy-grad); color: #fff; position: relative; isolation: isolate; overflow: hidden; }
.cta-strip::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; }
.cta-strip::after { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(224,168,46,.22); filter: blur(70px); right: -80px; top: -120px; z-index: -1; }
.cta-strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.8rem; padding: 3.4rem 0; flex-wrap: wrap; }
.cta-strip h2 { color: #fff; font-size: clamp(1.7rem, 2.8vw, 2.2rem); font-weight: 500; }
.cta-strip p { color: #c2cee8; margin-top: .3rem; }
.cta-strip__btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-3); color: #aebbd8; padding-top: 4.5rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1.4fr 1.2fr; gap: 2.4rem; padding-bottom: 3rem; }
.footer-brand { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.2rem; }
.footer-brand img { width: 78px; height: 78px; object-fit: contain; display: block; }
.footer-brand strong { color: #fff; font-family: var(--font-display); display: block; font-size: 1.2rem; }
.footer-brand span { font-size: .74rem; color: var(--gold-2); letter-spacing: 2px; text-transform: uppercase; }
.footer-about { font-size: .92rem; color: #93a2c4; line-height: 1.75; }
.footer-col h4 { color: #fff; font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; margin-bottom: 1.2rem; position: relative; padding-bottom: .7rem; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--gold-grad); border-radius: 3px; }
.footer-col ul { list-style: none; display: grid; gap: .65rem; }
.footer-col ul a { color: #93a2c4; font-size: .94rem; transition: .2s; display: inline-flex; align-items: center; gap: .4rem; }
.footer-col ul a:hover { color: var(--gold-2); transform: translateX(3px); }
.footer-contact li { display: flex; gap: .7rem; font-size: .92rem; color: #93a2c4; align-items: flex-start; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.5rem 0; }
.site-footer__bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.site-footer__bottom p { font-size: .85rem; color: #76859f; }

/* ---------------- Back to top ---------------- */
.back-to-top { position: fixed; right: 24px; bottom: 24px; width: 50px; height: 50px; border-radius: 50%; background: var(--navy-grad); color: var(--gold-2); display: grid; place-items: center; font-size: 1.3rem; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(14px); transition: .35s var(--ease); z-index: 90; border: 1px solid rgba(255,255,255,.12); }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-grad); color: var(--navy-3); }

/* ---------------- Reveal ---------------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
    .split { grid-template-columns: 1fr; gap: 2.6rem; }
    .split__media::before { display: none; }
    .grid--4 { grid-template-columns: repeat(2,1fr); }
    .why-grid { grid-template-columns: repeat(2,1fr); }
    .gallery { grid-template-columns: repeat(3,1fr); }
    .message-card { grid-template-columns: 1fr; }
    .message-card__media img { min-height: 260px; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .stats { margin-top: -3rem; }
    .stats__grid { grid-template-columns: repeat(2,1fr); }
    .stat:nth-child(2) { border-right: none; }
    .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    /* Drop backdrop-filter on mobile: it creates a containing block that traps the
       fixed nav drawer to the header's height. Use a solid background instead. */
    .site-header { backdrop-filter: none; background: #fff; }
    .site-header.scrolled { background: #fff; }
    .main-nav { position: fixed; inset: 0 0 0 auto; width: min(84%, 340px); height: 100vh; height: 100dvh; background: var(--paper); flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 6rem 1.6rem 2rem; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .4s var(--ease); z-index: 105; gap: 1rem; overflow-y: auto; }
    .main-nav.open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: .2rem; width: 100%; }
    .main-nav a { padding: .9rem 1rem; border-radius: 10px; font-size: 1rem; }
    .main-nav a::after { display: none; }
    .main-nav a.active { background: var(--cream); }
    .nav-apply { text-align: center; justify-content: center; display: block; margin-top: .4rem; }
    .topbar__cta .topbar__meta, .topbar__cta .topbar__sep { display: none; }
    /* Dim the page behind the open drawer. The drawer lives inside .site-header
       (a sticky z-index:100 stacking context), so the body-level scrim must sit
       BELOW the header to avoid covering — and blocking taps on — the drawer. */
    .nav-scrim { position: fixed; inset: 0; background: rgba(10,20,40,.45); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; z-index: 99; }
    .nav-scrim.show { opacity: 1; visibility: visible; }
}
@media (max-width: 680px) {
    .grid--3, .grid--2 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .topbar__contact a:last-child { display: none; }
    .gallery { grid-template-columns: repeat(2,1fr); }
    .section { padding: 4rem 0; }
    .hero__inner { padding: 4.5rem 0 6rem; }
    .hero__trust { gap: 1rem 1.4rem; }
    .step { grid-template-columns: 56px 1fr; gap: 1rem; padding: 1.3rem; }
    .step__num { width: 56px; height: 56px; font-size: 1.3rem; border-radius: 14px; }
    .message-card__body { padding: 2rem; }
    .cta-strip__inner { padding: 2.6rem 0; }
}
@media (max-width: 460px) {
    .grid--4 { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .stats__grid { grid-template-columns: 1fr; }
    .stat { border-right: none; border-bottom: 1px solid var(--line); }
    .stat:last-child { border-bottom: none; }
    .brand__name { font-size: 1.18rem; }
    .brand__logo { width: 52px; height: 52px; }
    .gallery { grid-template-columns: 1fr 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; }
}
