/* =====================================================================
   Bench Marke Academy - Design System & Components
   Premium, conversion-focused UI. Design tokens are defined here; the
   primary/secondary/accent colours are overridden per-site from the CMS
   via an inline :root block in the layout head.
   ===================================================================== */

:root {
  /* Palette (overridden by CMS theme settings) */
  --c-primary: #4f46e5;
  --c-secondary: #0ea5e9;
  --c-accent: #f59e0b;

  --c-primary-600: color-mix(in oklab, var(--c-primary) 85%, black);
  --c-ink: #0b1324;
  --c-body: #475569;
  --c-muted: #64748b;
  --c-line: #e6eaf2;
  --c-surface: #ffffff;
  --c-surface-2: #f7f9fc;
  --c-surface-3: #eef2f9;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Sora', var(--font-sans);
  --text-hero: clamp(2.4rem, 1.2rem + 4.4vw, 4.6rem);
  --text-h2: clamp(1.8rem, 1.2rem + 2vw, 3rem);
  --text-h3: clamp(1.25rem, 1rem + 0.8vw, 1.7rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);

  /* Space & shape */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --space-section: clamp(4rem, 3rem + 5vw, 8rem);
  --container: 1200px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 12px -4px rgba(15, 23, 42, .08);
  --shadow: 0 12px 40px -12px rgba(15, 23, 42, .16);
  --shadow-lg: 0 30px 80px -30px rgba(15, 23, 42, .28);

  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --dur: .4s;
}

/* Dark mode */
html[data-theme="dark"] {
  --c-ink: #f1f5f9;
  --c-body: #b3c0d6;
  --c-muted: #8295b3;
  --c-line: #22304d;
  --c-surface: #0f1729;
  --c-surface-2: #0b1220;
  --c-surface-3: #161f36;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .7);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, .8);
}

/* ----------------------------- Base ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--c-body);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--c-ink); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; margin: 0 0 .5em; }
p { margin: 0 0 1rem; }
a { color: var(--c-primary); text-decoration: none; transition: color var(--dur); }
img { max-width: 100%; display: block; }
ul { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--space-section) 0; }
.section-sm { padding: clamp(2.5rem, 2rem + 3vw, 4rem) 0; }
.center { text-align: center; }
.muted { color: var(--c-muted); }
.surface-2 { background: var(--c-surface-2); }

/* Skip link (a11y) */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--c-primary); color: #fff; padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ----------------------------- Eyebrow & headings -------------------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-primary); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 26px; height: 2px; background: linear-gradient(90deg, var(--c-primary), var(--c-secondary)); border-radius: 2px; }
.section-head { max-width: 640px; margin: 0 auto clamp(2rem, 4vw, 3.5rem); }
.section-head.center { text-align: center; }
.section-head h2 { font-size: var(--text-h2); }
.section-head p { color: var(--c-muted); font-size: 1.075rem; }
.gradient-text { background: linear-gradient(120deg, var(--c-primary), var(--c-secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ----------------------------- Buttons ------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--font-sans); font-weight: 600; font-size: .98rem; padding: 13px 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform var(--dur) var(--ease-out-expo), box-shadow var(--dur), background var(--dur); position: relative; overflow: hidden; line-height: 1; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: linear-gradient(135deg, var(--c-primary), var(--c-secondary)); color: #fff; box-shadow: 0 10px 30px -10px color-mix(in oklab, var(--c-primary) 70%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 42px -12px color-mix(in oklab, var(--c-primary) 75%, transparent); color: #fff; }
.btn-ghost { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--c-primary); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }
/* Ripple */
.btn .ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, .5); animation: ripple .6s linear; pointer-events: none; }
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* ----------------------------- Cards --------------------------------- */
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease-out-expo), box-shadow var(--dur), border-color var(--dur); overflow: hidden; }
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in oklab, var(--c-primary) 30%, var(--c-line)); }
.card-pad { padding: 26px; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ----------------------------- Announcement bar ---------------------- */
.announce { background: linear-gradient(90deg, var(--c-ink), var(--c-primary-600)); color: #fff; font-size: .9rem; padding: 9px 0; overflow: hidden; }
.announce .container { display: flex; align-items: center; gap: 12px; }
.announce .marquee { white-space: nowrap; animation: marquee 22s linear infinite; }
@media (prefers-reduced-motion: reduce) { .announce .marquee { animation: none; } }
@keyframes marquee { from { transform: translateX(40%); } to { transform: translateX(-100%); } }

/* ----------------------------- Header -------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in oklab, var(--c-surface) 80%, transparent); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--dur), box-shadow var(--dur), background var(--dur); }
.site-header.scrolled { border-color: var(--c-line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--c-ink); letter-spacing: -.02em; }
.brand .logo-mark { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--c-primary), var(--c-secondary)); display: grid; place-items: center; color: #fff; font-weight: 800; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--c-ink); font-weight: 500; font-size: .95rem; padding: 9px 14px; border-radius: 10px; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--c-primary); background: var(--c-surface-3); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-ink); display: grid; place-items: center; cursor: pointer; transition: all var(--dur); }
.icon-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.nav-toggle { display: none; }
@media (max-width: 1024px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); background: var(--c-surface); flex-direction: column; align-items: stretch; padding: 90px 24px 24px; transform: translateX(100%); transition: transform var(--dur) var(--ease-out-expo); box-shadow: var(--shadow-lg); gap: 2px; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 14px; font-size: 1.05rem; }
  .nav-toggle { display: grid; }
  .nav-desktop-cta { display: none; }
}

/* ----------------------------- Hero ---------------------------------- */
.hero { position: relative; padding: clamp(3rem, 6vw, 6rem) 0 clamp(3.5rem, 6vw, 6rem); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 60% at 75% 10%, color-mix(in oklab, var(--c-secondary) 20%, transparent), transparent 70%), radial-gradient(50% 50% at 10% 90%, color-mix(in oklab, var(--c-primary) 18%, transparent), transparent 70%); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: var(--text-hero); margin-bottom: 18px; }
.hero .lead { font-size: 1.18rem; color: var(--c-muted); max-width: 36ch; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 22px; color: var(--c-muted); font-size: .9rem; }
.hero-badges b { color: var(--c-ink); }
.hero-visual { position: relative; }
.hero-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 26px; }
.float-badge { position: absolute; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 18px; display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--c-ink); animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float-badge.b1 { top: -22px; right: 10%; }
.float-badge.b2 { bottom: -18px; left: -10px; animation-delay: 1.5s; }

/* Quick enquiry form on hero */
.quick-form { display: grid; gap: 12px; }
.quick-form h3 { font-size: 1.2rem; margin-bottom: 4px; }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 4px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--c-ink); }
.input, .field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: var(--c-surface); color: var(--c-ink); font: inherit; font-size: .98rem; transition: border-color var(--dur), box-shadow var(--dur); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px color-mix(in oklab, var(--c-primary) 14%, transparent); }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ----------------------------- Stats --------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 26px 16px; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-line); }
.stat .num { font-family: var(--font-display); font-size: clamp(2rem, 1rem + 3vw, 3.2rem); font-weight: 800; color: var(--c-ink); line-height: 1; }
.stat .num .suffix { color: var(--c-primary); }
.stat .label { color: var(--c-muted); margin-top: 8px; font-size: .95rem; }

/* ----------------------------- Feature/why cards --------------------- */
.feature { padding: 28px; }
.feature .ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in oklab, var(--c-primary) 12%, transparent); color: var(--c-primary); margin-bottom: 16px; }
.feature h3 { font-size: 1.2rem; }

/* ----------------------------- Course cards -------------------------- */
.course-card { display: flex; flex-direction: column; }
.course-card .cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--c-surface-3); }
.course-card .top { padding: 24px 24px 0; }
.course-card .tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-primary); background: color-mix(in oklab, var(--c-primary) 10%, transparent); padding: 5px 11px; border-radius: 999px; margin-bottom: 14px; }
.course-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.course-card .meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--c-muted); font-size: .88rem; padding: 16px 24px; border-top: 1px solid var(--c-line); margin-top: auto; }
.course-card .meta b { color: var(--c-ink); }
.course-card .foot { padding: 0 24px 24px; }
.course-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.course-stats .k { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); margin-bottom: 2px; }
.course-stats .v { display: block; font-weight: 700; color: var(--c-ink); font-size: .98rem; }

/* ----------------------------- Faculty ------------------------------- */
.faculty-card { text-align: center; padding: 26px; }
.faculty-card .avatar { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 16px; object-fit: cover; border: 4px solid var(--c-surface-3); background: var(--c-surface-3); display: grid; place-items: center; font-size: 2rem; font-weight: 700; color: var(--c-primary); }
.faculty-card h3 { font-size: 1.15rem; margin-bottom: 2px; }
.faculty-card .role { color: var(--c-primary); font-weight: 600; font-size: .9rem; }

/* ----------------------------- Toppers ------------------------------- */
.topper { text-align: center; padding: 24px; }
.topper .avatar { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 14px; object-fit: cover; background: linear-gradient(135deg, var(--c-primary), var(--c-secondary)); display: grid; place-items: center; color: #fff; font-size: 1.7rem; font-weight: 800; }
.topper .rank { display: inline-block; background: color-mix(in oklab, var(--c-accent) 18%, transparent); color: color-mix(in oklab, var(--c-accent) 60%, black); font-weight: 700; padding: 4px 12px; border-radius: 999px; font-size: .85rem; margin-bottom: 6px; }
.topper .exam { color: var(--c-muted); font-size: .85rem; }

/* ----------------------------- Testimonials -------------------------- */
.testi { padding: 28px; }
.testi .stars { color: var(--c-accent); margin-bottom: 12px; letter-spacing: 2px; }
.testi blockquote { font-size: 1.05rem; color: var(--c-ink); margin: 0 0 18px; line-height: 1.6; }
.testi .who { display: flex; align-items: center; gap: 12px; }
.testi .who .a { width: 46px; height: 46px; border-radius: 50%; background: var(--c-surface-3); display: grid; place-items: center; font-weight: 700; color: var(--c-primary); }
.testi .who b { color: var(--c-ink); display: block; }
.testi .who span { color: var(--c-muted); font-size: .85rem; }

/* ----------------------------- FAQ ----------------------------------- */
.faq-item { border: 1px solid var(--c-line); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--c-surface); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 18px 22px; font-weight: 600; font-size: 1.02rem; color: var(--c-ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-sans); }
.faq-q .chev { transition: transform var(--dur); flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease-out-expo); }
.faq-a .inner { padding: 0 22px 20px; color: var(--c-body); }

/* ----------------------------- Blog cards ---------------------------- */
.post-card { display: flex; flex-direction: column; }
.post-card .thumb { aspect-ratio: 16/10; background: var(--c-surface-3); object-fit: cover; width: 100%; }
.post-card .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .cat { font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--c-secondary); }
.post-card h3 { font-size: 1.2rem; }
.post-card .date { color: var(--c-muted); font-size: .85rem; margin-top: auto; }

/* ----------------------------- CTA band ------------------------------ */
.cta-band { background: linear-gradient(120deg, var(--c-primary), var(--c-secondary)); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem, 5vw, 4.5rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; inset: 0; background: radial-gradient(40% 80% at 80% 0%, rgba(255, 255, 255, .25), transparent); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: var(--text-h2); }
.cta-band p { color: rgba(255, 255, 255, .9); max-width: 50ch; margin: 0 auto 26px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ----------------------------- Page hero ----------------------------- */
.page-hero { padding: clamp(2.5rem, 5vw, 4.5rem) 0; background: var(--c-surface-2); border-bottom: 1px solid var(--c-line); position: relative; }
.breadcrumb { display: flex; gap: 8px; color: var(--c-muted); font-size: .88rem; margin-bottom: 12px; flex-wrap: wrap; }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-primary); }
.page-hero h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem); }

/* Prose (CMS / blog content) */
.prose { max-width: 760px; color: var(--c-body); font-size: 1.08rem; line-height: 1.8; }
.prose h2 { font-size: var(--text-h3); margin: 1.6em 0 .5em; }
.prose h3 { margin: 1.4em 0 .4em; }
.prose img { border-radius: var(--radius-sm); margin: 1.5em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 3px solid var(--c-primary); padding-left: 18px; color: var(--c-muted); font-style: italic; }

/* ----------------------------- Footer -------------------------------- */
.site-footer { background: var(--c-ink); color: #c7d2e4; padding: clamp(3rem, 5vw, 5rem) 0 0; }
html[data-theme="dark"] .site-footer { background: #060b16; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 40px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer a { color: #aebbd2; display: block; padding: 5px 0; font-size: .94rem; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; padding: 0; }
.footer-social a:hover { background: var(--c-primary); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .86rem; color: #8295b3; }
.newsletter-form { display: flex; gap: 8px; margin-top: 14px; }
.newsletter-form input { flex: 1; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff; border-radius: 10px; padding: 11px 13px; }
.newsletter-form input::placeholder { color: #8295b3; }

/* ----------------------------- Floating actions ---------------------- */
.floaters { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow); transition: transform var(--dur); }
.fab:hover { transform: scale(1.08); color: #fff; }
.fab.wa { background: #25d366; }
.fab.call { background: var(--c-primary); }
.fab.top { background: var(--c-ink); opacity: 0; pointer-events: none; transition: opacity var(--dur), transform var(--dur); }
.fab.top.show { opacity: 1; pointer-events: auto; }

/* Sticky admission button (mobile) */
.sticky-apply { display: none; }
@media (max-width: 720px) {
  .sticky-apply { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 89; gap: 10px; padding: 10px 14px; background: var(--c-surface); border-top: 1px solid var(--c-line); box-shadow: 0 -8px 30px -12px rgba(0,0,0,.2); }
  .sticky-apply .btn { flex: 1; padding: 13px; }
  .floaters { bottom: 78px; }
}

/* ----------------------------- Popup & cookie ------------------------ */
.modal-overlay { position: fixed; inset: 0; background: rgba(8, 12, 24, .6); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--c-surface); border-radius: var(--radius-lg); max-width: 460px; width: 100%; padding: 32px; box-shadow: var(--shadow-lg); position: relative; animation: popIn .45s var(--ease-out-expo); }
@keyframes popIn { from { transform: translateY(20px) scale(.96); opacity: 0; } }
.modal .x { position: absolute; top: 16px; right: 16px; background: var(--c-surface-3); border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: var(--c-ink); }
.cookie { position: fixed; left: 18px; bottom: 18px; right: 18px; max-width: 440px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 20px; z-index: 150; display: none; }
.cookie.show { display: block; }

/* ----------------------------- Alerts -------------------------------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .95rem; }
.alert-success { background: color-mix(in oklab, #22c55e 14%, transparent); color: #15803d; border: 1px solid color-mix(in oklab, #22c55e 30%, transparent); }
.alert-error { background: color-mix(in oklab, #ef4444 12%, transparent); color: #b91c1c; border: 1px solid color-mix(in oklab, #ef4444 28%, transparent); }

/* ----------------------------- Pagination ---------------------------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--c-line); display: grid; place-items: center; color: var(--c-ink); font-weight: 600; }
.pagination a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pagination .current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* ----------------------------- Reveal animations --------------------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out-expo), transform .7s var(--ease-out-expo); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1 !important; transform: none !important; } }

/* Loading screen */
#preloader { position: fixed; inset: 0; background: var(--c-surface); z-index: 9999; display: grid; place-items: center; transition: opacity .5s; }
#preloader.hide { opacity: 0; pointer-events: none; }
.spinner { width: 48px; height: 48px; border: 4px solid var(--c-surface-3); border-top-color: var(--c-primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.tab { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-surface); cursor: pointer; font-weight: 600; color: var(--c-body); transition: all var(--dur); }
.tab.active, .tab:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

.empty { text-align: center; padding: 60px 20px; color: var(--c-muted); }

/* ----------------------------- Hero banner (photographic) ------------- */
.hero--banner {
  background-image:
    linear-gradient(110deg, rgba(8,12,24,.93) 0%, rgba(8,12,24,.74) 46%, rgba(8,12,24,.40) 100%),
    var(--hero-image, none);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero--banner::before {
  /* keep subtle colour glow but lighter, over the photo */
  background: radial-gradient(55% 60% at 80% 8%, color-mix(in oklab, var(--c-secondary) 26%, transparent), transparent 70%);
  opacity: .6; z-index: 0;
}
.hero--banner > .container { position: relative; z-index: 1; }
.hero--banner h1 { color: #fff; }
.hero--banner .lead { color: rgba(255,255,255,.86); }
.hero--banner .eyebrow { color: #c7d2fe; }
.hero--banner .hero-badges { color: rgba(255,255,255,.85); }
.hero--banner .hero-badges b { color: #fff; }
.hero--banner .gradient-text {
  background: linear-gradient(120deg, #a5b4fc, #7dd3fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero--banner .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.04); }
.hero--banner .btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.12); }

/* ----------------------------- Mobile refinements -------------------- */
body.nav-open { overflow: hidden; }
.nav-scrim { position: fixed; inset: 0; background: rgba(8,12,24,.5); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity var(--dur); z-index: 99; }
.nav-scrim.show { opacity: 1; pointer-events: auto; }
@media (max-width: 600px) {
  .hero { padding-top: 2.25rem; }
  .hero-badges { gap: 14px 18px; font-size: .82rem; }
  .float-badge { display: none; } /* avoid clutter / overflow on small screens */
  .hero-card { padding: 20px; }
  .btn-lg { padding: 14px 22px; font-size: 1rem; }
  .hero-cta .btn { flex: 1 1 auto; }
}
@media (max-width: 1024px) { .nav-links { z-index: 100; } }
/* Tap targets & no horizontal scroll */
a, button { -webkit-tap-highlight-color: transparent; }
img { height: auto; }

/* ----------------------------- Brand: Sharp button style ------------- */
/* Discovery form preference: Sharp buttons, Corporate/Luxury, Magazine layout */
.btn { border-radius: 6px; }
.icon-btn { border-radius: 8px; }
.btn-primary { box-shadow: 0 8px 24px -12px color-mix(in oklab, var(--c-primary) 65%, transparent); }

/* ----------------------------- Brand logo ---------------------------- */
.brand { flex-shrink: 0; }
.brand-logo { height: 58px; width: auto; max-width: 220px; object-fit: contain; display: block; flex-shrink: 0; }
@media (max-width: 600px) { .brand-logo { height: 46px; } }
.logo-mark { font-size: 1rem; letter-spacing: -.03em; }
.site-footer .logo-mark { font-size: .95rem; }

/* ============================= Mega menu ============================= */
.nav-links > li { position: relative; }
.nav-links .caret { font-size: .68em; margin-left: 5px; opacity: .7; transition: transform var(--dur); display: inline-block; }
.submenu-toggle { display: none; }
.nav-links > li > a { white-space: nowrap; }
.mega-links, .dropdown-links { margin: 0; padding: 0; list-style: none; }
.mega-links li, .dropdown-links li { list-style: none; }
.mega-links a, .dropdown-links a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--c-ink); font-weight: 500; font-size: .92rem; white-space: nowrap; }
.mega-links a:hover, .dropdown-links a:hover { background: var(--c-surface-3); color: var(--c-primary); }
.mega-promo { position: relative; display: flex; align-items: flex-end; border-radius: 12px; overflow: hidden; color: #fff; }
.mega-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mega-promo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,12,24,.9), rgba(8,12,24,.1)); }
.mega-promo-body { position: relative; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.mega-promo-body strong { font-size: 1.02rem; color: #fff; }
.mega-promo-body span { font-size: .82rem; color: rgba(255,255,255,.9); }

@media (min-width: 1025px) {
  /* Big menus span the nav container; compact menus anchor under the item. */
  .nav-links > li.has-mega { position: static; }
  .nav-links > li.has-compact { position: relative; }
  .nav-links > li > a { display: inline-flex; align-items: center; }

  .mega { position: absolute; top: calc(100% + 14px); left: 0; right: 0; width: 100%;
    background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 18px;
    box-shadow: var(--shadow-lg); padding: 26px; }
  .mega-inner { display: grid; gap: 32px; align-items: center; }
  .mega-inner.with-promo { grid-template-columns: 1fr 300px; }
  .mega-links { display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); gap: 4px; }
  .mega-promo { width: 300px; aspect-ratio: 1; justify-self: end; }

  .dropdown { position: absolute; top: calc(100% + 12px); left: 0; min-width: 240px;
    background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 14px;
    box-shadow: var(--shadow-lg); padding: 8px; }
  .dropdown-links { display: flex; flex-direction: column; gap: 2px; }

  /* Shared open/close transition + hover bridge for both panel types. */
  .submenu { opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity var(--dur), transform var(--dur), visibility var(--dur); z-index: 200; }
  .submenu::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
  .has-dropdown:hover > .submenu, .has-dropdown:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
  .has-dropdown:hover > a .caret, .has-dropdown:focus-within > a .caret { transform: rotate(180deg); }
}

/* Mobile: dropdowns + mega both become accordions inside the drawer */
@media (max-width: 1024px) {
  .submenu-toggle { display: grid; place-items: center; position: absolute; right: 10px; top: 6px;
    width: 42px; height: 42px; background: none; border: 0; font-size: 1.1rem; color: var(--c-ink);
    cursor: pointer; transition: transform var(--dur); z-index: 2; }
  .nav-links > li.open > .submenu-toggle { transform: rotate(180deg); }
  .submenu { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease-out-expo); }
  .nav-links > li.open > .submenu { max-height: 640px; }
  .mega-inner { display: block; padding: 2px 0 8px 10px; }
  .dropdown { padding: 2px 0 8px 10px; }
  .mega-links a, .dropdown-links a { padding: 11px 12px; font-size: 1rem; color: var(--c-body); white-space: normal; }
  .mega-promo { display: none; }
}

/* ----------------------------- Footer (motion-style) ----------------- */
html { overflow-x: hidden; }
.footer-logo { height: 64px; width: auto; max-width: 200px; object-fit: contain; display: block; margin-bottom: 16px; background: #fff; padding: 10px 14px; border-radius: 12px; }
.footer-tagline { color: #8ea2c0; font-size: .9rem; margin-bottom: 16px; }
.footer-addr { color: #aebbd2; font-size: .92rem; margin-bottom: 10px; line-height: 1.6; }
@media (max-width: 600px) { .footer-logo { height: 56px; } }
.footer-sub { margin-top: 22px; }
.footer-sub h4 { margin-bottom: 12px; }

/* Mobile: drop backdrop-filter so the fixed nav drawer anchors to the viewport
   (a filtered ancestor traps & clips position:fixed children) */
@media (max-width: 1024px) {
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--c-surface); }
}

/* ============================= Scroller cards ======================= */
.scroller { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 6px 2px 20px; margin: 0 -2px; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--c-line) transparent; }
.scroller > * { flex: 0 0 clamp(250px, 80vw, 300px); scroll-snap-align: start; }
.scroller::-webkit-scrollbar { height: 8px; }
.scroller::-webkit-scrollbar-thumb { background: var(--c-line); border-radius: 999px; }
.scroller::-webkit-scrollbar-track { background: transparent; }

/* ============================= About sub-nav ======================== */
.section-subnav { position: sticky; top: 74px; z-index: 80; background: color-mix(in oklab, var(--c-surface) 94%, transparent); border-bottom: 1px solid var(--c-line); }
.subnav-pills { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.subnav-pills::-webkit-scrollbar { display: none; }
.subnav-pill { flex: 0 0 auto; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--c-body); background: var(--c-surface-3); white-space: nowrap; transition: background var(--dur), color var(--dur); }
.subnav-pill:hover { color: var(--c-primary); }
.subnav-pill.active { background: var(--c-primary); color: #fff; }
.about-section { padding: clamp(2.4rem, 4vw, 4.2rem) 0; scroll-margin-top: 132px; }
.about-section .prose h2 { font-size: var(--text-h2); margin-bottom: 14px; }

/* ============================= Home campaign banner ================= */
.home-banner { display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.home-banner img { width: 100%; height: auto; display: block; }
.home-banner .banner-cta { position: absolute; right: clamp(16px,4vw,40px); bottom: clamp(16px,4vw,36px); }
@media (max-width: 640px) { .home-banner { border-radius: var(--radius); } .home-banner .banner-cta { display: none; } }

/* ============================= About split sections ================= */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.about-split.reverse .about-media { order: 2; }
.about-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 860px) { .about-split { grid-template-columns: 1fr; } .about-split.reverse .about-media { order: 0; } }

/* ============================= Hero carousel ======================== */
.hero-carousel { position: relative; overflow: hidden; }
.carousel-track { position: relative; min-height: clamp(480px, 66vh, 620px); }
/* Center vertically and allow scroll-safe overflow so tall headlines never clip. */
.carousel-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease-out-expo); }
.carousel-slide.is-active { opacity: 1; visibility: visible; }
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.slide-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,12,24,.92) 0%, rgba(8,12,24,.5) 32%, rgba(8,12,24,0) 62%), linear-gradient(90deg, rgba(8,12,24,.5) 0%, rgba(8,12,24,0) 50%); }
.slide-content { position: relative; max-width: 600px; color: #fff; padding: clamp(28px, 6vh, 64px) 0; }
.slide-content h1 { color: #fff; font-size: clamp(1.9rem, 1rem + 2.6vw, 3.3rem); line-height: 1.1; margin-bottom: 14px; }
.slide-content .lead { color: rgba(255,255,255,.92); font-size: clamp(1rem, .92rem + .35vw, 1.2rem); margin-bottom: 22px; }
.eyebrow-light { color: #fff !important; }
.eyebrow-light::before { background: #fff; }
.btn-on-dark { color: #fff; border-color: rgba(255,255,255,.6); }
.btn-on-dark:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; transition: background var(--dur); z-index: 3; }
.carousel-arrow:hover { background: rgba(255,255,255,.35); }
.carousel-arrow.prev { left: 18px; } .carousel-arrow.next { right: 18px; }
.carousel-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 9px; z-index: 3; }
.carousel-dots .dot { width: 11px; height: 11px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; transition: all var(--dur); }
.carousel-dots .dot.is-active { background: #fff; width: 30px; border-radius: 6px; }
@media (max-width: 640px) { .carousel-arrow { display: none; } }

/* ============================= Enquiry section ====================== */
.enquiry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.enquiry-points { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 8px; color: var(--c-body); }
@media (max-width: 820px) { .enquiry-grid { grid-template-columns: 1fr; } }

/* Footer logo: a transparent logo-footer.png is supplied -> drop the white chip */
.footer-logo { background: none; padding: 0; }

/* ============================= Hero full banner ===================== */
.hero-banner-full { background: var(--c-ink); }
.hero-banner-full > a { display: block; }
.hero-banner-full img { width: 100%; height: auto; display: block; max-height: 88vh; object-fit: contain; margin: 0 auto; }
.hero-banner-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; padding: 18px 16px; background: var(--c-surface); border-bottom: 1px solid var(--c-line); }

/* ============================= About - redesigned ================== */
/* Inline stats in the intro */
.stat-inline-row { display: flex; gap: 32px; margin-top: 26px; }
.stat-inline { border-left: 4px solid color-mix(in oklab, var(--c-primary) 25%, var(--c-line)); padding-left: 16px; }
.stat-inline .v { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--c-primary); line-height: 1; }
.stat-inline .k { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }

/* Awards collage */
.award-collage { padding: 12px; }
.award-collage img { width: 100%; border-radius: 12px; display: block; aspect-ratio: 21/9; object-fit: cover; }

/* Media links */
.media-links { display: grid; gap: 12px; margin-top: 18px; }
.media-links a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--c-primary); }
.media-links a span { transition: transform var(--dur); }
.media-links a:hover span { transform: translateX(4px); }

/* Management cards */
.mgmt-card { padding: 0; overflow: hidden; }
.mgmt-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.mgmt-body { padding: 18px 20px 22px; }
.mgmt-body h3 { font-size: 1.15rem; margin-bottom: 2px; }
.mgmt-role { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--c-accent); font-weight: 700; margin-bottom: 10px; }

/* Leadership band */
.leadership-band { background: var(--c-ink); color: #fff; }
.leadership-band .quote-card { display: flex; gap: 20px; align-items: flex-start; }
.leadership-band .quote-card img { width: 120px; flex: 0 0 120px; aspect-ratio: 3/4; object-fit: cover; border-radius: 16px; border: 3px solid rgba(255,255,255,.12); }
.leadership-band .qmark { font-family: Georgia, serif; font-size: 3rem; color: var(--c-accent); line-height: .6; display: block; }
.leadership-band h3 { color: #fff; font-size: 1.25rem; margin: 6px 0 10px; }
.leadership-band blockquote { margin: 0 0 12px; font-style: italic; color: rgba(255,255,255,.9); line-height: 1.6; }
.leadership-band cite { color: var(--c-accent); font-weight: 700; font-style: normal; }
@media (max-width: 560px) { .leadership-band .quote-card { flex-direction: column; } .leadership-band .quote-card img { width: 110px; flex-basis: auto; } }

/* Vision / Mission accent cards */
.vm-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 30px 30px 30px 34px; position: relative; overflow: hidden; transition: border-color var(--dur), transform var(--dur); }
.vm-card:hover { border-color: color-mix(in oklab, var(--c-primary) 35%, var(--c-line)); transform: translateY(-3px); }
.vm-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; }
.vm-vision::before { background: var(--c-accent); }
.vm-mission::before { background: var(--c-primary); }
.vm-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.vm-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: color-mix(in oklab, var(--c-primary) 10%, transparent); }
.vm-head h3 { margin: 0; font-size: 1.3rem; }

/* Management cards - real team headshots (4/5), centered captions */
.mgmt-card picture { display: block; }
.mgmt-card .mgmt-photo { object-position: center top; }
.mgmt-body { text-align: center; padding: 16px 16px 20px; }
.mgmt-body h3 { font-size: 1.12rem; margin-bottom: 2px; }

/* Leadership - zig-zag rows */
.leader-row { margin-bottom: clamp(40px, 6vw, 72px); }
.leader-row:last-child { margin-bottom: 0; }
.leader-photo { display: flex; justify-content: center; }
.leader-photo picture { display: block; width: 100%; max-width: 380px; }
.leader-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Blue messages band - real team photos */
.leadership-band .quote-card picture { flex: 0 0 120px; display: block; }
.q-role { color: var(--c-accent); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
