/* ==========================================================================
   NGYNN Clean: shared styles for the static pages and the blog.
   Visual system: flat navy, leaf green actions, water blue links, and the
   "leaf corner" (top-left and bottom-right large, the other two small).
   Fonts: Montserrat (headings) + Figtree (body), both OFL.
   ========================================================================== */

:root {
  /* Brand */
  --navy: #032F68;
  --navy-deep: #021F47;
  --leaf: #23802A;
  --leaf-dark: #1B6621;
  --leaf-ink: #154F1A;
  --water: #0B66BC;
  --water-ink: #063A75;
  --sprout: #7ACB0A;        /* only on navy */
  --on-navy: #D4E5F7;

  /* Surfaces and text */
  --ink: #0A1F3C;
  --text: #3D4F68;
  --text-2: #3D4F68;
  --text-3: #24364F;
  --muted: #52637A;
  --tint: #E3F0FB;
  --tint-leaf: #E5F4DC;
  --surface: #F3F7FA;
  --line: #DCE6EE;

  /* Names the blog templates and blog.css already use. */
  --blue: var(--water);
  --blue-dark: var(--navy);
  --border-1: var(--line);
  --border-4: var(--line);

  /* Leaf corners */
  --leaf-lg: 40px 8px 40px 8px;
  --leaf-md: 26px 6px 26px 6px;
  --leaf-sm: 12px 3px 12px 3px;

  --font-head: 'Montserrat', Arial, sans-serif;
  --font-body: 'Figtree', 'Helvetica Neue', Arial, sans-serif;

  --maxw: 1160px;
  --pad-x: 24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--water); text-decoration: none; }
a:hover { color: var(--navy); }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); }
::selection { background: var(--navy); color: #fff; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; border-radius: 4px; }
.hero a:focus-visible, .cta a:focus-visible, .footer a:focus-visible, .prose-hero a:focus-visible { outline-color: var(--sprout); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.page { width: 100%; overflow-x: clip; }

/* ===== BUTTONS: flat pills ===== */
.btn-primary, .btn-book {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 30px;
  background: var(--leaf); color: #fff; font-weight: 700; font-size: 16px; line-height: 1.2;
  transition: background-color .15s ease;
}
.btn-primary:hover, .btn-book:hover { background: var(--leaf-dark); color: #fff; }
.btn-primary:focus-visible, .btn-book:focus-visible { border-radius: 30px; }
/* On navy the leaf green would sink; sprout is the accent reserved for it. */
.btn-book--sprout { min-height: 58px; padding: 16px 32px; background: var(--sprout); color: var(--navy-deep); font-size: 18px; }
.btn-book--sprout:hover { background: #8FDD22; color: var(--navy-deep); }

/* ===== NAV ===== */
.nav { background: #fff; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--navy); }
.brand__logo { width: 214px; height: 60px; }
/* The blog template may draw the mark and the name separately. */
.logo-mark { width: 44px; height: 44px; flex: none; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.nav__links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; font-size: 16px; }
.nav__links a:hover { color: var(--water); }
.nav__cta { display: flex; align-items: center; gap: 20px; }
.nav__back { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; font-size: 16px; }

/* ===== HERO ===== */
.hero { background: var(--navy); color: #fff; border-radius: 0 0 0 clamp(48px, 9vw, 120px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero h1 { color: #fff; font-weight: 800; font-size: clamp(40px, 6vw, 72px); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.hero__sub { font-size: 20px; line-height: 1.55; color: var(--on-navy); max-width: 34em; text-wrap: pretty; }
.hero__panel { background: #fff; border-radius: 120px 12px 120px 12px; padding: 56px; display: flex; justify-content: center; }
.hero__panel img { width: 100%; max-width: 270px; height: auto; }

/* ===== SECTIONS ===== */
.section { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 32px; }
.section h2 { font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }

/* ===== SERVICES ===== */
.services__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.service {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  min-height: 210px; padding: 28px; border-radius: var(--leaf-lg);
  transition: background-color .15s ease;
}
.service:focus-visible { border-radius: var(--leaf-lg); }
.service--leaf, .service--leaf:hover { color: var(--leaf-ink); }
.service--water, .service--water:hover { color: var(--water-ink); }
.service--leaf { background: var(--tint-leaf); }
.service--water { background: var(--tint); }
.service--leaf:hover { background: #D8EDC9; }
.service--water:hover { background: #D0E5F7; }
.service h3 { font-weight: 700; font-size: 23px; line-height: 1.25; color: inherit; }
.service p { font-size: 17px; line-height: 1.5; }
.service__go { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
/* The odd one out of five services gets the full row, not a lonely fifth cell. */
.service--wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px 32px; flex-wrap: wrap; background: var(--navy); border-radius: var(--leaf-lg); padding: 24px 28px; }
.service--wide, .service--wide:hover { color: #fff; }
.service--wide:hover { background: var(--navy-deep); }
.service--wide p { color: var(--on-navy); flex: 1 1 300px; }

/* ===== HOW IT WORKS ===== */
.how { background: var(--surface); }
.how__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; list-style: none; }
.how__steps li { display: flex; flex-direction: column; gap: 10px; }
.how__steps h3 { font-weight: 700; font-size: 24px; line-height: 1.25; }
.how__steps p { font-size: 17px; line-height: 1.55; color: var(--text); }

/* ===== INCLUDED ===== */
.incl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px 64px; align-items: start; }
.incl__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; list-style: none; }
.incl__list li { color: var(--text); padding-top: 14px; border-top: 3px solid var(--tint-leaf); }
.incl__list strong { display: block; color: var(--ink); font-weight: 700; }

/* ===== CLOSING CTA ===== */
.cta { padding-bottom: 88px; }
.cta__card { background: var(--navy); border-radius: 80px 12px 80px 12px; padding: 64px 56px; display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: space-between; }
.cta__card h2 { color: #fff; font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.cta__card p { color: var(--on-navy); margin-top: 12px; max-width: 36em; }

/* ===== FOOTER ===== */
.footer { background: var(--navy-deep); color: var(--on-navy); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-top: 64px; padding-bottom: 32px; }
.footer .brand, .footer .logo-mark, .footer .brand__name { color: #fff; }
.footer .brand__logo { width: 190px; height: 53px; }
.footer__blurb { font-size: 16px; line-height: 1.6; margin-top: 16px; max-width: 300px; }
.footer__col-title { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: #fff; }
.footer__links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 10px; }
.footer__links a, .footer__links span { display: inline-flex; align-items: center; min-height: 40px; color: var(--on-navy); font-size: 16px; overflow-wrap: anywhere; }
.footer__links a:hover { color: #fff; text-decoration: underline; }
.footer__chips { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.footer__chip { border: 1px solid #2C558C; color: #fff; font-size: 14px; font-weight: 600; padding: 9px 15px; border-radius: 22px; }
.footer__chip:hover { color: #fff; }
.footer__bottom { border-top: 1px solid #1A3D6D; width: calc(100% - 2 * var(--pad-x)); max-width: calc(var(--maxw) - 2 * var(--pad-x)); margin: 0 auto; padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; }
.footer__bottom--plain { border-top: 0; }
.footer__bottom a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ===== LEGAL PAGES ===== */
.prose-hero { background: var(--navy); color: var(--on-navy); border-radius: 0 0 0 44px; padding: 56px 0; }
.prose-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 46px); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
.prose-hero p { font-size: 16px; margin-top: 12px; }
.prose { max-width: 820px; margin: 0 auto; padding: 40px var(--pad-x) 80px; }
.prose h2 { font-size: 26px; line-height: 1.25; font-weight: 700; margin-top: 36px; margin-bottom: 12px; }
.prose h3 { font-size: 19px; font-weight: 700; margin-top: 24px; margin-bottom: 8px; }
.prose p { line-height: 1.7; color: var(--text); margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 14px 22px; }
.prose li { line-height: 1.7; color: var(--text); margin-bottom: 6px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose strong { color: var(--ink); }
.prose__credit { font-size: 15px; }

/* ===== MESSAGE PAGES (404, /app/) ===== */
.message { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 72px; padding-bottom: 104px; max-width: 720px; margin: 0 auto; }
.message h1 { font-weight: 800; font-size: clamp(34px, 5vw, 48px); line-height: 1.1; letter-spacing: -0.02em; }
.message p { font-size: 19px; color: var(--text); }
.message__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.message__actions [hidden] { display: none; }
.btn-outline { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 24px; border: 2px solid var(--leaf); border-radius: 30px; color: var(--leaf-dark); font-weight: 700; font-size: 16px; }
.btn-outline:hover { background: var(--tint-leaf); color: var(--leaf-dark); }

/* ===== Names only the blog listing uses ===== */
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px; border-radius: 100px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 15px; font-weight: 600; }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sprout); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how__steps { grid-template-columns: 1fr; gap: 32px; }
  .incl { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .nav__links { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 72px; }
  .hero__panel { max-width: 300px; padding: 40px; border-radius: 80px 10px 80px 10px; justify-self: start; }
}
@media (max-width: 600px) {
  :root { --pad-x: 16px; }
  .nav__inner { padding-top: 12px; padding-bottom: 12px; }
  .brand__logo { width: 150px; height: 42px; }
  .nav__cta { gap: 14px; }
  .nav .btn-primary { padding: 12px 18px; }
  .nav__back--wide { display: none; }
  .hero__sub { font-size: 18px; }
  .hero .btn-book--sprout { width: 100%; }
  .section { padding-top: 64px; padding-bottom: 64px; gap: 24px; }
  .services__grid { grid-template-columns: 1fr; gap: 14px; }
  .service { min-height: 0; padding: 22px 24px; gap: 12px; border-radius: var(--leaf-md); }
  .incl__list { grid-template-columns: 1fr; }
  .cta { padding-bottom: 64px; }
  .cta__card { padding: 40px 24px; border-radius: 44px 8px 44px 8px; }
  .cta__card .btn-book { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---- Country prompt (assets/js/market-prompt.js) --------------------------
   Montserrat throughout: Figtree has no Vietnamese glyphs. */
.mp-backdrop { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(2, 31, 71, .6); overflow-y: auto; }
.mp-panel { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 30rem; padding: 24px; border-radius: var(--leaf-md); background: #fff; font-family: var(--font-head); }
.mp-heading { margin: 0; color: var(--navy); font-size: 1.375rem; font-weight: 700; line-height: 1.3; }
.mp-sub { display: block; margin-top: 6px; color: var(--text); font-size: 1rem; font-weight: 600; }
.mp-text { margin: 0; color: var(--text); font-size: .9375rem; line-height: 1.5; }
.mp-row { display: flex; flex-wrap: wrap; gap: 12px; }
.mp-btn { display: inline-flex; flex: 1 1 12rem; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; padding: 8px 16px; border: 2px solid var(--leaf); border-radius: 30px; background: #fff; color: var(--leaf-dark); font: inherit; font-size: .9375rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.mp-btn:hover { background: var(--tint-leaf); }
.mp-choice { min-height: 64px; border-radius: var(--leaf-sm); border-color: var(--line); color: var(--ink); }
.mp-hint { color: var(--text); font-size: .8125rem; font-weight: 500; }
.mp-secondary { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--water); font: inherit; font-size: .875rem; text-decoration: underline; cursor: pointer; }
