/* =========================================================
   BRIGHT STAR LEARNING — SHARED DESIGN SYSTEM
   Plain CSS, no framework, no build step.
   Every page in this site links this single stylesheet.
   ========================================================= */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

img, svg { display: block; max-width: 100%; }

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  /* Brand palette */
  --navy: #12355B;
  --navy-dark: #0b2440;
  --navy-mid: #1a4573;
  --gold: #F4B942;
  --gold-dark: #dc9f28;
  --gold-light: #fce6b3;
  --sky: #5DADE2;
  --sky-dark: #3d8fc7;
  --sky-tint: #eaf5fc;
  --off-white: #F8FAFC;
  --white: #ffffff;
  --charcoal: #263238;

  /* Derived neutrals */
  --text-muted: #5c6b73;
  --border-color: #e3e9ee;
  --border-color-strong: #cbd8e0;

  /* Feedback colours */
  --success-bg: #e6f7ec;
  --success-text: #1e7a42;
  --warning-bg: #fff6e5;
  --warning-text: #8a5a00;
  --error-text: #b3261e;

  /* Typography */
  --font-heading: 'Poppins', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(18, 53, 91, 0.06);
  --shadow-md: 0 10px 30px rgba(18, 53, 91, 0.10);
  --shadow-lg: 0 20px 50px rgba(18, 53, 91, 0.16);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --nav-height: 76px;
}

/* ---------- BASE ---------- */
body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p { color: var(--charcoal); }

a { color: var(--sky-dark); text-decoration: none; }

ul { list-style: none; }

button { font-family: var(--font-body); cursor: pointer; }

::selection { background: var(--gold-light); color: var(--navy-dark); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ---------- STAR MOTIF ---------- */
.star-glyph { color: var(--gold); }

.star-svg { display: inline-block; vertical-align: middle; }

/* subtle repeating star texture used behind hero/CTA bands */
.star-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(244,185,66,0.55) 50%, transparent 51%),
    radial-gradient(2px 2px at 80% 15%, rgba(244,185,66,0.4) 50%, transparent 51%),
    radial-gradient(3px 3px at 60% 70%, rgba(244,185,66,0.35) 50%, transparent 51%),
    radial-gradient(2px 2px at 30% 85%, rgba(244,185,66,0.45) 50%, transparent 51%),
    radial-gradient(2px 2px at 92% 60%, rgba(244,185,66,0.35) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 45% 40%, rgba(244,185,66,0.5) 50%, transparent 51%);
  background-repeat: no-repeat;
}

/* ---------- NAVBAR ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 12px rgba(18, 53, 91, 0.05);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled { box-shadow: 0 4px 24px rgba(18, 53, 91, 0.12); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-logo .logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--navy), var(--navy-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(18, 53, 91, 0.3);
}

.nav-logo .logo-badge svg { width: 24px; height: 24px; overflow: visible; }

/* Shooting-star logo: trail streaks in, star pops in behind it. Runs once per page load.
   Only for users without a reduced-motion preference — everyone else just gets the final frame. */
@media (prefers-reduced-motion: no-preference) {
  .logo-trail {
    stroke-dashoffset: 0;
    animation: logoTrailDraw 0.55s ease-out backwards;
  }
  .logo-trail:nth-of-type(1) { stroke-dasharray: 13; animation-delay: 0s; }
  .logo-trail:nth-of-type(2) { stroke-dasharray: 11; animation-delay: 0.07s; }
  .logo-trail:nth-of-type(3) { stroke-dasharray: 9; animation-delay: 0.14s; }

  .logo-star {
    transform-box: fill-box;
    transform-origin: center;
    animation: logoStarPop 0.4s cubic-bezier(0.2, 1.4, 0.4, 1) backwards;
    animation-delay: 0.4s;
  }
}

@keyframes logoTrailDraw {
  from { stroke-dashoffset: 14; }
  to { stroke-dashoffset: 0; }
}

@keyframes logoStarPop {
  from { opacity: 0; transform: scale(0.3); }
  to { opacity: 1; transform: scale(1); }
}

.nav-logo .logo-text span { color: var(--gold-dark); }

.nav-primary {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.nav-links a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.92rem;
  position: relative;
  padding: 0.3rem 0.1rem;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: right 0.25s ease;
}

.nav-links a:hover { color: var(--sky-dark); }
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--navy); font-weight: 700; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-shrink: 0;
}

.nav-login {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  border-bottom: 1px dashed var(--border-color-strong);
  padding-bottom: 1px;
}

.nav-login:hover { color: var(--sky-dark); border-color: var(--sky-dark); }

/* ---------- HAMBURGER ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.hamburger:hover { background: rgba(18, 53, 91, 0.06); }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.94rem;
  font-family: var(--font-body);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-dark);
  box-shadow: 0 6px 20px rgba(244, 185, 66, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(244, 185, 66, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-sky {
  background: var(--sky);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(93, 173, 226, 0.35);
}

.btn-sky:hover { background: var(--sky-dark); transform: translateY(-2px); }

.btn-block { width: 100%; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1rem; }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.84rem; }

.nav-cta { padding: 0.65rem 1.4rem; font-size: 0.88rem; }

/* ---------- SECTION RHYTHM ---------- */
section { padding: 96px 5%; position: relative; }

.bg-white { background: var(--white); }
.bg-off-white { background: var(--off-white); }
.bg-navy { background: linear-gradient(160deg, var(--navy-dark), var(--navy)); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-sky-tint { background: var(--sky-tint); }

/* Plain uppercase eyebrow — no pill/badge shape. Used sparingly, not on every section. */
.section-label {
  display: block;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  margin-right: 0.6rem;
  vertical-align: middle;
}

.bg-navy .section-label { color: var(--gold); }

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 620px;
  line-height: 1.75;
}

.bg-navy .section-sub { color: rgba(255,255,255,0.72); }

.section-header { margin-bottom: 3rem; }
.centered { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  margin-top: var(--nav-height);
  padding: 72px 5% 64px;
  background: linear-gradient(155deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.8rem; }

.page-hero p {
  color: rgba(255,255,255,0.75);
  max-width: 620px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
}

.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- CARDS ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--sky);
}

/* Numbered index tag — replaces mismatched emoji icons with a consistent, editorial mark */
.card-icon {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.04em;
  margin-bottom: 0.9rem;
}

.card--featured {
  border-color: var(--gold);
  border-width: 2px;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--white) 38%);
}

.card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.93rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
}

.card-link:hover { color: var(--sky-dark); }

.grid {
  display: grid;
  gap: 1.6rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Two-column split layouts (hero/intro/about/contact) — collapse to 1 col on mobile */
.split {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

.split-hero { grid-template-columns: 1.1fr 0.9fr; }
.split-intro { grid-template-columns: 1fr 1.2fr; }
.split-about { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
.split-contact { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
.split-even { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

/* ---------- BADGES / CREDENTIALS ---------- */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.6rem 0;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1rem;
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.badge-pill .emoji { font-size: 1rem; }

.bg-navy .badge-pill {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  color: var(--white);
}

/* ---------- QUOTE SPOTLIGHT (hero panel, in place of a photo) ---------- */
.quote-spotlight {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2rem 2rem;
  position: relative;
  text-align: left;
}

.quote-spotlight .quote-mark {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--gold);
  display: block;
  margin-bottom: 0.4rem;
}

.quote-spotlight blockquote {
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

.quote-spotlight cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ---------- HIGHLIGHTS CARD (stat grid, in place of a photo) ---------- */
.highlights-card {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  background: var(--off-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem 1.2rem;
}

.highlights-card .stat-item { text-align: center; }

.highlights-card .stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.highlights-card .stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- TESTIMONIALS ---------- */
/* Plain pull-quote treatment, no gradient avatar circles — reviews are real, so a star row is fine now. */
.testimonial-card {
  background: transparent;
  border: none;
  border-left: 3px solid var(--gold);
  border-radius: 0;
  padding: 0.2rem 0 0.2rem 1.5rem;
}

.testimonial-card blockquote {
  color: var(--charcoal);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.stars {
  color: var(--gold);
  letter-spacing: 3px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: block;
}

.testimonial-author { display: block; }
.testimonial-author h4 { font-size: 0.9rem; margin-bottom: 0.1rem; display: inline; }
.testimonial-author span { font-size: 0.85rem; color: var(--text-muted); }
.testimonial-author span::before { content: ', '; }

/* ---------- TESTIMONIAL CAROUSEL (homepage) ---------- */
.testimonial-carousel {
  max-width: 700px;
  margin: 0 auto;
}

.carousel-slide { display: none; }
.carousel-slide.active {
  display: block;
  animation: testimonialFadeIn 0.5s ease;
}

@keyframes testimonialFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-color-strong);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot:hover { background: var(--sky); }
.carousel-dot.active { background: var(--gold); transform: scale(1.25); }

/* ---------- PULL QUOTE + CHECKLIST (asymmetric "why us" layout) ---------- */
.pull-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
  border-left: 3px solid var(--gold);
  padding-left: 1.4rem;
}

.pull-quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.check-list { display: flex; flex-direction: column; gap: 1.1rem; }

.check-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.check-list .check-mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.check-list h4 { font-size: 1rem; margin-bottom: 0.2rem; }
.check-list p { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- FLOATING WHATSAPP BUTTON ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
  z-index: 900;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; }

@media (max-width: 480px) {
  .whatsapp-float { width: 50px; height: 50px; bottom: 16px; right: 16px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
}

/* ---------- HONEYPOT (spam trap, invisible to real users) ---------- */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- NOTICE / ALERT BOXES ---------- */
.notice {
  border-radius: var(--radius-sm);
  padding: 1rem 1.3rem;
  font-size: 0.9rem;
  line-height: 1.6;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  border: 1px solid;
}

.notice-icon { flex-shrink: 0; font-size: 1.1rem; }

.notice-warning {
  background: var(--warning-bg);
  border-color: #f5deae;
  color: var(--warning-text);
}

.notice-info {
  background: var(--sky-tint);
  border-color: rgba(93, 173, 226, 0.4);
  color: var(--navy);
}

.notice-success {
  background: var(--success-bg);
  border-color: #b9e5c8;
  color: var(--success-text);
}

/* ---------- BADGE: COMING SOON ---------- */
.badge-coming-soon {
  display: inline-block;
  background: var(--navy);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
}

/* ---------- FAQ ACCORDION ---------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.open { border-color: var(--sky); box-shadow: var(--shadow-md); }

.faq-question {
  padding: 1.1rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--navy);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}

.faq-arrow {
  color: var(--sky-dark);
  font-size: 0.75rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer { max-height: 500px; }

.faq-answer p {
  padding: 0 1.4rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ---------- PRICING ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.1rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.pricing-card.featured {
  border-color: var(--gold);
  background: linear-gradient(165deg, var(--gold-light) 0%, var(--white) 45%);
  box-shadow: var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-name { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky-dark); margin-bottom: 0.7rem; }
.plan-price { font-size: 2.4rem; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; line-height: 1; margin-bottom: 0.3rem; }
.plan-price sub { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.plan-desc { color: var(--text-muted); font-size: 0.86rem; margin-bottom: 1.3rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--border-color); }
.plan-features { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; margin-bottom: 1.6rem; }
.plan-features li { font-size: 0.86rem; color: var(--charcoal); display: flex; gap: 0.55rem; align-items: flex-start; }
.plan-features li::before { content: '★'; color: var(--gold-dark); flex-shrink: 0; }

.price-table-wrap { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }

table.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  min-width: 560px;
}

.price-table th, .price-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
}

.price-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--sky-tint); }
.price-table td strong { color: var(--navy); }

/* ---------- FORMS ---------- */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--white);
  border: 1.5px solid var(--border-color-strong);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--charcoal);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.18);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.6rem; text-align: center; }

/* ---------- TABS / ANCHOR NAV ---------- */
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.tab-nav a {
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  background: var(--white);
  border: 1.5px solid var(--border-color);
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tab-nav a:hover { border-color: var(--sky); color: var(--sky-dark); }

/* ---------- CTA BAND ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy) 60%, var(--navy-mid));
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band .container { position: relative; z-index: 1; max-width: 720px; }

.cta-band h2 { color: var(--white); font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.75); margin-bottom: 2rem; font-size: 1.02rem; line-height: 1.7; }

.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 5% 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1180px;
  margin: 0 auto 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .nav-logo { color: var(--white); }
.footer-brand .nav-logo .logo-text span { color: var(--gold); }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.86rem; line-height: 1.7; margin-top: 0.9rem; max-width: 280px; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col ul a { color: rgba(255,255,255,0.55); font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--gold); }

.footer-social { display: flex; gap: 0.7rem; margin-top: 1rem; }

.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.footer-social a:hover { background: var(--gold); color: var(--navy-dark); }

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold); }

.footer-legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* =========================================================
   PHASE 2 — APP COMPONENTS (booking, portal, admin)
   Firestore/Auth-backed pages reuse every token above; these
   are the extra building blocks those pages need.
   ========================================================= */

/* ---------- JS-TOGGLED TABS (dashboard-style, vs. anchor tab-nav) ---------- */
.tab-nav button {
  font-family: var(--font-body);
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  background: var(--white);
  border: 1.5px solid var(--border-color);
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-nav button:hover { border-color: var(--sky); color: var(--sky-dark); }

.tab-nav a.active,
.tab-nav button.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- AUTH / LOGIN CARD ---------- */
.auth-shell {
  margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 5%;
  background: linear-gradient(155deg, var(--off-white) 0%, var(--sky-tint) 100%);
}

.auth-card {
  max-width: 420px;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.4rem;
}

.auth-card .logo-badge { margin: 0 auto 1rem; }

/* ---------- DASHBOARD SHELL (portal / admin, post-login) ---------- */
.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--border-color);
}

.dash-topbar h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 0.2rem; }
.dash-topbar p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- STATUS BADGES ---------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  white-space: nowrap;
}

.status-confirmed,
.status-paid,
.status-read { background: var(--success-bg); color: var(--success-text); }

.status-pending,
.status-unpaid,
.status-unread { background: var(--warning-bg); color: var(--warning-text); }

.status-cancelled { background: #fbe4e2; color: var(--error-text); }

.status-completed { background: var(--sky-tint); color: var(--navy); }

/* ---------- DATA ROWS (bookings / students / invoices / messages lists) ---------- */
.data-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem;
  margin-bottom: 0.8rem;
  transition: all 0.2s ease;
}

.data-row:hover { border-color: var(--sky); box-shadow: var(--shadow-sm); }

.data-row-main { display: flex; flex-direction: column; gap: 0.25rem; min-width: 200px; }
.data-row-main strong { color: var(--navy); font-size: 0.95rem; }
.data-row-main span { color: var(--text-muted); font-size: 0.82rem; }

.data-row-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.data-row-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* clickable data-row acting as a button (e.g. student list entries) */
button.data-row { width: 100%; text-align: left; cursor: pointer; font-family: var(--font-body); }

/* ---------- SLOT PICKER (book.html) ---------- */
.slot-date-group { margin-bottom: 2.2rem; }
.slot-date-heading { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.9rem; }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.9rem;
}

.slot-btn {
  background: var(--white);
  border: 1.5px solid var(--border-color-strong);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s ease;
}

.slot-btn:hover { border-color: var(--sky); box-shadow: var(--shadow-sm); transform: translateY(-2px); }

.slot-btn .slot-time { display: block; font-weight: 700; color: var(--navy); font-size: 1rem; }
.slot-btn .slot-duration { font-size: 0.78rem; color: var(--text-muted); }

/* ---------- MODAL (booking form, admin add/edit forms) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 36, 64, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5%;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.open { opacity: 1; visibility: visible; }

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2.4rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-box { transform: translateY(0); }

.modal-close-btn {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--off-white);
  border: 1px solid var(--border-color);
  color: var(--navy);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover { background: var(--sky-tint); border-color: var(--sky); }

/* ---------- TOAST (admin.html action feedback) ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  background: var(--navy);
  color: var(--white);
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  font-weight: 600;
  max-width: 320px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast.toast-error { background: var(--error-text); }
.toast.toast-success { background: var(--success-text); }

/* ---------- LOADING / EMPTY STATES ---------- */
.loading-state, .empty-state-box {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.empty-state-box .emoji-lg { font-size: 2.2rem; display: block; margin-bottom: 0.8rem; }

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- UTILITIES ---------- */
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-top: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 1rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .split-hero, .split-intro, .split-about, .split-contact { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 900px) {
  .nav-primary { position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: var(--off-white); flex-direction: column; align-items: stretch;
    gap: 0; padding: 1rem 5% 1.5rem; border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md); display: none; z-index: 998; }
  .nav-primary.open { display: flex; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--border-color); }
  .nav-actions { flex-direction: column; align-items: stretch; width: 100%; margin-top: 1rem; gap: 0.8rem; }
  .nav-actions .btn { width: 100%; }
  .hamburger { display: flex; }
  form .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  section { padding: 64px 6%; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .split-even { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-hero { padding: 56px 6% 48px; }
}

@media (max-width: 480px) {
  .container { padding: 0 6%; }
  .hero-ctas .btn, .cta-buttons .btn { width: 100%; }
  .plan-price { font-size: 2rem; }
}

@media (max-width: 640px) {
  .data-row { flex-direction: column; align-items: flex-start; }
  .data-row-actions { width: 100%; }
  .data-row-actions .btn { flex: 1; }
  .modal-box { padding: 1.6rem; }
  .auth-card { padding: 1.8rem; }
  .slot-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
