:root {
  --navy: #14213d;
  --navy-2: #1f3260;
  --gold: #f4a62a;
  --gold-dark: #d98a0f;
  --ink: #1d2433;
  --muted: #5b6475;
  --bg: #ffffff;
  --bg-soft: #f6f4ef;
  --line: #e4e1d8;
  --ok: #1f8a4c;
  --err: #c0392b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 33, 61, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { text-decoration: none; color: var(--navy); line-height: 1.15; }
.brand strong { display: block; font-size: 1.15rem; letter-spacing: .06em; }
.brand span { font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--navy-2); background: var(--bg-soft); }
.nav .nav-phone { color: var(--navy-2); }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font: inherit; font-weight: 600; cursor: pointer; color: var(--navy);
}

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .1s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; border-color: currentColor; color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, .1); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--gold); font-weight: 800; letter-spacing: .12em; font-size: .85rem; text-transform: uppercase; margin-bottom: 12px; }
.hero p { color: #dfe5f2; font-size: 1.1rem; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero img { border-radius: 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.subjects { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.subjects li { background: rgba(255, 255, 255, .12); padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 48px; gap: 32px; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--navy);
  display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; margin-bottom: 16px;
}
.step p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.cta-band { background: var(--navy); color: #fff; text-align: center; padding: 64px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dfe5f2; max-width: 620px; margin: 0 auto 24px; }
.cta-band .cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Page header ---------- */
.page-head { background: var(--bg-soft); padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 680px; margin: 0; }

/* ---------- Tutors ---------- */
.tutors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.tutor { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tutor img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 20%; }
.tutor .body { padding: 24px 28px 28px; }
.tutor .role { color: var(--gold-dark); font-weight: 700; font-size: .9rem; margin-bottom: 12px; }
.tutor p { color: var(--muted); }
@media (max-width: 820px) { .tutors { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
label .req { color: var(--err); }
input, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
}
input:focus, textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(31, 50, 96, .15); }
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.fine-print { font-size: .82rem; color: var(--muted); margin-top: 12px; }

.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }
.big-phone { font-size: 1.8rem; font-weight: 800; color: var(--navy); text-decoration: none; display: inline-block; margin: 4px 0 16px; }

.policies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.policies div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.policies h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.policies p { color: var(--muted); font-size: .95rem; }
@media (max-width: 820px) { .policies { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c5cde0; padding: 40px 0; font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: #fff; text-decoration: none; font-weight: 600; }

/* ---------- "Talk with a tutor now" widget ---------- */
.chat-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 100;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: var(--navy); border: none; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 1rem;
  padding: 14px 22px 14px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.chat-launcher:hover { background: var(--gold-dark); }
.chat-launcher .dot { width: 10px; height: 10px; border-radius: 50%; background: #1fbf5a; box-shadow: 0 0 0 3px rgba(31, 191, 90, .3); }
.chat-launcher[hidden] { display: none; }

.chat-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 101;
  width: 370px; max-width: calc(100vw - 32px); max-height: calc(100vh - 40px); overflow-y: auto;
  background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
.chat-panel[hidden] { display: none; }
.chat-head { background: var(--navy); color: #fff; padding: 18px 20px; border-radius: 18px 18px 0 0; position: relative; }
.chat-head strong { display: block; font-size: 1.08rem; }
.chat-head span { font-size: .88rem; color: #c5cde0; }
.chat-close {
  position: absolute; top: 12px; right: 12px; background: none; border: none; color: #fff;
  font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.chat-body { padding: 18px 20px 20px; }
.chat-bubble { background: var(--bg-soft); border-radius: 14px 14px 14px 4px; padding: 12px 14px; font-size: .95rem; margin-bottom: 16px; }
.chat-body .field { margin-bottom: 12px; }
.chat-body textarea { min-height: 90px; }
.chat-body .btn { width: 100%; }
.chat-call { text-align: center; font-size: .88rem; color: var(--muted); margin: 12px 0 0; }
.chat-done { text-align: center; padding: 12px 0 4px; }
.chat-done .check {
  width: 56px; height: 56px; border-radius: 50%; background: #e3f5ea; color: var(--ok);
  display: grid; place-items: center; font-size: 1.8rem; margin: 0 auto 12px;
}

@media (max-width: 480px) {
  .chat-launcher { right: 16px; bottom: 16px; }
  .chat-panel { right: 16px; left: 16px; bottom: 16px; width: auto; max-width: none; }
}
