:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface-alt: #f4eee4;
  --text: #2a2024;
  --muted: #6b5f63;
  --line: #e6ddd0;
  --brand: #7a2e3b;
  --brand-strong: #5e1f2b;
  --brand-soft: #f6e6e8;
  --accent: #e0a526;
  --on-brand: #ffffff;
  --online: #1f6f5c;
  --online-soft: #e2f3ee;
  --error: #b42318;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(42, 32, 36, .06), 0 6px 20px rgba(42, 32, 36, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17131a;
    --surface: #221c24;
    --surface-alt: #1c171e;
    --text: #f2ecee;
    --muted: #b6a9ae;
    --line: #3a3036;
    --brand: #e3909c;
    --brand-strong: #f0aeb8;
    --brand-soft: #3a242b;
    --accent: #f4c95d;
    --on-brand: #2a1218;
    --online: #7fd4bd;
    --online-soft: #183029;
    --error: #ff8a80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}
img { max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
p { margin: 0 0 1em; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); font-weight: 400; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 2px solid var(--brand);
  background: var(--brand); color: var(--on-brand); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand); }
.btn-small { min-height: 38px; padding: 6px 16px; }
.btn-whatsapp { background: #1f8a4c; border-color: #1f8a4c; color: #fff; }
.btn-whatsapp:hover { background: #18703d; border-color: #18703d; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--brand); }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { padding: 64px 0 56px; background: radial-gradient(1200px 400px at 85% 0%, var(--brand-soft), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft); padding: 4px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.02em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.highlights { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.highlight { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.highlight strong { display: block; margin: 6px 0 2px; }
.highlight p { margin: 0; color: var(--muted); font-size: .95rem; }
.hl-icon { font-size: 1.6rem; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--surface-alt); }
.section-lead { color: var(--muted); margin-bottom: 24px; }

/* Chips & cards */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chip {
  min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 500; cursor: pointer;
}
.chip[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.course { display: flex; flex-direction: column; }
.course p { color: var(--muted); flex: 1; }
.card-link { font-weight: 600; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag { font-size: .8rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.tag-online { background: var(--online-soft); color: var(--online); }

/* Timetable */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.timetable { width: 100%; border-collapse: collapse; }
.timetable th, .timetable td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.timetable thead th { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-alt); }
.timetable tbody tr:last-child > * { border-bottom: 0; }

/* Fees */
.fee-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.fee-list li { display: flex; justify-content: space-between; gap: 12px; }
.fees-note { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.fees-note p { margin: 0; max-width: 60ch; }

/* Enquiry */
.enquire-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.c-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label, legend { font-weight: 600; font-size: .95rem; padding: 0; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--bg); width: 100%;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 2px solid var(--brand-soft); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; padding: 6px 14px; min-height: 40px;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--bg); }
.check input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--brand); }
.check:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.form-error { color: var(--error); font-weight: 600; margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* FAQ */
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brand); }
.faq[open] summary::after { content: "–"; }
.faq p { padding: 0 20px 16px; margin: 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .95rem; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-row p { margin: 0; }

/* Mobile */
@media (max-width: 860px) {
  .hero-grid, .enquire-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 40px 0; }
  .section { padding: 48px 0; }
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .highlights { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .timetable thead { display: none; }
  .timetable, .timetable tbody, .timetable tr, .timetable th, .timetable td { display: block; width: 100%; }
  .timetable tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .timetable tbody tr:last-child { border-bottom: 0; }
  .timetable th, .timetable td { border: 0; padding: 2px 0; }
  .timetable tbody th { font-size: 1.05rem; margin-bottom: 4px; }
  .timetable td { display: flex; justify-content: space-between; gap: 12px; }
  .timetable td::before { content: attr(data-label); color: var(--muted); }
}
