/* ============================================================
 * landing.css — mobile-first, conversion-focused school landing.
 * Standalone (does not touch the portal's app.css).
 * Colours come from --primary / --accent (set by landing.js from config).
 * ============================================================ */
:root {
  --primary: #0f5e5e;
  --primary-dark: #0a4747;
  --primary-tint: #e6f0ef;
  --accent: #d9a521;
  --accent-dark: #b9881a;
  --ink: #1c2626;
  --muted: #5d6b6b;
  --bg: #ffffff;
  --bg-soft: #f7f6f2;
  --card: #ffffff;
  --line: #e7e5dd;
  --star: #f5a623;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 34px rgba(15,94,94,.14);
  --maxw: 1180px;
  --tap: 48px;            /* min tap target */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Defensive guard: a mobile-first single-column page never needs horizontal
   scroll. Without this, a full-bleed `position:fixed; left:0; right:0`
   element (the sticky bar below) can size itself against the viewport's
   layout width rather than the scrollbar-adjusted width in some browser/
   viewport combinations, dragging the whole page a few pixels wider than
   the screen. Clipping here is strictly safer than a stray sideways scroll. */
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg);
  font-size: 17px; line-height: 1.6; -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 7vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--primary); text-decoration: none; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.1rem; }
.kicker { color: var(--primary); font-weight: 800; letter-spacing: .08em; font-size: .78rem; text-transform: uppercase; }
.muted { color: var(--muted); }

/* ---- Focus states (accessibility) ---- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--tap); padding: .8rem 1.5rem; cursor: pointer; border: 0;
  border-radius: 999px; font-weight: 800; font-size: 1rem; font-family: inherit;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #2a2000; box-shadow: 0 4px 14px rgba(217,165,33,.4); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-tint); }
.btn-ghost-light { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-ghost-light:hover { background: rgba(255,255,255,.22); }
.btn-wa { background: #25D366; color: #04340f; }
.btn-wa:hover { background: #1ebe5b; transform: translateY(-1px); }
.btn-block { width: 100%; }

/* image placeholder (never broken) */
.imgph {
  background:
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: rgba(255,255,255,.9); position: relative; overflow: hidden;
  display: grid; place-items: center; text-align: center;
}
.imgph::after {
  content: attr(data-label); font-size: .82rem; font-weight: 600; opacity: .9;
  padding: .4rem .7rem; letter-spacing: .02em;
}
.imgph .ph-ico { position: absolute; font-size: 2.4rem; opacity: .25; }
.media { background: var(--primary-tint); overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============ 1. Sticky header ============ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.95); backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1rem; min-height: 64px; padding: .5rem 0; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; color: var(--primary-dark); }
.brand .badge {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 11px;
  background: var(--primary); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 1rem; letter-spacing: .5px;
}
.brand .badge img { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.05; font-size: 1.02rem; }
.brand .brand-text small { font-weight: 600; color: var(--muted); font-size: .68rem; letter-spacing: .02em; }
.nav-desktop { display: none; align-items: center; gap: 1.4rem; margin-left: auto; }
.nav-desktop a.navlink { color: var(--ink); font-weight: 600; font-size: .96rem; }
.nav-desktop a.navlink:hover { color: var(--primary); }
.nav-actions { display: none; align-items: center; gap: .6rem; }
.nav-actions .btn { padding: .55rem 1.1rem; min-height: 44px; font-size: .92rem; }
/* mobile menu toggle */
.menu-toggle {
  margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; font-size: 1.4rem; cursor: pointer; color: var(--primary-dark); line-height: 1;
}
.mobile-menu { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-menu.open { display: block; }
.mobile-menu .wrap { padding-top: .6rem; padding-bottom: 1rem; }
.mobile-menu a.navlink {
  display: block; padding: .85rem .2rem; border-bottom: 1px solid var(--line);
  color: var(--ink); font-weight: 600; font-size: 1.05rem;
}
.mobile-menu .menu-cta { display: grid; gap: .6rem; margin-top: .9rem; }

/* ============ 2. Hero ============ */
.hero { position: relative; }
.hero-media { position: relative; min-height: 70vh; }
.hero-media .media, .hero-media .imgph { position: absolute; inset: 0; height: 100%; width: 100%; }
/* Must be position:absolute to actually overlay .hero-media (its sibling,
   not its parent) — position:relative left it stacking BELOW the media in
   normal flow, silently doubling the hero's real height to 2x 70vh on
   every viewport (most visible on short/wide desktop windows, where the
   page reads as mostly empty white space below a tiny hero). */
.hero-overlay {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(10,71,71,.15) 0%, rgba(10,71,71,.35) 45%, rgba(10,71,71,.86) 100%);
}
.hero-inner { padding: 2.2rem 0 2.6rem; color: #fff; }
.hero-inner h1 { color: #fff; max-width: 16ch; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero-inner .hero-sub { color: #eef6f5; font-size: 1.08rem; max-width: 42ch; margin-bottom: 1.4rem; }
.hero-cta-row { display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; }
.hero-cta-row .btn-primary { width: 100%; max-width: 420px; }
.hero-wa-link { color: #d8fce4; font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; }
.hero-wa-link:hover { color: #fff; }

/* ============ 3. Trust strip ============ */
.trust { background: var(--primary-dark); color: #fff; }
.trust .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; padding: 1rem 1.1rem; justify-content: center; text-align: center; }
.trust .ti { display: flex; flex-direction: column; line-height: 1.1; }
.trust .ti b { font-size: 1.05rem; }
.trust .ti span { font-size: .78rem; color: #bcd6d3; }
.trust .tlogos { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.trust .tlogo {
  background: rgba(255,255,255,.12); border-radius: 8px; padding: .4rem .7rem; font-size: .76rem;
  font-weight: 700; color: #eafffb; display: inline-flex; align-items: center; height: 38px;
}
.trust .tlogo img { height: 26px; width: auto; }

/* ============ Sections shell ============ */
section.block { padding: 3rem 0; }
.section-head { max-width: 640px; margin: 0 auto 1.8rem; text-align: center; }
.section-head h2 { margin-top: .3rem; }
.section-head p { color: var(--muted); margin: 0; }

/* ============ 4. Fees & next steps ============ */
.fees { background: var(--primary-tint); }
.fees-grid { display: grid; gap: 1.2rem; }
.fees-card, .steps-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem; }
.fees-amount { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.fees-amount small { display: block; font-size: .9rem; font-weight: 600; color: var(--muted); }
.momo-tag {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem;
  background: var(--primary-tint); color: var(--primary-dark); font-weight: 700;
  padding: .4rem .8rem; border-radius: 999px; font-size: .85rem;
}
.fees-link { display: inline-block; margin-top: 1rem; font-weight: 700; }
.steps { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: 1rem; }
.steps li { display: flex; gap: .9rem; align-items: flex-start; }
.steps .nbox {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: var(--accent);
  color: #2a2000; font-weight: 800; display: grid; place-items: center;
}
.steps b { display: block; }
.steps p { margin: .1rem 0 0; color: var(--muted); font-size: .95rem; }

/* ============ 5. Programmes ============ */
.cards3 { display: grid; gap: 1.2rem; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .14s ease, box-shadow .14s ease; padding: 1.3rem 1.2rem; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pcard .pico { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-tint); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: .8rem; }
.pcard .pbody { padding: 0; }
.pcard p { color: var(--muted); font-size: .96rem; margin: .2rem 0 .8rem; }
.pcard .learn { font-weight: 700; display: inline-flex; align-items: center; gap: .3rem; }

/* ============ 5b. About / welcome ============ */
.about-grid { display: grid; gap: 1.4rem; align-items: center; }
.about-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-lg); }
.about-media .media, .about-media .imgph { position: absolute; inset: 0; height: 100%; width: 100%; }
.about-text { color: var(--muted); font-size: 1.03rem; line-height: 1.65; margin-top: .4rem; }

/* ============ 6. Why ============ */
.why-grid { display: grid; gap: 1.1rem; }
.why-item { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.why-item .wico { width: 48px; height: 48px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: .7rem; }
.why-item h3 { margin-bottom: .2rem; }
.why-item p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ============ 7. Story / tour ============ */
.story-grid { display: grid; gap: 1.4rem; align-items: center; }
.tour-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; box-shadow: var(--shadow-lg); }
.tour-media .media, .tour-media .imgph { position: absolute; inset: 0; height: 100%; width: 100%; }
.play-btn {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; cursor: pointer; border: 0; background: rgba(0,0,0,.18);
}
.play-btn .disc { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.play-btn .disc::before { content: ""; border-left: 22px solid var(--primary); border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }

/* ============ 8. Testimonials ============ */
.testi { background: var(--bg-soft); }
.testi-grid { display: grid; gap: 1.1rem; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.tstars { color: var(--star); letter-spacing: 2px; font-size: 1rem; margin-bottom: .5rem; }
.tcard .quote { font-size: 1rem; color: var(--ink); margin-bottom: 1rem; }
.tperson { display: flex; align-items: center; gap: .7rem; }
.tperson .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; overflow: hidden; }
.tperson .avatar img { width: 44px; height: 44px; object-fit: cover; }
.tperson b { font-size: .96rem; }
.tperson span { display: block; font-size: .8rem; color: var(--muted); }

/* ============ 9. Gallery ============ */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.gallery-grid .cell { position: relative; aspect-ratio: 1/1; border-radius: var(--radius-sm); overflow: hidden; }
.gallery-grid .media, .gallery-grid .imgph { width: 100%; height: 100%; }
.gallery-grid .cell-video .play-btn .disc { width: 48px; height: 48px; }
.gallery-grid .cell-video .play-btn .disc::before { border-left-width: 15px; border-top-width: 9px; border-bottom-width: 9px; margin-left: 4px; }
.gallery-grid .play-btn-disabled { cursor: default; opacity: .85; }
.cell-badge {
  position: absolute; right: .5rem; bottom: .5rem; z-index: 4;
  background: rgba(0,0,0,.65); color: #fff; font-size: .7rem; font-weight: 700;
  padding: .15rem .45rem; border-radius: 999px; letter-spacing: .02em;
}

/* ============ 10. News ============ */
.news-grid { display: grid; gap: 1.2rem; }
.ncard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ncard .media, .ncard .imgph { aspect-ratio: 16/9; }
.ncard .nbody { padding: 1rem 1.2rem 1.2rem; }
.ncard .ndate { color: var(--accent-dark); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.ncard h3 { margin: .25rem 0 .35rem; }
.ncard p { color: var(--muted); font-size: .93rem; margin: 0 0 .7rem; }
.ncard .read { font-weight: 700; }

/* ============ 10b. FAQ ============ */
.faq-list { display: grid; gap: .7rem; max-width: 46rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1rem 1.2rem; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--primary); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.faq-item p { margin: 0; padding: 0 1.2rem 1.1rem; color: var(--muted); font-size: .95rem; }

/* ============ 11. Conversion footer ============ */
.cfoot { background: var(--primary-dark); color: #dcebe9; }
.cfoot .wrap { padding: 3rem 1.1rem 2rem; }
.cfoot h2 { color: #fff; }
.cfoot .wa-hero { display: grid; gap: 1rem; margin-bottom: 2rem; }
.cfoot .wa-hero .btn-wa { font-size: 1.1rem; min-height: 56px; }
.cfoot-grid { display: grid; gap: 1.6rem; }
.cinfo p { margin: .2rem 0; color: #cfe2e0; }
.cinfo a { color: #eafffb; font-weight: 600; }
.cmap { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.15); min-height: 200px; background: rgba(255,255,255,.06); }
.cmap iframe { width: 100%; height: 220px; border: 0; display: block; }
/* enquiry form */
.eform { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 1.3rem; }
.eform h3 { color: #fff; }
.eform label { display: block; font-size: .85rem; color: #cfe2e0; margin: .7rem 0 .25rem; font-weight: 600; }
.eform input, .eform textarea {
  width: 100%; padding: .8rem .9rem; border-radius: 12px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.95); color: var(--ink); font-size: 1rem; font-family: inherit; min-height: 48px;
}
.eform textarea { min-height: 96px; resize: vertical; }
.eform .btn { margin-top: 1rem; }
.cfoot-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2rem; padding-top: 1.4rem; display: grid; gap: 1rem; }
.socials { display: flex; gap: .6rem; flex-wrap: wrap; }
.socials a, .socials .social-inert { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #fff; font-weight: 700; }
.socials a:hover { background: var(--accent); color: #2a2000; }
.socials .social-inert { opacity: .55; cursor: default; }  /* platform not linked yet */
.qlinks a { color: #cfe2e0; margin-right: 1rem; font-size: .92rem; }
.qlinks a:hover { color: #fff; }
.copyright { color: #9fc0bd; font-size: .85rem; }

/* ============ Persistent: floating WhatsApp + mobile sticky bar ============ */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 80;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.28); font-size: 1.7rem;
}
.wa-float:hover { transform: scale(1.05); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.sticky-bar .btn { min-height: 48px; min-width: 0; font-size: .95rem; padding: .6rem .8rem; }
body.has-stickybar { padding-bottom: 76px; }   /* room so footer isn't hidden on mobile */

/* ============ Responsive: tablet / desktop ============ */
@media (min-width: 760px) {
  .fees-grid { grid-template-columns: 1fr 1fr; }
  .cards3 { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .story-grid { grid-template-columns: 1.1fr 1fr; }
  .about-grid { grid-template-columns: 1fr 1.1fr; }
  .cfoot-grid { grid-template-columns: 1fr 1fr; }
  .cfoot .wa-hero { grid-template-columns: auto; justify-items: start; }
  .cfoot .wa-hero .btn-wa { display: inline-flex; }
}
@media (min-width: 1000px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .nav-desktop, .nav-actions { display: flex; }
  .menu-toggle { display: none; }
  .hero-cta-row { flex-direction: row; align-items: center; }
  .hero-cta-row .btn-primary { width: auto; }
  .sticky-bar { display: none; }            /* desktop doesn't need the bottom bar */
  body.has-stickybar { padding-bottom: 0; }
  .cfoot-grid { grid-template-columns: 1.1fr 1fr; }
}
