/* ==========================================================================
   SHALIMAR BOYS ACADEMY — STYLESHEET
   Design tokens live in :root — edit colors, fonts and spacing there.
   ========================================================================== */

:root {
  /* ---- Color tokens ---- */
  --ink: #14251E;          /* primary text, near-black green */
  --emerald: #1B4332;      /* brand green */
  --emerald-light: #2D6A4F;
  --emerald-deep: #0F2B21; /* footer / darkest green */
  --gold: #C9A227;         /* brand accent */
  --gold-deep: #A8841C;
  --ivory: #FAF7F0;        /* page background */
  --mist: #EEF2EC;         /* soft section background */
  --white: #FFFFFF;
  --line: rgba(20, 37, 30, 0.12);
  --line-light: rgba(250, 247, 240, 0.22);

  /* ---- Type tokens ---- */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* ---- Layout tokens ---- */
  --container: 1180px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --shadow-soft: 0 20px 50px -25px rgba(15, 43, 33, 0.35);
  --shadow-card: 0 12px 30px -18px rgba(15, 43, 33, 0.25);

  /* ---- Jali (lattice) pattern, used as a decorative motif ---- */
  --jali-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M32 2 62 32 32 62 2 32Z' fill='none' stroke='%23C9A227' stroke-width='1' stroke-opacity='0.55'/%3E%3C/svg%3E");
  --jali-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M32 2 62 32 32 62 2 32Z' fill='none' stroke='%231B4332' stroke-width='1' stroke-opacity='0.35'/%3E%3C/svg%3E");
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; }

p { margin: 0; }

button { font-family: inherit; cursor: pointer; }

input, select, textarea { font-family: inherit; font-size: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--gold);
  color: var(--ink);
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ==========================================================================
   REUSABLE TYPE / LAYOUT HELPERS
   ========================================================================== */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin: 0 0 14px;
}
.eyebrow-light { color: var(--gold); }

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.section-title-light { color: var(--ivory); }

.section-lead {
  font-size: 1.05rem;
  color: rgba(20, 37, 30, 0.72);
  max-width: 60ch;
}

.section-body {
  margin-top: 16px;
  color: rgba(20, 37, 30, 0.72);
  max-width: 60ch;
}

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head-light .section-lead { color: rgba(250, 247, 240, 0.75); }

section { padding: 96px 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 12px 24px -10px rgba(201, 162, 39, 0.55);
}
.btn-gold:hover { background: var(--gold-deep); }

.btn-ghost-light {
  background: transparent;
  color: var(--ivory);
  border-color: var(--line-light);
}
.btn-ghost-light:hover { background: rgba(250, 247, 240, 0.08); border-color: var(--gold); }

/* Scroll-reveal base state — activated by .in-view via JS */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(250, 247, 240, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 8px 24px -18px rgba(15, 43, 33, 0.4);
  border-bottom-color: var(--line);
}

.navbar {
  max-width: var(--container);
  margin-inline: auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark { flex-shrink: 0; line-height: 0; }
.brand-mark img { display: block; width: 44px; height: 44px; object-fit: contain; }
.footer-brand .brand-mark img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--emerald);
}
.brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 10px;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 20px;
  margin-inline: auto;
  background: var(--emerald);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-cta { padding: 11px 22px; font-size: 0.88rem; }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(180deg, var(--emerald) 0%, #163829 100%);
  color: var(--ivory);
  overflow: hidden;
  padding-top: 88px;
  padding-bottom: 72px;
}

.hero-jali {
  position: absolute;
  inset: 0;
  background-image: var(--jali-gold);
  background-size: 64px 64px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 90% 70% at 70% 20%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 70% 20%, black 10%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding-top: 40px;
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  color: var(--ivory);
  font-weight: 600;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

.hero-sub {
  font-size: 1.08rem;
  color: rgba(250, 247, 240, 0.8);
  max-width: 52ch;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 28px;
  margin: 0;
  padding-top: 32px;
  border-top: 1px solid var(--line-light);
  max-width: 620px;
}
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.hero-stat-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
}
.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(250, 247, 240, 0.65);
  letter-spacing: 0.02em;
}

.hero-visual { position: relative; }

.hero-arch {
  position: relative;
  border-radius: 260px 260px 20px 20px / 300px 300px 20px 20px;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 700 / 820;
}
.hero-arch img { width: 100%; height: 100%; object-fit: cover; }

.hero-badge {
  position: absolute;
  left: -18px;
  bottom: -18px;
  max-width: 260px;
  background: var(--ivory);
  color: var(--ink);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.hero-badge-num {
  font-family: var(--font-mono);
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 0.9rem;
}
.hero-badge-text { font-size: 0.82rem; line-height: 1.45; }

/* ==========================================================================
   ABOUT
   ========================================================================== */

.about { background: var(--ivory); }

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.about-visual { position: relative; }
.about-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 2;
}
.about-frame img { width: 100%; aspect-ratio: 640/760; object-fit: cover; }

.about-frame-accent {
  position: absolute;
  top: 24px;
  left: -24px;
  width: 100%;
  height: 100%;
  background-image: var(--jali-ink);
  background-size: 44px 44px;
  border-radius: var(--radius-md);
  z-index: 1;
}

.about-facts {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.about-facts li { display: flex; flex-direction: column; gap: 4px; }
.about-fact-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
}
.about-fact-value { font-weight: 700; color: var(--ink); font-size: 0.98rem; }

/* ==========================================================================
   COURSES
   ========================================================================== */

.courses { background: var(--mist); }

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.course-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(201, 162, 39, 0.4);
}

.course-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--emerald);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.course-icon svg { width: 26px; height: 26px; }

.course-level {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}

.course-title { font-size: 1.25rem; color: var(--ink); }

.course-desc { color: rgba(20, 37, 30, 0.68); font-size: 0.95rem; }

.course-meta {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--emerald-light);
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  margin-top: 6px;
}

.course-link {
  margin-top: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--emerald);
  transition: color 0.2s ease;
}
.course-link:hover { color: var(--gold-deep); }

/* ==========================================================================
   WHY CHOOSE US
   ========================================================================== */

.why-us {
  background: linear-gradient(180deg, var(--emerald-deep) 0%, var(--emerald) 100%);
  color: var(--ivory);
  position: relative;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}

.feature-card {
  padding: 36px 32px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  transition: background 0.3s ease;
}
.feature-card:hover { background: rgba(250, 247, 240, 0.05); }

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-title { font-size: 1.12rem; color: var(--ivory); margin-bottom: 10px; }
.feature-desc { color: rgba(250, 247, 240, 0.7); font-size: 0.92rem; }

/* ==========================================================================
   ACHIEVEMENTS
   ========================================================================== */

.achievements { background: var(--ivory); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.stat-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 26px 22px;
  text-align: left;
}
.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 600;
  color: var(--emerald);
  margin-bottom: 6px;
}
.stat-label { font-size: 0.85rem; color: rgba(20, 37, 30, 0.65); }

.ledger {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}
.ledger-head, .ledger-row {
  display: grid;
  grid-template-columns: 1.2fr 1.3fr 1.8fr 0.6fr;
  gap: 16px;
  padding: 16px 26px;
  align-items: center;
}
.ledger-head {
  background: var(--emerald);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ledger-row {
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: rgba(20, 37, 30, 0.8);
}
.ledger-row:hover { background: var(--mist); }
.ledger-name { font-weight: 700; color: var(--ink); font-family: var(--font-display); }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonials { background: var(--mist); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  border: 1px solid var(--line);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.testimonial-card::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: var(--gold);
  line-height: 1;
  opacity: 0.6;
}
.testimonial-quote {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.6;
  font-style: italic;
}
.testimonial-footer { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 14px; }
.testimonial-name { font-weight: 700; font-size: 0.95rem; }
.testimonial-role { font-size: 0.8rem; color: var(--gold-deep); font-family: var(--font-mono); }

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact { background: var(--ivory); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-details { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.contact-details li { display: flex; align-items: center; gap: 14px; font-size: 0.95rem; color: rgba(20,37,30,0.8); }
.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon svg { width: 18px; height: 18px; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
  font-weight: 600;
}
.form-row input,
.form-row select,
.form-row textarea {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  background: var(--ivory);
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  outline: none;
}
.form-submit { margin-top: 6px; }
.form-note { font-size: 0.88rem; min-height: 1.2em; color: var(--emerald-light); font-weight: 600; }
.form-note.error { color: #B3261E; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--emerald-deep);
  color: rgba(250, 247, 240, 0.75);
  padding-top: 72px;
  background-image: var(--jali-gold);
  background-size: 64px 64px;
  background-blend-mode: overlay;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}

.brand-name-footer { color: var(--ivory); }
.brand-tagline-footer { color: var(--gold); }

.footer-desc { margin-top: 18px; font-size: 0.9rem; max-width: 32ch; line-height: 1.6; }

.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ivory);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.footer-social a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--line-light);
  padding: 22px 24px;
  text-align: center;
  font-size: 0.82rem;
}
.footer-bottom .container { padding: 0; max-width: var(--container); }

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--gold);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 400;
}
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--gold); color: var(--ink); }

/* ==========================================================================
   RESPONSIVE — TABLET
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 460px; margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { max-width: 460px; margin-inline: auto; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   RESPONSIVE — MOBILE (mobile-first overrides for smaller viewports)
   ========================================================================== */

@media (max-width: 760px) {
  section { padding: 64px 0; }

  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    inset: 0 0 0 30%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    background: var(--ivory);
    padding: 100px 28px 40px;
    box-shadow: -20px 0 50px -20px rgba(15, 43, 33, 0.4);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 400;
  }
  .nav-menu.open { transform: translateX(0); }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    width: 100%;
  }
  .nav-link { font-size: 1.05rem; }
  .nav-cta { width: 100%; margin-top: 12px; }

  .nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(15, 43, 33, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 390;
  }
  .nav-scrim.open { opacity: 1; visibility: visible; }

  .hero { padding-top: 24px; }
  .hero-grid { padding-top: 24px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-badge { position: static; margin-top: 18px; max-width: 100%; }

  .about-facts { grid-template-columns: 1fr; }
  .about-frame-accent { display: none; }

  .course-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }

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

  .ledger-head, .ledger-row {
    grid-template-columns: 1fr 1fr;
    row-gap: 6px;
  }
  .ledger-head span:nth-child(3),
  .ledger-head span:nth-child(4) { display: none; }
  .ledger-row span:nth-child(3) { grid-column: 1 / -1; order: 3; }
  .ledger-row span:nth-child(4) {
    font-family: var(--font-mono);
    color: var(--gold-deep);
    font-size: 0.78rem;
  }

  .contact-form { padding: 26px 22px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 420px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .nav-menu { inset: 0; }
}
