/* ============================================================
   Brilia marketing site — Soft Academic theme (IGCSE, IB Diploma)
   Warm ivory page, forest green accent, serif headings,
   soft cards with thin borders, gentle corners, no shadows.
   Used by: index, tutors, pricing, enquire, teach, about, contact
   ============================================================ */
:root {
  --ink: #1E2A25;
  --ink-2: #28382F;
  --text: #46524B;
  --muted: #5F6B64;
  --line: #E6DFD0;
  --line-2: #CFC6B2;
  --paper: #F7F2E7;
  --tint: #EFE9DA;
  --page: #FBF7EF;
  --white: #FFFDF8;
  --accent: #1F4D3A;
  --accent-dark: #163A2B;
  --on-dark: #B7D3C3;
  --on-dark-text: #D3DAD4;
  --radius: 8px;
  --font: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --head: 'Lora', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--page); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 600; letter-spacing: -0.008em; text-wrap: balance; }
strong { font-weight: 600; }
p { margin: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-block: 96px; }
.section--tight { padding-block: 67px; }
.band { background: var(--paper); }
.band--dark { background: var(--ink); color: var(--white); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.head { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin-bottom: 36px; }
.eyebrow { font-weight: 600; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.band--dark .eyebrow { color: var(--on-dark); }
.h1 { font-size: clamp(36px, 5vw, 54px); line-height: 1.1; }
.h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; }
.h3 { font-size: 19px; }
.lede { font-size: 19px; color: var(--text); max-width: 620px; }
.band--dark .lede, .band--dark p { color: var(--on-dark-text); }
.small { font-size: 15px; color: var(--muted); }
.todo { background: #FEF08A; color: #713F12; padding: 0 4px; font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 22px; border-radius: var(--radius); font: inherit; font-weight: 600; font-size: 16.5px; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); color: var(--white); }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--tint); color: var(--ink); }
.btn--outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline-light:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--page); border-bottom: 1px solid var(--line); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-word { font-family: var(--head); font-weight: 600; font-size: 26.4px; line-height: 1; letter-spacing: -0.008em; }
.brand-sub { font-size: 12.5px; font-weight: 500; line-height: 1; color: var(--muted); white-space: nowrap; }
.brand-word i { font-style: normal; color: inherit; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-weight: 500; font-size: 15.5px; }
.nav-links a { color: var(--text); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-links .btn { color: var(--white); padding: 10px 18px; min-height: 44px; font-size: 15.5px; }
.nav-links .btn:hover { color: var(--white); }

/* The header stays on screen, so keep it short on small screens:
   the main button sits beside the logo and the links swipe sideways. */
@media (max-width: 900px) {
  html { scroll-padding-top: 124px; }
  .site-nav { position: relative; gap: 8px; padding-block: 10px; }
  .nav-links { flex: 1 1 100%; flex-wrap: nowrap; min-width: 0; overflow-x: auto; gap: 20px; font-size: 15px; white-space: nowrap; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding-block: 6px; }
  .nav-links .btn { position: absolute; top: 12px; right: 24px; min-height: 40px; padding: 8px 12px; font-size: 14.5px; }
}
@media (max-width: 350px) {
  .nav-links .btn { position: static; flex: none; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; padding-block: 36px; font-size: 15px; color: var(--muted); }
.site-footer strong { color: var(--ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--muted); }

/* Layout helpers */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > .grow { flex: 1 1 520px; min-width: 0; }
.split > .side { flex: 1 1 400px; min-width: 0; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--steps { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }

/* Cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card p { font-size: 16px; color: var(--text); }
.card--feature { border: 2px solid var(--accent); }
.band--dark .card { background: var(--ink-2); border-color: transparent; }
.band--dark .card p { color: var(--on-dark-text); }
.info-strips { display: grid; gap: 12px; }
.info-strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; font-size: 16px; color: var(--text); }
.info-strip strong { font-family: var(--head); font-weight: 600; font-size: 17px; color: var(--ink); }
.cred-head { display: flex; align-items: center; gap: 14px; }
.cred-ic { flex: none; width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; }
.cred-ic svg { width: 34px; height: 34px; }
.icon { width: 24px; height: 24px; stroke: var(--ink); }
.band--dark .icon { stroke: var(--on-dark); }
.pill { align-self: flex-start; display: inline-block; font-weight: 600; font-size: 12px; padding: 4px 10px; border-radius: var(--radius); background: var(--tint); color: var(--ink); }
.step-num { display: block; color: var(--muted); font-family: var(--head); font-weight: 500; font-size: 26px; }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--text); }
.ticks li, .checks li { display: flex; align-items: flex-start; gap: 8px; }
.ticks svg, .checks svg { flex: none; margin-top: 3px; }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.note { border-left: 2px solid var(--line-2); padding: 4px 0 4px 18px; color: var(--text); font-size: 16px; }
.placeholder-img { aspect-ratio: 4 / 5; background: var(--tint); border: 1.5px dashed var(--line-2); border-radius: var(--radius); display: grid; place-items: center; color: var(--muted); font-weight: 600; }

/* Hero */
.hero { padding-block: 48px 96px; }
.switch { display: inline-flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.switch button { border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; font: inherit; font-weight: 600; font-size: 15px; color: var(--muted); padding: 10px 2px; cursor: pointer; min-height: 44px; }
.switch button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.panel-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.panel-card .meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.panel-card .meta strong { font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.panel-card .title { font-family: var(--head); font-weight: 600; font-size: 22px; }
.panel-card .label { font-weight: 600; font-size: 14px; color: var(--accent); }
.panel-card .rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.panel-card .rows li { display: flex; justify-content: space-between; gap: 12px; }
.callout { background: var(--tint); color: var(--ink); font-weight: 500; font-size: 15px; padding: 10px 12px; border-radius: var(--radius); }

/* CTA band */
.cta { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 44px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta p { color: var(--on-dark-text); font-size: 18px; }
.cta .grow { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }

/* Tables & FAQ */
.table-box { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.table-box table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; }
.table-box th, .table-box td { text-align: left; padding: 14px 18px; border-top: 1px solid var(--line); font-weight: 400; }
.table-box thead th { border-top: none; font-weight: 600; background: var(--paper); }
details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
details + details { margin-top: 12px; }
summary { font-weight: 600; font-size: 17px; cursor: pointer; }
details p { margin-top: 10px; color: var(--text); }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.progress { margin: 0; padding: 0; list-style: none; display: flex; gap: 8px; }
.progress li { flex: 1 1 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.progress li::before { content: ""; display: block; height: 4px; border-radius: 2px; background: var(--line); }
.progress li.done { color: var(--ink); }
.progress li.done::before { background: var(--accent); }
.progress li.current { font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.row > .field { flex: 1 1 220px; }
.field label, .legend { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 12px 14px; min-height: 48px; background: var(--white); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field input, .field select { height: 52px; }
.field textarea { min-height: 110px; resize: vertical; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 10px 14px; min-height: 44px; }
.toggle { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle button { font: inherit; font-weight: 600; font-size: 15px; padding: 10px 16px; border-radius: var(--radius); cursor: pointer; min-height: 44px; background: var(--white); color: var(--ink); border: 1px solid var(--line-2); }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.form-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.status { background: var(--tint); color: var(--ink); font-weight: 600; border-radius: var(--radius); padding: 14px 16px; }
fieldset { border: none; margin: 0; padding: 0; min-width: 0; }
[hidden] { display: none !important; }
.cookie-note { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 620px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(30, 42, 37, 0.16); }
.cookie-note p { flex: 1 1 280px; margin: 0; font-size: 15px; }
.cookie-note .btn { min-height: 44px; padding: 9px 18px; font-size: 15px; }
.link-button { padding: 0; font: inherit; color: inherit; text-decoration: underline; background: none; border: none; cursor: pointer; }

@media (max-width: 640px) {
  .section { padding-block: 64px; }
  .section--tight { padding-block: 48px; }
  .cta, .form-card { padding: 24px; }
}
