/* ==========================================================================
   Vidya Sagar Academy — public site styles
   --------------------------------------------------------------------------
   Structure:
     1. Tokens (colours, spacing, radii)
     2. Reset & base
     3. Layout helpers
     4. Typography
     5. Buttons
     6. Demo bar
     7. Header & navigation
     8. Hero
     9. Sections & cards
    10. Enquiry form
    11. FAQ
    12. Contact & footer
    13. Reveal animations
    14. Responsive breakpoints
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --navy-900: #071a33;
  --navy-800: #0c2547;
  --navy-700: #123660;
  --blue-600: #1f5ae0;
  --blue-500: #2f6bff;
  --blue-300: #8fb4ff;
  --blue-100: #dce8ff;
  --blue-50: #eef4ff;

  --ink: #0d1826;
  --muted: #5b6b82;
  --muted-light: #9ab0cb;

  --white: #ffffff;
  --line: #e3e9f2;
  --line-dark: rgba(255, 255, 255, 0.16);

  --danger: #c0392b;
  --success: #157a4d;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(9, 30, 66, 0.06);
  --shadow: 0 8px 24px -12px rgba(9, 30, 66, 0.22);
  --shadow-lg: 0 30px 60px -30px rgba(9, 30, 66, 0.35);

  --shell: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Layout helpers ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- 4. Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
h4 { font-size: 0.95rem; }

h1 em {
  font-style: italic;
  color: var(--blue-500);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 18px;
}

.eyebrow-light { color: var(--blue-300); }

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 4px var(--blue-50);
}

.lede {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 56ch;
}
.lede-light { color: var(--muted-light); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-500);
  color: var(--white);
  box-shadow: 0 10px 24px -12px rgba(47, 107, 255, 0.75);
}
.btn-primary:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -14px rgba(47, 107, 255, 0.85);
}

.btn-ghost {
  background: var(--white);
  color: var(--navy-800);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--blue-300);
  color: var(--blue-600);
}

.btn-sm { padding: 10px 20px; font-size: 0.87rem; }
.btn-block { width: 100%; }

/* ---------- 6. Demo bar ---------- */
.demo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 9px 48px 9px 24px;
  background: var(--blue-50);
  border-bottom: 1px solid var(--blue-100);
  font-size: 0.8rem;
  color: var(--navy-700);
  position: relative;
  text-align: center;
}
.demo-bar strong { color: var(--blue-600); }
.demo-bar button {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  line-height: 1;
  color: var(--muted);
  padding: 4px 8px;
}
.demo-bar button:hover { color: var(--ink); }
.demo-bar.is-hidden { display: none; }

/* ---------- 7. Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px -18px rgba(9, 30, 66, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}

.brand { display: flex; align-items: center; gap: 11px; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--blue-500), var(--navy-700));
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1rem; letter-spacing: -0.02em; }
.brand-text small {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.16s ease;
}
.nav a:hover { color: var(--ink); }

.header-cta { margin-left: 4px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s 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); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 22px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a {
  padding: 12px 0;
  font-weight: 500;
  color: var(--navy-800);
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 12px; border-bottom: 0; }
.mobile-nav.is-open { display: flex; }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
  background:
    radial-gradient(900px 460px at 88% -8%, var(--blue-50) 0%, transparent 62%),
    radial-gradient(700px 400px at 8% 108%, #f4f8ff 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-copy h1 { margin-bottom: 22px; }

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-300);
}

/* Hero visual */
.hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.hero-glow {
  position: absolute;
  inset: 12% 6%;
  background: linear-gradient(140deg, rgba(47, 107, 255, 0.16), rgba(143, 180, 255, 0.05));
  filter: blur(46px);
  border-radius: 50%;
  z-index: 0;
}

.card-week {
  position: relative;
  z-index: 2;
  width: min(100%, 380px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
}

.card-week-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.week-list li {
  display: grid;
  grid-template-columns: 44px 1fr 12px;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 500;
}
.week-list li:last-child { border-bottom: 0; }

.week-list .day {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.week-list .tick {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-100);
  justify-self: end;
}
.week-list li:nth-child(1) .tick { background: var(--blue-500); }
.week-list li:nth-child(2) .tick { background: var(--blue-300); }

.float-chip {
  position: absolute;
  z-index: 3;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--navy-800);
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.chip-1 { top: 8%; left: -6%; }
.chip-2 { bottom: 10%; right: -4%; }

/* ---------- 9. Sections & cards ---------- */
.section { padding: 96px 0; }
.section-tint { background: #f7faff; }

.section-navy {
  background:
    radial-gradient(800px 420px at 82% 0%, rgba(47, 107, 255, 0.22) 0%, transparent 60%),
    var(--navy-900);
  color: var(--white);
}
.section-navy h2 { color: var(--white); }

.section-head { margin-bottom: 48px; max-width: 62ch; }
.section-head h2 { margin-bottom: 16px; }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.intro-body p { color: var(--muted); margin-bottom: 16px; }

.intro-facts {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.intro-facts div { display: flex; flex-direction: column; gap: 2px; }
.intro-facts strong {
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  color: var(--navy-800);
}
.intro-facts span { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; }

/* Course cards */
.course-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--blue-100);
}
.course-card h3 { font-size: 1.32rem; }
.course-card p { color: var(--muted); font-size: 0.94rem; }

.course-card-featured {
  background: var(--navy-900);
  border-color: var(--navy-900);
}
.course-card-featured h3 { color: var(--white); }
.course-card-featured p { color: var(--muted-light); }
.course-card-featured .course-tag {
  background: rgba(143, 180, 255, 0.16);
  color: var(--blue-300);
}
.course-card-featured .course-meta li { color: var(--muted-light); border-color: var(--line-dark); }
.course-card-featured .course-link { color: var(--blue-300); }

.course-card-quiet {
  background: var(--blue-50);
  border-color: var(--blue-100);
}

.course-tag {
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-meta {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}
.course-meta li {
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.course-link {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--blue-600);
}
.course-link:hover { text-decoration: underline; }

/* Feature cards */
.feature {
  padding: 28px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 1.1rem;
}
.feature h3 { font-size: 1.04rem; margin-bottom: 8px; }
.feature p { font-size: 0.9rem; color: var(--muted); }

/* Faculty */
.faculty-card {
  padding: 26px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-50);
  border: 1px dashed var(--blue-300);
  color: var(--blue-600);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.faculty-card h3 { font-size: 1rem; }
.faculty-role {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin: 4px 0 12px;
}
.faculty-note { font-size: 0.82rem; color: var(--muted); }

/* Honeypot field: present in the DOM, invisible to people and off-screen for
   screen readers. Any value in it means a bot filled the form. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- 10. Enquiry form ---------- */
.enquiry-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.enquiry-points {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.enquiry-points li {
  position: relative;
  padding-left: 24px;
  font-size: 0.9rem;
  color: var(--muted-light);
}
.enquiry-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue-300);
  font-size: 0.85rem;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--navy-800);
}
.req { color: var(--danger); }
.optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.78rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.94rem;
  color: var(--ink);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%235b6b82' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field textarea { resize: vertical; min-height: 88px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.14);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.phone-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.phone-wrap:focus-within {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.14);
}
.phone-prefix {
  display: grid;
  place-items: center;
  padding: 0 12px;
  background: #f6f8fc;
  border-right: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}
.phone-wrap input {
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.hint {
  margin-top: 6px;
  font-size: 0.76rem;
  color: var(--muted);
}

.error {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--danger);
  min-height: 0;
  display: none;
}
.error.is-visible { display: block; }

/* Batch radio pills */
.batch-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.batch-option { position: relative; }
.batch-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.batch-option span {
  display: block;
  padding: 11px 6px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.16s ease;
}
.batch-option input:checked + span {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
  font-weight: 600;
}
.batch-option input:focus-visible + span {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

/* Consent */
.consent-field { margin-top: 4px; }
.checkbox {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.84rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.5;
}
.checkbox input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--blue-500);
  flex: 0 0 auto;
}

.privacy {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.6;
  padding: 14px 16px;
  background: #f7faff;
  border-radius: var(--radius-sm);
  margin: 18px 0;
}
.privacy a { color: var(--blue-600); text-decoration: underline; }

/* Submit button states */
#submitBtn { position: relative; }
#submitBtn[data-loading="true"] { pointer-events: none; opacity: 0.85; }
#submitBtn[data-loading="true"] .btn-label { visibility: hidden; }

.spinner {
  display: none;
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
#submitBtn[data-loading="true"] .spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  margin-top: 14px;
  font-size: 0.84rem;
  border-radius: var(--radius-sm);
  padding: 0;
  transition: all 0.2s ease;
}
.form-status:not(:empty) { padding: 12px 14px; }
.form-status.is-error {
  background: #fdf1f0;
  color: var(--danger);
  border: 1px solid #f5d3cf;
}

/* Success panel */
.form-success { text-align: center; padding: 26px 8px; }
.success-mark {
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8f7f0;
  color: var(--success);
  font-size: 1.6rem;
}
.form-success h3 { font-size: 1.4rem; margin-bottom: 10px; }
.form-success p { color: var(--muted); margin-bottom: 24px; }

/* ---------- 11. FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.faq-list { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--blue-500);
  transition: transform 0.2s ease;
  flex: 0 0 auto;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 62ch;
}

/* ---------- 12. Contact & footer ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-card h3 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 10px;
}
.contact-card p { font-size: 0.94rem; line-height: 1.5; }
.contact-card a:hover { color: var(--blue-600); }
.contact-note {
  margin-top: 8px;
  font-size: 0.74rem !important;
  color: var(--muted) !important;
}

.site-footer {
  background: var(--navy-900);
  color: var(--muted-light);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}
.brand-footer { margin-bottom: 16px; }
.brand-footer .brand-text strong { color: var(--white); }
.brand-footer .brand-text small { color: var(--muted-light); }

.footer-note { font-size: 0.84rem; max-width: 38ch; line-height: 1.65; }

.site-footer h4 {
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; }
.footer-links a:hover { color: var(--white); }

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.78rem;
}

/* ---------- 13. Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .course-card { transition: none; }
  .spinner { animation-duration: 2s; }
}

/* ---------- 14. Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .intro-grid,
  .enquiry-grid,
  .faq-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 340px; margin-top: 12px; }
  .chip-1 { left: 0; top: 0; }
  .chip-2 { right: 0; bottom: 0; }

  .section { padding: 68px 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 84px; }

  .shell { padding: 0 18px; }
  .header-inner { height: 66px; }

  h1 { font-size: clamp(2.1rem, 9vw, 2.9rem); }

  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .batch-options { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; }

  .form-card { padding: 24px 20px; border-radius: var(--radius); }

  .intro-facts { gap: 26px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-base { flex-direction: column; gap: 8px; }

  .demo-bar { font-size: 0.72rem; padding: 8px 40px 8px 14px; }
  .float-chip { font-size: 0.68rem; padding: 7px 12px; }
}
