/* ==========================================================================
   Mekong Delta Tours
   Palette taken from the logo: deep forest green wordmark, sage foliage,
   river blue water, sand-coloured sampan. Light navbar - the logo is a
   transparent PNG with a dark wordmark and must never be inverted.
   ========================================================================== */

:root {
  --green-900: #0f3327;
  --green-800: #14452f;
  --green-700: #1b5c3f;
  --green-600: #2a7553;
  --green-200: #b9d6c4;
  --green-100: #e2efe7;

  --blue-700: #2f6d8c;
  --blue-500: #5b93b5;
  --blue-100: #dceaf2;

  --sand-500: #c8a874;
  --sand-300: #e3cfa6;
  --sand-100: #f4ead8;

  --ink: #16211c;
  --ink-soft: #40514a;
  --ink-mute: #6b7c74;
  --line: #dfe6e1;
  --bg: #ffffff;
  --bg-soft: #f6f9f6;
  --bg-cream: #fbf8f2;

  --wa: #25d366;

  --wrap: 1180px;
  --gap: 24px;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 40, 30, .06), 0 2px 8px rgba(16, 40, 30, .05);
  --shadow: 0 4px 12px rgba(16, 40, 30, .08), 0 12px 32px rgba(16, 40, 30, .07);

  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;

  --header-h: 72px;
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* clip, NOT hidden: overflow-x:hidden on html/body kills position:sticky */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); }
a:hover { color: var(--green-600); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.22;
  color: var(--green-900);
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.85rem, 1.25rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
h3 { font-size: clamp(1.12rem, 1rem + .5vw, 1.35rem); }
p  { margin: 0 0 1.05em; }

/* Source copy has some all-lowercase headings; cased for display only. */
.tcase { text-transform: capitalize; }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--green-800);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }

/* -------------------------------------------------------------- header -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 44px; height: 44px; }
.brand-txt {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.05;
  color: var(--green-900);
  display: flex;
  flex-direction: column;
}
.brand-txt em {
  font-style: normal;
  font-family: var(--sans);
  font-size: .64rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sand-500);
  font-weight: 600;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.nav-link:hover { background: var(--green-100); color: var(--green-800); }
.nav-link[aria-current="page"], .nav-link[aria-current="true"] { color: var(--green-800); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset: auto 12px 2px 12px;
  height: 2px;
  background: var(--sand-500);
  border-radius: 2px;
}
.nav-list > li { position: relative; }

.sub {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 268px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  display: none;
}
.has-sub.open .sub { display: block; }
.sub a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: .93rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.sub a:hover { background: var(--green-100); color: var(--green-800); }
.sub a[aria-current="page"] { background: var(--green-100); color: var(--green-800); font-weight: 600; }
.sub-toggle svg { transition: transform .18s ease; }
.has-sub.open .sub-toggle svg { transform: rotate(180deg); }

.nav-toggle {
  margin-left: auto;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--green-800); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------- button -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--green-700);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: .97rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--green-800); color: #fff; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-sm { padding: 9px 17px; font-size: .9rem; }
.btn-ghost { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .6); color: #fff; backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.btn-block { width: 100%; }

/* ----------------------------------------------------------------- hero -- */
.hero { position: relative; isolation: isolate; color: #fff; }
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 51, 39, .62) 0%, rgba(15, 51, 39, .72) 55%, rgba(15, 51, 39, .86) 100%);
}
.hero-in { padding: clamp(48px, 7vw, 104px) 16px; }
.hero-home .hero-in { padding-block: clamp(72px, 11vw, 148px); max-width: 820px; margin-inline: auto; text-align: center; }
.hero h1 { color: #fff; margin-bottom: .35em; text-shadow: 0 2px 18px rgba(0, 0, 0, .3); }
.hero-lead { font-size: clamp(1rem, .95rem + .4vw, 1.18rem); color: rgba(255, 255, 255, .94); max-width: 62ch; margin-inline: auto; }
.hero-ctas, .hero-meta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.hero-tour .hero-in { max-width: var(--wrap); }
.hero-tour .hero-ctas, .hero-tour .hero-meta { justify-content: flex-start; }

.crumbs { font-size: .88rem; color: rgba(255, 255, 255, .82); margin-bottom: 14px; }
.crumbs a { color: rgba(255, 255, 255, .92); }
.crumbs span[aria-hidden] { margin: 0 6px; opacity: .6; }

.page-head {
  background: linear-gradient(180deg, var(--green-100), var(--bg));
  border-bottom: 1px solid var(--line);
  padding: clamp(34px, 5vw, 60px) 0;
}

/* --------------------------------------------------------------- layout -- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 352px;
  gap: clamp(24px, 3.5vw, 56px);
  align-items: start;
  padding-block: clamp(32px, 4.5vw, 64px);
}
.col-main { min-width: 0; }
.col-side { position: sticky; top: calc(var(--header-h) + 20px); }

.prose { padding-block: clamp(32px, 4.5vw, 64px); max-width: 78ch; }
.home-prose { max-width: var(--wrap); }

.col-main h2, .prose h2 { margin-top: 1.7em; }
.col-main h2:first-child, .prose h2:first-child { margin-top: 0; }
.col-main ul, .col-main ol, .prose ul, .prose ol { padding-left: 1.15em; margin: 0 0 1.2em; }
.col-main li, .prose li { margin-bottom: .45em; }
.col-main img, .prose img { border-radius: var(--r); margin: 1.3em 0; box-shadow: var(--shadow-sm); }

/* ------------------------------------------------------------------ toc -- */
/* Collapsed by default. Sticks as a slim bar; opens on demand. */
.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sand-500);
  border-radius: var(--r);
  padding: 0;
  margin-bottom: 32px;
  overflow: hidden;
}
.toc[open] { background: var(--bg-soft); border-color: var(--line); border-left-color: var(--sand-500); }

.toc-h {
  font-family: var(--sans);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
  padding: 12px 40px 12px 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: var(--bg-soft);
}
.toc-h::after {
  right: 14px;
  border-color: var(--ink-mute);
}
.toc[open] .toc-h { border-bottom: 1px solid var(--line); }
.toc-label { flex: 0 0 auto; }
/* Current section, shown while collapsed so the bar still tells you where you are. */
.toc-now {
  font-size: .78rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--green-700);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.toc[open] .toc-now { display: none; }
.toc-nav { padding: 10px 14px 14px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 38vh; overflow-y: auto; }
.toc a {
  display: block;
  padding: 5px 8px;
  border-radius: var(--r-sm);
  font-size: .92rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-left: 2px solid transparent;
}
.toc a:hover { background: var(--green-100); color: var(--green-800); }
.toc a.active { color: var(--green-800); font-weight: 600; border-left-color: var(--green-600); background: var(--green-100); }

.toc > *:not(summary) { margin-bottom: 0; }

/* Sticky as a slim collapsed bar, on every width. */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 10px);
  z-index: 20;
  box-shadow: var(--shadow-sm);
}
.toc[open] { box-shadow: var(--shadow); }

/* ---------------------------------------------------------- booking card -- */
.booking-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 22px;
}
.booking-card h2 { font-size: 1.22rem; margin-bottom: .3em; }
.price {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  color: #fff;
  border-radius: var(--r);
  padding: 15px 18px;
  margin-bottom: 20px;
}
.price-label { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; opacity: .85; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; margin: 4px 0 2px; }
.price-row s { opacity: .66; font-size: .95rem; }
.price-row strong { font-size: 1.72rem; font-family: var(--serif); }
.price-off { background: var(--sand-500); color: var(--green-900); font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.price-note { font-size: .82rem; opacity: .9; }
.booking-sub { font-size: .93rem; color: var(--ink-soft); }
.booking-alt { font-size: .9rem; color: var(--ink-mute); margin: 14px 0 0; text-align: center; }

/* ----------------------------------------------------------------- form -- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .83rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus { background: #fff; border-color: var(--green-600); }
.field input[aria-invalid="true"] { border-color: #c0392b; background: #fdf3f2; }

.form-msg { margin: 12px 0 0; font-size: .92rem; min-height: 0; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--green-700); font-weight: 600; }
.form-msg.err { color: #a93226; font-weight: 600; }
.form-msg a { color: inherit; }

.form-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 34px);
  max-width: 520px;
}
.form-panel-wide { max-width: 620px; margin-inline: auto; }

/* ---------------------------------------------------------------- bands -- */
.band { padding-block: clamp(36px, 5vw, 72px); }
.band-h { text-align: center; margin-bottom: .25em; }
.band-sub { text-align: center; color: var(--ink-mute); margin-bottom: 36px; }

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
  gap: var(--gap);
}
.card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card a:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-200); }
.card img { width: 100%; height: 190px; object-fit: cover; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-kicker {
  font-size: .67rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sand-500);
}
.card-h { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; color: var(--green-900); line-height: 1.25; }
.card-desc { font-size: .9rem; color: var(--ink-soft); line-height: 1.55; }
.card-go {
  font-size: .84rem;
  font-weight: 600;
  color: var(--green-600);
  margin-top: auto;
  padding-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.card-go::after { content: "\2192"; transition: transform .18s ease; }
.card a:hover .card-go { color: var(--green-800); }
.card a:hover .card-go::after { transform: translateX(3px); }

/* ------------------------------------------------------- details / tables -- */
details {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0 18px;
  margin-bottom: 10px;
  background: #fff;
}
details[open] { background: var(--bg-soft); border-color: var(--green-200); }
summary {
  cursor: pointer;
  padding: 15px 28px 15px 0;
  font-weight: 600;
  color: var(--green-900);
  list-style: none;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--green-600);
  border-bottom: 2px solid var(--green-600);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details > *:not(summary) { margin-bottom: 14px; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.3em 0; border: 1px solid var(--line); border-radius: var(--r); }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .94rem; }
.table-scroll th, .table-scroll td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.table-scroll th { background: var(--green-100); color: var(--green-900); font-weight: 700; }
.table-scroll tr:last-child td { border-bottom: 0; }

.policy-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 1.4em; }
.policy { background: var(--bg-cream); border: 1px solid var(--sand-300); border-radius: var(--r); padding: 18px 20px; }
.policy h3 { font-size: 1rem; margin-bottom: .5em; color: var(--green-800); }
.policy ul { margin: 0; padding-left: 1.1em; }
.policy li { font-size: .91rem; color: var(--ink-soft); }

.contact-info { margin-top: 32px; }

/* --------------------------------------------------------------- footer -- */
.site-footer { background: var(--green-900); color: rgba(255, 255, 255, .8); margin-top: clamp(40px, 6vw, 88px); }
.foot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(26px, 3.5vw, 48px);
  padding-block: clamp(40px, 5vw, 64px);
}
.foot h2 { color: #fff; font-family: var(--sans); font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { color: rgba(255, 255, 255, .8); text-decoration: none; font-size: .94rem; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-brand img { width: 62px; height: 62px; background: #fff; border-radius: 12px; padding: 5px; margin-bottom: 14px; }
.foot-brand p { font-size: .92rem; max-width: 34ch; }
.foot-contact li { font-size: .94rem; }
.foot-bar { border-top: 1px solid rgba(255, 255, 255, .13); padding-block: 18px; }
.foot-bar p { margin: 0; font-size: .86rem; color: rgba(255, 255, 255, .6); }

/* ------------------------------------------------------------- whatsapp -- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .42);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.07); color: #fff; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .col-side { position: static; }
  .booking-card { max-width: 560px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { width: 100%; justify-content: space-between; padding: 13px 10px; font-size: 1rem; }
  .nav-link[aria-current="page"]::after { display: none; }
  .sub {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--green-200);
    border-radius: 0;
    margin: 0 0 8px 10px;
    padding: 0 0 0 8px;
    min-width: 0;
  }
  .has-sub.open .sub { display: block; }
  .nav-cta { margin-top: 12px; width: 100%; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .card img { height: 172px; }
  .brand img { width: 38px; height: 38px; }
  .brand-txt { font-size: .98rem; }
  .booking-card, .form-panel { padding: 18px; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .policy-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------- a11y prefs */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .wa-float, .toc, .booking-card, .site-footer { display: none !important; }
  body { font-size: 12pt; }
}
