/* ============================================================
   The Metaphoric Mind — Landing page
   Design tokens reproduced from Figma "Figma design - 1"
   ============================================================ */

:root {
  /* Palette */
  --cream:        #fcfbf9;
  --cream-2:      #fbfaf9;
  --cream-3:      #f5f5ea;
  --paper:        #ffffff;
  --line:         #efedea;

  --olive-900:    #3e5c08;
  --olive-800:    #456405;
  --olive-700:    #507702;
  --olive-600:    #628234;
  --olive-500:    #798b4a;
  --olive-400:    #8da66c;
  --olive-200:    #ddedc0;

  --ink:          #2f3030;
  --ink-2:        #3b3c3c;
  --gray-700:     #555555;
  --gray-600:     #6a6a69;
  --gray-500:     #767676;
  --gray-400:     #9a9a9a;

  /* Type */
  --display: "Playfair Display", Georgia, serif;
  --serif:   "EB Garamond", Georgia, serif;
  --serif-2: "Spectral", Georgia, serif;
  --body:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(60, 60, 40, .05);
  --shadow:    0 18px 50px rgba(70, 80, 40, .10);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

.eyebrow {
  font-family: var(--body);
  font-size: 15px;
  color: var(--gray-500);
  margin: 0 0 8px;
}
.section-title {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink-2);
  font-size: clamp(26px, 3.4vw, 30px);
  margin: 0;
  line-height: 1.2;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .lead { color: var(--gray-500); font-size: 15px; margin: 14px auto 0; max-width: 620px; }

section { padding-block: 88px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 251, 249, .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo-mark {
  width: 40px; height: 52px; border-radius: 8px;
  background: linear-gradient(160deg, var(--olive-600), var(--olive-900));
  display: grid; place-items: center;
  color: #eef3e2; font-family: var(--display); font-weight: 700; font-size: 22px;
  box-shadow: var(--shadow-sm);
}
.brand .logo-text { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--gray-700); }
.brand .logo-text span { display: block; font-size: 12px; letter-spacing: .18em; color: var(--olive-500); font-family: var(--body); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 15.5px; color: #5b5b5b; position: relative; padding-block: 4px; transition: color .2s; }
.nav-links a:hover { color: var(--olive-700); }
.nav-links a.active { color: var(--olive-700); font-weight: 600; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: -6px; width: 26px; height: 3px; border-radius: 3px; background: var(--olive-600);
}

.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto; transition: .25s; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px; padding: 14px 26px;
  font-size: 15px; font-weight: 600; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--olive-500); color: #fff; border-color: var(--olive-400); }
.btn-primary:hover { background: var(--olive-800); box-shadow: var(--shadow); }
.btn-ghost { background: var(--cream); color: var(--olive-600); border-color: var(--olive-400); }
.btn-ghost:hover { background: #f1f4ea; }
.btn-dark { background: var(--olive-800); color: #fff; }
.btn-dark:hover { background: var(--olive-900); }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn .ic { width: 16px; height: 16px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-top: 64px; padding-bottom: 40px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.hero-eyebrow { font-family: var(--serif); font-size: 24px; color: var(--olive-600); margin: 0 0 10px; }
.hero h1 {
  font-family: var(--display); font-weight: 700; color: var(--ink);
  font-size: clamp(38px, 5vw, 56px); line-height: 1.12; margin: 0 0 18px;
}
.hero p.lead { color: var(--gray-600); font-size: 18px; max-width: 460px; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-media { position: relative; }
.hero-photo {
  width: 100%; aspect-ratio: 4/3.6; object-fit: cover;
  border-radius: 24px; box-shadow: var(--shadow);
}
.hero-note {
  position: absolute; right: -8px; bottom: 22px; width: min(260px, 70%);
  background: var(--paper); border-radius: 24px; padding: 22px;
  box-shadow: var(--shadow); font-size: 14.5px; color: var(--gray-700);
}
.hero-note strong { color: var(--ink); }
.hero-note .tag { display: inline-block; font-size: 11px; letter-spacing: .12em; color: var(--olive-500); font-weight: 700; margin-bottom: 10px; }

/* badges row */
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line);
}
.hero-badges li { list-style: none; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--gray-700); }
.hero-badges .dot { width: 34px; height: 34px; border-radius: 10px; background: #eef2e6; color: var(--olive-700); display: grid; place-items: center; }
.hero-badges .dot svg { width: 18px; height: 18px; }

/* ============================================================
   Persona cards — "Bạn sẽ tìm thấy chính mình ở đây"
   ============================================================ */
.persona { background: var(--cream); }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.persona-card {
  background: var(--paper); border: 2px solid var(--line); border-radius: 22px;
  padding: 30px 24px; text-align: center; transition: transform .2s, box-shadow .2s;
}
.persona-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.persona-card .icon {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 16px;
  background: #eef2e6; display: grid; place-items: center; color: var(--olive-700);
}
.persona-card .icon svg { width: 30px; height: 30px; }
.persona-card h3 { font-size: 17px; color: var(--olive-500); margin: 0 0 10px; }
.persona-card p { font-size: 15px; color: var(--gray-500); margin: 0; }

/* ============================================================
   Why choose
   ============================================================ */
.why { background: var(--cream-2); }
.why-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.why h2.section-title { text-align: left; }
.why .why-sub { font-family: var(--serif); font-size: 24px; color: var(--olive-600); font-weight: 400; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 34px; }
.why-item .ic {
  width: 44px; height: 44px; border-radius: 12px; background: #eef2e6; color: var(--olive-700);
  display: grid; place-items: center; margin-bottom: 12px;
}
.why-item .ic svg { width: 22px; height: 22px; }
.why-item h4 { margin: 0 0 6px; font-size: 16px; color: var(--ink-2); }
.why-item p { margin: 0; font-size: 15px; color: var(--gray-500); }

.why-photo { position: relative; }
.why-photo img { width: 100%; border-radius: 22px; object-fit: cover; box-shadow: var(--shadow); }
.why-stat {
  position: absolute; left: 20px; bottom: 20px;
  background: var(--olive-900); color: #eef3e2; border-radius: 14px; padding: 16px 22px;
  box-shadow: var(--shadow);
}
.why-stat b { display: block; font-family: var(--serif-2); font-size: 28px; line-height: 1; }
.why-stat span { font-size: 13px; color: var(--olive-200); }
.why-chip {
  position: absolute; right: 18px; bottom: 22px; background: var(--paper);
  border: 1px solid #d8ddc8; border-radius: 14px; padding: 12px 16px; font-size: 13px; color: var(--gray-700);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   Curriculum
   ============================================================ */
.curriculum { background: var(--cream); }
.curri-grid { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: start; }

.course-card {
  background: linear-gradient(170deg, #f3f5ec, #e9eede);
  border-radius: 22px; padding: 28px; box-shadow: var(--shadow-sm);
}
.course-card .pill {
  display: inline-block; background: var(--olive-800); color: var(--olive-200);
  font-size: 13px; padding: 5px 14px; border-radius: 999px; margin-bottom: 18px;
}
.course-card h3 { font-family: var(--serif-2); font-size: 36px; color: var(--ink-2); margin: 0; }
.course-card .sub { font-family: var(--serif-2); font-size: 22px; color: #474845; margin: 0 0 14px; }
.course-card p { color: var(--gray-600); font-size: 15px; margin: 0 0 22px; }
.course-card .photo { width: 100%; height: 150px; object-fit: cover; border-radius: 14px; margin-bottom: 20px; }

.levels { display: flex; flex-direction: column; gap: 12px; }
.level {
  display: flex; align-items: center; gap: 18px;
  background: #fdfefd; border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 22px; transition: border-color .2s, transform .2s;
}
.level:hover { border-color: var(--olive-400); transform: translateX(4px); }
.level .badge {
  flex: none; width: 54px; height: 54px; border-radius: 50%;
  background: #eef2e6; color: var(--olive-800); font-weight: 700; font-size: 18px;
  display: grid; place-items: center;
}
.level .txt h4 { margin: 0 0 2px; font-size: 16px; color: var(--ink-2); }
.level .txt p { margin: 0; font-size: 14px; color: var(--gray-500); }

/* ============================================================
   Teachers
   ============================================================ */
.teachers { background: var(--cream-2); }
.teacher-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.teacher-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.teacher-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.teacher-card .photo { width: 100%; aspect-ratio: 3/3.4; object-fit: cover; background: #eceee6; }
.teacher-card .body { padding: 18px 20px 22px; }
.teacher-card .name { font-family: var(--serif-2); font-weight: 700; font-size: 18px; color: #565656; margin: 0 0 4px; }
.teacher-card .role { font-size: 12.5px; color: var(--gray-400); margin: 0 0 10px; }
.teacher-card .meta { font-size: 12.5px; color: var(--gray-400); line-height: 1.5; margin: 0 0 14px; }
.teacher-card .meta b { color: #7a8a5c; }
.teacher-card .view { font-size: 12px; font-weight: 700; color: var(--olive-500); display: inline-flex; align-items: center; gap: 6px; }

/* ============================================================
   Highlights / testimonial split
   ============================================================ */
.classroom { background: var(--cream); }
.class-split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; gap: 14px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.gallery .tall { grid-row: span 2; }

.quote-card {
  background: var(--cream-3); border: 3px solid #fdfdfb; border-radius: 22px;
  padding: 34px; display: flex; flex-direction: column; justify-content: center;
}
.quote-card .q { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 22px; color: #6d6c6d; margin: 0 0 16px; }
.quote-card p { color: var(--gray-500); font-size: 16px; margin: 0 0 22px; }
.quote-card .who { display: flex; align-items: center; gap: 14px; }
.quote-card .who img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.quote-card .who b { display: block; color: var(--ink-2); font-size: 15px; }
.quote-card .who span { font-size: 13px; color: var(--gray-400); }

/* ============================================================
   Reviews band
   ============================================================ */
.reviews { background: var(--cream-2); }
.review-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.review-strip img { width: 100%; border-radius: 18px; box-shadow: var(--shadow-sm); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--cream); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.faq-item {
  background: #fefdfe; border: 2px solid #f6f6f5; border-radius: 10px; overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; background: transparent; border: 0;
  padding: 18px 22px; font-size: 15px; color: #595959; font-weight: 500;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-q .chev { flex: none; transition: transform .25s; color: var(--olive-500); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { margin: 0; padding: 0 22px 20px; font-size: 14.5px; color: var(--gray-500); }

/* ============================================================
   CTA form
   ============================================================ */
.cta { background: var(--cream-2); }
.cta-wrap {
  background: var(--cream-3); border-radius: 26px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  box-shadow: var(--shadow-sm);
}
.cta-left { padding: 48px; }
.cta-left h2 { font-family: var(--serif); font-weight: 700; font-size: 30px; color: #454543; margin: 0 0 14px; }
.cta-left > p { color: var(--gray-500); font-size: 15px; margin: 0 0 26px; max-width: 360px; }
.cta-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cta-points li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--gray-700); }
.cta-points .tick { width: 26px; height: 26px; border-radius: 50%; background: #e4ebd6; color: var(--olive-800); display: grid; place-items: center; flex: none; }
.cta-points .tick svg { width: 14px; height: 14px; }

.cta-form { background: #fdfdfd; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; color: var(--gray-500); font-weight: 600; }
.field input {
  border: 2px solid #f0f0f0; background: #fff; border-radius: 8px;
  padding: 13px 15px; font-size: 15px; font-family: inherit; color: var(--ink);
  transition: border-color .2s;
}
.field input:focus { outline: none; border-color: var(--olive-400); }
.cta-form .btn { justify-content: center; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--olive-700); margin: 12px 0 0; display: none; }
.form-note.show { display: block; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--olive-900); color: #d9e2c6; padding-block: 56px 32px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-brand { max-width: 320px; }
.footer-brand .logo-text { font-family: var(--display); font-size: 22px; color: #fff; margin: 0 0 10px; }
.footer-brand p { font-size: 14px; color: #c2cfa6; margin: 0; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols h5 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #aebf8c; margin: 0 0 14px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-cols a { font-size: 14px; color: #d9e2c6; transition: color .2s; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #aebf8c; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .cards-4, .teacher-grid { grid-template-columns: repeat(2, 1fr); }
  .curri-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-photo { order: -1; }
}

@media (max-width: 860px) {
  section { padding-block: 64px; }
  .nav-links, .nav-cta .btn { display: none; }
  .menu-toggle { display: block; }
  .nav.open + .mobile-menu { display: block; }

  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { order: -1; }
  .hero-note { position: static; width: 100%; margin-top: 16px; }

  .why-list { grid-template-columns: 1fr; }
  .class-split, .review-strip, .cta-wrap, .faq-grid { grid-template-columns: 1fr; }
  .cta-left { padding: 36px 28px; }
  .cta-form { padding: 28px; }
}

@media (max-width: 560px) {
  .cards-4, .teacher-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
}

/* Mobile menu panel */
.mobile-menu {
  display: none; border-top: 1px solid var(--line); background: var(--cream);
}
.mobile-menu ul { list-style: none; margin: 0; padding: 14px 24px 22px; display: grid; gap: 4px; }
.mobile-menu a { display: block; padding: 12px 8px; font-size: 16px; color: #444; border-radius: 8px; }
.mobile-menu a:hover { background: #eef2e6; color: var(--olive-700); }
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
