/* ============================================================
   NovaLingua — style.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --navy:    #0B1F3A;
  --navy2:   #2C5F8A;
  --gold:    #D4A843;
  --gold2:   #B8892F;
  --ivory:   #F5F0E8;
  --ivory2:  #EDE7D8;
  --white:   #FFFFFF;
  --text:    #1A1A2E;
  --muted:   #6B7280;
  --border:  #D1C9B8;
  --radius:  8px;
  --shadow:  0 4px 24px rgba(11,31,58,.12);
  --trans:   .25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--ivory);
  color: var(--text);
  line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ---------- Typography ---------- */
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

/* ---------- Utilities ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 88px 0; }
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-sub  { color: var(--muted); max-width: 600px; }
.text-center  { text-align: center; }
.text-center .section-sub { margin: 0 auto; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 32px;
  border-radius: 4px;
  transition: background var(--trans), transform var(--trans);
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 30px;
  border-radius: 4px;
  transition: background var(--trans), color var(--trans), transform var(--trans);
}
.btn-outline:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(11,31,58,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(212,168,67,.2);
  transition: box-shadow var(--trans);
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.3); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 36px; height: 36px; }
.logo-text { font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--white); }
.logo-text span { color: var(--gold); }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: .9rem; font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: color var(--trans);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--gold); transform: scaleX(0);
  transition: transform var(--trans); transform-origin: left;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Language Switcher — always visible tabs */
.lang-switcher {
  display: flex; align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(212,168,67,.3);
  border-radius: 4px;
  overflow: hidden;
}
.lang-btn {
  padding: 6px 12px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(255,255,255,.65);
  border-right: 1px solid rgba(212,168,67,.2);
  transition: background var(--trans), color var(--trans);
}
.lang-btn:last-child { border-right: none; }
.lang-btn:hover    { background: rgba(212,168,67,.15); color: var(--white); }
.lang-btn.active   { background: var(--gold); color: var(--navy); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: absolute; top: 68px; left: 0; right: 0;
  background: var(--navy);
  border-top: 1px solid rgba(212,168,67,.2);
  padding: 20px 24px;
  flex-direction: column; gap: 16px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: rgba(255,255,255,.85); font-size: 1rem; font-weight: 500; }
.mobile-lang { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.mobile-lang .lang-btn { border: 1px solid rgba(212,168,67,.4); border-radius: 4px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: var(--navy);
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .35;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,31,58,.85) 40%, rgba(44,95,138,.5) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 700px;
  padding: 120px 0 80px;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.hero-eyebrow-line {
  width: 40px; height: 2px; background: var(--gold);
}
.hero-eyebrow span {
  font-size: .8rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
}
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 520px; margin-bottom: 40px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll span { font-size: .7rem; color: rgba(255,255,255,.5); letter-spacing: .12em; text-transform: uppercase; }
.scroll-arrow {
  width: 24px; height: 24px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  animation: bounce .9s infinite alternate;
}
@keyframes bounce { to { transform: rotate(45deg) translateY(6px); } }

/* ============================================================
   NUMBERS STRIP
   ============================================================ */
.strip {
  background: var(--navy);
  padding: 48px 0;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.strip-item { border-right: 1px solid rgba(255,255,255,.1); }
.strip-item:last-child { border-right: none; }
.strip-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem; font-weight: 700;
  color: var(--gold);
}
.strip-label { font-size: .85rem; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--ivory); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-imgs {
  position: relative;
}
.about-img-main {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}
.about-img-accent {
  position: absolute;
  width: 48%;
  right: -24px; bottom: -24px;
  border-radius: var(--radius);
  border: 4px solid var(--ivory);
  box-shadow: var(--shadow);
}
.about-list { margin: 28px 0 36px; display: flex; flex-direction: column; gap: 14px; }
.about-item { display: flex; align-items: flex-start; gap: 12px; }
.about-icon {
  flex-shrink: 0; width: 20px; height: 20px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.about-icon svg { width: 10px; height: 10px; fill: none; stroke: var(--navy); stroke-width: 2.5; }

/* ============================================================
   PROGRAMS
   ============================================================ */
.programs { background: var(--ivory2); }
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 52px;
}
.prog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--trans), box-shadow var(--trans);
}
.prog-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(11,31,58,.18); }
.prog-card img { width: 100%; height: 200px; object-fit: cover; }
.prog-body { padding: 28px; }
.prog-tag {
  display: inline-block;
  font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy2); background: rgba(44,95,138,.1);
  padding: 4px 10px; border-radius: 20px;
  margin-bottom: 12px;
}
.prog-body h3 { margin-bottom: 10px; }
.prog-body p  { font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.prog-meta { display: flex; gap: 20px; }
.prog-meta-item { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.prog-meta-item svg { width: 14px; height: 14px; stroke: var(--gold); fill: none; stroke-width: 2; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how { background: var(--navy); }
.how .section-label { color: var(--gold); }
.how .section-title { color: var(--white); }
.how .section-sub   { color: rgba(255,255,255,.6); }
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
  position: relative;
}
.how-steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.how-step { text-align: center; position: relative; }
.how-step-num {
  width: 56px; height: 56px;
  background: var(--navy2);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; color: var(--gold);
  position: relative; z-index: 1;
}
.how-step h4 { color: var(--white); margin-bottom: 8px; }
.how-step p  { font-size: .88rem; color: rgba(255,255,255,.55); }

/* ============================================================
   TEACHERS
   ============================================================ */
.teachers { background: var(--ivory); }
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 52px;
}
.teacher-card { text-align: center; }
.teacher-img-wrap {
  position: relative; display: inline-block; margin-bottom: 16px;
}
.teacher-img-wrap img {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
}
.teacher-badge {
  position: absolute; bottom: 4px; right: 0;
  background: var(--navy);
  color: var(--gold);
  font-size: .65rem; font-weight: 700; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 20px;
  border: 2px solid var(--gold);
}
.teacher-card h4 { margin-bottom: 4px; }
.teacher-card .role { font-size: .85rem; color: var(--navy2); font-weight: 500; margin-bottom: 8px; }
.teacher-card p { font-size: .85rem; color: var(--muted); }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews { background: var(--ivory2); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 52px;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
}
.review-card::before {
  content: '\201C';
  position: absolute; top: 16px; right: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 4rem; color: var(--ivory2);
  line-height: 1;
}
.review-stars { display: flex; gap: 3px; margin-bottom: 16px; }
.review-stars svg { width: 16px; height: 16px; fill: var(--gold); }
.review-text { font-size: .9rem; color: var(--muted); margin-bottom: 20px; line-height: 1.7; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-author img {
  width: 44px; height: 44px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold);
}
.review-author-name { font-weight: 600; font-size: .9rem; }
.review-author-role { font-size: .78rem; color: var(--muted); }

/* ============================================================
   CONTACT / FORM
   ============================================================ */
.contact { background: var(--ivory); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}
.contact-info { }
.contact-info h2 { margin-bottom: 16px; }
.contact-info p { color: var(--muted); margin-bottom: 32px; }
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-icon {
  flex-shrink: 0; width: 44px; height: 44px;
  background: var(--navy); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 1.8; }
.contact-item-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 2px; }
.contact-item-val { font-weight: 500; }

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font: inherit; font-size: .9rem;
  background: var(--ivory);
  color: var(--text);
  transition: border-color var(--trans), box-shadow var(--trans);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy2);
  box-shadow: 0 0 0 3px rgba(44,95,138,.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-error { font-size: .78rem; color: #C0392B; display: none; }
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: #C0392B; }
.form-group.has-error .form-error { display: block; }
.form-submit { width: 100%; padding: 15px; font-size: 1rem; border-radius: 6px; }

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}
.form-success.show { display: block; }
.success-icon {
  width: 72px; height: 72px;
  background: rgba(212,168,67,.15);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.success-icon svg { width: 32px; height: 32px; stroke: var(--gold); fill: none; stroke-width: 2; }
.form-success h3 { margin-bottom: 10px; }
.form-success p { color: var(--muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy); padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo img { width: 32px; height: 32px; }
.footer-logo-text { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--white); }
.footer-logo-text span { color: var(--gold); }
.footer-about p { font-size: .88rem; color: rgba(255,255,255,.5); line-height: 1.7; }
.footer-col h4 { color: var(--white); margin-bottom: 20px; font-size: .95rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: .88rem; color: rgba(255,255,255,.5); transition: color var(--trans); }
.footer-col ul a:hover { color: var(--gold); }
.footer-contact p { font-size: .88rem; color: rgba(255,255,255,.5); margin-bottom: 8px; }
.footer-contact a { color: rgba(255,255,255,.7); }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom {
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.35); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: .82rem; color: rgba(255,255,255,.35); transition: color var(--trans); }
.footer-legal a:hover { color: var(--gold); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-imgs { max-width: 560px; }
  .about-img-accent { display: none; }
  .programs-grid { grid-template-columns: 1fr 1fr; }
  .teachers-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .lang-switcher { display: none; }
  .hamburger { display: flex; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(2) { border-right: none; }
  .programs-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .how-steps::before { display: none; }
  .reviews-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .teachers-grid { grid-template-columns: 1fr 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll, .scroll-arrow, .btn-primary, .btn-outline,
  .prog-card, .site-header { transition: none; animation: none; }
}
