/* ─────────────── TOKENS ─────────────── */
:root {
  --bg:       #ffffff;          /* clean white -- thailandtraveltime.com */
  --surface:  #f5f5f5;          /* TTT light surface (--ast-global-color-4) */
  --surface-warm: #fff6ed;      /* TTT warm off-white -- plain section/background surface */
  --ink:      #404040;          /* TTT dark grey heading/text */
  --ink-soft: #404040;          /* TTT secondary text (color-3) */
  --muted:    #6b6b6b;          /* 5.3:1 on white -- passes AA */
  --hairline: #00b4ed;          /* TTT cyan, decorative rules */
  --line:     rgba(25, 25, 25, 0.12);
  --line-strong: rgba(25, 25, 25, 0.30);

  --dark:     #404040;          /* TTT dark grey header, hero, footer bg */
  --dark-2:   #0e0e0e;          /* deeper black */
  --dark-ink: #ffffff;
  --dark-mut: rgba(255,255,255,0.72);
  --dark-line: rgba(255, 255, 255, 0.16);

  --brand:    #00b4ed;          /* TTT brand main -- as-is for button/CTA fills, large brand fills, icons */
  --brand-strong: #0096c7;      /* brand fill hover/pressed */
  --on-brand: #191919;          /* near-black label on bright-cyan fills -- 7.33:1 AA/AAA (white-on-#00b4ed only 2.4:1) */
  --accent:   #0079a8;          /* TTT cyan (#00b4ed) darkened to 4.9:1 on white -- AA text links/labels on white */
  --accent-strong: #006487;     /* link hover/pressed */
  --amber:    #ffb950;          /* TTT signature marigold -- decorative/dark-bg accent */
  --amber-strong: #e8aa4d;      /* TTT amber hover */

  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;

  --sp-1: 6px;
  --sp-2: 12px;
  --sp-3: 20px;
  --sp-4: 32px;
  --sp-5: 56px;
  --sp-6: 96px;
  --sp-7: 144px;

  --shell: 1320px;
  --gutter: clamp(20px, 4vw, 64px);

  --font-sans: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: 'MuseoModerno', 'Trebuchet MS', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Montserrat', ui-monospace, 'DM Mono', Consolas, monospace;
}

/* ─────────────── RESET ─────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
input, button, textarea { font: inherit; }

::selection { background: var(--accent); color: #fff; }

/* ─────────────── TYPOGRAPHY ─────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.08;
  margin: 0;
}
h1 { font-size: clamp(46px, 7.4vw, 104px); font-weight: 600; }
h2 { font-size: clamp(34px, 4.8vw, 64px); }
h3 { font-size: clamp(22px, 2.0vw, 32px); font-weight: 500; letter-spacing: -0.012em; }
h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.10em; font-weight: 500; }
p  { margin: 0; }
em { font-style: normal; color: var(--accent); font-weight: 500; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}
.hero__copy .kicker { color: rgba(255,255,255,0.82); }
/* No-blue-on-image rule: .kicker renders only over the hero video — use amber, not cyan. */
.hero__copy .kicker .dot { background: var(--amber); }
.kicker .dot {
  width: 8px; height: 8px;
  background: var(--amber);
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,185,80,0.0); }
  50%     { box-shadow: 0 0 0 6px rgba(255,185,80,0.18); }
}

/* ─────────────── LAYOUT HELPERS ─────────────── */
.section__head {
  max-width: var(--shell);
  margin: 0 auto var(--sp-5);
  padding: 0 var(--gutter);
}
.section__head > div { max-width: 720px; }
.section__head h2 { margin-bottom: 12px; max-width: 22ch; }
.section__head p { color: var(--muted); font-size: 18px; max-width: 64ch; }

/* ─────────────── NAV ─────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: var(--sp-4);
  padding: 14px var(--gutter);
  background: linear-gradient(to bottom, rgba(15,15,18,0.55), rgba(15,15,18,0));
  color: #fff;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  /* Bright white bar when scrolled: swap to the full-color logo and flip nav
     links + brand from white to ink so they stay legible on white. */
  background: #fff;
  color: var(--ink);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
.nav__brand { display: inline-flex; align-items: center; gap: 12px; }
.nav__mark { width: 28px; height: 28px; }
.nav__name { font-weight: 500; letter-spacing: -0.01em; font-size: 17px; }
.nav__name em { color: inherit; opacity: 0.7; font-weight: 400; }
/* Real brand wordmark — transparent two-tone (teal + cream) lockup. */
.nav__logo { display: block; height: 46px; width: auto; }
.nav__logo--color { display: none; }                 /* full-color lockup: only on the white scrolled bar */
.nav.is-stuck .nav__logo--white { display: none; }
.nav.is-stuck .nav__logo--color { display: block; }

.nav__links {
  display: inline-flex; gap: var(--sp-4);
  font-size: 14px;
  letter-spacing: -0.005em;
}
.nav__links a {
  position: relative;
  padding: 6px 0;
  opacity: 0.85;
}
.nav__links a:hover { opacity: 1; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta {
  font-size: 14px;
  padding: 10px 18px;
  border: 1px solid currentColor;
  border-radius: var(--radius-xs);
  letter-spacing: -0.005em;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav__cta:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.nav.is-stuck .nav__cta { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.nav.is-stuck .nav__cta:hover { background: var(--brand-strong); border-color: var(--brand-strong); }

.nav__menu { display: none; background: none; border: 0; padding: 6px; }
.nav__menu span {
  display: block; width: 22px; height: 1.5px; background: currentColor;
  margin: 4px 0; transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 920px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav__logo { height: 40px; }
  .nav__links { display: none; }
  .nav__menu { display: block; }
  .nav__cta { padding: 9px 14px; }
}

/* ─────────────── BUTTONS ─────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 17px 26px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 1px 0 rgba(25,25,25,0.06);
}
.btn--primary:hover { background: var(--brand-strong); color: var(--on-brand); }
.btn--ghost {
  background: transparent; color: inherit;
  border-color: currentColor;
}
.btn--ghost:hover { background: rgba(67,70,81,0.06); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.10); color: #fff; border-color: #fff; }

/* ─────────────── FOOTER ─────────────── */
.foot {
  background: var(--ink);
  color: var(--dark-mut);
  padding: var(--sp-5) 0 var(--sp-4);
  border-top: 1px solid var(--dark-line);
}
.foot__top {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-5);
}
.foot__nav {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3) clamp(20px, 2vw, 44px);
}
.foot__brand { color: var(--dark-ink); display: flex; flex-direction: column; gap: 8px; flex: 0 1 340px; max-width: 340px; }
.foot__brand .nav__name { color: #fff; }
/* Transparent wordmark on the dark footer. align-self:flex-start stops the flex
   column (default align-items:stretch) from stretching the img to full width and
   distorting it; height + width:auto keep the native aspect ratio. */
.foot__logo { display: block; align-self: flex-start; height: 58px; width: auto; max-width: 100%; margin: 0 0 4px; }
.foot__brand p { font-size: 13px; line-height: 1.6; color: var(--dark-mut); margin-top: 8px; font-family: var(--font-mono); letter-spacing: 0.01em; }
.foot__contact { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.foot__contact a, .foot__contact span { font-size: 13px; color: var(--dark-mut); }
.foot__contact a:hover { color: var(--accent); }
.foot__col h4 { color: #fff; margin-bottom: 14px; }
.foot__col a { display: block; font-size: 14px; padding: 6px 0; color: var(--dark-mut); transition: color 0.2s ease; }
.foot__col a:hover { color: var(--accent); }

.foot__bot {
  max-width: var(--shell);
  margin: var(--sp-4) auto 0;
  padding: var(--sp-3) var(--gutter) 0;
  border-top: 1px solid var(--dark-line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(243,241,234,0.45);
  letter-spacing: 0.04em;
}

@media (max-width: 1100px) {
  /* tablet/iPad: brand on top, link menus in 2 columns
     -> Tours + Experiences on one row, Company + Legal under them */
  .foot__top { flex-wrap: wrap; }
  .foot__brand { flex: 1 1 100%; max-width: none; }
  .foot__nav { flex: 1 1 100%; grid-template-columns: 1fr 1fr; gap: var(--sp-4) var(--sp-5); }
}
@media (max-width: 560px) {
  .foot__nav { grid-template-columns: 1fr; }
}

/* reveal-on-scroll effect removed -- content is just there */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ----------------- WHATSAPP FAB ----------------- */
.wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 12px 14px;
  background: #25d366;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(37,211,102,0.35), 0 2px 6px rgba(0,0,0,0.18);
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s ease, background 0.25s ease;
}
.wa-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37,211,102,0.45), 0 3px 10px rgba(0,0,0,0.20);
  background: #1ebd5b;
}
.wa-fab:active { transform: translateY(0); }
.wa-fab svg { width: 22px; height: 22px; flex-shrink: 0; }
.wa-fab__label { display: inline-block; }
@media (max-width: 720px) {
  .wa-fab { right: 14px; bottom: 14px; padding: 12px; border-radius: 50%; }
  .wa-fab__label { display: none; }
}


/* ─────────────── START -- light, sidebar-driven multi-step ─────────────── */
.start {
  background: linear-gradient(180deg, var(--surface-warm) 0%, var(--surface-warm) 100%);
  color: var(--ink);
  padding: var(--sp-7) 0 var(--sp-6);
  position: relative;
}
.start__intro {
  max-width: var(--shell);
  margin: 0 auto var(--sp-5);
  padding: 0 var(--gutter);
}
.start__intro h2 { max-width: 22ch; margin-bottom: 10px; }
.start__intro p { color: var(--muted); max-width: 64ch; font-size: 18px; }
.start__intro strong { color: var(--ink); font-weight: 500; }
.start__intro em { color: var(--accent); font-style: italic; }

.qf-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--sp-4);
  align-items: stretch;     /* sidebar matches form height */
}

/* SIDEBAR -- moves with the form, matches its height */
.qf-side {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 0;
  display: flex; flex-direction: column;
  align-self: stretch;
  min-height: 100%;
}
.qf-side__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--sp-3);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
}
.qf-side__progress {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.qf-side__progress em { color: var(--accent); font-style: normal; font-weight: 500; }
.qf-side__bar {
  display: block;
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.18);
  margin-left: 14px;
  position: relative;
}
.qf-side__bar span {
  position: absolute; inset: 0 auto 0 0;
  width: 16.66%;
  background: var(--accent);
  transition: width 0.5s cubic-bezier(0.16,1,0.3,1);
}

.qf-side__list {
  display: flex; flex-direction: column;
  flex: 1;        /* take all available height so foot anchors to bottom */
}
.qf-side__q {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: start;
  gap: 12px;
  padding: 16px var(--sp-3);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.18s ease, padding-left 0.25s cubic-bezier(0.16,1,0.3,1);
  position: relative;
}
.qf-side__q:hover { background: rgba(74,167,158,0.04); padding-left: calc(var(--sp-3) + 4px); }
.qf-side__q:last-child { border-bottom: 0; }

.qf-side__num {
  width: 28px; height: 28px;
  border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.qf-side__q.is-current .qf-side__num {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.qf-side__q.is-done .qf-side__num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.qf-side__q.is-done .qf-side__num::before {
  content: "";
  width: 5px; height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translate(-1px, -2px);
  display: inline-block;
}
.qf-side__q.is-done .qf-side__num span,
.qf-side__q.is-current .qf-side__num span { display: inline-block; }
/* hide raw number when done */
.qf-side__q.is-done .qf-side__num { font-size: 0; }
.qf-side__q.is-done .qf-side__num::before { font-size: 14px; }

.qf-side__q strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.qf-side__ans {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0;
  line-height: 1.4;
  word-break: break-word;
}
.qf-side__q.is-done .qf-side__ans { color: var(--accent); font-weight: 500; }
.qf-side__q.is-current strong { color: var(--accent); }

.qf-side__foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--sp-3);
  border-top: 1px solid var(--line);
  background: var(--bg);
  gap: 12px;
}
.qf-side__restart {
  border: 1px solid var(--line-strong);
  background: transparent;
  padding: 8px 14px;
  font-size: 13px;
  letter-spacing: -0.005em;
  transition: background 0.2s ease, color 0.2s ease;
}
.qf-side__restart:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.qf-side__hint {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* RIGHT -- actual question */
.qf2 {
  background: #fff;
  border: 1px solid var(--line-strong);
  display: flex; flex-direction: column;
  min-height: 520px;
}
.qf2__stage {
  flex: 1;
  position: relative;
  padding: clamp(28px, 4vw, 56px);
}
.qf2__step {
  position: absolute;
  inset: clamp(28px, 4vw, 56px);
  margin: 0;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.qf2__step.is-active {
  position: relative; inset: auto;
  opacity: 1; transform: none;
  pointer-events: auto;
}
.qf2__counter {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  border-left: 2px solid var(--accent);
  padding-left: 10px;
}
.qf2__step legend {
  display: block;
  padding: 0;
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 10px;
  max-width: 22ch;
}
.qf2__hint {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: var(--sp-3);
  max-width: 60ch;
  line-height: 1.55;
}
.qf2__hint em { color: var(--ink); font-style: normal; font-weight: 500; }
.qf2__hint strong { color: var(--accent); font-weight: 500; }

.qf2__choices {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: var(--sp-2);
}
.chip2 {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 20px;
  font-size: 15px;
  letter-spacing: -0.005em;
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
  border-radius: var(--radius-xs);
  transition: transform 0.18s cubic-bezier(0.16,1,0.3,1), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.chip2:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.chip2:active { transform: translateY(1px); }
.chip2.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.chip2.is-selected::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.chip2--ghost { border-style: dashed; color: var(--muted); }

.qf2__field {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: var(--sp-3);
  max-width: 480px;
}
.qf2__field span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.qf2__field input {
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--line-strong);
  color: var(--ink);
  padding: 12px 0;
  font-size: 22px;
  letter-spacing: -0.012em;
  outline: none;
  transition: border-color 0.25s ease;
}
.qf2__field input::placeholder { color: rgba(15,22,35,0.32); }
.qf2__field input:focus { border-bottom-color: var(--accent); }

.qf2__check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--muted);
  margin-top: 8px;
  cursor: pointer;
  max-width: 60ch;
  line-height: 1.45;
}
.qf2__check input {
  appearance: none;
  width: 16px; height: 16px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  margin-top: 3px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.qf2__check input:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.qf2__check input:checked::after {
  content: "";
  position: absolute; left: 3px; top: 0px;
  width: 4px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.qf2__nav {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 16px var(--sp-3);
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.qf2__back, .qf2__next, .qf2__submit {
  background: transparent;
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
  padding: 10px 18px;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.qf2__next, .qf2__submit {
  background: var(--brand);
  color: var(--on-brand);
  border-color: var(--brand);
  margin-left: auto;
  font-weight: 600;
}
.qf2__next:hover, .qf2__submit:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.qf2__back:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.qf2__back:disabled { opacity: 0.35; cursor: not-allowed; }
.qf2__back:active, .qf2__next:active, .qf2__submit:active { transform: translateY(1px); }
.qf2__keys {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.qf2__keys kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  background: #fff;
  border: 1px solid var(--line-strong);
  padding: 1px 6px;
  margin: 0 2px;
}

.qf2__step--done .qf2__done {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  text-align: left;
}
.qf2__done svg { width: 56px; height: 56px; color: var(--accent); }
.qf2__done h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -0.018em;
  color: var(--ink);
}
.qf2__done h3 em { color: var(--accent); font-style: italic; }
.qf2__done p {
  color: var(--muted);
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.6;
}
.qf2__done a { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* Form footer meta strip (replaces the old Maria card) */
.qf-meta {
  grid-column: 1 / -1;
  margin-top: var(--sp-4);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: var(--sp-3) var(--sp-3);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-4);
  align-items: center;
}
.qf-meta > p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
  max-width: 64ch;
}
.qf-meta__chips {
  display: flex; gap: 18px; margin: 0; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.qf-meta__chips > div { display: flex; gap: 6px; align-items: baseline; }
.qf-meta__chips dt { color: var(--muted); margin: 0; }
.qf-meta__chips dd { margin: 0; color: var(--accent); font-weight: 500; }

@media (max-width: 980px) {
  .qf-shell { grid-template-columns: 1fr; }
  /* Hide the sidebar on tablet & below -- it asks to be clicked but adds no value when there's no room. */
  .qf-side { display: none; }
  .qf-meta { grid-template-columns: 1fr; gap: var(--sp-3); }
}
@media (max-width: 720px) {
  .qf2__choices .chip2 { width: 100%; justify-content: flex-start; }
  .qf2__nav { flex-wrap: wrap; }
  .qf2__keys { width: 100%; text-align: right; }
}



/* ─────────────── Wall gallery — modifier subsets (DRY 5/6/11 system) ───────────────
   Base .wall__grid (11-tile, areas a–k) is defined in page CSS and loaded AFTER site CSS
   ({{css}} renders before {{page_css}} in the shell). To override the base layout from
   site CSS we must out-specify it: each modifier rule is chained (.wall__grid.wall__grid--top)
   so specificity = 2 classes > base's 1 class, regardless of source order. Each rule also
   sets grid-template-columns explicitly so the modifier is self-contained at every breakpoint
   and any future page can opt in with just the markup class — no extra page CSS required. */

.wall__grid.wall__grid--top {
  grid-template-columns: repeat(12, 1fr);
  grid-template-areas:
    "a a a a a a a b b b b b"
    "a a a a a a a b b b b b"
    "a a a a a a a c c d d d"
    "a a a a a a a c c d d d"
    "a a a a a a a e e e e e";
}
.wall__grid.wall__grid--bottom {
  grid-template-columns: repeat(12, 1fr);
  grid-template-areas:
    "f f f f g g g g h h h h"
    "f f f f g g g g h h h h"
    "i i i j j j j j k k k k"
    "i i i j j j j j k k k k";
}

@media (max-width: 1024px) {
  .wall__grid.wall__grid--top {
    grid-template-columns: repeat(6, 1fr);
    grid-template-areas:
      "a a a a b b"
      "a a a a b b"
      "a a a a c d"
      "e e e e c d";
  }
  .wall__grid.wall__grid--bottom {
    grid-template-columns: repeat(6, 1fr);
    grid-template-areas:
      "f f g g h h"
      "f f g g h h"
      "i i j j k k"
      "i i j j k k";
  }
}
@media (max-width: 540px) {
  .wall__grid.wall__grid--top {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "a a"
      "a a"
      "b c"
      "d e";
  }
  .wall__grid.wall__grid--bottom {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "f g"
      "h i"
      "j k";
  }
}

/* === MOBILE SPACING SCALE-DOWN - scope large vertical tokens for ≤720px so sections do not eat the screen on phones === */
@media (max-width: 720px) {
  :root {
    --sp-7: 72px;
    --sp-6: 56px;
    --sp-5: 40px;
  }
}

/* ─────────────── CONTACT FORM (shared partial: forms/contact.html) ─────────────── */
.cform-section {
  background: linear-gradient(180deg, var(--surface-warm) 0%, var(--surface-warm) 100%);
  color: var(--ink);
  padding: var(--sp-7) 0 var(--sp-6);
  position: relative;
}
.cform-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--sp-5);
  align-items: start;
}
.cform {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: clamp(20px, 3vw, 36px);
  box-shadow: 0 1px 0 rgba(67,70,81,0.04);
}
.cform__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.cform__field { display: flex; flex-direction: column; gap: 7px; }
.cform__field--area { grid-column: 1 / -1; }
.cform__field > span {
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--ink);
  font-family: var(--font-display);
}
.cform__field > span em { color: var(--muted); font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 400; }
.cform__field input,
.cform__field textarea {
  width: 100%;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  padding: 13px 14px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.cform__field textarea { resize: vertical; min-height: 132px; }
.cform__field input::placeholder,
.cform__field textarea::placeholder { color: var(--muted); }
.cform__field input:focus,
.cform__field textarea:focus {
  outline: none; background: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,167,158,0.18);
}
.cform__check {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 14px; line-height: 1.5; color: var(--ink-soft);
  margin-top: var(--sp-2);
}
.cform__check input {
  flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px;
  accent-color: var(--accent); cursor: pointer;
}
.cform__check a { color: var(--dark); text-decoration: underline; text-underline-offset: 2px; }
.cform__check a:hover { color: var(--accent); }
.cform__actions {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-top: var(--sp-4); flex-wrap: wrap;
}
.cform__submit { min-height: 48px; }
.cform__hint { font-size: 14px; color: var(--muted); }
.cform__done { text-align: left; padding: var(--sp-2) 0; }
.cform__done svg { width: 52px; height: 52px; color: var(--accent); margin-bottom: var(--sp-2); }
.cform__done h3 { font-size: clamp(20px, 3vw, 26px); margin-bottom: 10px; letter-spacing: -0.01em; }
.cform__done p { color: var(--ink-soft); max-width: 52ch; margin-bottom: var(--sp-3); font-size: 16px; }
.cform__done a { color: var(--dark); text-decoration: underline; text-underline-offset: 2px; }
.cform__done a:hover { color: var(--accent); }

.cform-meta { display: flex; flex-direction: column; gap: var(--sp-3); }
.cform-meta__card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: clamp(18px, 2.4vw, 26px);
}
.cform-meta__card h3 {
  font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em;
  font-family: var(--font-display); color: var(--dark);
  margin-bottom: 12px;
}
.cform-meta__card h3 span { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.cform-meta__card p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.cform-meta__card p strong { color: var(--ink); font-weight: 500; }
.cform-meta__hours { display: flex; flex-direction: column; gap: 0; }
.cform-meta__hours div {
  display: flex; justify-content: space-between; gap: var(--sp-3);
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.cform-meta__hours div:last-child { border-bottom: 0; }
.cform-meta__hours dt { color: var(--ink); font-weight: 500; }
.cform-meta__hours dd { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .cform-shell { grid-template-columns: 1fr; gap: var(--sp-4); }
}
@media (max-width: 540px) {
  .cform__grid { grid-template-columns: 1fr; }
}


/* ═══════════════ MEGA MENU (link strategy 2026-06-18) ═══════════════ */
/* Reusable nav component -> lives in site.css so every page shares it.
   Desktop (>=921px): CSS-only hover/focus-within dropdown panels.
   Mobile (<=920px): each panel is a tap-to-expand accordion inside the hamburger menu. */

.nav__item--mega { position: static; }            /* panel anchors to .nav (fixed = positioned) */
.nav__top { display: inline-flex; align-items: center; gap: 5px; }
.nav__caret { font-size: 9px; opacity: 0.6; transition: transform 0.2s ease; }
.nav__toggle { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.nav__toggle span { display: inline-block; font-size: 11px; transition: transform 0.2s ease; }

.mega { color: var(--ink); }
.mega a { opacity: 1; }
.mega a::after { display: none !important; }        /* kill the nav underline inside panels */
.mega__grid { display: grid; grid-template-columns: 1fr 1fr 0.85fr; gap: var(--sp-4); max-width: var(--shell); margin: 0 auto; }
.mega__grid--exp { grid-template-columns: repeat(4, 1fr); }
.mega__h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.mega__col > a { display: block; padding: 7px 0; }
.mega__col > a b { display: block; font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.mega__col > a span { display: block; font-size: 12px; color: var(--muted); font-family: var(--font-mono); margin-top: 1px; }
.mega__col > a:hover b { color: var(--accent); }
.mega__col--cta { background: var(--surface); border-radius: var(--radius-sm); padding: var(--sp-3); align-self: start; }
.mega__lead { font-size: 14px; color: var(--ink-soft); margin: 0 0 12px; }
.mega__all { display: block; padding: 8px 0; font-size: 14px; font-weight: 500; color: var(--accent); }
.mega__all:hover { color: var(--accent-strong); }

/* ---- desktop dropdown behaviour ---- */
@media (min-width: 921px) {
  .nav__item--mega > .nav__top { position: relative; }
  .nav__item--mega > .nav__top::before {            /* invisible hover bridge across the gap */
    content: ""; position: absolute; left: -24px; right: -24px; top: 100%; height: 28px;
  }
  .mega {
    position: absolute; top: 100%; left: var(--gutter); right: var(--gutter);
    margin-top: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: 0 26px 64px rgba(15, 22, 35, 0.18);
    padding: var(--sp-4);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 60;
  }
  .nav__item--mega:hover .mega,
  .nav__item--mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
  .nav__item--mega:hover .nav__caret,
  .nav__item--mega:focus-within .nav__caret { transform: rotate(180deg); }
}

/* ---- narrow-desktop breathing room (5 top items) ---- */
@media (min-width: 921px) and (max-width: 1120px) {
  .nav__links { gap: 20px; font-size: 13px; }
}

/* ---- mobile: hamburger panel + collapsible accordion dropdowns ---- */
@media (max-width: 920px) {
  /* menu-open dropdown panel (promoted from homepage page_css so it works site-wide) */
  .nav.menu-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; inset: 100% 0 auto 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    color: var(--ink);
    padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(15, 22, 35, 0.08);
    font-size: 16px;
    max-height: calc(100dvh - 64px); overflow-y: auto;
  }
  .nav__caret { display: none; }

  /* each mega item: link + caret-toggle on one row, panel collapses below */
  .nav.menu-open .nav__item--mega {
    display: flex; flex-wrap: wrap; align-items: center;
    border-bottom: 1px solid var(--line);
  }
  .nav.menu-open .nav__item--mega > .nav__top { flex: 1; border-bottom: 0; }
  .nav.menu-open .nav__links > .nav__top {            /* plain links (About Thailand / Who we are / Contact) */
    border-bottom: 1px solid var(--line);
  }
  .nav.menu-open .nav__top {
    padding: 14px 0; opacity: 1; color: var(--ink); font-weight: 600;
  }
  .nav.menu-open .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px; color: var(--ink);
  }
  .nav.menu-open .nav__item--mega.is-open .nav__toggle span { transform: rotate(180deg); }

  /* panel: collapsed by default, expands when its item is .is-open */
  .nav.menu-open .mega { display: none; flex-basis: 100%; }
  .nav.menu-open .nav__item--mega.is-open .mega {
    display: block;
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; padding: 0 0 12px; margin: 0;
    background: transparent;
  }
  .nav.menu-open .mega__grid,
  .nav.menu-open .mega__grid--exp { grid-template-columns: 1fr; gap: 2px; }
  .nav.menu-open .mega__h { margin: 12px 0 4px; }
  .nav.menu-open .mega__col > a { padding: 9px 0 9px 12px; }
  .nav.menu-open .mega__col--cta { background: transparent; padding: 0; }
  .nav.menu-open .mega__lead { display: none; }
}

/* footer social icon row (added 2026-06-19) */
.foot__social { display: flex; gap: 12px; margin-top: 16px; }
.foot__social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--dark-line); color: var(--dark-mut); transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.foot__social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.foot__social svg { width: 18px; height: 18px; display: block; }

/* ─────────────── BREADCRUMB (route-derived, {{breadcrumb}}) ─────────────── */
/* Lives inside the hero over the dark scrim → light text. */
.breadcrumb { margin: 0 0 var(--sp-2); }
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--sp-1);
  font-size: 0.8rem;
  color: var(--dark-mut);
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before {
  content: "/";
  margin-right: var(--sp-1);
  color: rgba(255, 255, 255, 0.4);
}
.breadcrumb a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: #fff; font-weight: 500; }

/* Launch-simplified nav: only brand + CTA. Keep the CTA hard-right on all widths. */
.nav.nav--solo { grid-template-columns: auto 1fr; }
.nav.nav--solo .nav__cta { justify-self: end; }
