/* =========================================================
   Tiền Tiểu học Wellington – Landing page
   ========================================================= */
:root {
  --navy: #16285f;
  --navy-70: #42507f;
  --navy-50: #5b6b99;
  --blue: #2443c9;
  --blue-tint: #f4f7ff;
  --line: #e8eefb;
  --input-line: #d9e2f5;
  --yellow: #ffd166;

  /* Brand – lấy từ logo */
  --pink: #ff6eb8;   --pink-dark: #c2257a;   --pink-soft: #fff0f7;
  --green: #00cd6d;  --green-dark: #00874a;  --green-soft: #e6faf0;
  --sky: #4eaaf4;    --sky-dark: #1a6fc0;    --sky-soft: #eaf4fe;
  --orange: #ff7b47; --orange-dark: #c24a17; --orange-soft: #fff1ea;
  --orange-shadow: #c9521f;

  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius-lg: 28px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--sky-dark); }
a:hover { color: var(--navy); }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { left: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.display { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.01em; font-weight: 800; }

/* ---------- Grid helpers ---------- */
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.g5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.g-tight { gap: 16px; align-items: start; }

/* ---------- Color utilities ---------- */
.text-pink { color: var(--pink-dark); }   .text-green { color: var(--green-dark); }
.text-sky { color: var(--sky-dark); }     .text-orange { color: var(--orange-dark); }
.text-blue { color: var(--blue); }        .text-yellow { color: var(--yellow); }
.text-pink-light { color: var(--pink); }  .text-green-light { color: var(--green); }
.text-orange-light { color: var(--orange); }
.bg-pink { background: var(--pink); }     .bg-sky { background: var(--sky); }
.bg-orange { background: var(--orange); }
.bg-pink-soft { background: var(--pink-soft); }   .bg-sky-soft { background: var(--sky-soft); }
.bg-orange-soft { background: var(--orange-soft); } .bg-green-soft { background: var(--green-soft); }
.bg-tint { background: var(--blue-tint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--font-body); font-weight: 800; text-decoration: none; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-orange { background: var(--orange); color: var(--navy); }
.btn-orange:hover { color: var(--navy); background: #ff8b5c; }
.btn-sm { height: 48px; padding: 0 22px; font-weight: 700; white-space: nowrap; }
.btn-lg { min-height: 60px; padding: 14px 30px; font-size: 17px; box-shadow: 0 6px 0 var(--orange-shadow); align-self: flex-start; }
.btn-block { width: 100%; min-height: 60px; font-size: 17px; box-shadow: 0 6px 0 var(--orange-shadow); }
.btn-lg:hover, .btn-block:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--orange-shadow); }
.btn-lg:active, .btn-block:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--orange-shadow); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 28px; font-weight: 600; font-size: 15px; }
.nav-links a { color: var(--navy); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { border-color: var(--orange); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--blue); color: #fff; }
.hero-inner { position: relative; padding-top: 72px; padding-bottom: 104px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.pill-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--navy); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 14px;
}
.pill-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.hero-title { font-size: clamp(42px, 5.4vw, 64px); }
.hero-sub { margin-top: -6px; font-size: clamp(28px, 3vw, 36px); font-weight: 700; color: var(--yellow); }

.offer-card {
  background: #fff; color: var(--navy); border-radius: 24px; padding: 22px 24px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: 0 12px 0 rgba(10, 22, 80, .25);
}
.offer-card hr { width: 100%; border: 0; height: 1px; background: var(--line); margin: 0; }
.offer-row { display: flex; align-items: center; gap: 12px; }
.offer-row p { font-weight: 700; font-size: 18px; line-height: 1.35; }
.offer-badge {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px; background: var(--pink-soft); color: var(--pink-dark); font-size: 22px;
}
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.price > span { font-size: 15px; font-weight: 500; }
.price s { font-size: 17px; color: var(--navy-50); }
.price strong { font-size: 30px; color: var(--blue); }
.price small { font-size: 17px; font-weight: 700; }

.hero-media { position: relative; }
.hero-photo {
  width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover;
  border-radius: 40px 40px 160px 40px; border: 8px solid #fff;
}
.float-card {
  position: absolute; left: -24px; bottom: 36px;
  background: #fff; color: var(--navy); border-radius: 20px; padding: 14px 18px;
  display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 30px rgba(10, 22, 80, .25);
  animation: bob 4s ease-in-out infinite;
}
.float-card img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.float-card div { line-height: 1.3; display: flex; flex-direction: column; }
.float-card span { font-size: 14px; color: var(--navy-70); }
@keyframes bob { 50% { transform: translateY(-6px); } }

.deco { position: absolute; pointer-events: none; }
.deco-flower { width: 420px; height: 420px; left: -120px; bottom: -140px; opacity: .16; fill: var(--pink); }
.deco-house { width: 260px; height: 260px; right: -60px; top: -70px; opacity: .22; fill: var(--green); }
.deco-arch { width: 360px; height: 360px; right: -100px; bottom: -100px; opacity: .18; fill: var(--sky); }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 60px; fill: #fff; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--blue-tint); }
.eyebrow { margin-bottom: 10px; font-weight: 700; letter-spacing: .08em; font-size: 14px; }
.sec-title { font-size: clamp(30px, 3.6vw, 44px); }
.sec-title-lg { font-size: clamp(36px, 4vw, 48px); }
.sec-head-center { text-align: center; max-width: 780px; margin: 0 auto 48px; }
.sec-head-split { margin-bottom: 44px; }
.lead { font-size: 17px; }

/* 2. Worries */
.worry-photo { width: 100%; height: 240px; object-fit: cover; object-position: 60% 35%; border-radius: var(--radius-lg); }
.worry-card { border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.worry-head { display: flex; align-items: center; gap: 12px; }
.worry-head h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.num {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; color: var(--navy); font-size: 24px;
}
.q-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.q-list li { display: flex; gap: 10px; }
.q-list li::before { content: "?"; font-weight: 800; }
.q-list li span { color: var(--navy); }

/* 3. Values */
.value-card {
  background: #fff; border-radius: var(--radius-lg); padding: 26px 22px;
  display: flex; flex-direction: column; gap: 14px; border-bottom: 6px solid;
  transition: transform .2s ease, box-shadow .2s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(22, 40, 95, .08); }
.value-card h3 { font-size: 21px; line-height: 1.2; }
.value-card p { font-size: 15px; color: var(--navy-70); }
.line-pink { border-color: var(--pink); } .line-green { border-color: var(--green); }
.line-sky { border-color: var(--sky); }   .line-orange { border-color: var(--orange); }
.line-blue { border-color: var(--blue); }
.ico { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 4. A day */
.day-copy { display: flex; flex-direction: column; gap: 18px; }
.day-copy .eyebrow { margin-bottom: 0; }
.chips { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; }

.video-wrap { position: relative; }
.video-shadow { position: absolute; inset: 24px -16px -16px 24px; background: var(--yellow); border-radius: 36px; }
.video-frame { position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.video-frame video { width: 100%; height: 100%; display: block; }
.video-trigger { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.video-trigger img { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 92px; height: 92px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 12px rgba(255, 255, 255, .35); transition: transform .2s ease;
}
.play svg { fill: var(--blue); margin-left: 4px; }
.video-trigger:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.duration {
  position: absolute; left: 20px; bottom: 18px; background: rgba(22, 40, 95, .85); color: #fff;
  border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600;
}

/* 5. Gallery */
.gallery { margin-top: 36px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.g-a, .g-b { grid-column: span 3; }
.g-c { grid-column: span 2; }
.gallery img, .img-placeholder { width: 100%; object-fit: cover; transition: transform .4s ease; }
.g-a img, .g-b img { height: 340px; }
.g-c img, .g-c .img-placeholder { height: 260px; }
.gallery figure:hover img { transform: scale(1.04); }
.img-placeholder {
  border-radius: var(--radius-lg); border: 3px dashed #9fb3e6; background: #fff;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--navy-70); font-weight: 600; padding: 16px;
}
.gallery figcaption {
  position: absolute; left: 16px; bottom: 16px; background: #fff; border-radius: 999px;
  padding: 8px 16px; font-weight: 700; font-size: 15px; box-shadow: 0 2px 8px rgba(22, 40, 95, .12);
}

/* 6. Why */
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.why-card { border-radius: var(--radius-lg); padding: 28px; display: flex; gap: 20px; }
.why-card h3 { margin-bottom: 8px; font-size: 20px; font-weight: 700; line-height: 1.35; }
.why-card p { color: var(--navy-70); }
.why-card p strong { color: var(--navy); }
.why-outline { border: 2px solid var(--line); }
.why-num { flex: none; font-size: 56px; line-height: 1; }
.why-blue, .bg-orange-soft.why-card { flex-direction: column; gap: 16px; }
.why-blue { background: var(--blue); color: #fff; }
.why-blue p { color: #dfe6ff; }
.why-row { display: flex; gap: 20px; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stat { flex: 1 1 140px; background: rgba(255, 255, 255, .12); border-radius: 18px; padding: 12px 16px; }
.stat strong { display: block; font-size: 34px; }
.stat span { font-size: 14px; }
.stat-white { background: #fff; }
.why-wide { grid-column: span 2; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.why-wide-text { flex: 1 1 420px; }
.pathway { display: flex; align-items: center; gap: 10px; font-weight: 700; flex-wrap: wrap; }
.step { background: #fff; border-radius: 999px; padding: 10px 18px; }
.step-solid { background: var(--green-dark); color: #fff; }

/* 7. Register */
.register { position: relative; overflow: hidden; background: var(--blue); }
.register-inner { position: relative; align-items: start; }
.register-copy { color: #fff; display: flex; flex-direction: column; gap: 18px; padding-top: 12px; }
.register-copy .lead { font-size: 18px; color: #dfe6ff; }
.check-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-weight: 600; }
.check-list li { display: flex; gap: 12px; align-items: center; }
.check-list li::before {
  content: ""; flex: none; width: 24px; height: 24px;
  background: no-repeat center / 24px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300cd6d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}

.register-form { background: #fff; border-radius: 32px; padding: 32px; box-shadow: 0 14px 0 rgba(10, 22, 80, .3); }
.form-body { display: flex; flex-direction: column; gap: 16px; }
.form-body[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field label span { color: var(--pink-dark); }
.field input, .field select {
  height: 52px; width: 100%; border: 2px solid var(--input-line); border-radius: 14px; padding: 0 16px;
  font: 500 16px var(--font-body); color: var(--navy); background: #fff;
}
.field select { appearance: none; padding-right: 44px; cursor: pointer;
  background: #fff no-repeat right 16px center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316285f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.field input::placeholder { color: #8b97bd; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(36, 67, 201, .12); }
.field input[aria-invalid="true"] { border-color: #d0342c; }
.err { font-size: 14px; color: #c0281f; font-weight: 500; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14px; text-align: center; font-weight: 600; color: #c0281f; }
.form-status:empty { display: none; }
.form-note { font-size: 13px; color: var(--navy-50); text-align: center; }
.form-success { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 8px; }
.form-success[hidden] { display: none; }
.form-success h3 { font-size: 30px; }
.form-success p { color: var(--navy-70); max-width: 380px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #dfe6ff; padding: 48px 0 32px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand img { height: 44px; width: auto; }
.footer-brand p { font-weight: 600; color: #fff; }
.site-footer address { font-style: normal; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.site-footer a { color: var(--yellow); }

/* ---------- Mobile CTA ---------- */
.mobile-cta { display: none; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .g2 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .g3 { grid-template-columns: minmax(0, 1fr); }
  .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
  .brand img { height: 34px; }
  .section { padding: 64px 0; }
  .hero-inner { padding-top: 40px; padding-bottom: 88px; }
  .hero-media { order: -1; }
  .hero-photo { border-radius: 32px 32px 96px 32px; border-width: 6px; }
  .float-card { left: 12px; bottom: -20px; }
  .why { grid-template-columns: minmax(0, 1fr); }
  .why-wide { grid-column: auto; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-a, .g-b, .g-c { grid-column: span 1; }
  .g-a img, .g-b img, .g-c img, .g-c .img-placeholder { height: 220px; }
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta .btn { min-height: 52px; font-size: 16px; box-shadow: none; }
  .site-footer { padding-bottom: 104px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .header-inner .btn-sm { height: 42px; padding: 0 16px; font-size: 14px; }
  .g5 { grid-template-columns: minmax(0, 1fr); }
  .g-tight { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .btn-lg { align-self: stretch; font-size: 15px; padding: 14px 20px; }
  .offer-row p { font-size: 16px; }
  .price strong { font-size: 26px; }
  .register-form { padding: 22px 18px; border-radius: 24px; }
  .why-card { padding: 22px; flex-direction: column; gap: 10px; }
  .why-row { flex-direction: column; gap: 10px; }
  .why-num { font-size: 44px; }
  .why-wide { align-items: flex-start; }
  .why-wide-text { flex: none; }
  .hero-inner { padding-bottom: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Form groups */
.fs { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.fs legend { padding: 0; margin-bottom: 4px; font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--blue); }
.fs + .fs { padding-top: 6px; border-top: 1px dashed var(--input-line); }
.field input[type="date"] { appearance: none; -webkit-appearance: none; min-width: 0; }
.field select[aria-invalid="true"], .field input[type="date"][aria-invalid="true"] { border-color: #d0342c; }
