/* ============================================
   Nathan Hibbert English — shared stylesheet
   Bright & modern theme
   ============================================ */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---- Design tokens (change these to re-skin the whole site) ---- */
:root {
  --bg:          #ffffff;   /* page background: clean white */
  --bg-alt:      #eef1f6;   /* secondary background strips (tinted pale gray-blue) */
  --ink:         #1a1d2e;   /* primary text: deep navy */
  --muted:       #6c6ea0;   /* secondary text: muted indigo */
  --accent:      #ff1053;   /* hot pink/red accent */
  --accent-soft: #ffe4ec;   /* soft pink wash */
  --olive:       #66c7f4;   /* secondary accent: sky blue */
  --line:        #c1cad6;   /* borders and dividers: pale blue-gray */
  --white:       #ffffff;
  --wapp:        #25D366;   /* WhatsApp brand color */

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;

  --shadow-card: 0 12px 30px rgba(26, 29, 46, 0.10);
  --shadow-elev: 0 20px 50px rgba(26, 29, 46, 0.12);
  --shadow-btn:  0 4px 14px rgba(255, 16, 83, 0.30);
  --shadow-btn-hover: 0 8px 22px rgba(255, 16, 83, 0.40);
}

/* ---- Base ---- */
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.narrow { max-width: 780px; margin: 0 auto; padding: 0 2rem; }

/* ---- Navigation ---- */
nav.site-nav {
  position: sticky; top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  z-index: 50;
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0;
}
.logo {
  font-family: 'Fraunces', serif;
  font-weight: 600; font-size: 1.3rem;
  color: var(--accent);
}
.logo span { color: var(--ink); }
.nav-links {
  display: flex; gap: 1.75rem;
  font-weight: 500; font-size: 0.95rem;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: var(--white);
  padding: 0.65rem 1.4rem; border-radius: 999px;
  font-size: 0.92rem; font-weight: 600;
  box-shadow: var(--shadow-btn);
  transition: transform 0.15s, box-shadow 0.15s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-btn-hover); }

.lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.lang-toggle:hover { background: var(--bg-alt); border-color: var(--muted); }

/* Mobile nav — hide center links on small screens, keep logo and CTA */
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.95rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s, color 0.2s;
  border: none; font-family: inherit;
}
.btn-primary {
  background: var(--accent); color: var(--white);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-btn-hover); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-secondary {
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover { background: var(--bg-alt); }
.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---- Section primitives ---- */
section { padding: 5rem 0; }
.section-label {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: 1rem; color: var(--accent);
  margin-bottom: 0.75rem;
}
h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 600; line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 600; line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
h2 em { font-style: italic; color: var(--accent); }
h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem; font-weight: 600;
  margin-bottom: 0.5rem;
}
p { color: var(--muted); }
.prose p { margin-bottom: 1rem; max-width: 55ch; }

/* ---- Two-column layout ---- */
.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }

/* ---- Pills and eyebrows ---- */
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--white); padding: 0.5rem 1rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; color: var(--olive);
  border: 1px solid var(--line); margin-bottom: 1.5rem;
}
.pill::before { content: '●'; font-size: 0.6rem; color: var(--olive); }

/* ---- Cards ---- */
.card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 2rem; border: 1px solid var(--line);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.card .icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.25rem;
}
.card p { font-size: 0.95rem; }

/* ---- Grids ---- */
.grid-2 {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
  margin-top: 2rem; max-width: 900px; margin-left: auto; margin-right: auto;
}
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  margin-top: 2rem;
}
@media (max-width: 720px) { .grid-3 { grid-template-columns: 1fr; } }

.grid-4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
  margin-top: 2rem;
}
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .grid-4 { grid-template-columns: 1fr; } }

/* ---- About with portrait ---- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  gap: 4rem; align-items: start;
}
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .portrait { max-width: 380px; margin: 0 auto; }
}
.portrait {
  width: 100%; height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  display: block;
}

/* ---- In the classroom (full-width photo section) ---- */
.classroom-strip {
  padding: 0; background: var(--ink);
}
.classroom-inner {
  position: relative; max-width: 1400px; margin: 0 auto;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}
.classroom-photo {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.classroom-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem 2rem 2rem;
  background: linear-gradient(to top, rgba(26,29,46,0.88) 0%, rgba(26,29,46,0) 100%);
  color: var(--white);
}
.classroom-caption .label {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: 1rem; color: #ffb8cc; margin-bottom: 0.4rem;
}
.classroom-caption h3 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 600; color: var(--white);
  margin: 0; line-height: 1.3;
}
@media (max-width: 640px) {
  .classroom-inner { aspect-ratio: 4 / 3; }
  .classroom-caption { padding: 2rem 1.5rem 1.5rem; }
}

/* ---- Hero ---- */
.hero {
  padding: 5rem 0 4.5rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--accent-soft) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 4rem; align-items: center;
}
@media (max-width: 800px) { .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.hero p.lede {
  font-size: 1.15rem; color: var(--muted);
  max-width: 50ch; margin-bottom: 2rem;
}
.hero-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem;
  box-shadow: var(--shadow-elev);
  border: 1px solid var(--line);
  transform: rotate(-1.5deg);
}
.hero-card .label {
  font-size: 0.8rem; color: var(--muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.hero-card .quote {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: 1.4rem; line-height: 1.4; color: var(--ink);
  margin-bottom: 1.25rem;
}
.hero-card .who {
  display: flex; align-items: center; gap: 0.75rem; font-size: 0.92rem;
}
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--olive), var(--accent));
  color: var(--white); display: flex; align-items: center;
  justify-content: center; font-weight: 700;
}
.who strong { display: block; color: var(--ink); }
.who span { color: var(--muted); font-size: 0.85rem; }

/* ---- How it works (numbered steps) ---- */
.step .num {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem; color: var(--accent); font-weight: 600;
  line-height: 1; margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { font-size: 0.95rem; }

/* ---- Testimonials ---- */
.testimonial {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 2rem;
}
.testimonial .quote {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: 1.1rem; line-height: 1.5; color: var(--ink);
  margin-bottom: 1.25rem;
}
.testimonial .who {
  display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem;
}

/* ---- FAQ ---- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq {
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
}
.faq:first-child { border-top: 1px solid var(--line); }
.faq summary {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem; font-weight: 600;
  color: var(--ink); cursor: pointer;
  list-style: none; position: relative;
  padding-right: 2rem;
}
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: 0;
  color: var(--accent); font-size: 1.4rem; font-weight: 400;
  transition: transform 0.2s;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq p {
  margin-top: 1rem; color: var(--muted); font-size: 0.98rem;
}

/* ---- Placement CTA banner ---- */
.placement-wrap { background: var(--bg-alt); padding: 5rem 0; }
.placement-cta {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 3.5rem; text-align: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.placement-cta h2 { margin: 0.5rem auto 1rem; }
.placement-cta p {
  max-width: 50ch; margin: 0 auto 2rem;
}

/* ---- Contact ---- */
.contact-methods { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.contact-methods a {
  background: var(--white); border: 1px solid var(--line);
  padding: 1.1rem 1.5rem; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-weight: 600; transition: border-color 0.2s, transform 0.15s;
}
.contact-methods a:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact-methods .wapp-icon { color: var(--wapp); font-size: 1.2rem; }

/* ---- Footer ---- */
footer {
  padding: 3rem 0; color: var(--muted); font-size: 0.9rem;
  border-top: 1px solid var(--line); margin-top: 2rem;
}
.foot-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}

/* ============================================
   Placement test specific styles
   ============================================ */
.test-page {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  padding-bottom: 4rem;
}
.test-container {
  max-width: 720px; margin: 3rem auto 0;
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
  overflow: hidden;
}
.test-inner { padding: 3rem 2.5rem; }
.test-header {
  padding: 1.25rem 2.5rem;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.9rem; color: var(--muted); font-weight: 600;
}
.progress-bar {
  height: 4px; background: var(--line); position: relative;
}
.progress-fill {
  position: absolute; left: 0; top: 0; height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}

/* Intro / start screen */
.test-intro h1 { margin-bottom: 1rem; }
.test-intro .lede {
  font-size: 1.1rem; color: var(--muted); margin-bottom: 2rem;
  max-width: 50ch;
}
.form-row { margin-bottom: 1.25rem; }
.form-row label {
  display: block; font-weight: 600; font-size: 0.9rem;
  margin-bottom: 0.4rem; color: var(--ink);
}
.form-row input {
  width: 100%; padding: 0.9rem 1rem;
  border: 1px solid var(--line); border-radius: 12px;
  font-size: 1rem; font-family: inherit;
  background: var(--bg); color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none; border-color: var(--accent);
  background: var(--white);
}
.form-row textarea {
  width: 100%; padding: 0.9rem 1rem;
  border: 1px solid var(--line); border-radius: 12px;
  font-size: 1rem; font-family: inherit; resize: vertical;
  background: var(--bg); color: var(--ink); min-height: 5rem;
  line-height: 1.5;
  transition: border-color 0.2s, background 0.2s;
}
.field-hint {
  font-size: 0.82rem; color: var(--muted);
  margin-top: 0.4rem; font-style: italic;
}
.optional {
  font-weight: 400; color: var(--muted); font-size: 0.9em;
}

/* Fieldset for goal checkboxes */
.goals-fieldset {
  border: none; padding: 0;
}
.goals-fieldset legend {
  display: block; font-weight: 600; font-size: 0.9rem;
  margin-bottom: 0.6rem; color: var(--ink);
  padding: 0;
}
.goal-checks {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
}
@media (max-width: 540px) { .goal-checks { grid-template-columns: 1fr; } }
.goal-checks .check {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); cursor: pointer;
  font-size: 0.93rem; line-height: 1.35;
  transition: border-color 0.15s, background 0.15s;
}
.goal-checks .check:hover {
  border-color: var(--accent); background: var(--white);
}
.goal-checks .check input[type="checkbox"] {
  width: 1.1rem; height: 1.1rem; margin: 0.15rem 0 0 0;
  accent-color: var(--accent); flex-shrink: 0;
  cursor: pointer;
}
.goal-checks .check:has(input:checked) {
  border-color: var(--accent); background: var(--accent-soft);
}
.goal-checks .check span { flex: 1; }

/* Question screen */
.question-num {
  font-size: 0.85rem; color: var(--muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.question-text {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem; line-height: 1.35; color: var(--ink);
  margin-bottom: 2rem; font-weight: 500;
}
.choices { display: flex; flex-direction: column; gap: 0.75rem; }
.choice {
  padding: 1.1rem 1.25rem;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--bg); cursor: pointer;
  font-size: 1rem; color: var(--ink);
  text-align: left; font-family: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.choice:hover { border-color: var(--accent); background: var(--white); }
.choice:active { transform: scale(0.99); }
.choice.selected {
  border-color: var(--accent); background: var(--accent-soft);
  font-weight: 600;
}

/* Result screen */
.result-level {
  font-family: 'Fraunces', serif;
  font-size: 4rem; font-weight: 600;
  color: var(--accent); text-align: center;
  margin: 1rem 0 0.5rem;
}
.result-label {
  text-align: center; font-size: 1.3rem;
  color: var(--ink); font-weight: 600;
  margin-bottom: 1.5rem;
}
.result-description {
  background: var(--bg); border-radius: 14px;
  padding: 1.5rem; color: var(--muted);
  margin-bottom: 2rem;
}
.result-next {
  text-align: center;
}

/* Test nav footer */
.test-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 2.5rem;
  background: var(--bg); border-top: 1px solid var(--line);
}
.test-footer .step-count {
  font-size: 0.9rem; color: var(--muted); font-weight: 600;
}
@media (max-width: 540px) {
  .test-inner { padding: 2rem 1.5rem; }
  .test-header, .test-footer { padding: 1rem 1.5rem; }
}
