/* =====================================================================
   styles.css — EnrolUAE design system v2 ("Dubai Premium")
   ---------------------------------------------------------------------
   Brand identity
     · Colours: deep navy (#0B2A3A) as the "night over the Gulf", teal
       (#0F4C5C) for trust, warm gold (#C9A227 → #E8C766) for the desert
       and premium accents, ivory/sand neutrals.
     · Type: Playfair Display (editorial serif headings) + Inter (UI body).
     · Imagery: real photographs of Dubai + photorealistic family scenes,
       always with a dark navy gradient overlay for legible text.
     · Shapes: 18–24px radii, soft layered shadows, thin gold hairlines.
   Sections
     1 tokens · 2 base · 3 layout/buttons · 4 header · 5 hero · 6 gallery
     7 process · 8 documents · 9 curricula · 10 costs · 11 FAQ · 12 chat
     13 footer · 14 utilities · 15 responsive · 16 print
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --navy-900: #0b2a3a;
  --navy-800: #0f3446;
  --teal-700: #0f4c5c;
  --teal-500: #1b7a8c;
  --teal-100: #d9eef1;
  --teal-50: #f1f9fa;
  --gold-700: #a8861b;
  --gold-600: #c9a227;
  --gold-500: #d9b448;
  --gold-300: #e8c766;
  --gold-100: #fbf3dc;
  --ivory: #fbf9f4;
  --sand-100: #f4efe4;
  --sand-200: #e9e0cc;
  --ink-900: #16232a;
  --ink-700: #3b4a52;
  --ink-500: #6f7d85;
  --ink-200: #d9dfe3;
  --white: #ffffff;
  --success: #2e8b57;
  --danger: #c0392b;

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(11, 42, 58, 0.06), 0 2px 8px rgba(11, 42, 58, 0.06);
  --shadow: 0 10px 30px rgba(11, 42, 58, 0.12);
  --shadow-lg: 0 24px 60px rgba(11, 42, 58, 0.22);
  --gold-gradient: linear-gradient(135deg, var(--gold-700), var(--gold-300));

  --container: 1200px;
  --header-h: 76px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 14px); }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  color: var(--ink-900); background: var(--ivory); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }

/* Pencil cursor (brand touch): hotspot at the pencil tip (6,26). Falls back to
   the default arrow on browsers without SVG-cursor support. */
html, body { cursor: url("../assets/img/cursor-pencil.svg") 6 26, auto; }
a, button, [role="button"], label, select, summary, .chip, .tab, .step-btn, .school-item, .swatch, .leaflet-marker-icon, .leaflet-control a { cursor: url("../assets/img/cursor-pencil-gold.svg") 6 26, pointer; }
input[type="text"], input[type="search"], input[type="number"], input[type="date"], textarea { cursor: text; }
input[type="range"] { cursor: ew-resize; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; color: var(--navy-900); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.2vw + 0.6rem, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 2.3vw + 0.7rem, 2.5rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; color: var(--teal-700); }
p { margin: 0 0 1em; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-700); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: -0.28em; display: inline-block; }
.icon-sm { width: 1em; height: 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--gold-500); color: var(--navy-900); padding: 8px 14px; border-radius: var(--radius-sm); z-index: 1000; font-weight: 600; }
.skip-link:focus { top: 8px; }

/* ---------- 3. Layout & buttons ---------- */
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.container.narrow { max-width: 880px; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--white) 0%, var(--sand-100) 100%); }
.section-dark { background: var(--navy-900); color: var(--teal-100); overflow: hidden; }
.section-dark .section-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.section-dark .container { position: relative; }
.section-head { max-width: 800px; margin-bottom: 2.25rem; }
.section-head p { color: var(--ink-700); font-size: 1.1rem; }
.section-head-light h2 { color: var(--white); }
.section-head-light p { color: var(--teal-100); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 0.75rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-700);
}
.eyebrow::after { content: ""; width: 40px; height: 1px; background: var(--gold-500); }
.eyebrow-gold { color: var(--gold-300); }
.eyebrow-gold::after { background: var(--gold-300); }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; margin-bottom: 2.25rem; }
.split .section-head { margin-bottom: 0; }

.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem; border: 1px solid rgba(11, 42, 58, 0.05); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 0.98rem; text-decoration: none; line-height: 1.2; min-height: 46px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 0.9rem 1.7rem; font-size: 1.05rem; min-height: 52px; }
.btn-primary { background: var(--navy-900); color: var(--white); }
.btn-primary:hover { background: var(--teal-700); color: var(--white); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold-gradient); color: var(--navy-900); }
.btn-gold:hover { box-shadow: 0 8px 24px rgba(201, 162, 39, 0.4); color: var(--navy-900); }
.btn-outline { background: transparent; border-color: var(--navy-900); color: var(--navy-900); }
.btn-outline:hover { background: var(--navy-900); color: var(--white); }
.btn-outline-light { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); color: var(--white); backdrop-filter: blur(6px); }
.btn-outline-light:hover { background: var(--white); color: var(--navy-900); }
.btn-ghost { background: var(--sand-100); color: var(--navy-900); }
.btn-ghost:hover { background: var(--sand-200); }
.btn-small { padding: 0.45rem 0.95rem; min-height: 38px; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.progress { height: 10px; border-radius: 999px; background: var(--ink-200); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--gold-gradient); transition: width 0.45s ease; }

.tag { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.25rem 0.65rem; border-radius: 999px; }
.tag-real { background: rgba(255,255,255,0.9); color: var(--teal-700); }
.tag-render { background: rgba(11,42,58,0.75); color: var(--gold-300); backdrop-filter: blur(4px); }

.photo-card { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.photo-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.6s ease; }
.photo-card:hover img { transform: scale(1.03); }
.photo-card figcaption { position: absolute; left: 0.9rem; bottom: 0.9rem; }
.photo-card-top { border-radius: var(--radius) var(--radius) 0 0; margin: -1.6rem -1.6rem 1.25rem; box-shadow: none; }
.photo-card-top img { aspect-ratio: 16/10; }

/* ---------- 4. Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 249, 244, 0.86); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(11,42,58,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--navy-900); }
.brand-logo { border-radius: 50%; box-shadow: var(--shadow-sm); }
.brand-text strong, .brand-footer strong { display: inline-flex; align-items: center; }
.brand-flag { width: 26px; height: 13px; margin-left: 0.45rem; border-radius: 2px; box-shadow: 0 0 0 1px rgba(11,42,58,0.15); flex-shrink: 0; transform: translateY(1px); }
.brand-footer .brand-flag { box-shadow: 0 0 0 1px rgba(255,255,255,0.3); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
.brand-accent { color: var(--gold-700); }
.brand-text small { color: var(--ink-500); font-size: 0.72rem; letter-spacing: 0.04em; }

.site-nav { display: flex; align-items: center; gap: 0.9rem; }
.nav-list { list-style: none; display: flex; gap: 0.1rem; margin: 0; padding: 0; flex-wrap: nowrap; }
.nav-list a { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.45rem 0.6rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.88rem; color: var(--ink-700); white-space: nowrap; }
.nav-list a:hover, .nav-list a.is-active { background: var(--navy-900); color: var(--white); }
.nav-manual { color: var(--gold-700) !important; }
.nav-manual:hover { background: var(--gold-100) !important; color: var(--gold-700) !important; }

.lang-menu { position: relative; }
.lang-menu-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.9rem; border-radius: 999px; border: 1.5px solid var(--navy-900); background: var(--white); font-weight: 700; font-size: 0.9rem; min-height: 40px; color: var(--navy-900); }
.lang-menu-btn:hover { background: var(--navy-900); color: var(--white); }
.lang-list { position: absolute; right: 0; top: calc(100% + 0.5rem); list-style: none; margin: 0; padding: 0.4rem; min-width: 230px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: none; z-index: 200; max-height: 70vh; overflow: auto; }
.lang-menu.is-open .lang-list { display: block; }
.lang-list button { width: 100%; display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.7rem; border: 0; background: transparent; border-radius: var(--radius-sm); text-align: left; font-weight: 600; min-height: 42px; }
.lang-list button:hover { background: var(--teal-50); }
.lang-list button.is-active { background: var(--navy-900); color: var(--white); }
.lang-list button small { margin-left: auto; font-size: 0.7rem; color: var(--ink-500); font-weight: 500; }
.lang-list button.is-active small { color: var(--gold-300); }
.lang-list .flag { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; width: 30px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--sand-100); color: var(--navy-900); flex-shrink: 0; }
.lang-list button.is-active .flag { background: var(--gold-gradient); }

.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle-bar { width: 26px; height: 2.5px; background: var(--navy-900); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Google Translate widget host/banner hidden (we build our own menu) */
.gt-host, .goog-te-banner-frame, .skiptranslate iframe { display: none !important; }
body { top: 0 !important; }
.mt-notice { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 300; display: flex; gap: 0.75rem; align-items: center; background: var(--navy-900); color: var(--white); padding: 0.6rem 0.75rem 0.6rem 1rem; border-radius: 999px; box-shadow: var(--shadow-lg); font-size: 0.9rem; max-width: calc(100% - 2rem); }
.mt-notice strong { color: var(--gold-300); }

/* ---------- 5. Hero ---------- */
.hero { position: relative; color: var(--white); padding: clamp(3rem, 7vw, 6rem) 0 0; overflow: hidden; min-height: 80vh; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-bg { position: absolute; top: 0; bottom: 0; left: 38%; width: 62%; height: 100%; object-fit: cover; object-position: 52% 45%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-900) 0%, var(--navy-900) 36%, rgba(11,42,58,0.92) 42%, rgba(11,42,58,0.35) 52%, rgba(11,42,58,0.08) 62%, rgba(11,42,58,0.05) 100%), linear-gradient(180deg, rgba(11,42,58,0.15) 0%, rgba(11,42,58,0) 45%, rgba(11,42,58,0.75) 100%); }
.hero-content { position: relative; padding-bottom: 3rem; }
.hero-content > * { max-width: 540px; }
.hero .kicker { display: block; }
.hero h1 { font-size: clamp(2.1rem, 3.3vw + 0.5rem, 3.15rem); }
.hero h1 { color: var(--white); text-shadow: 0 2px 20px rgba(0,0,0,0.25); }
.hero-badge { display: inline-flex; align-items: center; gap: 0.45rem; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.28); backdrop-filter: blur(8px); padding: 0.35rem 0.85rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; margin-bottom: 1rem; }
.kicker { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-700); margin-bottom: 0.9rem; }
.kicker-light { color: var(--gold-300); }
.lead { font-size: 1.15rem; color: var(--ink-700); }
.lead-light { color: rgba(255,255,255,0.88); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }

.hero-stats { position: relative; list-style: none; margin: 0; padding: 1.4rem 1.6rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-bottom: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; backdrop-filter: blur(14px); }
.hero-stats li { display: flex; flex-direction: column; gap: 0.15rem; padding-left: 1rem; border-left: 1px solid rgba(232,199,102,0.5); }
.hero-stats strong { font-family: var(--font-head); font-size: 2rem; color: var(--gold-300); line-height: 1; }
.hero-stats span { font-size: 0.85rem; color: rgba(255,255,255,0.85); }

/* Search */
.search { position: relative; margin-top: 1.4rem; }
.glass { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(14px); border-radius: var(--radius); padding: 0.75rem; }
.search-row { display: flex; gap: 0.5rem; align-items: center; background: var(--white); border-radius: 999px; padding: 0.3rem 0.3rem 0.3rem 1rem; }
.search-icon { color: var(--ink-500); }
.search-row input { flex: 1; min-width: 0; padding: 0.7rem 0.4rem; border: 0; background: transparent; font-size: 1rem; color: var(--ink-900); }
.search-row input:focus { outline: none; }
.search-hint { font-size: 0.82rem; color: rgba(255,255,255,0.8); margin: 0.55rem 0 0 0.6rem; }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 0.4rem); z-index: 50; background: var(--white); color: var(--ink-900); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1rem; max-height: 60vh; overflow: auto; }
.search-results-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.search-results-head h3 { margin: 0; font-size: 1rem; font-family: var(--font-body); color: var(--ink-700); }
.search-results ul { list-style: none; padding: 0; margin: 0; }
.search-results li a { display: block; padding: 0.7rem 0.8rem; border-radius: var(--radius-sm); text-decoration: none; }
.search-results li a:hover, .search-results li a:focus { background: var(--teal-50); }
.search-results li strong { display: block; color: var(--navy-900); }
.search-results li span { font-size: 0.92rem; color: var(--ink-700); }
.search-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; background: var(--gold-100); color: var(--gold-700); padding: 0.1rem 0.5rem; border-radius: 999px; margin-right: 0.4rem; }
.search-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.chip { border: 1.5px solid var(--teal-500); background: var(--white); color: var(--teal-700); padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.9rem; font-weight: 600; min-height: 36px; transition: background 0.15s, color 0.15s; }
.chip:hover { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }

/* ---------- 6. Features & gallery ---------- */
.features { padding: 0 0 1rem; margin-top: -1px; background: var(--white); }
.feature-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; transform: translateY(-2.2rem); }
.feature-grid a { display: flex; flex-direction: column; gap: 0.35rem; height: 100%; padding: 1.2rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--ink-700); transition: transform 0.18s, box-shadow 0.18s; border-top: 3px solid transparent; }
.feature-grid a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-top-color: var(--gold-500); }
.feature-grid strong { font-family: var(--font-head); font-size: 1.05rem; color: var(--navy-900); }
.feature-grid span:not(.feature-icon) { font-size: 0.9rem; }
.feature-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-900); color: var(--gold-300); font-size: 1.35rem; margin-bottom: 0.3rem; }

.gallery-section { background: var(--white); padding-top: 2rem; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 1rem; }
.gallery-item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-item.span-2 { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption { position: absolute; inset: auto 0 0 0; padding: 2.2rem 1rem 0.9rem; font-size: 0.88rem; font-weight: 600; color: var(--white); background: linear-gradient(180deg, transparent, rgba(11,42,58,0.85)); }

/* ---------- 7. Process ---------- */
.process-progress { display: flex; align-items: center; gap: 1rem; max-width: 520px; margin-top: 1rem; }
.process-progress .progress { flex: 1; }
.process-progress p { margin: 0; white-space: nowrap; color: var(--ink-700); font-size: 0.95rem; }
.stepper { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.8rem; }
.step-btn { width: 100%; height: 100%; min-height: 128px; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1rem 0.7rem; border-radius: var(--radius); border: 1.5px solid var(--ink-200); background: var(--white); text-align: center; transition: all 0.18s; }
.step-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-50); color: var(--navy-900); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.step-num .icon { width: 1.3em; height: 1.3em; }
.step-title { font-size: 0.88rem; font-weight: 600; color: var(--ink-700); line-height: 1.3; }
.step-btn:hover { border-color: var(--gold-500); transform: translateY(-2px); }
.step-btn.is-active { border-color: var(--navy-900); background: var(--navy-900); box-shadow: var(--shadow); }
.step-btn.is-active .step-num { background: var(--gold-gradient); color: var(--navy-900); }
.step-btn.is-active .step-title { color: var(--white); }
.step-btn.is-done .step-num { background: var(--success); color: var(--white); }
.step-detail { max-width: 920px; margin: 0 auto; }
.step-detail-head { display: flex; align-items: flex-start; gap: 1.1rem; flex-wrap: wrap; }
.step-emoji { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--navy-900); color: var(--gold-300); font-size: 1.7rem; flex-shrink: 0; }
.step-detail-head h3 { margin: 0; }
.step-meta { color: var(--ink-500); font-size: 0.92rem; margin-bottom: 0.3rem; }
.step-detail ul { padding-left: 1.2rem; }
.step-detail li { margin-bottom: 0.45rem; }
.step-tip { display: flex; gap: 0.7rem; align-items: flex-start; background: var(--gold-100); border-left: 4px solid var(--gold-500); padding: 0.9rem 1rem; border-radius: var(--radius-sm); margin-top: 1rem; }
.step-tip .icon { color: var(--gold-700); margin-top: 0.15rem; }
.step-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }
.is-done-btn { background: var(--success) !important; color: var(--white) !important; }

/* ---------- 8. Documents ---------- */
.docs-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.5rem; align-items: start; }
.personaliser fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; }
.personaliser legend { font-weight: 700; color: var(--navy-900); margin-bottom: 0.4rem; }
.personaliser label { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.7rem; border-radius: var(--radius-sm); cursor: pointer; min-height: 42px; border: 1px solid transparent; }
.personaliser label:hover { background: var(--teal-50); border-color: var(--teal-100); }
.personaliser input[type="radio"] { width: 20px; height: 20px; accent-color: var(--navy-900); flex-shrink: 0; }
.checklist-card { position: sticky; top: calc(var(--header-h) + 1rem); }
.checklist-head p { margin: 0.5rem 0 0; color: var(--ink-700); }
.checklist { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-direction: column; gap: 0.5rem; }
.check-item { border: 1px solid var(--ink-200); border-radius: var(--radius-sm); padding: 0.75rem 0.95rem; transition: background 0.2s, border-color 0.2s; animation: fadeIn 0.3s ease both; }
.check-item.is-checked { background: #eef8f1; border-color: #bfe3cc; }
.check-item.is-checked .check-name { text-decoration: line-through; color: var(--ink-500); }
.check-label { display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; }
.check-label input { width: 22px; height: 22px; margin-top: 4px; accent-color: var(--success); flex-shrink: 0; }
.check-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--teal-50); color: var(--teal-700); display: grid; place-items: center; flex-shrink: 0; }
.check-name { font-weight: 600; flex: 1; padding-top: 0.35rem; }
.check-detail { margin: 0.45rem 0 0 4.6rem; font-size: 0.92rem; color: var(--ink-700); }
.check-detail summary { cursor: pointer; color: var(--teal-700); font-weight: 600; }
.checklist-complete { background: #eef8f1; border: 1px solid #bfe3cc; color: var(--success); font-weight: 700; padding: 0.85rem 1rem; border-radius: var(--radius-sm); }
.checklist-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 9. Curricula ---------- */
.curricula-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-bottom: 2rem; }
.curr-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.curr-card img { aspect-ratio: 4/3; object-fit: cover; transition: transform 0.6s ease; }
.curr-card:hover img { transform: scale(1.04); }
.curr-media { position: relative; overflow: hidden; }
.curr-media .tag { position: absolute; left: 0.8rem; bottom: 0.8rem; }
.curr-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; border-top: 4px solid var(--accent, var(--teal-700)); }
.curr-body h3 { margin: 0; font-size: 1.25rem; }
.curr-tagline { color: var(--ink-700); flex: 1; }
.curr-origin { font-size: 0.88rem; color: var(--ink-500); }
.curr-toggle { align-self: flex-start; }
.curr-detail { grid-column: 1 / -1; padding: 0; overflow: hidden; border-left: 6px solid var(--accent, var(--teal-700)); animation: fadeIn 0.25s ease; }
.curr-detail-title { margin: 0; padding: 1rem 1.3rem 0.5rem; background: var(--sand-100); }
.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.75rem 1rem 0; background: var(--sand-100); }
.tab { border: 0; background: transparent; padding: 0.65rem 1rem; border-radius: var(--radius-sm) var(--radius-sm) 0 0; font-weight: 700; color: var(--ink-700); min-height: 44px; }
.tab[aria-selected="true"] { background: var(--white); color: var(--navy-900); box-shadow: 0 -3px 0 var(--accent, var(--teal-700)) inset; }
.tab-panel { padding: 1.3rem; }
.tab-panel[hidden] { display: none; }
.tab-panel ul { padding-left: 1.2rem; }
.tab-panel li { margin-bottom: 0.45rem; }
.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.75rem 0.85rem; border-bottom: 1px solid var(--ink-200); vertical-align: top; }
th { color: var(--navy-900); background: var(--teal-50); font-weight: 700; }
.structure-table td:first-child { font-weight: 600; }
.comparator { margin-bottom: 1.5rem; }
.comparator h3 .icon, .age-calc h3 .icon, .estimator h3 .icon { color: var(--gold-700); }
.compare-toggles { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.compare-toggle { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 999px; border: 1.5px solid var(--ink-200); background: var(--white); cursor: pointer; font-weight: 600; min-height: 44px; }
.compare-toggle input { accent-color: var(--navy-900); width: 18px; height: 18px; }
.compare-toggle.is-on { border-color: var(--accent, var(--teal-700)); background: var(--teal-50); }
.compare-table th.curr-col { border-top: 5px solid var(--accent, var(--teal-700)); }
.compare-table td.criterion { font-weight: 700; color: var(--navy-900); width: 22%; }
.compare-empty { color: var(--ink-500); font-style: italic; padding: 1rem; }
.age-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; align-items: end; }
.age-form label, .estimator label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; }
.age-form input, .age-form select, .estimator input, .estimator select { padding: 0.7rem 0.9rem; border: 1.5px solid var(--ink-200); border-radius: var(--radius-sm); background: var(--white); min-height: 46px; width: 100%; }
.age-form input:focus, .estimator input:focus, .estimator select:focus { border-color: var(--gold-500); outline: none; }
.age-result { margin-top: 1.25rem; }
.age-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-top: 0.8rem; }
.age-pill { border-radius: var(--radius); padding: 1rem; background: var(--teal-50); border-top: 5px solid var(--accent, var(--teal-700)); }
.age-pill strong { display: block; font-family: var(--font-head); font-size: 1.2rem; color: var(--navy-900); }
.age-pill span { color: var(--ink-700); font-size: 0.9rem; }
.age-badge { display: inline-block; background: var(--navy-900); color: var(--gold-300); font-weight: 700; padding: 0.35rem 0.9rem; border-radius: 999px; }
.age-warning { background: var(--gold-100); border-left: 4px solid var(--gold-500); padding: 0.85rem 1rem; border-radius: var(--radius-sm); }

/* ---------- 10. Costs ---------- */
.costs-real { margin-bottom: 1.5rem; padding: 1.4rem 1.5rem; }
.costs-real h3 { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.3rem; }
.costs-real h3 .icon { color: var(--gold-700); }
.costs-real-sub { margin: 0 0 1rem; color: var(--ink-700); font-size: 0.92rem; }
.costs-real .table-wrap { overflow-x: auto; }
.costs-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.costs-table th, .costs-table td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--ink-200); text-align: left; vertical-align: top; }
.costs-table thead th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-500); background: var(--sand-100); }
.costs-table tbody th { color: var(--navy-900); font-weight: 700; white-space: nowrap; }
.costs-table td.num { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--navy-900); font-weight: 600; }
.costs-table td.examples { font-size: 0.82rem; color: var(--ink-700); }
.cost-ex { display: block; }
.cost-ex strong { color: var(--navy-900); font-weight: 600; }
.costs-real-note { margin: 0.9rem 0 0; font-size: 0.82rem; color: var(--ink-500); display: flex; gap: 0.35rem; align-items: flex-start; }
.costs-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: start; }
.costs-visual .photo-card { margin-bottom: 1.1rem; }
.cost-items { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.cost-items li { background: var(--white); border-radius: var(--radius-sm); padding: 0.9rem 1rem; box-shadow: var(--shadow-sm); display: flex; gap: 0.75rem; align-items: flex-start; }
.cost-items li > .icon { color: var(--gold-700); margin-top: 0.15rem; width: 1.5em; height: 1.5em; }
.cost-items li div { display: flex; flex-direction: column; gap: 0.15rem; }
.cost-items strong { color: var(--navy-900); }
.cost-items span { font-size: 0.9rem; color: var(--ink-700); }
.estimator { display: flex; flex-direction: column; gap: 0.95rem; }
.estimator label.check { flex-direction: row; align-items: center; gap: 0.6rem; }
.estimator label.check input { width: 22px; height: 22px; accent-color: var(--navy-900); }
.est-result { background: var(--navy-900); color: var(--white); border-radius: var(--radius); padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.3rem; position: relative; overflow: hidden; }
.est-result::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(232,199,102,0.35), transparent 70%); }
.est-result output { font-family: var(--font-head); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; color: var(--gold-300); }
.est-result small { color: var(--teal-100); font-size: 0.85rem; }

/* ---------- 11. FAQ ---------- */
.faq-tools { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.faq-tools input { flex: 1; min-width: 200px; padding: 0.7rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--ink-200); background: var(--white); }
.faq-list { display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item { border: 1px solid var(--ink-200); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.05rem 1.3rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 600; color: var(--navy-900); min-height: 58px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--gold-700); flex-shrink: 0; transition: transform 0.2s; font-family: var(--font-head); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { background: var(--teal-50); }
.faq-answer { padding: 0.25rem 1.3rem 1.3rem; color: var(--ink-700); }
.faq-none { color: var(--ink-500); font-style: italic; }
mark { background: var(--gold-100); color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---------- 12. Chatbot ---------- */
.chat { max-width: 800px; margin: 0 auto; padding: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(201,162,39,0.35); border-radius: var(--radius-lg); color: var(--ink-900); box-shadow: 0 30px 70px rgba(4,14,26,0.45), 0 0 0 1px rgba(255,255,255,0.04) inset; }
.chat-head { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.25rem; background: linear-gradient(135deg, #14334d 0%, #0b1f30 100%); color: var(--white); flex-wrap: wrap; border-bottom: 1px solid rgba(201,162,39,0.5); position: relative; }
.chat-head::after { content: ""; position: absolute; left: 1.25rem; right: 1.25rem; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(241,220,146,0.9), transparent); }
.chat-head img { border-radius: 50%; background: var(--white); }
.chat-head > div:first-of-type { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 160px; }
.chat-head strong { font-family: var(--font-head); font-size: 1.12rem; letter-spacing: 0.01em; }
.chat-status { font-size: 0.76rem; color: rgba(217,238,241,0.78); display: inline-flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; letter-spacing: 0.02em; }
.chat-status i { width: 7px; height: 7px; border-radius: 50%; background: #2fbf71; display: inline-block; box-shadow: 0 0 0 2px rgba(47,191,113,0.22); }
.chat-tools { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.engine-badge { display: inline-flex; align-items: center; gap: 0.35rem; border: 1px solid rgba(232,199,102,0.45); color: var(--gold-300); background: rgba(232,199,102,0.06); padding: 0.35rem 0.75rem; border-radius: 999px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.03em; min-height: 34px; }
.engine-badge.is-python { border-color: rgba(47,191,113,0.6); color: #a6f0b0; background: rgba(47,191,113,0.08); }
.chat-head .btn-ghost { background: rgba(255,255,255,0.06); color: var(--white); border: 1px solid rgba(255,255,255,0.12); }
.chat-head .btn-ghost:hover { background: rgba(255,255,255,0.14); }
.chat-log { height: 460px; overflow-y: auto; padding: 1.25rem 1.25rem 1rem; background: linear-gradient(180deg, #f8f4ec 0%, #f1ebdf 100%); display: flex; flex-direction: column; gap: 0.9rem; scrollbar-width: thin; scrollbar-color: rgba(11,42,58,0.25) transparent; }
.msg { display: flex; gap: 0.65rem; max-width: 86%; animation: fadeIn 0.25s ease; align-items: flex-end; }
.msg-avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; background: var(--white); box-shadow: 0 0 0 1.5px rgba(201,162,39,0.55), 0 2px 6px rgba(11,42,58,0.18); }
.msg-bubble { padding: 0.8rem 1.05rem; border-radius: 16px; line-height: 1.6; font-size: 0.95rem; }
.msg-bot .msg-bubble { background: var(--white); border: 1px solid rgba(11,42,58,0.07); border-bottom-left-radius: 4px; box-shadow: 0 6px 18px rgba(11,42,58,0.06); }
.msg-user { align-self: flex-end; flex-direction: row-reverse; }
.msg-user .msg-bubble { background: linear-gradient(135deg, #16354f, #0b2a3a); color: var(--white); border-bottom-right-radius: 4px; box-shadow: 0 8px 20px rgba(11,42,58,0.25); }
.msg-link { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.5rem; font-weight: 700; }
.msg-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.72rem; color: var(--ink-500); margin-top: 0.5rem; align-items: center; }
.msg-meta .pill { padding: 0.1rem 0.55rem; border-radius: 999px; background: var(--sand-100); border: 1px solid var(--ink-200); font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.pill.pill-understood { background: var(--gold-100); border-color: var(--gold-300); color: var(--navy-900); text-transform: none; letter-spacing: 0; font-weight: 600; }
.pill.conf-high { background: #eef8f1; border-color: #bfe3cc; color: var(--success); }
.pill.conf-medium { background: var(--gold-100); border-color: var(--gold-300); color: var(--gold-700); }
.pill.conf-low { background: #fdecea; border-color: #f5c2bd; color: var(--danger); }
.msg-related { margin-top: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.msg-related span { width: 100%; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-500); font-weight: 700; }
.msg-related .chip { font-size: 0.82rem; min-height: 32px; padding: 0.25rem 0.75rem; }
.typing { display: inline-flex; gap: 4px; padding: 0.7rem 0.9rem; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-700); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; } .typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.2; } 40% { opacity: 1; } }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.8rem 1.25rem 0; background: var(--white); border-top: 1px solid rgba(11,42,58,0.06); }
.chat-suggestions .chip { background: var(--white); border: 1px solid rgba(11,42,58,0.16); color: var(--navy-900); font-weight: 500; font-size: 0.84rem; }
.chat-suggestions .chip:hover { border-color: var(--gold-500); background: var(--gold-100); }
.chat-form { display: flex; gap: 0.5rem; padding: 0.85rem 1.25rem 1.1rem; background: var(--white); }
.chat-form input { flex: 1; min-width: 0; padding: 0.8rem 1.2rem; border-radius: 999px; border: 1px solid rgba(11,42,58,0.18); background: #fbf9f4; box-shadow: inset 0 1px 2px rgba(11,42,58,0.05); font-size: 0.95rem; transition: border-color 0.2s, box-shadow 0.2s; }
.chat-form input:focus { border-color: var(--gold-500); outline: none; box-shadow: 0 0 0 3px rgba(201,162,39,0.18); background: var(--white); }
.chat-fab { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #16354f, #0a1d2f); box-shadow: 0 12px 32px rgba(4,14,26,0.4), 0 0 0 1px rgba(241,220,146,0.35); display: grid; place-items: center; border: 1.5px solid var(--gold-500); transition: transform 0.2s, box-shadow 0.2s; }
.chat-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 16px 40px rgba(4,14,26,0.45), 0 0 0 6px rgba(201,162,39,0.14); }
.chat-fab .linda { animation: lindaFloat 3s ease-in-out infinite; }

/* ---------- 12b. Linda avatar (animated SVG) ---------- */
.linda { position: relative; display: inline-block; width: var(--size); height: var(--size); flex-shrink: 0; animation: lindaFloat 4s ease-in-out infinite; }
.linda svg { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--white); box-shadow: 0 2px 10px rgba(4,14,26,0.25); }
.linda-status { position: absolute; right: 5%; bottom: 7%; width: 14%; height: 14%; border-radius: 50%; background: #2fbf71; border: 2px solid var(--white); box-shadow: 0 0 0 2px rgba(47,191,113,0.2); }
.linda-lids { transform-origin: 60px 52px; transform: scaleY(0); animation: lindaBlink 4.2s infinite; }
.linda-head { transform-origin: 60px 70px; }
.linda-open { opacity: 0; transform-origin: 60px 73.5px; }
.linda-spark { transform-origin: 92px 30px; opacity: 0; transform: scale(0.4); transition: opacity 0.3s, transform 0.3s; }
.linda-lip { transition: opacity 0.2s; }
.linda-brows { transform-origin: 60px 50px; transition: transform 0.3s; }
.linda-iris { transition: transform 0.3s; }
.linda.is-talking .linda-head { animation: lindaNod 0.9s ease-in-out infinite; }
.linda.is-talking .linda-open { animation: lindaTalk 0.28s ease-in-out infinite alternate; }
.linda.is-talking .linda-smile, .linda.is-talking .linda-lip { opacity: 0.25; }
.linda.is-happy .linda-spark { opacity: 1; transform: scale(1); animation: lindaSpark 1.4s ease-in-out infinite; }
.linda.is-happy .linda-smile { stroke-width: 1.8; d: path("M53.5 71.5 Q 60 78.5 66.5 71.5"); }
.linda.is-happy .linda-lip { d: path("M53.5 71.5 Q 60 79.6 66.5 71.5 Q 60 74.8 53.5 71.5 Z"); }
.linda.is-happy .linda-brows { transform: translateY(-1.5px); }
.linda.is-thinking .linda-iris { transform: translate(1.5px, -2px); }
.linda.is-thinking .linda-brows { transform: translateY(-2px) rotate(-3deg); }
.linda.is-thinking .linda-status { background: var(--gold-500); box-shadow: 0 0 0 2px rgba(232,199,102,0.3); animation: lindaPulse 0.9s infinite; }
@keyframes lindaFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes lindaBlink { 0%, 92%, 100% { transform: scaleY(0); } 95%, 97% { transform: scaleY(1); } }
@keyframes lindaNod { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(2.5deg) translateY(0.6px); } }
@keyframes lindaTalk { from { opacity: 0.9; transform: scaleY(0.35); } to { opacity: 1; transform: scaleY(1.15); } }
@keyframes lindaSpark { 0%, 100% { transform: scale(0.85) rotate(0deg); opacity: 0.8; } 50% { transform: scale(1.1) rotate(20deg); opacity: 1; } }
@keyframes lindaPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.msg-avatar.linda { width: 34px; height: 34px; animation: none; }
.msg-avatar.linda .linda-status { display: none; }
.linda-head-avatar { width: 56px; height: 56px; }

/* Chat overlay on phones/tablets + floating button */
.chat-close { display: none; }
.fab-label { display: none; }
@media (max-width: 900px) {
  .chat-fab { width: auto; height: 56px; border-radius: 999px; padding: 0 1rem 0 0.35rem; gap: 0.5rem; display: flex; align-items: center; }
  .chat-fab .linda { --size: 46px !important; width: 46px; height: 46px; }
  .fab-label { display: inline; color: var(--white); font-weight: 700; font-size: 0.9rem; }
  body.chat-open { overflow: hidden; }
  body.chat-open .chat { position: fixed; inset: 0; z-index: 400; max-width: none; border-radius: 0; height: 100dvh; display: flex; }
  body.chat-open .chat-log { flex: 1; height: auto; }
  body.chat-open .chat-close { display: inline-flex; }
  body.chat-open .chat-fab { display: none; }
  body.chat-open .chat-head { padding: 0.6rem 0.8rem; flex-wrap: nowrap; gap: 0.6rem; }
  body.chat-open .chat-head .linda { --size: 40px !important; width: 40px; height: 40px; }
  body.chat-open .chat-head strong { font-size: 0.95rem; }
  body.chat-open .chat-status { font-size: 0.7rem; }
  body.chat-open .chat-tools { flex-wrap: nowrap; width: auto; }
  body.chat-open .chat-tools .btn span, body.chat-open .engine-badge span { display: none; }
  body.chat-open .chat-tools .btn, body.chat-open .engine-badge { padding: 0.4rem 0.6rem; min-width: 38px; justify-content: center; }
  body.chat-open .chat-suggestions { max-height: 88px; overflow: auto; }
}

/* School cards inside chat bubbles */
.school-card { display: grid; grid-template-columns: 96px 1fr; gap: 0.7rem; margin-top: 0.7rem; background: var(--ivory); border: 1px solid var(--ink-200); border-left: 4px solid var(--pin, var(--teal-700)); border-radius: var(--radius-sm); overflow: hidden; }
.school-card img { width: 96px; height: 100%; object-fit: cover; }
.school-card-body { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.6rem 0.7rem 0.6rem 0; font-size: 0.88rem; color: var(--ink-700); }
.school-card-body strong { color: var(--navy-900); font-size: 0.98rem; }
.school-card-actions, .school-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.3rem; }
.school-card-actions .chip, .school-chips .chip { font-size: 0.78rem; min-height: 30px; padding: 0.2rem 0.65rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; }
.school-chips { margin-top: 0.7rem; }

/* ---------- 12c. School map ---------- */
.map-filters { padding: 1rem 1.2rem; margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.map-filter-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.map-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; flex: 1; }
.map-chips .chip.is-on { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.map-count { font-weight: 700; color: var(--navy-900); white-space: nowrap; }
.map-field { display: inline-flex; align-items: center; gap: 0.5rem; border: 1.5px solid var(--ink-200); border-radius: 999px; padding: 0.35rem 0.9rem; background: var(--white); min-height: 44px; font-size: 0.92rem; }
.map-field input[type="search"], .map-field select { border: 0; background: transparent; min-width: 160px; }
.map-field input[type="search"]:focus, .map-field select:focus { outline: none; }
.map-field .icon { color: var(--ink-500); }
.map-range { gap: 0.6rem; }
.map-range input[type="range"] { width: 130px; accent-color: var(--navy-900); }
.map-range output { font-weight: 700; color: var(--navy-900); font-size: 0.85rem; white-space: nowrap; }
.map-field.check input { width: 18px; height: 18px; accent-color: var(--navy-900); }
.map-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1rem; align-items: stretch; }
.map-wrap { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.school-map { height: 520px; width: 100%; background: var(--sand-100); z-index: 0; }
.map-offline { display: flex; gap: 0.5rem; align-items: center; justify-content: center; height: 100%; padding: 2rem; color: var(--ink-700); }
.map-legend { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; padding: 0.6rem 1rem; margin: 0; font-size: 0.8rem; color: var(--ink-500); background: var(--white); }
.legend-dot { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; color: var(--ink-700); }
.legend-dot::before { content: ""; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--pin); }
.pin { width: 40px; height: 40px; border-radius: 50% 50% 50% 0; background: var(--pin); transform: rotate(-45deg); border: 3px solid var(--white); box-shadow: 0 4px 12px rgba(11,42,58,0.35); display: grid; place-items: center; }
.pin span { transform: rotate(45deg); color: var(--white); font-weight: 800; font-size: 0.68rem; letter-spacing: 0.02em; }
.pin.is-selected { background: var(--gold-600); animation: pinPulse 1.2s infinite; border-color: var(--navy-900); }
.pin.is-selected span { color: var(--navy-900); }
@keyframes pinPulse { 0%, 100% { box-shadow: 0 4px 12px rgba(11,42,58,0.35), 0 0 0 0 rgba(201,162,39,0.6); } 50% { box-shadow: 0 4px 12px rgba(11,42,58,0.35), 0 0 0 12px rgba(201,162,39,0); } }
.leaflet-popup-content { font-family: var(--font-body); font-size: 0.9rem; line-height: 1.45; }
.leaflet-popup-content .chip { margin-top: 0.4rem; }
.leaflet-container a { color: var(--teal-700); }
.school-list { display: flex; flex-direction: column; gap: 0.5rem; max-height: 560px; overflow: auto; padding-right: 0.2rem; }
.school-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 0.7rem; align-items: center; text-align: left; background: var(--white); border: 1.5px solid var(--ink-200); border-left: 5px solid var(--pin, var(--teal-700)); border-radius: var(--radius-sm); padding: 0.5rem 0.7rem 0.5rem 0.5rem; transition: border-color 0.15s, transform 0.15s; }
.school-item:hover { border-color: var(--gold-500); transform: translateX(2px); }
.school-item.is-active { border-color: var(--navy-900); background: var(--teal-50); }
.school-item img { width: 84px; height: 62px; object-fit: cover; border-radius: 8px; }
.school-item-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.school-item-body strong { color: var(--navy-900); font-size: 0.95rem; line-height: 1.25; }
.school-item-meta { font-size: 0.8rem; color: var(--ink-700); display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; }
.school-item > .icon { color: var(--gold-700); }
.map-empty { padding: 1rem; color: var(--ink-500); font-style: italic; }
.rating { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; }
.rating-outstanding { background: #eef8f1; color: var(--success); }
.rating-verygood { background: var(--teal-100); color: var(--teal-700); }
.rating-good { background: var(--gold-100); color: var(--gold-700); }
.rating-acceptable { background: var(--sand-200); color: var(--ink-700); }
/* School profile = fixed dialog over the page: opening it never scrolls
   or shifts the document (the user keeps their position on the map). */
.detail-backdrop { position: fixed; inset: 0; z-index: 140; background: rgba(11,42,58,0.55); backdrop-filter: blur(3px); animation: fadeIn 0.25s ease; }
.school-detail { position: fixed; z-index: 150; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(960px, calc(100vw - 2rem)); max-height: min(92vh, 100dvh - 1.5rem); margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 30px 80px rgba(0,0,0,0.45); animation: detailIn 0.3s ease; }
@keyframes detailIn { from { opacity: 0; transform: translate(-50%, -48%) scale(0.98); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
html.detail-open { overflow: hidden; scrollbar-gutter: stable; }
.detail-close { position: sticky; top: 0.8rem; margin: 0.8rem 0.8rem -3.3rem auto; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.92); color: var(--navy-900); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.detail-media { position: relative; clear: none; }
.detail-media img { width: 100%; aspect-ratio: 21/9; object-fit: cover; display: block; }
.detail-media .tag { position: absolute; left: 1rem; top: 1rem; }
.detail-credit { position: absolute; right: 0.9rem; top: 4.2rem; z-index: 2; display: inline-flex; align-items: center; gap: 0.3rem; max-width: 70%; padding: 0.25rem 0.6rem; border-radius: 999px; font-size: 0.68rem; color: var(--white); background: rgba(11,42,58,0.65); backdrop-filter: blur(4px); }
.detail-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.5rem 1.1rem; color: var(--white); background: linear-gradient(180deg, transparent, rgba(11,42,58,0.9)); }
.detail-title h3 { color: var(--white); margin: 0.2rem 0; font-size: 1.6rem; }
.detail-title p { margin: 0; color: var(--teal-100); }
.detail-body { padding: 1.4rem 1.5rem 1.5rem; }
.detail-summary { font-size: 1.05rem; color: var(--ink-700); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin: 1rem 0; }
.facts-compact { grid-template-columns: repeat(3, 1fr); }
.fact { display: flex; gap: 0.6rem; align-items: flex-start; background: var(--ivory); border: 1px solid var(--ink-200); border-radius: var(--radius-sm); padding: 0.7rem 0.8rem; }
.fact > .icon { color: var(--gold-700); width: 1.4em; height: 1.4em; margin-top: 0.1rem; }
.fact small { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-500); font-weight: 700; }
.fact strong { font-size: 0.95rem; color: var(--navy-900); font-weight: 600; }
.fact strong .fact-src { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 0.68rem; color: var(--ink-500); margin-top: 0.2rem; }
.analytics { display: flex; flex-direction: column; gap: 0.6rem; margin: 0.5rem 0 1rem; }
.an-row { display: grid; grid-template-columns: 200px 1fr auto; gap: 0.3rem 0.8rem; align-items: center; }
.an-label { font-size: 0.9rem; font-weight: 600; color: var(--navy-900); }
.an-bar { height: 10px; border-radius: 999px; background: var(--ink-200); overflow: hidden; }
.an-bar span { display: block; height: 100%; background: var(--gold-gradient); transition: width 0.6s ease; }
.an-val { font-weight: 700; color: var(--navy-900); font-size: 0.9rem; white-space: nowrap; }
.an-cmp { grid-column: 2 / 4; font-size: 0.75rem; color: var(--ink-500); margin-top: -0.2rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.detail-email { margin: 0.9rem 0 0; font-size: 0.9rem; color: var(--ink-700); display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.detail-disclaimer { margin: 0.6rem 0 0; font-size: 0.8rem; color: var(--ink-500); }

/* ---------- 12d. GWA in-depth section ---------- */
.gwa-section .section-bg { opacity: 0.22; }
.gwa-content { display: flex; flex-direction: column; gap: 1rem; color: var(--ink-900); }
.gwa-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; padding: 0; overflow: hidden; }
.gwa-media { position: relative; }
.gwa-media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.gwa-media .tag { position: absolute; left: 1rem; bottom: 1rem; }
.gwa-hero-body { padding: 1.6rem; }
.gwa-hero-body h3 { font-size: 1.6rem; margin-bottom: 0.3rem; }
.gwa-tabs-card { padding: 0; overflow: hidden; }
.gwa-tabs-card .tab-panel { padding: 1.4rem 1.5rem 0.5rem; }
.gwa-actions { padding: 0.5rem 1.5rem 0; }
.gwa-tabs-card .detail-email, .gwa-tabs-card .detail-disclaimer { padding: 0 1.5rem; }
.gwa-tabs-card .detail-disclaimer { padding-bottom: 1.3rem; }
.gwa-bullets, .gwa-facilities { list-style: none; padding: 0; margin: 0.5rem 0 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; }
.gwa-bullets li, .gwa-facilities li { display: flex; gap: 0.5rem; align-items: flex-start; }
.gwa-bullets .icon, .gwa-facilities .icon { color: var(--gold-700); margin-top: 0.25rem; }
.khda-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin: 0.5rem 0 1rem; }
.khda-cell { display: flex; flex-direction: column; gap: 0.3rem; background: var(--ivory); border: 1px solid var(--ink-200); border-radius: var(--radius-sm); padding: 0.7rem 0.8rem; font-size: 0.88rem; color: var(--ink-700); }
.khda-cell .rating { align-self: flex-start; }

/* ---------- 13. Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--teal-100); padding: 3.5rem 0 1.5rem; margin-top: 0; border-top: 3px solid var(--gold-600); }
.site-footer h3 { color: var(--white); font-size: 1rem; font-family: var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer a { color: var(--gold-300); }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 0.8fr 1fr 1.2fr; gap: 2rem; }
.brand-footer { color: var(--white); margin-bottom: 0.75rem; }
.brand-footer strong { font-family: var(--font-head); font-size: 1.3rem; }
.brand-footer img { border-radius: 10px; }
.footer-credits { font-size: 0.82rem; color: rgba(217,238,241,0.75); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.88rem; }

/* ---------- 14. Utilities ---------- */
.load-error { position: fixed; inset: auto 1rem 1rem 1rem; z-index: 200; background: var(--danger); color: var(--white); padding: 1rem 1.25rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ---------- 15. Responsive ---------- */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split .photo-card { max-width: 640px; }
  .stepper { grid-template-columns: repeat(3, 1fr); }
  .curricula-grid { grid-template-columns: 1fr 1fr; }
  .docs-grid, .costs-grid { grid-template-columns: 1fr; }
  .checklist-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .hero { min-height: 0; }
  .map-layout { grid-template-columns: 1fr; }
  .school-map { height: 420px; }
  .school-list { max-height: 420px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .gwa-hero { grid-template-columns: 1fr; }
  .gwa-media img { min-height: 0; aspect-ratio: 16/9; }
}
@media (max-width: 1100px) {
  .brand-text small { display: none; }
}
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0.75rem; background: var(--ivory); border-bottom: 1px solid var(--ink-200); box-shadow: var(--shadow); padding: 1rem; display: none; }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-list a { padding: 0.8rem 1rem; min-height: 46px; }
  .lang-menu { align-self: flex-start; }
  .lang-list { left: 0; right: auto; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); transform: translateY(-1.2rem); }
  .stepper { grid-template-columns: repeat(2, 1fr); }
  .curricula-grid { grid-template-columns: 1fr; }
  .age-form { grid-template-columns: 1fr; }
  .age-result-grid { grid-template-columns: 1fr; }
  .cost-items { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .chat-log { height: 380px; }
  .msg { max-width: 95%; }
  .process-progress { flex-direction: column; align-items: stretch; }
  .process-progress p { text-align: center; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item.span-2 { grid-column: span 2; grid-row: span 1; }
  /* Mobile hero: show the whole 16:9 photo (Burj Khalifa + family) on top, text on navy below */
  .hero { display: block; padding: 0; background: var(--navy-900); }
  .hero-bg { position: static; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; object-position: center; transform: none; }
  .hero-overlay { display: none; }
  .hero-content { padding: 1.5rem 0 2rem; }
  .hero-badge { margin-top: 0; }
  .facts, .facts-compact, .khda-grid, .gwa-bullets, .gwa-facilities { grid-template-columns: 1fr; }
  .an-row { grid-template-columns: 1fr auto; }
  .an-label { grid-column: 1 / 3; }
  .an-cmp { grid-column: 1 / 3; }
  .school-map { height: 340px; }
  .map-range input[type="range"] { width: 90px; }
  .detail-media img { aspect-ratio: 16/10; }
  .detail-title h3 { font-size: 1.25rem; }
  /* Full-screen sheet on phones */
  .school-detail { left: 0; top: 0; transform: none; width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; animation: fadeIn 0.25s ease; }
  .detail-credit { left: 1rem; right: auto; top: 3.1rem; max-width: 80%; font-size: 0.62rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .school-card { grid-template-columns: 1fr; }
  .school-card img { width: 100%; height: 120px; }
  .school-card-body { padding: 0.6rem 0.7rem; }
  /* Tables become stacked cards to avoid horizontal scrolling */
  .compare-table thead, .structure-table thead { display: none; }
  .compare-table tr, .structure-table tr { display: block; border: 1px solid var(--ink-200); border-radius: var(--radius-sm); margin-bottom: 0.75rem; padding: 0.5rem 0; }
  .compare-table td, .structure-table td { display: block; border: 0; padding: 0.35rem 0.9rem; }
  .compare-table td::before, .structure-table td::before { content: attr(data-label); display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-500); font-weight: 700; }
  .compare-table td.criterion { width: auto; background: var(--teal-50); border-radius: var(--radius-sm) var(--radius-sm) 0 0; padding: 0.6rem 0.9rem; }
  .compare-table td.criterion::before { display: none; }
  /* Real-fees table → one card per curriculum */
  .costs-table thead { display: none; }
  .costs-table tr { display: block; border: 1px solid var(--ink-200); border-radius: var(--radius-sm); margin-bottom: 0.75rem; padding: 0 0 0.4rem; }
  .costs-table tbody th { display: block; background: var(--sand-100); padding: 0.6rem 0.9rem; border-radius: var(--radius-sm) var(--radius-sm) 0 0; border: 0; white-space: normal; }
  .costs-table td { display: block; border: 0; padding: 0.35rem 0.9rem; white-space: normal; }
  .costs-table td::before { content: attr(data-label); display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-500); font-weight: 700; }
}
@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
  .search-row { flex-wrap: wrap; padding: 0.5rem; border-radius: var(--radius); }
  .search-row input { width: 100%; flex-basis: 100%; }
  .search-row .btn { width: 100%; }
  .search-icon { display: none; }
  .hero-actions .btn, .step-nav .btn { width: 100%; }
  .hero-stats { grid-template-columns: 1fr 1fr; padding: 1rem; }
  .hero-stats strong { font-size: 1.5rem; }
  .chat-form { flex-direction: column; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 190px; }
  .gallery-item.span-2 { grid-column: span 1; }
  .chat-tools { width: 100%; justify-content: space-between; }
}

/* ---------- 15b. Mobile hardening (touch, iOS, notch) ---------- */
@media (hover: none) and (pointer: coarse) {
  /* Prevent iOS auto-zoom on focus: form controls at least 16px */
  input, select, textarea, .chat-form input, .search-row input { font-size: 16px; }
  /* Comfortable tap targets */
  .btn, .chip, .nav-list a, .school-item, .step-btn, .lang-list button, .detail-close { min-height: 44px; }
  .chip { padding-top: 0.55rem; padding-bottom: 0.55rem; }
  a, button, .chip, .school-item, .pin { touch-action: manipulation; -webkit-tap-highlight-color: rgba(201,162,39,0.25); }
  .school-map { touch-action: pan-x pan-y; }
}
/* Safe areas (iPhone notch / home indicator) */
.chat-fab { right: calc(1.1rem + env(safe-area-inset-right, 0px)); bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); }
.site-header { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
@media (max-width: 900px) {
  body.chat-open .chat-form { padding-bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); }
  .footer-bottom { padding-bottom: 5rem; } /* room for the floating chat button */
  body.chat-open .chat-head { padding-top: calc(0.6rem + env(safe-area-inset-top, 0px)); }
  .school-detail { padding-bottom: env(safe-area-inset-bottom, 0px); }
}
/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- 16. Print ---------- */
@media print {
  .site-header, .hero, .features, .gallery-section, .site-footer, .chat-fab, #process, #curricula, #costs, #faq, #chatbot, .personaliser, .checklist-actions, .mt-notice { display: none !important; }
  .card { box-shadow: none; }
}
