/* Languages with Lara — shared styles for every page */

:root {
  color-scheme: light;
  --navy: #1d3a78;
  --navy-deep: #152a57;
  --ink: #1f2433;
  --muted: #5d6273;
  --gold: #c9a13b;
  --gold-text: #8d6b17;
  --olive: #6b7a45;
  --red: #b3302d;
  --bg: #ffffff;
  --cream: #faf7f1;
  --line: #e7e2d8;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--red); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.center .narrow { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 500;
  margin-bottom: 0.8em;
}
.lead { font-size: 1.2rem; color: var(--muted); }

/* Small gold divider, echoing the swirl in the logo */
.divider {
  width: 64px; height: 2px; background: var(--gold);
  border: 0; margin: 1.4em 0;
}
.center .divider { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8em 1.7em;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 2px solid var(--navy);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 1rem;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand span {
  font-family: var(--serif); font-size: 1.35rem; color: var(--navy);
  line-height: 1.1; white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-size: 0.95rem;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--navy); border-bottom-color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }
.site-nav .btn { padding: 0.55em 1.3em; color: #fff; border-bottom-width: 2px; }
.site-nav .btn:hover, .site-nav .btn[aria-current="page"] { color: #fff; }

.lang-switch { display: flex; gap: 6px; font-size: 0.8rem; letter-spacing: 0.06em; }
.lang-switch a, .lang-switch span { text-decoration: none; padding: 2px 4px; }
.lang-switch .current { color: var(--navy); font-weight: 600; }
.lang-switch .soon { color: #b9bcc6; cursor: default; }

.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; font: inherit; font-size: 0.95rem; color: var(--navy); cursor: pointer;
}

@media (max-width: 1020px) {
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .site-nav .btn { margin-top: 14px; text-align: center; }
  .site-nav .lang-switch { margin-top: 14px; justify-content: center; }
  .site-nav .lang-switch a, .site-nav .lang-switch span { border: 0; padding: 4px; }
}
@media (max-width: 420px) {
  .brand span { font-size: 1.1rem; }
  .brand img { height: 42px; }
}

/* ---------- Home: connection animation ---------- */
.scene svg { width: 100%; height: auto; display: block; overflow: visible; }
.scene .word { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 50px; fill: var(--navy);
  paint-order: stroke; stroke: #fff; stroke-width: 8px; stroke-linejoin: round; }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 9vw, 104px) 0; }
.section-cream { background: var(--cream); }
.page-hero { padding: clamp(48px, 8vw, 88px) 0 clamp(32px, 5vw, 56px); }

.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.hero h1 { font-style: italic; }
.hero-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.split.top { align-items: start; }
.photo { border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.caption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }

@media (max-width: 820px) {
  .hero, .split { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 4 / 3; }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin-bottom: 0.35em; }
.card p:last-child { margin-bottom: 0; }
.card .hello {
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--gold-text);
  margin-bottom: 0.3em;
}
.card-link { text-decoration: none; color: inherit; display: block; transition: border-color 0.2s, transform 0.2s; }
.card-link:hover { color: inherit; border-color: var(--gold); transform: translateY(-2px); }
.card-link .more { color: var(--navy); font-weight: 500; font-size: 0.95rem; }

.icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cream); color: var(--olive); margin-bottom: 16px;
}
.icon svg { width: 22px; height: 22px; }

/* ---------- Mission text ---------- */
.mission p { font-size: 1.12rem; }
.mission .quote {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  color: var(--navy); line-height: 1.3;
}
.welcome {
  font-family: var(--serif); font-size: 1.6rem; color: var(--navy); font-style: italic;
}
.mission-split { align-items: center; }
.mission-split .photo { max-height: 640px; }
.welcome-big, .mission .welcome-big {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 1.6rem; font-size: min(3.2rem, 5.7cqi); line-height: 1.2; color: var(--navy);
  white-space: nowrap; margin: 0.6em 0 0;
}
.mission { container-type: inline-size; }
.welcome-big span { display: inline-block; }
.welcome-big span:last-child { color: var(--gold-text); }
.welcome-big.ready span { opacity: 0; transform: translateY(18px); filter: blur(4px);
  transition: opacity 0.9s ease, transform 0.9s ease, filter 0.9s ease; }
.welcome-big.in span { opacity: 1; transform: none; filter: none; }
.welcome-big.in span:nth-child(2) { transition-delay: 0.45s; }
.welcome-big.in span:nth-child(3) { transition-delay: 0.9s; }
.welcome-big.in span:nth-child(4) { transition-delay: 1.35s; }
@media (prefers-reduced-motion: reduce) {
  .welcome-big.ready span { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ---------- Photo strip ---------- */
.gallery {
  display: grid; gap: 12px;
  grid-template-columns: repeat(5, 1fr);
}
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
.gallery figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 6px; text-align: center; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery figure:last-child { grid-column: span 2; } .gallery figure:last-child img { aspect-ratio: 16 / 9; } }

/* ---------- Placeholders (things Lara will send later) ---------- */
.placeholder {
  border: 2px dashed #d9c68f;
  background: #fffcf3;
  border-radius: var(--radius);
  padding: 28px;
  color: var(--muted);
  text-align: center;
}
.placeholder strong { color: var(--gold-text); display: block; margin-bottom: 4px; font-weight: 500; }
.video-box {
  aspect-ratio: 16 / 9; display: grid; place-items: center; align-content: center;
}
.play {
  width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--gold);
  display: grid; place-items: center; margin: 0 auto 14px; color: var(--gold);
}

/* ---------- Lists & tables ---------- */
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 0.6em; }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 0.6em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
}

.price { font-family: var(--serif); font-size: 2rem; color: var(--navy); margin: 0.2em 0 0.4em; }
.price small { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); }
.tag {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--cream); color: var(--olive); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
}

/* ---------- Teachers ---------- */
.teacher-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.teacher-photo.placeholder { display: grid; place-items: center; padding: 20px; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--navy); }
.section-tight { padding-top: 0; }
.teacher-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.teacher-grid > .teacher-card { flex: 0 1 250px; }
.teacher-card { display: block; text-decoration: none; color: inherit; text-align: center; }
.teacher-card:hover { color: inherit; }
.teacher-thumb {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 16px;
  border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s;
}
.teacher-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform 0.4s; }
.teacher-thumb.placeholder { display: grid; place-items: center; padding: 20px; }
.teacher-card:hover .teacher-thumb { border-color: var(--gold); transform: translateY(-3px); }
.teacher-card:hover .teacher-thumb img { transform: scale(1.03); }
.teacher-card h2 { font-size: 1.7rem; margin-bottom: 0.15em; }
.teacher-card:hover h2 { color: var(--red); }
.teacher-card .eyebrow { display: block; margin-bottom: 8px; }
.teacher-card .more { color: var(--navy); font-weight: 500; font-size: 0.95rem; }
.back-link { display: inline-block; margin: clamp(28px, 5vw, 48px) 0 24px; text-decoration: none; font-weight: 500; }
.teacher-profile .teacher-photo { position: sticky; top: 110px; }
.bio-lead { font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.35; color: var(--navy); }
.bio-welcome { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--gold-text); margin-bottom: 0.2em; }
.coming-soon { color: var(--muted); font-style: italic; }
.booking-note { font-size: 0.9rem; color: var(--muted); margin-top: 12px; }
@media (max-width: 560px) {
  .teacher-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .teacher-card h2 { font-size: 1.35rem; }
  .teacher-card .eyebrow { font-size: 0.68rem; letter-spacing: 0.1em; }
  .teacher-card .more { font-size: 0.85rem; }
}
@media (max-width: 820px) { .teacher-profile .teacher-photo { position: static; aspect-ratio: 4 / 4.5; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.95rem; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; border: 1px solid #cfd2da; border-radius: 10px; background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold);
}
.form textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 0.9rem; color: var(--muted); }
.form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 0; cursor: pointer; }
.form label.check input { width: 18px; height: 18px; padding: 0; margin-top: 0.25em; flex: none; accent-color: var(--navy); }

/* ---------- Placement test ---------- */
.cefr { font-size: 0.85rem; letter-spacing: 0.06em; color: var(--olive); margin: -0.2em 0 0.8em; }
.level-cards { margin-top: 8px; }
.level-cards .card h3 { font-size: 1.45rem; }
.quiz-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 5vw, 40px); }
.lang-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 20px; }
.lang-pick .btn[disabled] { opacity: 0.45; cursor: default; }
.lang-pick .btn[disabled]:hover { background: transparent; color: var(--navy); }
.quiz-steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quiz-steps li { border-top: 4px solid var(--line); padding-top: 8px; font-size: 0.85rem; color: var(--muted); line-height: 1.3; }
.quiz-steps li span { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.quiz-steps li.done { border-color: var(--olive); }
.quiz-steps li.now { border-color: var(--gold); color: var(--navy); font-weight: 500; }
.quiz-q { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 0 0 14px; }
.quiz-q legend { float: left; width: 100%; font-size: 1.1rem; color: var(--ink); font-weight: 500; margin-bottom: 8px; padding: 0; }
.quiz-q legend + * { clear: both; }
.quiz-q label { display: flex; gap: 12px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.quiz-q label:hover { background: var(--cream); }
.quiz-q label.dontknow { color: var(--muted); font-style: italic; }
.quiz-q input[type="radio"] { margin-top: 0.45em; accent-color: var(--navy); }
.quiz-q label.fill { display: block; cursor: text; font-size: 1.1rem; font-weight: 500; padding: 0; line-height: 1.9; }
#quiz-app { scroll-margin-top: 96px; }
.quiz-q label.fill:hover { background: none; }
.qnum { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--cream); color: var(--olive); font-size: 0.8rem; font-weight: 600; margin-right: 10px; vertical-align: middle; }
.quiz-q label.fill .qnum { margin-top: 0.45em; }
.blank { font: inherit; line-height: 1.3; width: 6.5em; max-width: 100%; margin: 0 4px; padding: 0 6px; border: 0; border-bottom: 2px solid var(--gold); background: #fffcf3; color: var(--navy); }
.blank:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.hint { color: var(--muted); font-weight: 400; font-style: italic; font-size: 0.95rem; }
.writing-prompt { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); line-height: 1.3; margin-bottom: 0.3em; }
.result { border-left: 4px solid var(--gold); background: #fff; padding: clamp(24px, 5vw, 40px); border-radius: 0 var(--radius) var(--radius) 0; }
.result .level { font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.8rem); color: var(--navy); margin: 0; line-height: 1.15; }
.result .cefr { margin-top: 8px; font-size: 1.2rem; font-weight: 600; color: var(--navy-deep); }
.result .score { font-size: 1.15rem; font-weight: 600; color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #e8ecf6; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .btn { background: #fff; color: var(--navy); border-color: #fff; }
.cta-band .btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.cta-band .btn-outline { background: transparent; color: #fff; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: 0.95rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid img { height: 64px; width: auto; margin-bottom: 12px; }
.footer-grid h4 { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--olive); margin: 0 0 12px; font-weight: 500; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { color: var(--navy); text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* Hidden anti-spam field on forms */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quiz-who { text-align: left; max-width: 420px; margin: 24px auto 8px; }
.trip-list { margin: 28px auto 0; text-align: left; }
