/* ============================================================
   BRIGHT HORIZONS — GLOBAL STYLESHEET
   All pages import: theme.css then global.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { font-family: var(--font-body); background: var(--page-bg); color: var(--text-body); line-height: 1.6; overflow-x: clip; max-width: 100%; }
a { text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  background: linear-gradient(135deg, rgba(var(--primary-rgb),.06) 0%, rgba(var(--primary-rgb),.02) 100%), var(--nav-bg);
  position: sticky; top: 0; z-index: 1000;
  height: 68px; display: flex; align-items: center;
  padding: 0 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(var(--primary-rgb),.1);
}
.nav-inner {
  max-width: 1100px; width: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--nav-active-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.nav-logo-name { font-family: var(--font-display); font-weight: 800; color: var(--nav-text); font-size: 1.2rem; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.nav-logo-sub  { font-size: 0.58rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.nav-board-badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 50px;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--accent-bg); color: var(--accent-text);
  border: 1px solid rgba(0,0,0,0.06); white-space: nowrap; flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a {
  color: var(--nav-text); font-weight: 700; font-size: 0.82rem;
  padding: 7px 13px; border-radius: 8px; opacity: 0.78;
  transition: all 0.2s; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 4px;
}
.nav-links a:hover { opacity: 1; background: rgba(var(--primary-rgb),.08); color: var(--primary); }
.nav-links a.active { background: rgba(var(--primary-rgb),.12); color: var(--primary); opacity: 1; }
.nav-links > li.active > .sub-toggle { background: rgba(var(--primary-rgb),.12); color: var(--primary); opacity: 1; }
.nav-links .caret { font-size: .7em; opacity: .6; transition: transform .25s; margin-left: 2px; }
.nav-links > li.has-sub:hover .caret,
.nav-links > li.has-sub.open .caret { transform: rotate(180deg); }

/* ── Futuristic dropdown ── */
.nav-links > li.has-sub { position: relative; }
/* Invisible bridge so cursor can move from parent → submenu without losing hover.
   Desktop-only (matches the hamburger breakpoint at 1100px). */
@media (min-width: 1101px) {
  .nav-links > li.has-sub::after {
    content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 14px;
    opacity: 0; pointer-events: none;
  }
  .nav-links > li.has-sub:hover::after { opacity: 1; pointer-events: auto; }
}

.nav-links .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-8px) scale(.96);
  min-width: 200px; padding: 8px; list-style: none;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(var(--primary-rgb),.18);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.12), 0 2px 8px rgba(var(--primary-rgb),.12);
  opacity: 0; pointer-events: none;
  transition: opacity .22s cubic-bezier(.4,0,.2,1), transform .28s cubic-bezier(.34,1.32,.64,1);
  transition-delay: .12s; /* small grace so cursor can land */
  z-index: 1050;
}
.nav-links .sub-menu::before {
  content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(20px);
  border-left: 1px solid rgba(var(--primary-rgb),.18);
  border-top: 1px solid rgba(var(--primary-rgb),.18);
}
.nav-links > li.has-sub:hover > .sub-menu,
.nav-links > li.has-sub.open > .sub-menu {
  opacity: 1; pointer-events: all;
  transform: translateX(-50%) translateY(0) scale(1);
  transition-delay: 0s; /* open immediately, only close has the delay */
}
.nav-links .sub-menu li { margin: 0; }
.nav-links .sub-menu a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; font-size: .82rem; font-weight: 600;
  border-radius: 9px; opacity: .85; width: 100%; color: var(--nav-text);
  position: relative;
}
.nav-links .sub-menu a::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--primary); opacity: 0; transition: opacity .2s, transform .2s;
  transform: translateX(-4px);
}
.nav-links .sub-menu a:hover {
  background: linear-gradient(90deg, rgba(var(--primary-rgb),.1), transparent);
  color: var(--primary); opacity: 1; transform: translateX(3px);
}
.nav-links .sub-menu a:hover::before { opacity: 1; transform: translateX(0); }
.nav-links .sub-menu a.active {
  background: rgba(var(--primary-rgb),.14); color: var(--primary); opacity: 1;
}
.nav-links .sub-menu a.active::before { opacity: 1; transform: translateX(0); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2.5px;
  background: var(--nav-text); border-radius: 2px; transition: all 0.3s;
}

/* ── PAGE HERO BANNER (inner pages) ─────────────────────── */
.page-banner {
  background: var(--hero-bg);
  padding: 4rem 2rem 3.5rem;
  position: relative; overflow: hidden;
}
.page-banner-shapes { position: absolute; inset: 0; pointer-events: none; }
.pbs { position: absolute; border-radius: 50%; background: var(--primary); }
.pbs-1 { width: 320px; height: 320px; top: -100px; right: 3%; opacity: 0.12; }
.pbs-2 { width: 180px; height: 180px; bottom: -60px; right: 22%; opacity: 0.07; }
.pbs-3 { width: 130px; height: 130px; top: 10%; left: -40px; opacity: 0.06; }
.page-banner-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 2; }
.page-banner-breadcrumb {
  font-size: 0.73rem; font-weight: 600; color: rgba(255,255,255,0.45);
  margin-bottom: 0.7rem; letter-spacing: 0.04em;
}
.page-banner-breadcrumb a { color: rgba(255,255,255,0.45); }
.page-banner-breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.page-banner h1 {
  font-family: var(--font-display); color: #fff;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin-bottom: 0.7rem;
  text-shadow: 0 2px 16px rgba(0,0,0,.4);
}
.page-banner p {
  color: rgba(255,255,255,.85);
  font-size: 1rem; font-weight: 500; max-width: 520px; line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.page-banner-breadcrumb { text-shadow: 0 1px 6px rgba(0,0,0,.4); }

/* ── SECTION UTILITIES ───────────────────────────────────── */
.section      { padding: 4.5rem 2rem; overflow: hidden; }
.section-white { background: var(--white); }
.section-page  { background: var(--page-bg); }
.section-alt   { background: var(--section-bg-alt); }
.section-inner { max-width: 1160px; margin: 0 auto; width: 100%; }
* { box-sizing: border-box; }
img, video { max-width: 100%; }

.section-header { text-align: center; margin-bottom: 2.8rem; }
.section-tag {
  display: inline-block; background: var(--accent-bg); color: var(--primary);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 16px; border-radius: 50px; margin-bottom: 0.8rem;
  border: 1px solid rgba(0,0,0,0.06);
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--text-heading); margin-bottom: 0.6rem; line-height: 1.2;
}
.section-desc { color: var(--text-muted); font-size: 0.97rem; font-weight: 600; max-width: 520px; margin: 0 auto; line-height: 1.65; }

/* ── SECTION HEADER SYSTEM (shared across all pages) ────── */
.sec-eyebrow {
  display: inline-block; background: var(--accent-bg); color: var(--accent-text);
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 14px; border-radius: var(--radius-pill); margin-bottom: 0.9rem;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
}
.sec-title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  color: var(--text-heading); font-weight: 800; line-height: 1.15;
}
.sec-title .hl { color: var(--accent-text); }
.sec-sub { color: var(--text-muted); font-size: 0.97rem; line-height: 1.7; margin-top: 0.6rem; }

/* ── ICON BOX ────────────────────────────────────────────── */
.ds-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.ds-icon-sm { width: 44px; height: 44px; border-radius: 12px; font-size: 1.2rem; }

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 5rem 2rem; color: var(--text-muted); }
.empty-state svg { display: block; margin: 0 auto; }
.empty-state p { margin-top: 1rem; font-weight: 600; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-block; font-weight: 800; font-size: 0.93rem;
  padding: 12px 28px; border-radius: 50px; border: none;
  cursor: pointer; transition: all 0.2s; letter-spacing: 0.02em;
}
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline-dark {
  background: transparent; color: var(--accent);
  border: 2px solid var(--card-border); font-weight: 800; font-size: 0.9rem;
  padding: 10px 24px; border-radius: 50px; transition: all 0.2s; cursor: pointer;
}
.btn-outline-dark:hover { border-color: var(--accent); background: var(--accent-bg); }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1.5px solid var(--card-border); padding: 1.8rem 1.5rem;
  transition: all 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--card-hover-border); }
.card-tinted {
  background: var(--card-bg); border-radius: var(--radius-lg);
  border: 1.5px solid var(--card-border); padding: 1.8rem 1.5rem;
  transition: all 0.25s;
}
.card-tinted:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

/* ── SUBJECT CARD TINTS ─────────────────────────────────── */
.s1 { background: var(--subject-1-bg); border-color: var(--subject-1-border); }
.s2 { background: var(--subject-2-bg); border-color: var(--subject-2-border); }
.s3 { background: var(--subject-3-bg); border-color: var(--subject-3-border); }
.s4 { background: var(--subject-4-bg); border-color: var(--subject-4-border); }
.s5 { background: var(--subject-5-bg); border-color: var(--subject-5-border); }
.s6 { background: var(--subject-6-bg); border-color: var(--subject-6-border); }

/* ── PILL / BADGE ────────────────────────────────────────── */
.pill {
  display: inline-block; background: var(--card-bg); color: var(--accent);
  border: 1.5px solid var(--card-border); font-weight: 700;
  font-size: 0.78rem; padding: 4px 13px; border-radius: 50px;
}
.badge {
  display: inline-block; font-size: 0.65rem; font-weight: 800;
  padding: 3px 10px; border-radius: 50px;
  background: var(--accent-bg); color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.07em;
}

/* ── REVEAL ANIMATION ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── BACK TO TOP ─────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 24px; left: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--btn-primary-bg); color: var(--btn-primary-text);
  font-size: 1.3rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; box-shadow: var(--shadow-hover);
  opacity: 0; transform: translateY(12px); transition: all 0.3s; z-index: 500;
}
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { filter: brightness(1.1); }

/* ── FOOTER ──────────────────────────────────────────────── */
footer { background: var(--footer-bg); padding: 3.5rem 2rem 1.5rem; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem;
}
.footer-logo-name { font-family: var(--font-display); color: #ffffff; font-size: 1.3rem; margin-bottom: 3px; }
.footer-logo-sub  { font-size: 0.6rem; color: rgba(255,255,255,0.60); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-brand p   { color: var(--footer-text); font-size: 0.85rem; line-height: 1.7; font-weight: 600; margin-bottom: 1.2rem; }
.footer-socials   { display: flex; gap: 8px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.80); cursor: pointer; transition: all 0.2s;
  text-decoration: none;
}
.social-btn:hover           { transform: translateY(-3px); color: #fff; }
.social-facebook:hover      { background: #1877f2; border-color: #1877f2; }
.social-instagram:hover     { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); border-color: #d6249f; }
.social-youtube:hover       { background: #ff0000; border-color: #ff0000; }
.social-whatsapp:hover      { background: #25d366; border-color: #25d366; }
.footer-col h4 {
  font-size: 0.7rem; font-weight: 800; color: var(--footer-accent);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: var(--footer-text); font-size: 0.85rem; font-weight: 600; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--footer-accent); }
.footer-bottom {
  max-width: 1100px; margin: 2rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: var(--footer-text); font-weight: 600; }
.footer-bottom span { color: var(--footer-accent); font-weight: 700; }

/* ── FORM ELEMENTS ───────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 800; color: #444; margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: var(--form-input-bg);
  border: 1.5px solid var(--form-input-border);
  border-radius: var(--radius-sm); padding: 11px 14px;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  color: #333; outline: none; transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--form-input-focus); background: var(--white); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #ccc; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-card {
  background: var(--form-bg); border-radius: var(--radius-lg);
  border: 2px solid var(--form-border); padding: 2.2rem;
  box-shadow: var(--shadow-card);
}
.form-submit {
  width: 100%; padding: 13px; background: var(--btn-primary-bg);
  color: var(--btn-primary-text); font-family: var(--font-body);
  font-weight: 800; font-size: 0.95rem; border: none;
  border-radius: 50px; cursor: pointer; transition: all 0.2s;
}
.form-submit:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* ── RESPONSIVE ──────────────────────────────────────────── */

/* Tablet landscape / small laptop — Bottom Sheet Menu */
@media (max-width: 1100px) {

  /* Hamburger → X */
  .nav-toggle { display: flex; z-index: 1011; position: relative; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 8px; padding: 4px; }
  .nav-toggle span { transition: transform .3s ease, opacity .25s ease; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5.5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5.5px); }

  .nav-board-badge { display: none; }
  .navbar { padding: 0 .7rem; }                              /* tighter side padding */
  .nav-logo { gap: 6px; flex: 1; min-width: 0; }             /* tighter gap */
  .nav-logo-icon { width: 32px; height: 32px; font-size: 16px; flex-shrink: 0; }  /* smaller logo */
  /* Allow 2-line wrap with ellipsis after line 2 */
  .nav-logo-name {
    font-size: .96rem; line-height: 1.18;
    max-width: none; white-space: normal;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden; text-overflow: ellipsis;
    word-break: break-word;
  }
  .nav-logo-sub { display: none; }
  /* Slimmer hamburger (28px) so the school name gets every available pixel */
  .nav-toggle { flex-shrink: 0; width: 28px; height: 28px; padding: 0; gap: 4px; }
  .nav-toggle span { width: 20px; height: 2px; }

  /* Hide float buttons behind open sheet */
  body.nav-open .float-stack { display: none !important; }

  /* ── Bottom Sheet ── */
  .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    gap: 0;
    position: fixed; bottom: -105%; left: 0; right: 0;
    max-height: 85vh; overflow-y: scroll; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding: 0 0 env(safe-area-inset-bottom, 20px);
    isolation: isolate;
    z-index: 1010;
    box-shadow: 0 -12px 48px rgba(0,0,0,.22);
    border-top: 1px solid rgba(var(--primary-rgb),.1);
    transition: bottom .38s cubic-bezier(.32,0,.15,1);
  }
  .nav-links.open {
    bottom: 0;
    transition: bottom .44s cubic-bezier(.34,1.08,.64,1);
  }

  /* Drag handle pill */
  .nav-links::before {
    content: '';
    display: block;
    width: 40px; height: 4px;
    background: rgba(var(--primary-rgb),.22);
    border-radius: 2px;
    margin: 12px auto 4px;
    flex-shrink: 0;
  }

  /* Staggered entrance from below */
  .nav-links li { width: 100%; margin: 0; padding: 0; opacity: 0; transform: translateY(12px); transition: opacity .24s, transform .24s; }
  .nav-links.open li:nth-child(1)  { opacity:1;transform:none;transition-delay:.08s }
  .nav-links.open li:nth-child(2)  { opacity:1;transform:none;transition-delay:.12s }
  .nav-links.open li:nth-child(3)  { opacity:1;transform:none;transition-delay:.16s }
  .nav-links.open li:nth-child(4)  { opacity:1;transform:none;transition-delay:.20s }
  .nav-links.open li:nth-child(5)  { opacity:1;transform:none;transition-delay:.23s }
  .nav-links.open li:nth-child(6)  { opacity:1;transform:none;transition-delay:.26s }
  .nav-links.open li:nth-child(7)  { opacity:1;transform:none;transition-delay:.29s }
  .nav-links.open li:nth-child(8)  { opacity:1;transform:none;transition-delay:.32s }
  .nav-links.open li:nth-child(9)  { opacity:1;transform:none;transition-delay:.35s }
  .nav-links.open li:nth-child(10) { opacity:1;transform:none;transition-delay:.38s }
  .nav-links.open li:nth-child(11) { opacity:1;transform:none;transition-delay:.41s }
  .nav-links.open li:nth-child(12) { opacity:1;transform:none;transition-delay:.44s }

  /* Link rows */
  .nav-links a {
    display: flex; align-items: center; width: 100%;
    height: 48px; padding: 0 20px; font-size: .9rem; font-weight: 600;
    border-radius: 0; opacity: .85; line-height: 1;
    border-bottom: 1px solid rgba(var(--primary-rgb),.07);
    box-sizing: border-box;
  }
  .nav-links a::after {
    content: '›'; margin-left: auto;
    font-size: 1.2rem; opacity: .3;
    transition: transform .2s, opacity .2s;
  }
  .nav-links a:hover { background: rgba(var(--primary-rgb),.06); opacity: 1; color: var(--primary); }
  .nav-links a:hover::after { transform: translateX(3px); opacity: .6; color: var(--primary); }
  .nav-links a.active { color: var(--primary); background: rgba(var(--primary-rgb),.08); opacity: 1; font-weight: 700; }
  .nav-links a.active::after { opacity: .7; color: var(--primary); }
  .nav-links li:last-child a { border-bottom: none; }

  /* Mobile: dropdown becomes inline expansion */
  .nav-links .sub-menu {
    position: static; transform: none !important; opacity: 1 !important; pointer-events: all !important;
    max-height: 0; overflow: hidden; padding: 0 12px;
    background: rgba(var(--primary-rgb),.04); backdrop-filter: none;
    border: none; border-radius: 0; box-shadow: none;
    transition: max-height .35s ease, padding .25s ease;
    min-width: 0;
  }
  .nav-links .sub-menu::before { display: none; }
  .nav-links > li.has-sub.open > .sub-menu { max-height: 400px; padding: 6px 12px; }
  .nav-links .sub-menu a {
    height: 42px; padding-left: 28px; font-size: .85rem; border-bottom: 1px solid rgba(var(--primary-rgb),.06);
    border-radius: 0;
  }
  .nav-links .sub-menu li:last-child a { border-bottom: none; }
  .nav-links .sub-menu a::before { display: none; }
  /* Sub-toggle gets a distinct chevron that rotates 180° when expanded */
  .nav-links .sub-toggle::after {
    content: '⌄';
    font-size: 1.4rem; line-height: 1;
    margin-top: -4px;
    opacity: .5;
    transition: transform .25s ease, opacity .2s ease;
  }
  .nav-links .has-sub.open > .sub-toggle::after {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--primary);
  }
  .nav-links .caret { display: none; }

  /* Backdrop — dark overlay */
  .nav-backdrop { position: fixed; inset: 0; z-index: 995; background: rgba(0,0,0,0); pointer-events: none; transition: background .3s; }
  .nav-backdrop.open { background: rgba(0,0,0,.55); pointer-events: all; }

  /* Block interaction with page content while menu is open */
  body.nav-open > *:not(nav):not(.nav-backdrop):not(.float-stack) {
    pointer-events: none;
  }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .page-banner { padding: 3rem 1.5rem 2.5rem; }
}

/* Tablet portrait */
@media (max-width: 768px) {
  .section { padding: 3rem 1.2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.8rem 1.2rem; }
  .footer-inner > .footer-brand { grid-column: 1 / -1; }
  .footer-inner > .footer-col:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; gap: .5rem; }
  .form-row-2 { grid-template-columns: 1fr; }
  .page-banner { padding: 2.5rem 1.2rem 2rem; }
  .page-banner h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .page-banner p { font-size: .9rem; }
  .sec-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .disc-table-wrap, .fee-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Large mobile */
@media (max-width: 560px) {
  .section { padding: 2.5rem 1rem; }
  .page-banner { padding: 2rem 1rem 1.8rem; }
  .page-banner h1 { font-size: clamp(1.4rem, 7vw, 2rem); }
  .sec-title { font-size: clamp(1.4rem, 6vw, 1.9rem); }
  .btn-primary, .btn-hero-primary { padding: 11px 22px; font-size: .88rem; }
  .footer-col h4 { font-size: .85rem; }
}

/* Small mobile */
@media (max-width: 400px) {
  .section { padding: 2rem .9rem; }
  .navbar { padding: 0 .7rem; }
  .nav-logo { gap: 6px; }
  .nav-logo-icon { width: 32px; height: 32px; }
  .nav-logo-name { font-size: .88rem; line-height: 1.15; }
  .sec-title { font-size: clamp(1.3rem, 7vw, 1.7rem); }
}

/* ── BOTTOM APP NAV ─────────────────────────────────────── */
.bottom-nav { display: none; }

@media (max-width: 1100px) {
  .bottom-nav {
    display: flex;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,.94);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 22px 22px 0 0;
    border-top: 2.5px solid var(--primary);
    box-shadow: 0 -4px 28px rgba(var(--primary-rgb), .28);
    padding: 8px 4px env(safe-area-inset-bottom, 10px);
    z-index: 1001;
  }
  .bottom-nav-item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; gap: 3px;
    text-decoration: none; color: #6b7280;
    font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    padding: 2px 0; transition: color .2s;
  }
  .bn-icon {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 28px; border-radius: 12px;
    transition: background .2s, transform .18s cubic-bezier(.34,1.56,.64,1);
  }
  .bn-icon svg { width: 23px; height: 23px; }
  .bn-label { transition: color .2s; }

  /* Active state — pill highlight + spring pop */
  .bottom-nav-item.active { color: var(--primary, #1a4fa0); }
  .bottom-nav-item.active .bn-icon {
    background: rgba(var(--primary-rgb, 26 79 160), .12);
    transform: translateY(-1px) scale(1.08);
  }

  /* Tap feedback */
  .bottom-nav-item:active .bn-icon { transform: scale(.88); }

  /* Push page content above nav */
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 10px)); }

  /* Hide back-to-top on mobile */
  .back-to-top { display: none !important; }

  /* Fade out when sheet menu opens */
  body.nav-open .bottom-nav { opacity: 0; pointer-events: none; transition: opacity .2s; }
}

/* ── SHARED JS SNIPPET (paste at bottom of every page) ───── */
/* function toggleMenu(){document.getElementById('nav-links').classList.toggle('open');}
   Scroll reveal + back-to-top — see _scripts.js */
