/* ---------- Tokens ---------- */
:root {
  --navy: #14213d;
  --navy-2: #1d2f55;
  --accent: #f4a261;
  --accent-ink: #b45309;
  --ink: #1b2333;
  --muted: #5b6577;
  --line: #e3e7ee;
  --bg: #ffffff;
  --tint: #f6f4ef;
  --whatsapp: #1fa855;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(20, 33, 61, .25);
  --map-bg: #e9edf3;
  --map-road: #ffffff;
  --map-line: #c9d1dd;
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); font-weight: 400; }
.fine { font-size: .8rem; color: var(--muted); margin: .75rem 0 0; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Demo banner ---------- */
.demo-banner {
  background: #fff4e6; color: #7a3e06; text-align: center;
  font-size: .82rem; padding: 8px 16px; border-bottom: 1px solid #f6d9b6;
}
.demo-banner a { font-weight: 700; color: inherit; margin-left: 6px; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  font-family: inherit; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--navy); }
.btn-primary:hover { background: #f19449; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #18914a; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

.link-arrow { color: var(--accent-ink); font-weight: 700; text-decoration: none; margin-top: auto; }
.link-arrow::after { content: " →"; transition: margin .15s; }
.link-arrow:hover::after { margin-left: 4px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  font-weight: 700; color: var(--accent-ink); margin-bottom: .75rem;
}
.eyebrow-light { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--navy); }
.brand em { font-style: normal; color: var(--accent-ink); }
.brand-light { color: #fff; }
.brand-light em { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 600; color: var(--muted); font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--navy); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }
.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); }

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 0;
  padding: 72px 0 88px;
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(244, 162, 97, .18), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(20, 33, 61, .07), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.hero h1 .accent { color: var(--accent-ink); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.hero-points li::before { content: "✓"; color: var(--whatsapp); font-weight: 800; margin-right: 6px; }

.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 28px; box-shadow: 0 30px 60px -30px rgba(20, 33, 61, .35);
  position: relative;
}
.hero-card::before {
  content: ""; position: absolute; inset: -14px 14px auto auto; width: 70%; height: 100%;
  border-radius: 22px; background: var(--navy); z-index: -1; transform: rotate(3deg); opacity: .9;
}
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: .9rem; }
.pill { background: #fff4e6; color: var(--accent-ink); font-weight: 700; padding: 4px 12px; border-radius: 999px; font-size: .8rem; }
.hero-card h2 { font-size: 1.6rem; }
.card-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 20px; }
.card-facts dt { font-size: .78rem; color: var(--muted); }
.card-facts dd { margin: 0; font-weight: 700; }
.seat-bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 20px; }
.seat-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #e76f51); border-radius: 99px; }

/* ---------- Stats ---------- */
.stats { background: var(--navy); color: #fff; padding: 36px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat span { font-size: .9rem; color: #c8d0e0; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p:last-child { color: var(--muted); }
.narrow .section-head { margin-inline: auto; text-align: center; }

/* Courses */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.course {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.course:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.course-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: #fff4e6; color: var(--accent-ink); font-weight: 800; font-size: 1.3rem; margin-bottom: 18px;
}
.course p { color: var(--muted); font-size: .95rem; }
.course ul { padding: 0; margin: 0 0 20px; list-style: none; font-size: .9rem; }
.course li { padding: 6px 0; border-top: 1px dashed var(--line); }

/* Why */
.why-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.why-grid > div p:last-child { color: var(--muted); }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why-list li { background: #fff; border-radius: var(--radius); padding: 22px; border-left: 4px solid var(--accent); }
.why-list strong { display: block; margin-bottom: 4px; }
.why-list span { color: var(--muted); font-size: .92rem; }

/* Batches */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.batch-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.batch-table th, .batch-table td { padding: 16px 20px; text-align: left; white-space: nowrap; }
.batch-table thead { background: var(--navy); color: #fff; }
.batch-table th { font-weight: 700; font-size: .85rem; letter-spacing: .03em; }
.batch-table tbody tr:nth-child(even) { background: #fafbfc; }
.batch-table tbody tr + tr td { border-top: 1px solid var(--line); }
.batch-table td:first-child { font-weight: 700; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.tag-open { background: #e6f6ec; color: #126b37; }
.tag-few { background: #fff4e6; color: #8a4a08; }
.tag-full { background: #fde8e8; color: #9b1c1c; }

/* Faculty */
.faculty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.teacher { background: #fff; border-radius: var(--radius); padding: 28px 22px; text-align: center; }
.avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; color: #fff;
  background: linear-gradient(135deg, hsl(var(--hue) 55% 42%), hsl(calc(var(--hue) + 30) 60% 32%));
}
.teacher .role { color: var(--accent-ink); font-weight: 700; font-size: .9rem; margin-bottom: .5em; }
.teacher p:last-child { color: var(--muted); font-size: .9rem; margin: 0; }

/* Testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.quote blockquote { margin: 0 0 20px; font-size: 1.02rem; }
.quote blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: .6; color: var(--accent); margin-bottom: 8px; }
.quote figcaption strong { display: block; font-size: .92rem; }
.quote figcaption span { font-size: .8rem; color: var(--muted); }

/* Enquiry */
.section-dark { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; }
.section-dark p { color: #c8d0e0; }
.enquire-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 700; }
.contact-list a { text-decoration: none; }
.contact-list em { color: #9aa6bd; font-size: .85rem; }

.enquiry-form { background: #fff; color: var(--ink); border-radius: 20px; padding: 30px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .4); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20, 33, 61, .12);
}
.field [aria-invalid="true"] { border-color: #c81e1e; }
.error { color: #c81e1e; font-size: .82rem; margin: 4px 0 0; min-height: 0; }
.error:empty { display: none; }
.enquiry-form .fine { color: var(--muted); text-align: center; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 700; font-size: 1.05rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--accent-ink); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 12px; }

/* Location */
.location { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.location p { color: var(--muted); }
.map-placeholder { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 3; box-shadow: var(--shadow); }
.map-placeholder svg { width: 100%; height: 100%; }

/* Footer */
.site-footer { background: #0e172b; color: #c8d0e0; padding: 56px 0 24px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-grid p { margin-top: 12px; max-width: 360px; font-size: .92rem; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.footer-grid nav a { text-decoration: none; font-weight: 600; font-size: .92rem; }
.footer-grid nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 36px; padding-top: 20px; font-size: .82rem; color: #8b96ad; }

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--whatsapp); color: #fff; box-shadow: 0 10px 25px -5px rgba(31, 168, 85, .55);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .course-grid, .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: 40px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    box-shadow: 0 20px 30px -20px rgba(20, 33, 61, .3);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav .btn { margin-top: 14px; }

  .hero { padding: 48px 0 64px; }
  .hero-grid, .why-grid, .enquire-grid, .location { grid-template-columns: 1fr; gap: 36px; }
  .hero-card::before { display: none; }
  .quote-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }

  /* Batch table becomes cards */
  .table-wrap { border: 0; overflow: visible; }
  .batch-table thead { display: none; }
  .batch-table, .batch-table tbody, .batch-table tr, .batch-table td { display: block; width: 100%; }
  .batch-table tr { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 4px; margin-bottom: 14px; background: #fff !important; }
  .batch-table tbody tr + tr td { border-top: 0; }
  .batch-table td { display: flex; justify-content: space-between; gap: 16px; padding: 8px 16px; white-space: normal; text-align: right; }
  .batch-table td::before { content: attr(data-label); font-weight: 600; color: var(--muted); text-align: left; }
}

@media (max-width: 560px) {
  .course-grid, .faculty-grid, .why-list, .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .enquiry-form { padding: 22px; }
  .card-facts { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
