/* ============================================================
   Engora — English language program
   Design tokens
   ============================================================ */
:root {
  --ink:        #16243D;
  --ink-700:    #20355A;
  --paper:      #FAF6EF;
  --card:       #FFFFFF;
  --coral:      #EF5B3F;
  --coral-dark: #D2452C;
  --gold:       #F2B544;
  --teal:       #1E8C7B;
  --text:       #1A2233;
  --muted:      #5C6675;
  --line:       rgba(22, 36, 61, 0.12);
  --line-soft:  rgba(22, 36, 61, 0.07);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 18px 40px -24px rgba(22, 36, 61, 0.35);
  --shadow-sm: 0 8px 22px -16px rgba(22, 36, 61, 0.4);
  --container:  1140px;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; color: var(--ink); letter-spacing: -0.01em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--coral); margin: 0 0 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--coral); border-radius: 2px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 16px; transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover { border-color: #fff; transform: translateY(-2px); }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { color: var(--ink); flex-shrink: 0; }
.brand svg { height: 34px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-weight: 600; font-size: 15.5px; color: var(--text); position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--coral); transition: width .2s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }

/* Language switcher */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font-weight: 700; font-size: 14px; color: var(--ink);
}
.lang-btn svg { width: 14px; height: 14px; transition: transform .2s ease; }
.lang.open .lang-btn svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 6px; min-width: 168px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .18s ease;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: 0; padding: 9px 12px; border-radius: 8px;
  font-size: 14.5px; font-weight: 600; color: var(--text); text-align: left;
}
.lang-menu button:hover { background: var(--paper); }
.lang-menu button[aria-current="true"] { color: var(--coral); }
.lang-flag { font-size: 17px; line-height: 1; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1100px 600px at 78% -10%, rgba(242,181,68,0.18), transparent 60%), var(--paper);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  padding: 84px 0 92px;
}
.hero-greet {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--font-display); font-size: 19px; color: var(--teal); font-weight: 600;
  margin-bottom: 14px; min-height: 28px;
}
.hero-greet .greet-word { transition: opacity .35s ease; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); margin: 0 0 22px; }
.hero h1 em { font-style: italic; color: var(--coral); }
.hero-sub { font-size: 19px; color: var(--muted); max-width: 38ch; margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; }
.hero-visual img {
  width: 100%; border-radius: 24px; box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; object-fit: cover; background: var(--ink-700);
}
.hero-badge {
  position: absolute; left: -18px; bottom: 26px;
  background: #fff; border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px; max-width: 250px;
}
.hero-badge .levels { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--coral); line-height: 1; }
.hero-badge small { color: var(--muted); font-size: 13.5px; font-weight: 600; }

/* ============================================================
   Trust bar
   ============================================================ */
.trust {
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  background: #fff;
}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 30px 16px; text-align: center; border-left: 1px solid var(--line-soft); }
.trust-item:first-child { border-left: 0; }
.trust-num { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--ink); line-height: 1; }
.trust-num span { color: var(--gold); }
.trust-label { color: var(--muted); font-size: 14.5px; font-weight: 600; margin-top: 8px; }

/* ============================================================
   Sections
   ============================================================ */
section { scroll-margin-top: 86px; }
.section { padding: 92px 0; }
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 0 0 16px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

/* Program */
.program-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
.program-media { position: relative; }
.program-media img { width: 100%; border-radius: 22px; box-shadow: var(--shadow); aspect-ratio: 5/4; object-fit: cover; background: var(--ink-700); }
.program-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.program-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.program-list .tick {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(30,140,123,0.12); color: var(--teal);
  display: grid; place-items: center; font-size: 14px;
}
.program p { color: var(--muted); margin: 0 0 16px; }

/* Method cards */
.method { background: var(--ink); color: #EAF0F7; }
.method h2, .method .section-head h2 { color: #fff; }
.method .section-head p { color: #AEBBD0; }
.method .eyebrow { color: var(--gold); }
.method .eyebrow::before { background: var(--gold); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--ink-700); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 28px 24px; transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(242,181,68,0.5); }
.card-ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(242,181,68,0.15); color: var(--gold); margin-bottom: 18px;
}
.card-ico svg { width: 24px; height: 24px; }
.card h3 { color: #fff; font-size: 20px; margin: 0 0 8px; }
.card p { color: #AEBBD0; font-size: 15px; margin: 0; line-height: 1.6; }

/* Courses */
.courses-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.course {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column; gap: 12px; transition: transform .2s ease, box-shadow .2s ease;
}
.course:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.course-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.course h3 { font-size: 22px; margin: 0; }
.course-meta { font-size: 13px; font-weight: 700; color: var(--teal); background: rgba(30,140,123,0.1); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.course p { color: var(--muted); margin: 0; }
.courses-note { text-align: center; color: var(--muted); margin-top: 28px; font-size: 15.5px; }

/* Reviews */
.reviews { background: #fff; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.review-stars { color: var(--gold); letter-spacing: 2px; font-size: 16px; }
.review-text { margin: 0; color: var(--text); font-size: 16px; }
.review-person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review-person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--line); }
.review-name { font-weight: 700; font-size: 15px; }
.review-role { color: var(--muted); font-size: 13.5px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 15.5px; color: var(--text); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(239,91,63,0.15);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--coral-dark); }
.field-error { color: var(--coral-dark); font-size: 13px; font-weight: 600; margin-top: 6px; display: none; }
.field.invalid .field-error { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.consent { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 22px; }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--coral); }
.consent label { font-size: 13.5px; color: var(--muted); font-weight: 500; line-height: 1.5; }
.consent a { color: var(--coral); font-weight: 600; text-decoration: underline; }
.consent.invalid label { color: var(--coral-dark); }

.form-success {
  display: none; text-align: center; padding: 40px 24px;
}
.form-success.show { display: block; }
.form-success .check {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(30,140,123,0.12); color: var(--teal);
  display: grid; place-items: center; margin: 0 auto 18px;
}
.form-success h3 { font-size: 24px; margin: 0 0 10px; }
.form-success p { color: var(--muted); margin: 0; }

.contact-info { display: grid; gap: 18px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.info-ico { width: 42px; height: 42px; border-radius: 10px; background: rgba(239,91,63,0.1); color: var(--coral); display: grid; place-items: center; flex-shrink: 0; }
.info-ico svg { width: 20px; height: 20px; }
.info-item .label { font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.info-item .value { font-weight: 600; font-size: 15.5px; margin-top: 2px; }
.info-item a.value:hover { color: var(--coral); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: #C9D4E4; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand svg { height: 34px; }
.footer-brand .brand { color: #fff; display: inline-block; }
.footer-tagline { color: #9DAAC0; margin: 18px 0 0; max-width: 34ch; font-size: 15px; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 16px; font-family: var(--font-body); font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-col a { color: #9DAAC0; font-size: 15px; transition: color .15s ease; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); margin-top: 48px; padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  color: #8593AC; font-size: 14px;
}
.footer-bottom .legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom .legal-links a:hover { color: var(--gold); }

/* ============================================================
   Legal pages
   ============================================================ */
.legal-hero { background: var(--ink); color: #fff; padding: 64px 0 56px; }
.legal-hero h1 { color: #fff; font-size: clamp(32px, 4vw, 48px); margin: 0 0 12px; }
.legal-hero p { color: #AEBBD0; margin: 0; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; margin-bottom: 24px; font-size: 15px; }
.legal-body { padding: 64px 0 88px; }
.legal-body .container { max-width: 820px; }
.legal-body h2 { font-size: 24px; margin: 40px 0 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: #3C4658; }
.legal-body ul { padding-left: 20px; }
.legal-body .updated { color: var(--muted); font-size: 14px; font-style: italic; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
  .hero-grid, .program-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
    margin-left: 0; transform: translateY(-120%); transition: transform .25s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-actions .btn-cta { display: none; }
  .courses-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(odd) { border-left: 0; }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero-grid { padding: 56px 0 64px; }
  .hero-badge { left: 0; }
}
@media (max-width: 460px) {
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Accessibility */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
