/* ==========================================================================
   Rioba Safaris — main stylesheet
   ========================================================================== */

:root {
  --ivory: #f7f3ea;
  --sand: #e8dfcc;
  --sand-deep: #d9cbb0;
  --ink: #1d2a22;          /* deep bush green */
  --ink-soft: #3c4a40;
  --muted: #6b6f66;
  --accent: #c0702a;       /* sunset ochre */
  --accent-dark: #a55c1d;
  --white: #ffffff;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --header-h: 84px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out-back: cubic-bezier(.34, 1.4, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
h3 { font-size: clamp(1.45rem, 2vw, 1.9rem); }
h1 i, h2 i, h3 i { font-style: italic; font-weight: 400; color: var(--accent); }
.on-dark h1 i, .on-dark h2 i { color: #f0c38e; }
p { margin: 0 0 1.1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75em;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: #f0c38e; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 32px; height: 1px; background: currentColor; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 9999; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .95em 1.9em;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
/* fill sweeps up from the bottom on hover */
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--fill, var(--ink));
  transform: translateY(101%);
  transition: transform .45s var(--ease);
  z-index: -1;
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: var(--fg-hover, var(--ivory)); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-solid { --bg: var(--accent); --fg: #fff; --bd: var(--accent); --fill: var(--accent-dark); --fg-hover: #fff; }
.btn-light { --fg: #fff; --bd: rgba(255,255,255,.7); --fill: #fff; --fg-hover: var(--ink); }
.btn-dark  { --bg: var(--ink); --fg: #fff; --bd: var(--ink); --fill: var(--accent); --fg-hover: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 4px;
  transition: background-size .4s var(--ease);
}
.link-arrow:hover { background-size: 100% 1px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: #fff;
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), transform .45s var(--ease);
}
.site-header.is-solid {
  background: rgba(247, 243, 234, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(29, 42, 34, .08);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner {
  height: 100%;
  display: flex; align-items: center; gap: 28px;
  max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand { position: relative; }
.brand img { height: 66px; width: auto; transition: opacity .4s var(--ease); }
/* white logo over the hero, full-colour logo once the header turns solid */
.brand .logo-color { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.site-header.is-solid .brand .logo-color { opacity: 1; }
.site-header.is-solid .brand .logo-white { opacity: 0; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: clamp(18px, 2.2vw, 34px); list-style: none; margin: 0; padding: 0; }
.main-nav a {
  position: relative;
  font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; padding: 6px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.header-cta { padding: .85em 1.5em; }
.site-header:not(.is-solid) .header-cta.btn-solid { --bd: var(--accent); }

.menu-toggle {
  width: 46px; height: 46px; flex-shrink: 0;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: transparent; border: 1px solid currentColor; border-radius: 50%;
  transition: background-color .3s var(--ease);
}
.menu-toggle span { width: 18px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.menu-toggle:hover span:first-child { transform: translateX(-3px); }
.menu-toggle:hover span:last-child { transform: translateX(3px); }

/* ---------- Drawer (slide-out menu) ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(19, 28, 22, .6);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.scrim.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
  width: min(460px, 100%);
  background: var(--ink);
  color: var(--ivory);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .6s var(--ease);
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; }
.drawer-top img { height: 56px; }
.drawer-close {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: none; color: #fff; font-size: 1.4rem; line-height: 1;
  transition: transform .4s var(--ease), background-color .3s;
}
.drawer-close:hover { transform: rotate(90deg); background: rgba(255,255,255,.08); }
.drawer-nav { padding: 12px 28px 28px; flex: 1; }
.drawer-nav > ul { list-style: none; margin: 0; padding: 0; }
.drawer-nav > ul > li {
  border-bottom: 1px solid rgba(255,255,255,.1);
  opacity: 0; transform: translateX(30px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.drawer.is-open .drawer-nav > ul > li { opacity: 1; transform: none; }
.drawer.is-open .drawer-nav > ul > li:nth-child(1) { transition-delay: .15s; }
.drawer.is-open .drawer-nav > ul > li:nth-child(2) { transition-delay: .2s; }
.drawer.is-open .drawer-nav > ul > li:nth-child(3) { transition-delay: .25s; }
.drawer.is-open .drawer-nav > ul > li:nth-child(4) { transition-delay: .3s; }
.drawer.is-open .drawer-nav > ul > li:nth-child(5) { transition-delay: .35s; }
.drawer.is-open .drawer-nav > ul > li:nth-child(6) { transition-delay: .4s; }
.drawer.is-open .drawer-nav > ul > li:nth-child(7) { transition-delay: .45s; }
.drawer-link, .drawer-sub-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 16px 0; background: none; border: 0; text-align: left;
  font-family: var(--serif); font-size: 1.75rem; color: var(--ivory); text-decoration: none;
  transition: color .3s, padding-left .35s var(--ease);
}
.drawer-link:hover, .drawer-sub-toggle:hover { color: #f0c38e; padding-left: 8px; }
.drawer-sub-toggle .plus { position: relative; width: 14px; height: 14px; }
.drawer-sub-toggle .plus::before, .drawer-sub-toggle .plus::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease);
}
.drawer-sub-toggle .plus::after { transform: rotate(90deg); }
.drawer-sub-toggle[aria-expanded="true"] .plus::after { transform: rotate(0); }
.drawer-sub {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.drawer-sub > ul { overflow: hidden; list-style: none; margin: 0; padding: 0; }
.drawer-sub.is-open { grid-template-rows: 1fr; }
.drawer-sub a {
  display: block; padding: 7px 0 7px 4px; font-size: .95rem; text-decoration: none; color: rgba(247,243,234,.75);
  transition: color .25s, transform .3s var(--ease);
}
.drawer-sub a:hover { color: #fff; transform: translateX(6px); }
.drawer-sub li:last-child a { padding-bottom: 18px; }
.drawer-foot { padding: 24px 28px 32px; border-top: 1px solid rgba(255,255,255,.1); font-size: .95rem; }
.drawer-foot a { text-decoration: none; }
.drawer-foot .btn { width: 100%; margin-bottom: 20px; }
.drawer-contact { display: grid; gap: 4px; color: rgba(247,243,234,.8); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 560px;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1.4s var(--ease), visibility 0s linear 1.4s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.hero-slide img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12);
}
/* slow Ken Burns push while the slide is on screen */
.hero-slide.is-active img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,16,12,.55) 0%, rgba(10,16,12,0) 30%),
    linear-gradient(0deg, rgba(10,16,12,.75) 0%, rgba(10,16,12,.15) 55%, rgba(10,16,12,.2) 100%);
}
.hero-copy {
  position: absolute; z-index: 2;
  left: var(--gutter); right: var(--gutter); bottom: clamp(110px, 16vh, 170px);
  max-width: 820px;
}
.hero-copy > * { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.hero-slide.is-active .hero-copy > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-copy > :nth-child(1) { transition-delay: .35s; }
.hero-slide.is-active .hero-copy > :nth-child(2) { transition-delay: .5s; }
.hero-slide.is-active .hero-copy > :nth-child(3) { transition-delay: .65s; }
.hero-slide.is-active .hero-copy > :nth-child(4) { transition-delay: .8s; }
.hero-copy p { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 560px; color: rgba(255,255,255,.88); }
.hero-copy .btn { margin-top: .6rem; }

.hero-controls {
  position: absolute; z-index: 3;
  left: var(--gutter); right: var(--gutter); bottom: clamp(34px, 6vh, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.hero-dots { display: flex; gap: 10px; flex: 1; max-width: 520px; }
.hero-dot {
  position: relative; flex: 1;
  height: 28px; padding: 0; background: none; border: 0; text-align: left;
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.65);
}
.hero-dot::before, .hero-dot::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; }
.hero-dot::before { right: 0; background: rgba(255,255,255,.3); }
.hero-dot::after { width: 0; background: #fff; }
.hero-dot.is-active { color: #fff; }
.hero-dot.is-active::after { animation: progress var(--hero-delay, 7s) linear forwards; }
.hero.is-paused .hero-dot.is-active::after { animation-play-state: paused; }
@keyframes progress { to { width: 100%; } }
.hero-dot span { position: absolute; bottom: 10px; left: 0; white-space: nowrap; }

.scroll-cue {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: rgba(255,255,255,.8);
}
.scroll-cue::after {
  content: ""; width: 1px; height: 46px;
  background: linear-gradient(#fff, #fff) 0 0 / 100% 40% no-repeat, rgba(255,255,255,.25);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { background-position: 0 -100%; } 100% { background-position: 0 250%; } }

/* ---------- Intro (media + text split) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-media { position: relative; }
.split-media .frame { overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius); }
.split-media .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.split-media:hover .frame img { transform: scale(1.04); }
.split-media .stamp {
  position: absolute; right: -24px; bottom: 40px;
  background: var(--accent); color: #fff;
  padding: 22px 26px; border-radius: var(--radius);
  font-family: var(--serif); font-size: 1.15rem; line-height: 1.25;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.4);
}
.split-media .stamp strong { display: block; font-size: 2.6rem; font-weight: 500; line-height: 1; }
.split-copy .btn { margin-top: .8rem; }

.stats { display: flex; gap: clamp(24px, 4vw, 56px); margin: 30px 0 34px; padding: 26px 0; border-top: 1px solid rgba(29,42,34,.12); border-bottom: 1px solid rgba(29,42,34,.12); }
.stat strong { display: block; font-family: var(--serif); font-size: 2.4rem; font-weight: 500; line-height: 1; color: var(--ink); }
.stat span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Safari styles rail ---------- */
.styles { background: var(--sand); overflow: hidden; }
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.rail-head .section-head { margin-bottom: 0; }
.rail-nav { display: flex; gap: 10px; flex-shrink: 0; }
.rail-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--ink); background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .3s var(--ease), color .3s var(--ease), opacity .3s;
}
.rail-btn:hover { background: var(--ink); color: var(--ivory); }
.rail-btn:disabled { opacity: .3; pointer-events: none; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 26vw, 340px);
  gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 0 var(--gutter) 8px;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.rail.is-dragging a { pointer-events: none; }
@media (min-width: 1240px) { .rail { padding-left: calc((100vw - var(--max)) / 2 + var(--gutter)); scroll-padding-left: calc((100vw - var(--max)) / 2 + var(--gutter)); } }
.style-card {
  position: relative; display: block; scroll-snap-align: start;
  aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius);
  color: #fff; text-decoration: none;
}
.style-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.style-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,16,12,.8), rgba(10,16,12,0) 60%); transition: background-color .5s; }
.style-card:hover img { transform: scale(1.07); }
.style-card .meta { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px; }
.style-card .num { font-size: .72rem; letter-spacing: .2em; color: rgba(255,255,255,.7); }
.style-card h3 { margin: 4px 0 0; font-size: 1.7rem; }
.style-card .more {
  display: block; max-height: 0; opacity: 0; overflow: hidden;
  font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
  transition: max-height .45s var(--ease), opacity .45s var(--ease), margin .45s var(--ease);
}
.style-card:hover .more, .style-card:focus-visible .more { max-height: 30px; opacity: 1; margin-top: 10px; }

/* ---------- Destinations ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.dest-card { position: relative; display: block; text-decoration: none; color: inherit; }
.dest-card .frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius); margin-bottom: 22px; }
.dest-card .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.dest-card:hover .frame img { transform: scale(1.06); }
.dest-card .frame .tag {
  position: absolute; left: 18px; top: 18px;
  padding: 6px 12px; background: rgba(247,243,234,.92); border-radius: 2px;
  font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
}
.dest-card h3 { display: flex; align-items: center; justify-content: space-between; font-size: 2rem; margin-bottom: .35em; }
.dest-card h3 .arrow { font-family: var(--sans); font-size: 1.1rem; transition: transform .4s var(--ease); }
.dest-card:hover h3 .arrow { transform: translateX(6px); }
.dest-card p { color: var(--ink-soft); font-size: .98rem; }
.dest-grid .dest-card:nth-child(2) { margin-top: clamp(0px, 6vw, 80px); }

/* ---------- Itineraries ---------- */
.trips { background: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip {
  padding: .7em 1.4em; border-radius: 999px;
  border: 1px solid rgba(29,42,34,.25); background: transparent;
  font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.trip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.trip-card {
  display: flex; flex-direction: column;
  background: var(--ivory); border-radius: var(--radius); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .4s var(--ease);
}
.trip-card:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -30px rgba(29,42,34,.45); }
.trip-card.is-hidden { display: none; }
.trip-card .frame { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.trip-card .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.trip-card:hover .frame img { transform: scale(1.06); }
.trip-card .days {
  position: absolute; left: 16px; top: 16px;
  background: var(--accent); color: #fff; padding: 6px 12px; border-radius: 2px;
  font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.trip-card .body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.trip-card .tags { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.trip-card h3 { font-size: 1.55rem; margin-bottom: 18px; }
.trip-card .foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(29,42,34,.1); }
.price small { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.price strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; }
.price span { font-size: .85rem; color: var(--muted); }
.trips-cta { text-align: center; margin-top: 56px; }
.empty-msg { display: none; grid-column: 1 / -1; text-align: center; padding: 40px 0; color: var(--muted); }
.empty-msg.is-visible { display: block; }

/* ---------- Why Rioba ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.why-item .icon { width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 50%; margin-bottom: 24px; max-width: 180px; }
.why-item .icon img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.why-item:hover .icon img { transform: scale(1.08) rotate(2deg); }
.why-item .n { font-family: var(--serif); font-size: 1rem; font-style: italic; color: var(--accent); }
.why-item h3 { margin: 6px 0 12px; }
.why-item p { font-size: .97rem; color: var(--ink-soft); }

/* ---------- Reviews (full-screen) ---------- */
.reviews { position: relative; height: 100vh; height: 100svh; min-height: 620px; color: #fff; overflow: hidden; background: var(--ink); }
.review {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 1.1s var(--ease), visibility 0s linear 1.1s;
}
.review.is-active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.review > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 8s linear; }
.review.is-active > img { transform: scale(1); }
.review::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,16,12,.82) 0%, rgba(10,16,12,.45) 60%, rgba(10,16,12,.25) 100%); }
.review-copy { position: relative; z-index: 1; max-width: 760px; }
.review-copy > * { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.review.is-active .review-copy > * { opacity: 1; transform: none; }
.review.is-active .review-copy > :nth-child(2) { transition-delay: .2s; }
.review.is-active .review-copy > :nth-child(3) { transition-delay: .4s; }
.review.is-active .review-copy > :nth-child(4) { transition-delay: .55s; }
.review blockquote { margin: 0 0 28px; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.2; font-weight: 400; }
.review blockquote::before { content: "\201C"; display: block; font-size: 4.5rem; line-height: .6; color: #f0c38e; margin-bottom: 14px; }
.review cite { display: block; font-style: normal; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; }
.review cite small { display: block; margin-top: 4px; letter-spacing: .1em; text-transform: none; color: rgba(255,255,255,.7); font-size: .9rem; }
.stars { color: #f0c38e; letter-spacing: .2em; margin-bottom: 18px; }
.reviews-ui {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(30px, 6vh, 56px);
}
.reviews-ui .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.review-badges { display: flex; gap: 28px; font-size: .85rem; color: rgba(255,255,255,.85); }
.review-badges strong { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: #fff; line-height: 1.1; }
.review-nav { display: flex; align-items: center; gap: 16px; }
.review-nav .rail-btn { border-color: rgba(255,255,255,.6); color: #fff; }
.review-nav .rail-btn:hover { background: #fff; color: var(--ink); }
.review-count { font-family: var(--serif); font-size: 1.2rem; min-width: 64px; text-align: center; }

/* ---------- Stories ---------- */
.stories-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: clamp(20px, 2.4vw, 32px); }
.story { display: block; text-decoration: none; color: inherit; }
.story .frame { overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius); margin-bottom: 18px; }
.story .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.story:hover .frame img { transform: scale(1.06); }
.story.featured { grid-row: span 2; }
.story.featured .frame { aspect-ratio: auto; height: calc(100% - 140px); min-height: 320px; }
.story .meta { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.story h3 { font-size: 1.45rem; transition: color .3s; }
.story.featured h3 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); }
.story:hover h3 { color: var(--accent); }

/* ---------- Plan CTA ---------- */
.plan { position: relative; color: #fff; overflow: hidden; }
.plan-bg { position: absolute; inset: -10% 0; }
.plan-bg img { width: 100%; height: 100%; object-fit: cover; }
.plan::after { content: ""; position: absolute; inset: 0; background: rgba(15,22,17,.62); }
.plan .container { position: relative; z-index: 1; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.plan-card {
  padding: clamp(40px, 6vw, 80px);
  background: rgba(247,243,234,.08);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
  transition: background-color .5s var(--ease);
}
.plan-card:hover { background: rgba(247,243,234,.14); }
.plan-card p { color: rgba(255,255,255,.85); max-width: 420px; }
.planner { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.planner img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.7); }
.planner span { font-size: .9rem; color: rgba(255,255,255,.85); line-height: 1.4; }
.planner strong { display: block; color: #fff; font-weight: 500; }

/* ---------- Trusted by ---------- */
.trusted { padding: 64px 0; border-bottom: 1px solid rgba(29,42,34,.1); }
.trusted-inner { display: flex; align-items: center; gap: 40px; }
.trusted-label { flex-shrink: 0; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); max-width: 140px; }
.marquee { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 72px; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.marquee-track img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(247,243,234,.8); padding: clamp(64px, 8vw, 110px) 0 0; font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 64px; }
.footer-top h4 { font-family: var(--sans); font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-top a { text-decoration: none; transition: color .25s; }
.footer-top a:hover { color: #f0c38e; }
.footer-brand img { height: 90px; width: auto; margin-bottom: 20px; }
.newsletter { display: flex; margin-top: 8px; border-bottom: 1px solid rgba(255,255,255,.35); }
.newsletter input { flex: 1; min-width: 0; background: none; border: 0; color: #fff; padding: 12px 0; font: inherit; }
.newsletter input::placeholder { color: rgba(255,255,255,.5); }
.newsletter input:focus { outline: none; }
.newsletter button { background: none; border: 0; color: #f0c38e; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; }
.newsletter-msg { font-size: .85rem; color: #f0c38e; min-height: 1.4em; margin-top: 8px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .3s, border-color .3s, color .3s;
}
.socials a:hover { background: #f0c38e; border-color: #f0c38e; color: var(--ink); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: rgba(247,243,234,.6); }
.footer-bottom a { text-decoration: none; }
.footer-bottom nav { display: flex; gap: 20px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.45);
  transform: scale(0); transition: transform .5s var(--ease-out-back);
}
.wa-float.is-visible { transform: scale(1); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal-img { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease); transition-delay: var(--d, 0s); }
.is-in.reveal, .is-in.reveal-left, .is-in.reveal-right { opacity: 1; transform: none; }
.is-in.reveal-img { clip-path: inset(0 0 0 0); }
/* if JS never runs, show everything */
.no-js .reveal, .no-js .reveal-left, .no-js .reveal-right { opacity: 1; transform: none; }
.no-js .reveal-img { clip-path: none; }

/* ---------- Inner page header ---------- */
.page-hero { position: relative; height: 62vh; min-height: 420px; color: #fff; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,16,12,.75), rgba(10,16,12,.2)); }
.page-hero .container { position: relative; z-index: 1; padding-bottom: clamp(40px, 7vh, 80px); }
.page-hero p { max-width: 560px; color: rgba(255,255,255,.88); font-size: 1.1rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .header-actions { margin-left: auto; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .trip-grid { grid-template-columns: repeat(2, 1fr); }
  .stories-grid { grid-template-columns: 1fr 1fr; }
  .story.featured { grid-column: span 2; grid-row: auto; }
  .story.featured .frame { height: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-media .stamp { right: 16px; }
  .dest-grid { grid-template-columns: 1fr; gap: 48px; }
  .dest-grid .dest-card:nth-child(2) { margin-top: 0; }
  .dest-card .frame { aspect-ratio: 4 / 3; }
  .plan-grid { grid-template-columns: 1fr; }
  .rail-nav { display: none; }
  .trusted-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .trusted-label { max-width: none; }
  .review::after { background: linear-gradient(0deg, rgba(10,16,12,.9) 0%, rgba(10,16,12,.5) 70%, rgba(10,16,12,.35) 100%); }
  .review { align-items: flex-end; padding-bottom: 190px; }
}
@media (max-width: 640px) {
  :root { --header-h: 70px; }
  body { font-size: 1rem; }
  .brand img { height: 54px; }
  .header-cta { display: none; }
  .trip-grid, .why-grid, .stories-grid { grid-template-columns: 1fr; }
  .story.featured { grid-column: auto; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .hero-dot span { display: none; }
  .hero-controls .scroll-cue { display: none; }
  .hero-dots { max-width: none; }
  .stats { gap: 20px; justify-content: space-between; }
  .stat strong { font-size: 1.9rem; }
  .review-badges { gap: 20px; }
  .reviews-ui .container { flex-direction: column; align-items: flex-start; }
  .split-media .stamp { padding: 16px 18px; bottom: 20px; }
  .split-media .stamp strong { font-size: 2rem; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
  .reveal-img { clip-path: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
}
