/* TripBondhu design system: shared by tripbondhu.com and the /vietnam planner. */
:root {
  --brand: #0c6457;
  --brand-hover: #09524a;
  --brand-ink: #083f37;
  --brand-50: #eef6f3;
  --brand-100: #d6eae4;
  --brand-200: #a9d2c7;

  --ink: #111418;
  --ink-2: #3d444d;
  --ink-3: #6b7280;
  --line: #e5e7ea;
  --line-2: #d3d7dc;
  --bg: #ffffff;
  --surface: #f6f7f5;
  --surface-2: #eef0ec;

  --ok: #15803d;
  --ok-50: #edf8f1;
  --warn: #a15c07;
  --warn-50: #fdf6ec;
  --danger: #b42318;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --sh-1: 0 1px 2px rgba(16, 24, 40, 0.05);
  --sh-2: 0 6px 16px -4px rgba(16, 24, 40, 0.1), 0 2px 4px -2px rgba(16, 24, 40, 0.05);
  --sh-3: 0 20px 40px -12px rgba(16, 24, 40, 0.22);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss03";
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); line-height: 1.06; letter-spacing: -0.032em; }
h2 { font-size: clamp(1.625rem, 2.5vw, 2.125rem); line-height: 1.15; letter-spacing: -0.024em; }
h3 { font-size: 1.125rem; line-height: 1.35; letter-spacing: -0.012em; font-weight: 600; }
h4 { font-size: 1rem; line-height: 1.4; letter-spacing: -0.006em; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
::selection { background: var(--brand-100); }

.wrap, .shell { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.muted { color: var(--ink-3); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* icons */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.ico-box { width: 44px; height: 44px; border-radius: var(--r); display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.005em; line-height: 1; white-space: nowrap;
  background: var(--ink); color: #fff; transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary, .btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: var(--sh-1); }
.btn-secondary:hover, .btn-ghost:hover { background: var(--surface); border-color: #c3c8ce; }
.btn-tint, .btn-sky { background: var(--brand-50); color: var(--brand-ink); border-color: var(--brand-100); }
.btn-tint:hover, .btn-sky:hover { background: var(--brand-100); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f1f2f3; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 1rem; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 0.875rem; }
.btn-xs { height: 30px; padding: 0 10px; font-size: 0.8125rem; border-radius: 7px; gap: 6px; }
.btn-xs .icon { width: 15px; height: 15px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); }
.link-arrow .icon { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
a:hover .link-arrow .icon, .link-arrow:hover .icon { transform: translateX(3px); }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 500; font-size: 0.875rem; color: var(--ink); }
.field input, .field select, .field textarea, .input {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px;
  background: #fff; color: var(--ink); outline: none; box-shadow: var(--sh-1); transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
select.input, .field select {
  appearance: none; padding-right: 36px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(12, 100, 87, 0.14); }
.field input::placeholder, .field textarea::placeholder, .input::placeholder { color: #9aa1a9; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* chips & tags */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 999px; background: #fff;
  font-size: 0.875rem; font-weight: 500; color: var(--ink-2); transition: border-color 0.15s, background 0.15s, color 0.15s;
}
button.chip:hover { border-color: #b9bfc6; color: var(--ink); }
.chip.on, .chip[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-50); color: var(--brand-ink); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; background: var(--surface-2); color: var(--ink-2); }

/* header */
.site-hd { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.hd-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.022em; }
.logo:hover { text-decoration: none; }
.logo svg { width: 28px; height: 28px; display: block; }
.hd-nav { display: flex; gap: 2px; flex: 1; }
.hd-nav a { color: var(--ink-2); font-weight: 500; font-size: 0.9375rem; padding: 7px 12px; border-radius: 8px; }
.hd-nav a:hover { color: var(--ink); background: var(--surface); text-decoration: none; }
.hd-nav a.active { color: var(--ink); font-weight: 600; }
.hd-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hd-signin { color: var(--ink-2); font-weight: 500; font-size: 0.9375rem; padding: 7px 12px; border-radius: 8px; background: none; border: 0; }
.hd-signin:hover { color: var(--ink); background: var(--surface); text-decoration: none; }
.hd-more { position: relative; display: none; }
.hd-more summary { list-style: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-2); cursor: pointer; color: var(--ink); }
.hd-more summary::-webkit-details-marker { display: none; }
.hd-more[open] summary { background: var(--surface); }
.hd-more nav { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 8px; display: grid; }
.hd-more nav a { color: var(--ink); font-weight: 500; padding: 10px 12px; border-radius: 8px; }
.hd-more nav a:hover { background: var(--surface); text-decoration: none; }
.hd-more .menu-label { font-size: 0.75rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; padding: 12px 12px 4px; border-top: 1px solid var(--line); margin-top: 6px; }
.hd-more nav a.on, .hd-dest nav a.on { color: var(--brand-ink); background: var(--brand-50); }
.hd-dest { position: relative; margin-left: -12px; }
.hd-dest summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 8px 0 12px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 600; font-size: 0.875rem; color: var(--ink); cursor: pointer; white-space: nowrap; }
.hd-dest summary::-webkit-details-marker { display: none; }
.hd-dest summary:hover, .hd-dest[open] summary { background: var(--surface); }
.hd-dest summary .icon { width: 16px; height: 16px; color: var(--ink-3); }
.hd-dest nav { position: absolute; left: 0; top: calc(100% + 8px); width: 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 8px; display: grid; z-index: 60; }
.hd-dest nav a { color: var(--ink); font-weight: 500; padding: 9px 12px; border-radius: 8px; }
.hd-dest nav a:hover { background: var(--surface); text-decoration: none; }

/* footer */
.site-ft { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 0.9375rem; }
.ft-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.ft-grid p { color: var(--ink-3); max-width: 30ch; margin-top: 12px; }
.ft-grid h4 { font-size: 0.8125rem; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.ft-grid nav a { display: block; color: var(--ink-2); padding: 4px 0; font-size: 0.9375rem; }
.ft-grid nav a:hover { color: var(--ink); }
.ft-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; color: var(--ink-3); font-size: 0.8125rem; }
.ft-base p { margin: 0; }

/* sections */
.sec { padding: 88px 0; }
.sec-alt { background: var(--surface); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 8px 0 0; color: var(--ink-3); font-size: 1.0625rem; max-width: 56ch; }

/* legal pages */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 3.4vw, 2.625rem); margin-bottom: 8px; }
.legal .updated { color: var(--ink-3); font-size: 0.9375rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.25rem; margin: 40px 0 12px; letter-spacing: -0.016em; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal p, .legal li { color: var(--ink-2); }

@media (max-width: 900px) {
  .hd-nav { display: none; }
  .hd-more { display: block; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .ft-grid > :first-child { grid-column: 1 / -1; }
  .sec { padding: 64px 0; }
}
@media (max-width: 560px) {
  .wrap, .shell { width: min(var(--wrap), 100% - 32px); }
  .hd-row { gap: 12px; }
  .hd-dest { margin-left: -4px; }
  .hd-dest summary { padding: 0 6px 0 10px; font-size: 0.8125rem; }
  .logo span { display: none; }
  .hd-actions { gap: 8px; }
  .hd-actions .btn-sm { padding: 0 12px; }
  .hd-signin { display: none; }
  .field-row { grid-template-columns: 1fr; }
}
