/* ===========================================================
   VIA Edu — Landing Page Styles
   =========================================================== */

:root {
  --ink:        #0F2A43;   /* deep navy */
  --ink-2:      #16395a;
  --teal:       #1E6F73;   /* secondary accent */
  --gold:       #C8A55B;   /* premium accent */
  --gold-soft:  #e7d6ad;
  --cream:      #F7F5F1;   /* warm background */
  --cream-2:    #efe9e0;
  --paper:      #ffffff;
  --text:       #233042;
  --muted:      #5d6b7a;
  --line:       #e3ddd2;
  --shadow:     0 18px 50px rgba(15, 42, 67, .10);
  --shadow-sm:  0 8px 24px rgba(15, 42, 67, .08);
  --radius:     18px;
  --radius-sm:  12px;
  --maxw:       1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: 'Lora', Georgia, serif;
  color: var(--ink);
  line-height: 1.2;
  font-weight: 600;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.section { padding: 92px 0; }
.section--tint { background: var(--paper); }
.section--ink  { background: var(--ink); color: #dfe7ef; }
.section--ink h2, .section--ink h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
}
.section--ink .eyebrow { color: var(--gold-soft); }

.section-head { max-width: 760px; margin-bottom: 54px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.section--ink .section-head p { color: #b9c6d4; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Language helpers ---------- */
[data-en] { display: none; }
body.lang-en [data-vn] { display: none; }
body.lang-en [data-en] { display: revert; }

/* ===========================================================
   NAVBAR
   =========================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(247, 245, 241, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ink), var(--teal));
  color: #fff; font-family: 'Lora', serif; font-weight: 700; font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.brand__name { font-family: 'Lora', serif; font-weight: 700; font-size: 1.25rem; color: var(--ink); letter-spacing: .01em; }
.brand__name span { color: var(--gold); }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: .94rem; font-weight: 500; color: var(--text); transition: color .2s; }
.nav__links a:hover { color: var(--gold); }

.nav__right { display: flex; align-items: center; gap: 16px; }

.lang-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; background: var(--paper);
}
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: .82rem; font-weight: 600; color: var(--muted);
  padding: 7px 13px; transition: background .2s, color .2s;
}
.lang-toggle button.active { background: var(--ink); color: #fff; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn--primary { background: var(--gold); color: var(--ink); box-shadow: 0 10px 24px rgba(200,165,91,.32); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(200,165,91,.42); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: 0; border: 0; cursor: pointer; padding: 6px; }
.nav__burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative; padding: 150px 0 110px;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(30,111,115,.16), transparent 60%),
    radial-gradient(820px 460px at 8% 18%, rgba(200,165,91,.14), transparent 60%),
    var(--cream);
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }

.hero__tag {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--paper); border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  color: var(--teal); margin-bottom: 26px; box-shadow: var(--shadow-sm);
}
.hero__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); margin-bottom: 10px; }
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero__sub { font-family: 'Lora', serif; font-size: clamp(1.1rem, 2vw, 1.45rem); color: var(--teal); margin-bottom: 22px; font-style: italic; }
.hero__lead { font-size: 1.1rem; color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.stat__num { font-family: 'Lora', serif; font-size: 2rem; font-weight: 700; color: var(--ink); }
.stat__lbl { font-size: .85rem; color: var(--muted); }

.hero__card {
  background: var(--ink); color: #e7eef5; border-radius: var(--radius);
  padding: 38px 34px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero__card::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(200,165,91,.4), transparent 70%);
}
.hero__card .quote-mark { font-family: 'Lora', serif; font-size: 4rem; color: var(--gold); line-height: .6; }
.hero__card p { font-family: 'Lora', serif; font-style: italic; font-size: 1.18rem; margin: 12px 0 18px; color: #fff; }
.hero__card cite { font-style: normal; font-size: .9rem; color: var(--gold-soft); }

/* ===========================================================
   LOGOS / CLIENTS STRIP
   =========================================================== */
.logos { padding: 38px 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos__label { text-align: center; font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.logos__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 48px; }
.logo-chip {
  font-family: 'Lora', serif; font-weight: 700; font-size: 1.35rem; color: var(--ink);
  opacity: .55; letter-spacing: .02em; transition: opacity .2s; filter: grayscale(1);
}
.logo-chip:hover { opacity: 1; }
.logos__note { text-align: center; margin-top: 16px; font-size: .8rem; color: var(--gold); }

/* ===========================================================
   INTRO — the three problems
   =========================================================== */
.intro__lead { font-family: 'Lora', serif; font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--ink); max-width: 880px; margin-bottom: 18px; line-height: 1.5; }
.intro__body { color: var(--muted); max-width: 820px; font-size: 1.05rem; margin-bottom: 14px; }

.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.problem {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 28px 26px; transition: transform .2s, box-shadow .2s;
}
.problem:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.problem__ic { width: 46px; height: 46px; border-radius: 12px; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px; }
.problem h3 { font-size: 1.15rem; margin-bottom: 8px; }
.problem p { font-size: .96rem; color: var(--muted); }

/* ===========================================================
   SOLUTIONS
   =========================================================== */
.pillar-label { display:flex; align-items:center; gap:14px; margin: 8px 0 30px; }
.pillar-label span { font-family:'Lora',serif; font-weight:600; color: var(--ink); font-size: 1.15rem; white-space: nowrap; }
.pillar-label::after { content:""; height:1px; flex:1; background: var(--line); }

.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.program {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; overflow: hidden;
}
.program::before { content:""; position:absolute; left:0; top:0; height:4px; width:100%; background: linear-gradient(90deg, var(--gold), var(--teal)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.program:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.program:hover::before { transform: scaleX(1); }
.program__badge { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.program h3 { font-size: 1.3rem; margin-bottom: 4px; }
.program__author { font-size: .85rem; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.program__desc { font-size: .96rem; color: var(--muted); margin-bottom: 18px; }
.program__list { list-style: none; margin-top: auto; display: grid; gap: 9px; }
.program__list li { font-size: .9rem; padding-left: 24px; position: relative; color: var(--text); }
.program__list li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: .8rem; top: 2px; }

.subprograms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.subcard {
  background: linear-gradient(160deg, var(--ink), var(--ink-2));
  color: #dbe5ef; border-radius: var(--radius); padding: 30px 28px;
  transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden;
}
.subcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.subcard__no { font-family: 'Lora', serif; font-size: 2.4rem; color: rgba(200,165,91,.35); line-height: 1; margin-bottom: 8px; }
.subcard h3 { color: #fff; font-size: 1.2rem; margin-bottom: 10px; }
.subcard p { font-size: .93rem; color: #b9c6d4; }

/* ===========================================================
   FOUNDER
   =========================================================== */
.founder { display: grid; grid-template-columns: .8fr 1.2fr; gap: 54px; align-items: center; }
.founder__photo {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--cream-2), var(--cream)); position: relative;
  display: grid; place-items: center;
}
.founder__photo .ph {
  text-align:center; color: var(--muted); padding: 24px;
}
.founder__photo .ph .avatar { width: 110px; height:110px; border-radius:50%; background: linear-gradient(135deg, var(--teal), var(--ink)); color:#fff; display:grid; place-items:center; font-family:'Lora',serif; font-size:2.4rem; margin: 0 auto 16px; }
.founder__name { font-size: 1.9rem; margin-bottom: 4px; }
.founder__role { color: var(--gold); font-weight: 600; margin-bottom: 20px; }
.founder__intro { color: var(--muted); margin-bottom: 26px; }

.cred-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.cred h4 { font-family:'Be Vietnam Pro',sans-serif; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; font-weight: 700; }
.cred ul { list-style: none; display: grid; gap: 12px; }
.cred li { font-size: .9rem; padding-left: 20px; position: relative; color: var(--text); }
.cred li::before { content:""; position:absolute; left:0; top:9px; width:7px; height:7px; border-radius:50%; background: var(--gold); }
.cred li strong { color: var(--ink); }

/* ===========================================================
   WHY US
   =========================================================== */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why__card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; }
.why__num { font-family:'Lora',serif; font-size: 1.1rem; font-weight:700; color: var(--gold); border:1px solid var(--gold-soft); width:42px; height:42px; border-radius:50%; display:grid; place-items:center; margin-bottom:18px; }
.why__card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.why__card p { color: var(--muted); font-size: .96rem; }

/* ===========================================================
   CASE STUDIES / TESTIMONIALS
   =========================================================== */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case {
  background: var(--paper); border:1px solid var(--line); border-radius: var(--radius); padding: 32px 30px;
  position: relative;
}
.case__tag { display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:#fff; background: var(--teal); padding:4px 12px; border-radius:999px; margin-bottom:16px; }
.case h3 { font-size: 1.25rem; margin-bottom: 14px; }
.case__row { display:flex; gap: 18px; margin: 18px 0; }
.case__metric { flex:1; background: var(--cream); border-radius: var(--radius-sm); padding: 16px; text-align:center; }
.case__metric b { display:block; font-family:'Lora',serif; font-size: 1.7rem; color: var(--ink); }
.case__metric span { font-size: .78rem; color: var(--muted); }
.case p { font-size: .95rem; color: var(--muted); }

.testimonials { display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 28px; }
.tcard { background: var(--cream); border-radius: var(--radius); padding: 28px 26px; border:1px solid var(--line); }
.tcard .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; }
.tcard blockquote { font-family:'Lora',serif; font-style: italic; color: var(--ink); font-size: 1.02rem; margin-bottom: 18px; }
.tcard footer { display:flex; align-items:center; gap: 12px; }
.tcard .ava { width:42px; height:42px; border-radius:50%; background: var(--ink); color:#fff; display:grid; place-items:center; font-weight:600; }
.tcard .who b { display:block; font-size:.92rem; color: var(--ink); }
.tcard .who span { font-size:.8rem; color: var(--muted); }

.draft { outline: 1px dashed var(--gold); outline-offset: 4px; }
.draft-pill { display:inline-block; font-size:.7rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color: var(--gold); background: rgba(200,165,91,.12); padding:3px 10px; border-radius:999px; margin-left: 8px; vertical-align: middle; }

/* ===========================================================
   MESSAGE (quote band)
   =========================================================== */
.message { text-align:center; }
.message .quote {
  font-family:'Lora',serif; font-style: italic; font-size: clamp(1.3rem, 3vw, 2rem);
  color:#fff; max-width: 900px; margin: 0 auto 24px; line-height: 1.5;
}
.message .quote .hl { color: var(--gold); }
.message .sign { color: var(--gold-soft); letter-spacing: .12em; font-weight: 600; font-size: .95rem; }

/* ===========================================================
   CONTACT
   =========================================================== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact__info h2 { font-size: clamp(1.8rem,3vw,2.5rem); margin-bottom: 16px; }
.contact__info p { color: var(--muted); margin-bottom: 28px; }
.contact__list { display:grid; gap: 18px; }
.contact__item { display:flex; gap:14px; align-items:flex-start; }
.contact__item .ic { width:42px; height:42px; flex:none; border-radius:11px; background: var(--cream-2); color: var(--ink); display:grid; place-items:center; font-size:1.1rem; }
.contact__item b { display:block; font-size:.82rem; text-transform:uppercase; letter-spacing:.06em; color: var(--muted); margin-bottom:2px; }
.contact__item span { color: var(--ink); font-weight: 500; }

.form { background: var(--paper); border:1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; box-shadow: var(--shadow-sm); }
.form__row { display:grid; grid-template-columns:1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display:block; font-size:.85rem; font-weight:600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width:100%; font:inherit; font-size:.95rem; padding: 12px 14px;
  border:1px solid var(--line); border-radius: var(--radius-sm); background: var(--cream);
  color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline:0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,165,91,.18); background:#fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.form .btn { width:100%; justify-content:center; margin-top: 6px; }
.form__note { font-size:.8rem; color: var(--muted); text-align:center; margin-top: 12px; }
.form__ok { display:none; text-align:center; padding: 14px; background: rgba(30,111,115,.1); color: var(--teal); border-radius: var(--radius-sm); font-weight:600; margin-top: 14px; }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer { background: var(--ink); color: #aab9c8; padding: 60px 0 30px; }
.footer__grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer .brand__name { color:#fff; }
.footer p { font-size:.92rem; margin-top: 16px; max-width: 320px; }
.footer h5 { color:#fff; font-family:'Be Vietnam Pro',sans-serif; font-size:.82rem; letter-spacing:.08em; text-transform:uppercase; margin-bottom: 16px; }
.footer ul { list-style:none; display:grid; gap:10px; }
.footer ul a { font-size:.92rem; transition: color .2s; }
.footer ul a:hover { color: var(--gold); }
.footer__bottom { border-top:1px solid rgba(255,255,255,.1); padding-top:22px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:.85rem; }

/* ===========================================================
   REVEAL ANIMATION
   =========================================================== */
.reveal { opacity:0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity:1; transform:none; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .founder { grid-template-columns: 1fr; gap: 34px; }
  .contact { grid-template-columns: 1fr; gap: 34px; }
  .programs, .subprograms, .why, .problems, .testimonials { grid-template-columns: 1fr 1fr; }
  .cases { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__links { display:none; }
  .nav__burger { display:flex; }
  .nav__links.open {
    display:flex; position:absolute; top:72px; left:0; right:0; flex-direction:column;
    background: var(--paper); padding: 20px 24px; gap:18px; box-shadow: var(--shadow); border-bottom:1px solid var(--line);
  }
}
@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .programs, .subprograms, .why, .problems, .testimonials, .cred-cols, .form__row, .footer__grid { grid-template-columns: 1fr; }
  .hero { padding: 130px 0 80px; }
  .hero__stats { gap: 24px; }
  .nav__right .btn { display:none; }
}
