/* ============================================================
   Mekong King — Design System
   Primary brand color: #753F00 (Mekong earth / phù sa)
   Style: Clean + Bright, warm earthy accents
   Font: Be Vietnam Pro (UI) + Playfair Display (display headings)
   ============================================================ */

:root {
  /* Brand — brown scale built around #753F00 */
  --brand-50:  #FBF6EE;
  --brand-100: #F3E7D3;
  --brand-200: #E6CCA6;
  --brand-300: #D4A86F;
  --brand-400: #B97E3C;
  --brand-500: #97591A;
  --brand-600: #753F00; /* PRIMARY */
  --brand-700: #5E3300;
  --brand-800: #492700;
  --brand-900: #311A00;

  /* Accents */
  --gold:      #D99A2B; /* vàng nắng — CTA / highlight */
  --gold-soft: #F4C95D;
  --terracotta:#C75D3C; /* nhấn phụ */
  --leaf:      #4E7C59; /* xanh dừa nước */

  /* Neutrals — clean & bright */
  --bg:        #FFFDF9;
  --surface:   #FFFFFF;
  --sand:      #F7F1E7;
  --line:      #ECE3D5;
  --text:      #2A1C0E;
  --text-soft: #6B5946;
  --text-mute: #9A8771;

  --shadow-sm: 0 1px 2px rgba(74,39,0,.06), 0 1px 3px rgba(74,39,0,.05);
  --shadow-md: 0 8px 24px -8px rgba(74,39,0,.18);
  --shadow-lg: 0 24px 60px -20px rgba(74,39,0,.28);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; color: var(--brand-800); margin: 0; }
.display { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; letter-spacing: -.01em; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 999px;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform .18s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--brand-700); box-shadow: var(--shadow-lg); }
.btn-gold { background: var(--gold); color: var(--brand-900); box-shadow: 0 8px 24px -8px rgba(217,154,43,.5); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { background: transparent; color: var(--brand-700); border-color: var(--brand-200); }
.btn-ghost:hover { background: var(--brand-50); border-color: var(--brand-300); }
.btn-white { background: #fff; color: var(--brand-700); box-shadow: var(--shadow-md); }
.btn-white:hover { background: var(--brand-50); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,253,249,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 21px; color: var(--brand-700); letter-spacing: -.02em; }
.brand .mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-600), var(--terracotta));
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm);
}
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: 9px 15px; border-radius: 999px;
  font-weight: 500; font-size: 15px; color: var(--text-soft);
  transition: color .2s ease, background-color .2s ease;
}
.nav-links a:hover { color: var(--brand-700); background: var(--brand-50); }
.nav-links a.active { color: var(--brand-700); background: var(--brand-50); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--brand-700); }

/* Mobile nav */
.mobile-nav { display: none; }
@media (max-width: 920px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav { display: block; border-top: 1px solid var(--line); background: var(--surface); }
  .mobile-nav.hidden { display: none; }
  .mobile-nav ul { list-style: none; margin: 0; padding: 12px 24px 20px; }
  .mobile-nav a { display: block; padding: 13px 8px; font-weight: 500; border-bottom: 1px solid var(--line); }
}

/* On phones the brand wordmark + CTA button crowd the header — keep just the logo icon */
@media (max-width: 600px) {
  .site-header .brand { font-size: 0; gap: 0; }
  .site-header .brand .mark { font-size: initial; }
}

/* ---------- Generic section ---------- */
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-500); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.section-head { max-width: 640px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-title { font-size: clamp(28px, 4vw, 42px); }
.section-sub { color: var(--text-soft); font-size: 17px; margin-top: 14px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }

/* Tour card */
.tour-card { display: flex; flex-direction: column; cursor: pointer; }
.tour-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.tour-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tour-card:hover .tour-media img { transform: scale(1.06); }
.tour-badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,253,249,.92); color: var(--brand-700);
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.tour-fav {
  position: absolute; top: 12px; right: 12px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,253,249,.9); border: none; cursor: pointer;
  display: grid; place-items: center; color: var(--brand-600);
  transition: background-color .2s ease, transform .2s ease;
}
.tour-fav:hover { background: #fff; transform: scale(1.08); }
.tour-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tour-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--text-mute); }
.tour-meta span { display: inline-flex; align-items: center; gap: 5px; }
.tour-title { font-size: 19px; line-height: 1.3; }
.tour-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.tour-price { font-size: 22px; font-weight: 800; color: var(--brand-700); }
.tour-price small { font-size: 13px; font-weight: 500; color: var(--text-mute); }
.rating { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 14px; color: var(--brand-700); }
.rating svg { color: var(--gold); }

/* Grid helpers */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Tag / chip ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--text-soft);
  cursor: pointer; transition: all .2s ease;
}
.chip:hover { border-color: var(--brand-300); color: var(--brand-700); }
.chip.active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-800); color: #E9DDC9; padding: 64px 0 28px; margin-top: 40px; }
.site-footer a { color: #E9DDC9; transition: color .2s ease; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 18px; letter-spacing: .02em; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(233,221,201,.18);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: #C9B996;
}
.social { display: flex; gap: 10px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); transition: background-color .2s ease;
}
.social a:hover { background: var(--gold); color: var(--brand-900); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; color: var(--brand-800); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; padding: 13px 15px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-400);
  box-shadow: 0 0 0 4px rgba(151,89,26,.12);
}

/* ---------- Utilities ---------- */
.text-soft { color: var(--text-soft); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.flex { display: flex; } .items-center { align-items: center; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Focus visibility for a11y */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Skeleton loading */
.skeleton { position: relative; overflow: hidden; background: var(--sand); border-radius: 8px; }
.skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  animation: sk-shimmer 1.25s ease-in-out infinite;
}
@keyframes sk-shimmer { 100% { transform: translateX(100%); } }
.sk-line { display: block; height: 14px; margin: 10px 0; border-radius: 6px; }
.sk-fade-in { animation: sk-fade .35s ease both; }
@keyframes sk-fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
