/* =========================================================================
   Riverside Square Academy — Global Stylesheet
   Editorial, unboxed layout system: 50/50 hero splits, 40/60 asymmetric
   grids, hairline dividers, edge-to-edge media, oversized display type,
   and a glassmorphic sticky header. No boxed card grids anywhere.
   ========================================================================= */

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

/* ------------------------------ Design Tokens --------------------------- */
/* Official Riverside Square Academy palette (logo + uniform derived) */
:root {
  /* Surfaces */
  --paper: #f4f1ea;         /* Warm Khaki/Beige — light neutral base */
  --paper-raised: #ece6d8;  /* Deeper khaki tint for section/media fills */
  --ink: #0a192f;           /* Deep Academy Navy — primary text on light surfaces */
  --ink-soft: #33465f;
  --ink-mute: #6b7a8f;

  /* Accents */
  --accent: #dc2626;        /* Logo Crimson Red — primary CTAs & buttons */
  --accent-hover: #b91c1c;
  --accent-soft: rgba(220, 38, 38, 0.08);
  --gold: #eab308;          /* Gold Accent — highlights & badges (Campus 2) */
  --royal: #2563eb;         /* Logo Royal Blue — highlights & badges (Campus 1) */

  /* Hairlines */
  --line: rgba(10, 25, 47, 0.14);
  --line-strong: rgba(10, 25, 47, 0.28);

  /* Dark surface (used on inverted hero/footer blocks) */
  --dark: #0a192f;          /* Deep Academy Navy */
  --dark-raised: #2c1d11;   /* Uniform Espresso Brown — secondary dark neutral */
  --dark-line: rgba(244, 241, 234, 0.14);
  --paper-on-dark: #ffffff; /* Pure White — clean text on dark surfaces */
  --mute-on-dark: #c9c3b4;

  /* Type scale */
  --display: clamp(2.75rem, 3.6vw + 1.5rem, 5.5rem);
  --h1: clamp(2.25rem, 2vw + 1.5rem, 3.25rem);
  --h2: clamp(1.75rem, 1.2vw + 1.25rem, 2.5rem);
  --h3: 1.375rem;

  --ease-snappy: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 88px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Anton', 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.02;
  margin: 0;
}

p { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}

/* ----------------------------- Campus Badges ----------------------------- */
/* Additive component only — does not alter any grid/flex layout rules. */
.campus-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.campus-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  border-radius: 2px;
}
.campus-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.campus-badge-1 { background: var(--royal); }   /* Riverside Square Academy 1 — Day Care Campus */
.campus-badge-2 { background: var(--gold); color: var(--ink); } /* Riverside Square Academy 2 — Grade RR–7 Campus */
.campus-badge-outline {
  background: transparent;
  border: 1px solid var(--dark-line);
  color: var(--paper-on-dark);
}
:root .campus-badge-outline-light { border-color: var(--line-strong); color: var(--ink-soft); }

.hairline { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.9rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 200ms var(--ease-snappy), background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost-invert {
  background: transparent;
  color: var(--paper-on-dark);
  border-color: var(--dark-line);
}
.btn-ghost-invert:hover { border-color: var(--paper-on-dark); transform: translateY(-2px); }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ------------------------------ Sticky Header ---------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(247, 244, 238, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: height 250ms var(--ease-snappy), background 250ms ease;
}
.site-header.is-scrolled {
  height: 68px;
  background: rgba(247, 244, 238, 0.86);
}
.header-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--paper);
  font-family: 'Anton', sans-serif;
  font-size: 0.9rem;
}
.brand-text {
  font-family: 'Anton', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.site-nav { display: flex; align-items: center; gap: 2.25rem; }
.site-nav a {
  position: relative;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.35rem 0;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms var(--ease-snappy);
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.header-cta { white-space: nowrap; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line-strong);
  cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform 200ms ease, opacity 200ms ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------- 50/50 Hero Split --------------------------- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - var(--header-h));
}
@media (min-width: 900px) {
  .hero-split { grid-template-columns: 1fr 1fr; }
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
  padding: clamp(2.5rem, 5vw, 5rem) clamp(1.5rem, 4vw, 4.5rem);
}
.hero-copy h1 { font-size: var(--display); }
.hero-copy .lede {
  max-width: 46ch;
  font-size: 1.125rem;
  color: var(--ink-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.5rem; }
.hero-media {
  position: relative;
  min-height: 340px;
  background: var(--dark) url('assets/img/hero-campus.jpg') center/cover no-repeat;
  border-left: 1px solid var(--line);
}
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(12,18,32,0.05), rgba(12,18,32,0.55));
}
.hero-media .hero-stat {
  position: absolute;
  left: clamp(1.5rem, 3vw, 3rem);
  bottom: clamp(1.5rem, 3vw, 3rem);
  z-index: 1;
  color: var(--paper-on-dark);
}
.hero-stat .num { font-family: 'Anton', sans-serif; font-size: clamp(2.5rem, 4vw, 3.75rem); }
.hero-stat .label { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute-on-dark); }

/* Inverted (dark) hero, used for interior pages */
.hero-band {
  background: var(--dark);
  color: var(--paper-on-dark);
  border-bottom: 1px solid var(--dark-line);
}
.hero-band-inner {
  padding: clamp(6rem, 10vw, 9rem) clamp(1.5rem, 4vw, 4rem) clamp(3rem, 6vw, 4.5rem);
  max-width: 1440px;
  margin: 0 auto;
}
.hero-band h1 { font-size: var(--display); max-width: 16ch; }
.hero-band .lede { max-width: 55ch; color: var(--mute-on-dark); font-size: 1.125rem; margin-top: 1.5rem; }

/* ------------------------- 40/60 Asymmetric Grid ------------------------- */
.split-row {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .split-row { grid-template-columns: 2fr 3fr; }
  .split-row.reverse { grid-template-columns: 3fr 2fr; }
  .split-row.reverse .split-media { order: 2; }
  .split-row.reverse .split-copy { order: 1; }
}
.split-copy {
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  border-right: 1px solid var(--line);
}
@media (min-width: 900px) {
  .split-row.reverse .split-copy { border-right: none; border-left: 1px solid var(--line); }
}
.split-copy h2 { font-size: var(--h2); }
.split-copy p { color: var(--ink-soft); max-width: 52ch; }
.split-media {
  position: relative;
  min-height: 320px;
  background: var(--paper-raised) center/cover no-repeat;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

/* Editorial list used inside split-copy (no card boxes — hairline separated rows) */
.line-list { display: flex; flex-direction: column; }
.line-list li {
  list-style: none;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
}
.line-list { margin: 0; padding: 0; }
.line-list li:last-child { border-bottom: 1px solid var(--line); }
.line-list .idx { font-family: 'Anton', sans-serif; color: var(--accent); font-size: 1rem; }
.line-list h4 { font-family: 'Inter', sans-serif; text-transform: none; font-weight: 700; font-size: 1rem; }
.line-list p { color: var(--ink-mute); font-size: 0.9rem; margin-top: 0.25rem; }

/* --------------------------- Full-bleed media band ------------------------ */
.media-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 46vw;
  max-height: 640px;
  background: var(--paper-raised) center/cover no-repeat;
}

/* --------------------------------- Stats row ------------------------------ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) { .stats-row { grid-template-columns: repeat(4, 1fr); } }
.stat-cell {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 2vw, 2rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-cell .num { font-family: 'Anton', sans-serif; font-size: clamp(2rem, 3vw, 3rem); color: var(--accent); }
.stat-cell .label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); margin-top: 0.4rem; }

/* ----------------------------- Section headers ---------------------------- */
.section-head {
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 4rem) clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
}
.section-head h2 { font-size: var(--h2); max-width: 20ch; margin-top: 1rem; }
.section-head .lede { color: var(--ink-soft); max-width: 60ch; margin-top: 1rem; font-size: 1.05rem; }

/* --------------------------------- Two-up rows ---------------------------- */
.two-up {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) { .two-up { grid-template-columns: 1fr 1fr; } }
.two-up > div {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) {
  .two-up > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .two-up > div { border-top: none; }
}
.two-up h3 { font-size: var(--h3); font-family: 'Inter', sans-serif; text-transform: none; font-weight: 800; }
.two-up p { color: var(--ink-soft); margin-top: 0.75rem; }

/* ------------------------------ Final CTA band ---------------------------- */
.cta-band {
  background: var(--dark);
  color: var(--paper-on-dark);
  border-top: 1px solid var(--dark-line);
}
.cta-band-inner {
  padding: clamp(4rem, 7vw, 6rem) clamp(1.5rem, 4vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-band h2 { font-size: clamp(2rem, 3vw, 3rem); max-width: 18ch; }

/* --------------------------------- Footer --------------------------------- */
.site-footer {
  background: var(--dark);
  color: var(--mute-on-dark);
  border-top: 1px solid var(--dark-line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(3rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 4rem) 2.5rem;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand p { color: var(--paper-on-dark); font-weight: 700; margin-top: 0.75rem; }
.footer-emis { font-size: 0.8rem; color: var(--mute-on-dark) !important; font-weight: 400 !important; margin-top: 0.35rem !important; }
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--paper-on-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer-col a, .footer-col p { display: block; font-size: 0.9rem; margin-bottom: 0.6rem; }
.footer-col a:hover { color: var(--paper-on-dark); }
.footer-bottom {
  border-top: 1px solid var(--dark-line);
  padding: 1.5rem clamp(1.5rem, 4vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  max-width: 1440px;
  margin: 0 auto;
}

/* ---------------------------------- Forms ---------------------------------- */
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 0.9rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  transition: border-color 200ms ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 120px; }

/* -------------------------------- Fee table -------------------------------- */
.fee-table { width: 100%; border-collapse: collapse; }
.fee-table th, .fee-table td {
  text-align: left;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.fee-table th {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  border-top: none;
  border-bottom: 1px solid var(--line-strong);
}
.fee-table td.amount { font-family: 'Anton', sans-serif; color: var(--accent); font-size: 1.05rem; }
.table-wrap { overflow-x: auto; }

/* ------------------------------ Payment panel ------------------------------- */
.pay-panel {
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.pay-panel h3 { font-family: 'Inter', sans-serif; text-transform: none; font-weight: 800; font-size: 1.05rem; margin-bottom: 1.25rem; }
.pay-detail { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.pay-detail:last-of-type { border-bottom: 1px solid var(--line); }
.pay-detail .k { color: var(--ink-mute); }
.pay-detail .v { font-weight: 700; text-align: right; }
.pay-note { font-size: 0.82rem; color: var(--ink-mute); margin-top: 1rem; }

/* ------------------------------ Accordion (FAQ) ------------------------------ */
.accordion-item { border-top: 1px solid var(--line); }
.accordion-item:last-child { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.accordion-trigger .plus { font-family: 'Anton', sans-serif; font-size: 1.4rem; transition: transform 250ms var(--ease-snappy); color: var(--accent); }
.accordion-item[data-open="true"] .plus { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms var(--ease-snappy);
}
.accordion-panel p { color: var(--ink-soft); padding-bottom: 1.5rem; max-width: 65ch; }

/* -------------------------------- Utilities -------------------------------- */
.mt-lg { margin-top: 2.5rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ------------------------------- Mobile nav -------------------------------- */
@media (max-width: 899px) {
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 2rem clamp(1.5rem, 4vw, 4rem);
    gap: 1.75rem;
    transform: translateX(100%);
    transition: transform 300ms var(--ease-snappy);
    z-index: 49;
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav a { font-size: 1.1rem; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* Focus accessibility floor */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
