/* =========================================================
   Golden Sands Tours — Desert / Yellow theme
   ========================================================= */

:root {
  --sand-50:  #fdf8ee;
  --sand-100: #faf0d7;
  --sand-200: #f4e1b0;
  --amber-300:#f2c94c;
  --amber-400:#f0b429;
  --amber-500:#e09b0d;   /* primary */
  --amber-600:#c47f06;
  --terra:    #c05621;   /* accent */
  --ink-900:  #2a2118;   /* dark brown */
  --ink-800:  #3a2f22;
  --ink-700:  #5b4a35;
  --muted:    #8a7a63;
  --line:     #ecdfc4;
  --white:    #ffffff;

  --radius:   16px;
  --radius-sm:10px;
  --shadow:   0 12px 30px -12px rgba(120, 84, 12, 0.28);
  --shadow-sm:0 6px 18px -10px rgba(120, 84, 12, 0.35);
  --maxw:     1140px;
  --font-head:"Playfair Display", Georgia, serif;
  --font-body:"Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-800);
  background: var(--sand-50);
  line-height: 1.65;
  font-size: 16px;
}

/* Prevent any stray element from causing sideways scroll on mobile
   (the usual cause of the layout looking "shattered"). */
html, body { max-width: 100%; overflow-x: hidden; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.hide-sm { display: inline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 15px 32px; font-size: 1rem; }
.btn--primary {
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { box-shadow: var(--shadow); }
.btn--ghost {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.7);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255,255,255,.22); }
.btn--dark {
  background: var(--ink-900);
  color: var(--sand-100);
}
.btn--dark:hover { background: var(--ink-800); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink-900);
  color: var(--sand-200);
  font-size: 0.95rem;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  gap: 10px 22px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { transition: color .2s; }
.topbar a:hover { color: var(--amber-300); }
.topbar__contact, .topbar__social { display: flex; gap: 14px 18px; align-items: center; flex-wrap: wrap; }
/* Social + mail links: text on desktop, icon only on mobile */
.topbar__social a, .topbar__mail { display: inline-flex; align-items: center; gap: 6px; }
.topbar__social .social-icon, .topbar__mail .social-icon { display: none; line-height: 0; }
.topbar__social .social-icon svg, .topbar__mail .social-icon svg { display: block; }
.topbar__social .social-label, .topbar__mail .social-label { display: inline; }

/* ---------- Header / nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 116px;
  flex-wrap: nowrap;
}
.brand { display: flex; align-items: center; gap: 14px; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--ink-900); line-height: 1.15; flex-shrink: 0; }
.brand__logo { height: 104px; width: 104px; object-fit: contain; display: block; flex-shrink: 0; }
.footer .brand__logo--mark {
  /* Dynamic size: scales with the viewport, bounded so it never breaks the
     footer layout on any screen. */
  height: clamp(120px, 22vw, 200px);
  width: clamp(120px, 22vw, 200px);
  max-width: 100%;
}
.brand__text { max-width: 220px; }
.brand--light { color: var(--sand-100); }
.brand--light .brand__text { color: var(--sand-100); }

.nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: flex-end; }
.nav__list { display: flex; gap: 26px; flex-wrap: wrap; }
.nav__link {
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink-700);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--amber-500);
  transition: width .25s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--amber-600); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }

/* Close (X) button — only visible inside the mobile drawer */
.nav-close {
  display: none;
  position: absolute;
  top: 16px; right: 18px;
  width: 40px; height: 40px;
  font-size: 2rem; line-height: 1;
  color: var(--ink-800);
  background: none; border: 0; cursor: pointer;
  border-radius: 8px;
}
.nav-close:hover { color: var(--amber-600); background: var(--sand-100); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink-800); border-radius: 3px; transition: .3s; }
.nav-toggle.is-open span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* Scale height with the viewport but keep sensible bounds so the image
     band and the text stay proportional when zooming. */
  min-height: clamp(460px, 88vh, 900px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(240,180,41,.55), transparent 60%),
    linear-gradient(160deg, #b5651d 0%, #e09b0d 45%, #f2c94c 100%);
}
/* Background slideshow */
.hero__slideshow { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s ease-in-out;
  animation: heroZoom 8s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.hero__slide.is-active {
  opacity: 1;
  animation-play-state: running; /* slow Ken Burns zoom on the visible slide */
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1.16); }
}

.hero__overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    radial-gradient(900px 400px at 20% 100%, rgba(42,33,24,.60), transparent 55%),
    linear-gradient(180deg, rgba(42,33,24,.45), rgba(42,33,24,.55));
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; padding-top: clamp(20px, 5vw, 40px); padding-bottom: clamp(56px, 12vw, 120px); }
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: clamp(0.6rem, 1.4vw, 0.72rem);
  font-weight: 600;
  color: var(--sand-100);
  margin-bottom: clamp(6px, 1.5vw, 12px);
}
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  font-weight: 800;
  text-shadow: 0 6px 30px rgba(0,0,0,.25);
  margin-bottom: clamp(10px, 2vw, 16px);
}
.hero__subtitle { font-size: clamp(0.8rem, 1.3vw, 0.92rem); max-width: 520px; color: #fdf4e3; margin-bottom: clamp(16px, 3vw, 26px); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__actions .btn { font-size: clamp(0.85rem, 2.2vw, 1rem); padding: clamp(10px, 2vw, 15px) clamp(18px, 3.5vw, 32px); }
.hero__dunes {
  position: absolute; bottom: -1px; left: 0; right: 0; height: 120px; z-index: 1;
  background: var(--sand-50);
  clip-path: path("M0,80 C280,10 520,120 760,70 C1000,20 1200,90 1440,50 L1440,140 L0,140 Z");
  -webkit-clip-path: path("M0,80 C280,10 520,120 760,70 C1000,20 1200,90 1440,50 L1440,140 L0,140 Z");
}

/* ---------- Stats ---------- */
.stats { margin-top: -40px; position: relative; z-index: 3; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
}
.stat { text-align: center; }
.stat__value { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--amber-600); }
.stat__label { font-size: 0.85rem; color: var(--muted); }
.stat--boxed { background:#fff; border:1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 14px; box-shadow: var(--shadow-sm); }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section--muted { background: var(--sand-100); }
.section--dark { background: var(--ink-900); color: var(--sand-100); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.section__head--split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; text-align: left; max-width: none; align-items: end; }
.eyebrow { text-transform: uppercase; letter-spacing: 2.5px; font-size: 0.78rem; font-weight: 700; color: var(--amber-600); margin-bottom: 10px; }
.eyebrow--light { color: var(--amber-300); }
.section__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.7rem, 3.5vw, 2.5rem); line-height: 1.15; color: var(--ink-900); }
.section__title--light { color: #fff; }
.section__intro { color: rgba(250,240,215,.85); }
.section__note { text-align: center; color: var(--muted); font-style: italic; margin-top: 34px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Horizontal drag/swipe rail (Activities) ----------
   A single row you scroll left/right by dragging (mouse) or swiping (touch).
   No wrapping to new rows, and the scrollbar is hidden. */
.cards-rail {
  display: flex;
  flex-wrap: nowrap;
  /* Centre the cards so a short rail (few items) has no empty gap trailing on
     the right. `safe` makes it fall back to left-align when the cards overflow,
     so horizontal scrolling still reaches the first card on narrow screens. */
  justify-content: safe center;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;   /* momentum scroll on iOS */
  padding: 4px 8px 16px;               /* room for card shadow/lift */
  scrollbar-width: none;               /* Firefox: hide scrollbar */
  -ms-overflow-style: none;            /* IE/old Edge: hide scrollbar */
  cursor: grab;
  /* Very subtle softening only at the very edges — cards stay fully clear,
     just the last sliver fades so the cutoff isn't a hard line. */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%);
}
.cards-rail::-webkit-scrollbar { display: none; }  /* Chrome/Safari: hide scrollbar */
.cards-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.cards-rail.is-dragging .rail__item { pointer-events: none; }  /* don't click while dragging */

.rail__item {
  flex: 0 0 160px;                     /* compact card; next one peeks in */
  scroll-snap-align: start;
}
@media (min-width: 721px) {
  .rail__item { flex-basis: 280px; }
}

/* Packages as a horizontal rail (wider items + room for the "Most Popular"
   badge which sits above each card). */
.packages-rail { padding-top: 22px; align-items: stretch; }
.packages-rail .rail__item { flex: 0 0 250px; }
@media (min-width: 721px) {
  .packages-rail .rail__item { flex-basis: 320px; }
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__icon {
  width: 62px; height: 62px;
  display: grid; place-items: center;
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--sand-100), var(--sand-200));
  border-radius: 14px;
  margin-bottom: 18px;
}
.card__title { font-family: var(--font-head); font-size: 1.2rem; color: var(--ink-900); margin-bottom: 8px; }
.card__desc { color: var(--ink-700); font-size: 0.95rem; }
.card--dark { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.card--dark .card__title { color: #fff; }
.card--dark .card__desc { color: rgba(250,240,215,.8); }
.card--dark .card__icon { background: rgba(240,180,41,.18); }

/* Photo cards (destinations) */
.card--photo { padding: 0; overflow: hidden; }
.card__photo {
  position: relative;
  height: 190px;
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
}
.card--photo:hover .card__photo { transform: scale(1.06); }
.card__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,33,24,0) 40%, rgba(42,33,24,.35));
}
.card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.25rem;
  background: rgba(253,248,238,.92);
  box-shadow: var(--shadow-sm);
}
.card__body { padding: 22px 22px 26px; }
.card--photo .card__title { margin-bottom: 8px; }

/* ---------- Traditional framed destination cards ----------
   Each city photo sits inside an ornate, matted "haveli frame" with an
   arched (jharokha) top. The frame has a gradient border ring, an inner
   hairline mat, carved corner ornaments and a decorative divider under
   the arch. The photo always renders and stays crisp on mobile. */
.card--photo {
  position: relative;
  padding: 16px 16px 4px;                  /* frame thickness around the photo */
  border-radius: calc(var(--radius) + 4px);
  overflow: visible;                        /* let corner ornaments show */
  /* Double background: inner sand panel + gradient "gold" border ring */
  background:
    linear-gradient(180deg, var(--sand-100), var(--sand-50)) padding-box,
    linear-gradient(145deg, var(--amber-300), var(--amber-500) 45%, var(--terra)) border-box;
  border: 3px solid transparent;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(255,255,255,.5);
  transition: transform .35s ease, box-shadow .35s ease;
}
.card--photo:hover {
  box-shadow: var(--shadow), 0 0 0 4px rgba(224,155,13,.14);
  transform: translateY(-8px);
}

/* Inner hairline "mat" that frames the photo + title */
.card--photo::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--amber-400);
  border-radius: var(--radius);
  pointer-events: none;
  opacity: .7;
  z-index: 2;
}

/* Carved corner ornaments (four small dotted diamonds) */
.card--photo::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: calc(var(--radius) + 2px);
  pointer-events: none;
  z-index: 3;
  background-image:
    radial-gradient(circle, var(--terra) 38%, transparent 40%),
    radial-gradient(circle, var(--terra) 38%, transparent 40%),
    radial-gradient(circle, var(--terra) 38%, transparent 40%),
    radial-gradient(circle, var(--terra) 38%, transparent 40%);
  background-repeat: no-repeat;
  background-size: 9px 9px;
  background-position: 8px 8px, calc(100% - 8px) 8px, 8px calc(100% - 8px), calc(100% - 8px) calc(100% - 8px);
}

/* The city photo — masked into a carved jharokha (cusped arch) window.
   A border-radius arch is set as a FALLBACK so the photo is always visibly
   arched even if a browser doesn't apply the SVG mask. The mask (when
   supported) refines it into the multi-lobe Rajasthani window shape. */
.card__photo {
  position: relative;
  height: auto;
  aspect-ratio: 3 / 4;                     /* taller, like a real window */
  width: 100%;
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
  overflow: hidden;
  z-index: 1;
  /* Fallback arched shape (always renders) */
  border-radius: 48% 48% 6px 6px / 24% 24% 6px 6px;
}
/* Apply the SVG window mask only where masks are supported */
@supports ((mask-image: none) or (-webkit-mask-image: none)) {
  .card__photo {
    border-radius: 0;
    /* --window-mask is set from data/site.js (theme.windowMask); falls back to the default shape */
    -webkit-mask: var(--window-mask, url("/images/jharokha-window.svg")) center / 100% 100% no-repeat;
            mask: var(--window-mask, url("/images/jharokha-window.svg")) center / 100% 100% no-repeat;
  }
}
.card--photo:hover .card__photo { transform: scale(1.04); }
.card--photo .card__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,33,24,0) 55%, rgba(42,33,24,.32));
}

/* Decorative divider (small diamond + rule) under the arch, above the title */
.card--photo .card__body {
  position: relative;
  padding: 20px 18px 24px;
  text-align: center;
  z-index: 1;
}
.card--photo .card__body::before {
  content: "";
  display: block;
  width: 54px;
  height: 12px;
  margin: 0 auto 12px;
  background:
    linear-gradient(90deg, transparent, var(--amber-500) 45%, var(--amber-500) 55%, transparent) center/100% 2px no-repeat,
    radial-gradient(var(--terra) 42%, transparent 44%) center/12px 12px no-repeat;
}
.card--photo .card__title { margin-bottom: 6px; }

/* ---------- Adventure + Expertise: plain square photo frame (no jharokha arch) ---------- */
#adventure .card--photo,
#expertise .card--photo {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
#adventure .card--photo::before,
#adventure .card--photo::after,
#expertise .card--photo::before,
#expertise .card--photo::after { content: none; }      /* drop the mat + corner ornaments */
#adventure .card--photo .card__body::before,
#expertise .card--photo .card__body::before { content: none; }  /* drop the arch divider */
#adventure .card--photo .card__body,
#expertise .card--photo .card__body { text-align: left; }
#adventure .card__photo,
#expertise .card__photo {
  height: 220px;
  aspect-ratio: auto;                                   /* square-ish rectangle, not a tall window */
  border-radius: 0;
  -webkit-mask: none;
          mask: none;                                   /* remove the jharokha SVG mask */
}

/* ---------- Packages ---------- */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pkg {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease;
}
.pkg:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pkg--popular { border: 2px solid var(--amber-400); box-shadow: var(--shadow); }
.pkg__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 6px 16px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.pkg__icon { font-size: 2.2rem; }
.pkg__duration { display: inline-block; margin-top: 10px; font-size: 0.78rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--terra); }
.pkg__title { font-family: var(--font-head); font-size: 1.4rem; color: var(--ink-900); margin: 6px 0 8px; }
.pkg__desc { color: var(--ink-700); font-size: 0.94rem; margin-bottom: 16px; }
.pkg__list { display: grid; gap: 8px; margin-bottom: 22px; }
.pkg__list li { font-size: 0.9rem; color: var(--ink-700); }
.pkg__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px dashed var(--line); padding-top: 18px; }
.pkg__price { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--amber-600); }
.pkg__price small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.72rem; color: var(--muted); }

/* Package cards with a photo header (matches the framed look of other sections) */
.pkg--photo { padding: 0; overflow: hidden; }
.pkg--photo .pkg__duration,
.pkg--photo .pkg__title,
.pkg--photo .pkg__desc,
.pkg--photo .pkg__list,
.pkg--photo .pkg__foot { margin-inline: 26px; }
.pkg--photo .pkg__duration { margin-top: 16px; }
.pkg--photo .pkg__foot { margin-bottom: 26px; }
.pkg__photo {
  position: relative;
  height: 190px;
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
}
.pkg--photo:hover .pkg__photo { transform: scale(1.05); }
.pkg__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,33,24,0) 45%, rgba(42,33,24,.4));
}
.pkg__badge-icon {
  position: absolute; bottom: 12px; left: 22px; z-index: 2;
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: rgba(253,248,238,.94);
  box-shadow: var(--shadow-sm);
}
/* keep the "Most Popular" pill visible above the photo */
.pkg--photo .pkg__badge { top: 14px; z-index: 3; }

/* ---------- Quotes / testimonials ---------- */
.cards .quote { grid-column: span 1; }
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.quote__stars { color: var(--amber-400); letter-spacing: 2px; margin-bottom: 12px; }
.quote__text { font-style: italic; color: var(--ink-700); margin-bottom: 20px; }
.quote__author { display: flex; align-items: center; gap: 12px; }
.quote__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--amber-400), var(--terra));
  color: #fff; font-weight: 700; font-family: var(--font-head);
}
.quote__author strong { display: block; color: var(--ink-900); }
.quote__author small { color: var(--muted); }

/* testimonials sit in a 3-up grid */
.section .cards:has(.quote) { grid-template-columns: repeat(3, 1fr); }

/* ---------- Reviews carousel (auto-rotating, 3 per view) ---------- */
.reviews { position: relative; }
.reviews__viewport { overflow: hidden; }
.reviews__track {
  display: flex;
  gap: 24px;
  transition: transform .6s cubic-bezier(.22,.7,.2,1);
  will-change: transform;
}
/* Each card shows 3 per view (accounting for the two 24px gaps) */
.reviews__track .quote {
  flex: 0 0 calc((100% - 48px) / 3);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.reviews__track .quote__text { flex: 1; }
.quote__star--dim { color: #d8cbb0; }

/* Controls */
.reviews__nav {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-top: 26px;
}
.reviews__btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink-800);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s, color .2s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
}
.reviews__btn:hover { background: var(--amber-500); color: #fff; }
.reviews__dots { display: flex; gap: 8px; align-items: center; }
.reviews__dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer;
  background: var(--line); transition: background .2s, transform .2s;
}
.reviews__dot.is-active { background: var(--amber-500); transform: scale(1.3); }

/* Tablet: 2 per view */
@media (max-width: 900px) {
  .reviews__track .quote { flex-basis: calc((100% - 24px) / 2); }
}
/* Phone: 1 per view */
@media (max-width: 620px) {
  .reviews__track { gap: 0; }
  .reviews__track .quote { flex-basis: 100%; }
}

/* Narrow container for readable single-column content (FAQ) */
.container--narrow { max-width: 820px; }

/* ---------- FAQ accordion (interactive, animated) ---------- */
.faq { display: grid; gap: 14px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease, transform .2s ease;
}
.faq__item:hover { box-shadow: var(--shadow); }
.faq__item.is-open {
  border-color: var(--amber-400);
  box-shadow: var(--shadow), 0 0 0 3px rgba(240,180,41,.12);
}
/* Question row (a real button for accessibility + keyboard support) */
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  border: 0;
  background: none;
  text-align: left;
  padding: 18px 20px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--ink-900);
  transition: color .2s ease, background .2s ease;
}
.faq__q:hover { color: var(--amber-600); background: var(--sand-50); }
.faq__item.is-open .faq__q { color: var(--amber-600); }
.faq__q:focus-visible { outline: 2px solid var(--amber-400); outline-offset: -2px; }

/* Animated +/− icon drawn with two bars (the vertical bar rotates/fades out) */
.faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--sand-100);
  transition: background .25s ease, transform .3s ease;
}
.faq__item.is-open .faq__icon { background: var(--amber-500); transform: rotate(180deg); }
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 11px; height: 2px; border-radius: 2px;
  background: var(--amber-600);
  transform: translate(-50%, -50%);
  transition: transform .3s ease, background .25s ease, opacity .25s ease;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); } /* vertical bar -> makes a + */
.faq__item.is-open .faq__icon::before,
.faq__item.is-open .faq__icon::after { background: #fff; }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; } /* becomes − */

/* Answer: animated slide open/closed via max-height (set by JS) */
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.2,.7,.2,1);
}
.faq__a-inner {
  padding: 0 20px 18px;
  color: var(--ink-700);
  font-size: 0.96rem;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .3s ease .05s, transform .3s ease .05s;
}
.faq__item.is-open .faq__a-inner { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .faq__q { font-size: 0.98rem; padding: 14px 16px; }
  .faq__a-inner { padding: 0 16px 14px; font-size: 0.88rem; }
}

/* ---------- Plan Your Trip (worldwide travellers) ---------- */
/* Two-column layout: desert photo on the left, heading + steps on the right.
   The photo gives visual context so the section isn't a plain block. The photo
   column is wider so the image reads as a broad landscape that fills the space. */
.plan {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
/* Left photo, framed with a soft rounded card + a floating stat badge */
.plan__media {
  position: relative;
}
.plan__media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.plan__media-badge {
  position: absolute;
  left: 20px; bottom: 20px;
  background: rgba(253,248,238,.95);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}
.plan__media-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--amber-600); line-height: 1; }
.plan__media-label { font-size: 0.82rem; color: var(--ink-700); }

/* Right content column */
.plan__content .section__title { text-align: left; }
.plan__intro {
  margin-top: 14px;
  color: var(--ink-700);
  font-size: 1rem;
}
/* Vertical step list with a connecting line down the left of the icons */
.plan__list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  position: relative;
}
.plan__row {
  display: flex;
  gap: 18px;
  padding-bottom: 26px;
  position: relative;
}
.plan__row:last-child { padding-bottom: 0; }
/* vertical connector line between the icon badges */
.plan__row:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 27px;              /* center of the 54px icon */
  top: 54px; bottom: -2px;
  width: 2px;
  background: repeating-linear-gradient(var(--amber-300) 0 6px, transparent 6px 12px);
}
.plan__icon {
  flex: 0 0 auto;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  border-radius: 50%;
  box-shadow: 0 8px 18px -8px rgba(224,155,13,.6), inset 0 0 0 3px rgba(255,255,255,.35);
  position: relative;
  z-index: 1;
  transition: transform .3s ease;
}
.plan__icon svg { width: 26px; height: 26px; display: block; }
.plan__row:hover .plan__icon { transform: scale(1.08) rotate(-4deg); }
.plan__row-text { padding-top: 4px; }
.plan__title { font-family: var(--font-head); font-size: 1.2rem; color: var(--ink-900); margin-bottom: 6px; }
.plan__step-no { color: var(--amber-600); }
.plan__desc { color: var(--ink-700); font-size: 0.95rem; }
.plan__cta-btn { margin-top: 30px; }

@media (max-width: 860px) {
  .plan { grid-template-columns: 1fr; gap: 26px; }
  /* On mobile, show the heading + steps FIRST, photo below — so the section
     reads like the others instead of a big photo pushing content down. */
  .plan__content { order: 1; }
  .plan__media { order: 2; max-width: 560px; margin: 0 auto; width: 100%; }
  .plan__media img { min-height: 200px; max-height: 300px; }
  .plan__content .section__title { text-align: center; }
  .plan__content .eyebrow, .plan__intro { text-align: center; }
  .plan__cta-btn { display: block; width: 100%; text-align: center; }
}

/* ---------- Latest Updates (Google-Sheet driven cards) ---------- */
/* Wider container so posters display large and clearly. */
.container--wide { max-width: 1320px; }

.updates {
  display: grid;
  grid-template-columns: repeat(2, 1fr);  /* 2-up = bigger posters/cards */
  gap: 28px;
  align-items: start;
}
.update-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease;
}
.update-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.update-card__media {
  height: 300px;
  background-size: cover;
  background-position: center;
}
.update-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.update-card__date {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--terra);
  background: var(--sand-100);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.update-card__title { font-family: var(--font-head); font-size: 1.2rem; color: var(--ink-900); margin-bottom: 8px; }
.update-card__text { color: var(--ink-700); font-size: 0.95rem; flex: 1; }
.update-card__link { margin-top: 14px; font-weight: 600; color: var(--amber-600); align-self: flex-start; transition: color .2s; }
.update-card__link:hover { color: var(--terra); }

/* Clickable image area on a normal card (button reset) */
.update-card__media {
  border: 0; padding: 0; width: 100%; cursor: zoom-in; display: block;
}

/* Poster card — the image shows PROPER (its own proportions, uncropped). The
   card hugs the image; any link overlays as a button on the image. */
.update-card--poster {
  position: relative;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  line-height: 0;                 /* kill inline-image gap */
  transition: transform .2s ease, box-shadow .25s ease;
}
.update-card--poster:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.update-card__poster-img {
  display: block;
  width: 100%;
  height: auto;                   /* keep the poster's natural proportions */
  cursor: zoom-in;
}
/* Date/label chip top-left on the image */
.update-card__poster-tag {
  position: absolute;
  top: 12px; left: 12px; z-index: 2;
  font-size: 0.72rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: #fff;
  background: rgba(192,86,33,.92);     /* terracotta */
  padding: 5px 12px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
/* Link button overlaid at the bottom of the poster image */
.update-card--poster.has-link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: linear-gradient(180deg, transparent, rgba(42,33,24,.75));
  pointer-events: none;
}
.update-card__poster-btn {
  position: absolute;
  left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 3;
  font-size: 0.85rem; padding: 10px 20px;
  white-space: nowrap;
}

/* Instagram follow CTA under the cards */
.updates__insta { text-align: center; margin-top: 36px; }
.updates__insta-text { color: var(--ink-700); margin-bottom: 14px; }

@media (max-width: 680px) {
  .updates { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* ---------- Lightbox (full-size poster/image viewer) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 15, 8, .88);
  opacity: 0;
  transition: opacity .25s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,.7);
  transform: scale(.96);
  transition: transform .25s ease;
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__close {
  position: absolute;
  top: 18px; right: 22px;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 1.8rem; line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}
.lightbox__close:hover { background: rgba(255,255,255,.3); }

/* ---------- Gallery / scattered framed photo pile ----------
   Photos look like real framed prints tossed on a table: each keeps its own
   natural size, sits in a cream mat with a thin gold inner line and a soft
   shadow, is tilted a little, and is scatter-positioned by JS so frames
   overlap both horizontally AND vertically (not in a row). On hover a frame
   straightens, lifts and rises to the front. Dropping more files in
   /images/gallery just adds more frames — the scatter re-lays out to fit. */
.collage {
  position: relative;
  width: 100%;
  margin: 0 auto;
  /* Height is set by JS once frames are placed. Fallback min-height avoids a
     collapsed section before JS runs / if JS is disabled. */
  min-height: 420px;
}
.frame {
  position: absolute;           /* scatter-positioned by JS (left/top set inline) */
  top: 0; left: 0;
  padding: 10px 10px 12px;      /* even mat all around (no caption bar) */
  background: linear-gradient(180deg, #fffdf8, #fbf3df);
  border-radius: 4px;
  box-shadow:
    0 14px 26px -12px rgba(42,33,24,.55),
    0 2px 0 rgba(255,255,255,.7) inset;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
  will-change: transform;
}
/* Thin gold inner line around the photo (the "mat" edge) */
.frame__inner {
  position: relative;
  display: block;
  padding: 4px;
  border: 1px solid var(--amber-400);
  background: #fff;
  line-height: 0;               /* kill inline-image whitespace */
}
/* Photos/videos keep their ORIGINAL proportions. A max-width keeps a very
   large file from dominating; the frame shrinks to the media. */
.frame__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 260px;
}
/* Videos play silently (muted + loop) like moving photos. They get a FIXED
   box with a set aspect ratio so the frame always has a real size from the
   first paint — even before the video's metadata loads. Without this, a
   height:auto video can measure as 0px tall and the frame looks empty. */
.frame__video {
  width: 260px;
  max-width: 260px;
  height: 320px;              /* solid height so the frame is never collapsed */
  object-fit: cover;          /* fill the frame like the photos do */
  background: var(--ink-900); /* dark backing while the video buffers */
}

/* No-JS / pre-layout fallback: flow frames inline so they're never stacked
   in one spot. JS removes this by switching .collage to .is-scattered. */
.collage:not(.is-scattered) {
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.collage:not(.is-scattered) .frame {
  position: static;
}

/* Scattered base tilts (JS adds a small extra random rotation via --rot) */
.frame--tilt1 { --rot: -5deg; }
.frame--tilt2 { --rot:  4deg; }
.frame--tilt3 { --rot: -2deg; }
.frame--tilt4 { --rot:  6deg; }
.frame--tilt5 { --rot: -3deg; }
.collage.is-scattered .frame { transform: rotate(var(--rot, 0deg)); }

/* Hover: straighten, lift and bring to front */
.collage.is-scattered .frame:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.06);
  box-shadow: 0 26px 46px -16px rgba(42,33,24,.6);
  z-index: 50 !important;       /* above siblings (JS sets per-frame z-index) */
}

/* Mobile: size frames so about THREE fit side by side (with overlap) for a
   fuller scattered pile. ~31vw per frame leaves room for the overlap + mats. */
@media (max-width: 720px) {
  .frame { padding: 4px 4px 6px; }
  .frame__img { max-width: 29vw; }
  .frame__video { width: 29vw; max-width: 29vw; height: 38vw; }
}

/* Very small phones: a touch wider so photos don't get too tiny, still 3-wide. */
@media (max-width: 420px) {
  .frame__img { max-width: 30vw; }
  .frame__video { width: 30vw; max-width: 30vw; height: 40vw; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  color: #fff;
}
.cta-band__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 48px 20px; flex-wrap: wrap;
}
.cta-band h2 { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { color: #fff9ec; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-900); color: var(--sand-200); padding-top: 60px; border-top: 4px solid var(--terra); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 34px; padding-bottom: 44px; }
.footer__about { margin-top: 14px; font-size: 0.92rem; color: rgba(244,225,176,.75); }
.footer__col h4 { font-family: var(--font-head); color: #fff; margin-bottom: 16px; font-size: 1.1rem; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { color: rgba(244,225,176,.8); transition: color .2s; }
.footer__col a:hover { color: var(--amber-300); }
.footer__contact li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.9rem; margin-bottom: 6px; color: rgba(244,225,176,.8); }
.footer__contact li a { overflow-wrap: anywhere; word-break: break-word; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 12px; padding: 20px 20px; font-size: 0.82rem; color: rgba(244,225,176,.6); flex-wrap: wrap; }

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.5rem;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 24px -6px rgba(37,211,102,.6);
  transition: transform .2s;
}
.whatsapp-fab:hover { transform: scale(1.08); }

/* ---------- Interior page hero ---------- */
.page-hero {
  position: relative;
  color: #fff;
  padding: 80px 0 64px;
  background: linear-gradient(135deg, #b5651d, #e09b0d 60%, #f2c94c);
}
.page-hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,33,24,.25), rgba(42,33,24,.4)); }
.page-hero__inner { position: relative; z-index: 2; text-align: center; }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.page-hero p { color: #fdf4e3; max-width: 620px; margin: 10px auto 0; }
.crumbs { margin-top: 16px; font-size: 0.85rem; color: #fdf4e3; }
.crumbs a:hover { color: var(--amber-300); }
.crumbs span { margin: 0 6px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.about__text p { color: var(--ink-700); margin-bottom: 16px; }
.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: start; }
.contact__list { margin: 22px 0; display: grid; gap: 14px; }
.contact__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-700); }
.contact__list span { font-size: 1.2rem; flex-shrink: 0; line-height: 1.4; }
/* Make contact links clearly clickable (color + underline on hover). */
.contact__list a {
  color: var(--ink-800);
  font-weight: 500;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.contact__list a:hover {
  color: var(--amber-600);
  border-bottom-color: var(--amber-500);
}
.contact__form-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm);
}
/* Google Maps embed in the contact section */
.contact__map {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--sand-100);
}
.contact__map iframe { display: block; width: 100%; }
.contact__directions {
  display: block;
  text-align: center;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-900);
  background: var(--sand-50);
  border-top: 1px solid var(--line);
  transition: background .2s, color .2s;
}
.contact__directions:hover { background: var(--amber-500); color: #fff; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-weight: 500; font-size: 0.9rem; color: var(--ink-800); }
.form input, .form textarea {
  font-family: var(--font-body); font-size: 0.95rem;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--sand-50); color: var(--ink-900); transition: border .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--amber-400);
  box-shadow: 0 0 0 3px rgba(240,180,41,.2); background: #fff;
}
.form__hint { font-size: 0.8rem; color: var(--muted); }
.alert { border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 22px; }
.alert--success { background: #eaf7ea; border: 1px solid #b9e0b9; color: #256a2a; }
.alert p { margin-top: 4px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; }
.notfound__icon { font-size: 4rem; margin-bottom: 10px; }
.notfound h1 { font-family: var(--font-head); font-size: 2.2rem; color: var(--ink-900); margin-bottom: 10px; }
.notfound p { color: var(--muted); margin-bottom: 24px; }

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

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .cards, .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .packages { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .section .cards:has(.quote) { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .section__head--split { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Collapse nav to a drawer earlier (900px) so it never overlaps the logo,
   including when the page is zoomed to 200%. */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  /* Compact dropdown box anchored to the top-right, below the header —
     NOT a full-height sidebar. Auto height, only as tall as its links. */
  .nav {
    position: absolute;
    top: calc(100% + 8px);       /* just below the header bar */
    right: 16px;
    left: auto;
    width: min(240px, 70vw);
    height: auto;                /* only as tall as content — no blank space */
    background: var(--sand-50);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    padding: 14px 16px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 40px -14px rgba(0,0,0,.35);
    /* hidden until opened */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.98);
    transform-origin: top right;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 60;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }
  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 6px;
    right: 8px;
    width: 30px;
    height: 30px;
    font-size: 1.5rem;
    z-index: 2;
  }
  .nav__list { flex-direction: column; gap: 2px; width: 100%; }
  .nav__link { display: block; padding: 10px 24px 10px 4px; border-bottom: 1px solid var(--line); width: 100%; font-size: 1rem; }
  .nav__list li:last-child .nav__link { border-bottom: 0; }
  .nav__cta { margin-top: 12px; width: 100%; text-align: center; }
  .brand__text { max-width: none; }
}

@media (max-width: 720px) {
  .hide-sm { display: none; }
  .brand__logo { height: 92px; width: 92px; }
  .header__inner { min-height: 96px; }
  .brand__text { font-size: 0.98rem; max-width: 150px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  /* 2 cards per row on mobile (compact grid) */
  .cards, .cards--4, .cards--3, .cards--2 { grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: none; margin-inline: 0; }
  .packages { grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta-band__inner { flex-direction: column; text-align: center; padding: 32px 16px; gap: 16px; }
  .cta-band h2 { font-size: 1.25rem; }
  .cta-band p { font-size: 0.85rem; }
  .cta-band .btn { font-size: 0.9rem; }

  /* Footer: smaller text + clear separation from the CTA band above */
  .footer { padding-top: 36px; }

  .footer__grid { gap: 24px 20px; padding-bottom: 28px; }
  .footer__about { font-size: 0.82rem; margin-top: 10px; }
  .footer__col h4 { font-size: 0.98rem; margin-bottom: 10px; }
  .footer__col ul { gap: 7px; }
  .footer__col a { font-size: 0.85rem; }
  .footer__contact li { font-size: 0.82rem; }
  .footer__bottom-inner { font-size: 0.72rem; padding: 14px 16px; justify-content: center; text-align: center; }
  .form__row { grid-template-columns: 1fr; }
  /* Responsive contact form: tighter padding + full-width fields on mobile */
  .contact__form-wrap { padding: 20px 16px; }
  .form { gap: 14px; }
  .form input, .form textarea, .form select { width: 100%; box-sizing: border-box; }
  .form label { font-size: 0.85rem; }
  .hero { min-height: clamp(380px, 66vh, 620px); padding: 40px 0; }

  /* Stack the hero buttons so they never overlap on small screens */
  .hero__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__actions .btn { width: 100%; }

  /* Tighter spacing so 2-up cards fit the small screen */
  .section { padding: 44px 0; }
  .container { padding: 0 14px; }
  .card { padding: 16px 12px; }
  .card--photo .card__body { padding: 10px 10px 14px; }
  .card--photo .card__photo { max-width: none; }
  .card__title { font-size: 1rem; }
  .card__desc { font-size: 0.82rem; }
  .card__icon { width: 48px; height: 48px; font-size: 1.4rem; margin-bottom: 12px; }
  .section__title { font-size: 1.4rem; }

  /* Compact package cards to fit the rail items (shorter, less lengthy) */
  .pkg { padding: 14px 14px 16px; }
  .pkg--photo .pkg__duration,
  .pkg--photo .pkg__title,
  .pkg--photo .pkg__desc,
  .pkg--photo .pkg__list,
  .pkg--photo .pkg__foot { margin-inline: 14px; }
  .pkg__photo { height: 92px; }
  .pkg__icon { font-size: 1.6rem; }
  .pkg__duration { font-size: 0.66rem; margin-top: 8px; }
  .pkg__title { font-size: 1.02rem; margin: 4px 0 6px; }
  .pkg__desc { font-size: 0.78rem; margin-bottom: 8px; line-height: 1.4; }
  .pkg__list { gap: 4px; margin-bottom: 12px; }
  .pkg__list li { font-size: 0.76rem; }
  .pkg__foot { padding-top: 10px; gap: 8px; flex-wrap: wrap; }
  .pkg__price { font-size: 1.1rem; }
  .pkg__price small { font-size: 0.64rem; }
  .pkg__foot .btn { font-size: 0.8rem; padding: 8px 14px; }
  .pkg__badge { font-size: 0.66rem; padding: 4px 12px; }

  /* Compact top bar: show phone + email centered, and social as icons. */
  .topbar { font-size: 0.8rem; }
  .topbar__inner { flex-wrap: wrap; min-height: 36px; justify-content: center; gap: 4px 16px; padding-top: 6px; padding-bottom: 6px; }
  .topbar__contact { justify-content: center; gap: 6px 16px; }
  /* Email + social: show only the icons (hide the text labels) on mobile */
  .topbar__social { display: flex; gap: 16px; }
  .topbar__social .social-label,
  .topbar__mail .social-label { display: none; }
  .topbar__social .social-icon,
  .topbar__mail .social-icon { display: inline-flex; }

  /* Solid header on mobile — backdrop-filter blur causes flicker/jitter
     while scrolling on many phones, which looked like the header "moving". */
  .header { background: var(--sand-50); backdrop-filter: none; }
  .header__inner { min-height: 96px; }
}

/* Very small phones: scale cards/photos down to fit narrow screens */
@media (max-width: 420px) {
  /* Show the brand name (smaller) instead of hiding it */
  .brand__text { display: block; font-size: 0.8rem; max-width: 120px; line-height: 1.15; }
  .brand__logo { height: 64px; width: 64px; }
  .topbar__inner { font-size: 0.75rem; }

  /* Keep 2-up but tighten spacing/text on very small phones */
  .cards, .cards--4, .cards--3, .cards--2, .packages { gap: 10px; }
  .section { padding: 36px 0; }
  .section__title { font-size: 1.25rem; }
  .card { padding: 12px 10px; }
  .card__title { font-size: 0.9rem; }
  .card__desc { font-size: 0.76rem; }
}

/* =========================================================
   Single-page additions: animations, nav active state,
   grid variants, block button, form select, enquiry result
   ========================================================= */

/* Explicit card grid variants (replaces :has selector) */
.cards--2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

/* Full-width button (enquiry submit) */
.btn--block { width: 100%; }

/* Active nav link (scrollspy) */
.nav__link.is-active { color: var(--amber-600); }
.nav__link.is-active::after { width: 100%; }

/* Offset anchor targets so the sticky header doesn't cover them */
section[id] { scroll-margin-top: 90px; }

/* Form select — match inputs */
.form select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--sand-50);
  color: var(--ink-900);
  transition: border .2s, box-shadow .2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a7a63' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.form select:focus {
  outline: none;
  border-color: var(--amber-400);
  box-shadow: 0 0 0 3px rgba(240,180,41,.2);
  background-color: #fff;
}

/* Enquiry success result */
.enquiry-result { margin-top: 6px; }
.enquiry-result .btn { margin-top: 12px; }

/* ---------- Scroll animations (data-animate) ---------- */
[data-animate] {
  opacity: 0;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
[data-animate="fade-up"]   { transform: translateY(34px); }
[data-animate="fade-down"] { transform: translateY(-24px); }
[data-animate="fade-left"] { transform: translateX(34px); }
[data-animate].is-in {
  opacity: 1;
  transform: none;
}
/* stagger delays */
[data-delay="1"] { transition-delay: .10s; }
[data-delay="2"] { transition-delay: .20s; }
[data-delay="3"] { transition-delay: .30s; }

/* Hero entrance always animates on load (observer marks them in) */
.hero [data-animate] { transition-duration: .9s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Floating pulse on the WhatsApp FAB to draw the eye */
.whatsapp-fab { animation: waPulse 2.4s ease-in-out infinite; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 10px 24px -6px rgba(37,211,102,.6); }
  50%      { box-shadow: 0 10px 30px -4px rgba(37,211,102,.9); transform: translateY(-2px); }
}
.whatsapp-fab:hover { animation-play-state: paused; }

/* (Drifting glow removed — background photo slideshow now provides the visuals.) */

@media (max-width: 980px) {
  .cards--3 { grid-template-columns: repeat(2, 1fr); max-width: none; margin: 0; }
}
@media (max-width: 720px) {
  /* 2 cards per row on mobile — compact, screen-fitting layout */
  .cards--2, .cards--3, .cards, .cards--4 { grid-template-columns: repeat(2, 1fr); max-width: none; margin-inline: 0; }
  .card--photo .card__photo { max-width: none; margin-inline: 0; }
  /* Gentler reveal on mobile so cards don't appear to jump up/down. */
  [data-animate="fade-up"]   { transform: translateY(16px); }
  [data-animate="fade-down"] { transform: translateY(-12px); }
  [data-delay="1"], [data-delay="2"], [data-delay="3"] { transition-delay: 0s; }
}
