/* Zanzibar tours — sample design. Reference: vita-travel.webflow.io (giant word over full-bleed hero, dark petrol sections, tour rows),
   pushed brighter to match turquoise and sunset. */
:root {
  --deep: #052B33;
  --deep-2: #0A3B45;
  --lagoon: #19C3B4;
  --sand: #F6EEE3;
  --sun: #FF6A2B;
  --white: #FFFFFF;
  --muted: #9DBCC0;

  --font: 'Bricolage Grotesque', system-ui, sans-serif;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--deep); color: var(--white);
  font: 400 17px/1.6 var(--font); font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 3px; }

.h2 {
  font-weight: 800; font-size: clamp(2.4rem, 6vw, 5.2rem); line-height: .95;
  font-variation-settings: 'wdth' 80, 'opsz' 96; letter-spacing: -.035em; margin: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 16px/1 var(--font); text-decoration: none;
  transition: background-color .25s, color .25s, transform .3s cubic-bezier(.2,.8,.2,1);
}
.btn:hover { transform: translateY(-2px); }
.btn--sun { background: var(--sun); color: var(--white); }
.btn--sun:hover { background: #ff7f47; }
.btn--glass { background: rgb(255 255 255 / .16); color: var(--white); backdrop-filter: blur(12px); border: 1px solid rgb(255 255 255 / .35); }
.btn--glass:hover { background: rgb(255 255 255 / .28); }
.btn--big { min-height: 60px; padding: 0 36px; font-size: 18px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 28px; padding: 16px var(--gut);
  transition: background-color .35s, padding .35s;
}
.nav.is-scrolled { background: rgb(5 43 51 / .82); backdrop-filter: blur(14px); padding-block: 10px; }
.nav__logo {
  margin-right: auto; text-decoration: none; display: flex; align-items: baseline; gap: 6px;
  font-weight: 800; font-size: 26px; letter-spacing: -.04em; font-variation-settings: 'wdth' 80;
}
.nav__logo span { font-weight: 400; font-size: 14px; letter-spacing: 0; color: var(--lagoon); }
.nav__links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.nav__links a { text-decoration: none; opacity: .9; }
.nav__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.lang { display: flex; border: 1px solid rgb(255 255 255 / .35); border-radius: 999px; padding: 2px; }
.lang button { background: none; border: 0; border-radius: 999px; padding: 6px 11px; font-size: 13px; font-weight: 600; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--white); color: var(--deep); }
.nav__cta { min-height: 42px; padding: 0 20px; font-size: 15px; }

/* ---------- hero ---------- */
.hero { --hw: min(33vw, 44svh); position: relative; height: 100svh; min-height: 560px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(5 43 51 / .55) 0%, rgb(5 43 51 / 0) 28%, rgb(5 43 51 / 0) 52%, rgb(5 43 51 / .7) 100%); }
.hero__top {
  position: absolute; top: 96px; left: var(--gut); right: var(--gut); z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
}
.hero__lead { margin: 0; max-width: 30ch; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.4; font-weight: 500; }
.hero__clock { margin: 0; font-size: 14px; text-align: right; color: rgb(255 255 255 / .85); }
.hero__clock strong { display: block; font-size: 30px; font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; }
.hero__word {
  position: relative; z-index: 2; margin: 0 0 -0.11em; padding: 0 1vw;
  font-weight: 800; font-size: var(--hw); line-height: .9; letter-spacing: -.03em; text-align: center;
  font-variation-settings: 'wdth' 75, 'opsz' 96; white-space: nowrap;
}
.hero__word .ch { display: inline-block; }
.hero__ctas { position: absolute; z-index: 3; right: var(--gut); bottom: calc(var(--hw) * .8 + 18px); display: flex; gap: 10px; }

/* ---------- manifesto ---------- */
.mani {
  position: relative; z-index: 2; overflow: hidden; background: var(--deep);
  margin-top: -44px; border-radius: 44px 44px 0 0; box-shadow: 0 -30px 60px -20px rgb(5 43 51 / .45);
  padding: clamp(110px, 14vw, 200px) var(--gut) clamp(80px, 10vw, 140px);
}
.mani__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 80%, transparent 100%);
}
.mani::before { /* vertical guide lines, from the reference */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgb(255 255 255 / .06) calc(25% - 1px) 25%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%); mask-image: linear-gradient(180deg, transparent, #000 30%);
}
.mani__text {
  position: relative; max-width: 1180px; margin: 0 auto;
  font-weight: 700; font-size: clamp(1.9rem, 4.4vw, 4rem); line-height: 1.06; letter-spacing: -.03em;
  font-variation-settings: 'wdth' 85, 'opsz' 96;
}
.mani__text .wd { opacity: .18; }
html:not(.js-anim) .mani__text .wd { opacity: 1; }
.mani__facts {
  position: relative; list-style: none; padding: 0; margin: clamp(56px, 8vw, 110px) auto 0; max-width: 1180px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.mani__facts li { border-top: 1px solid rgb(255 255 255 / .2); padding-top: 18px; }
.mani__facts strong { display: block; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; font-weight: 800; color: var(--lagoon); letter-spacing: -.04em; font-variation-settings: 'wdth' 80; }
.mani__facts span { color: var(--muted); font-size: 15px; }

/* ---------- tours: horizontal track ---------- */
.tours { --tint: var(--sand); background: var(--tint); color: var(--deep); transition: background-color .8s ease; }
.tours__pin { padding: clamp(80px, 10vw, 130px) 0 clamp(60px, 8vw, 100px); overflow: hidden; }
.tours__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 0 var(--gut); margin-bottom: clamp(28px, 4vw, 48px); }
.tours__hint { margin: 0; max-width: 28ch; font-size: 16px; color: #4c6a70; }
.track { list-style: none; margin: 0; padding: 0 var(--gut); display: flex; gap: 20px; width: max-content; }
.tour {
  position: relative; flex: none; width: clamp(280px, 27vw, 400px); aspect-ratio: 3 / 4.1;
  border-radius: 22px; overflow: hidden; background: var(--deep); color: var(--white); isolation: isolate;
}
.tour img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.8,.2,1); z-index: -2; }
.tour::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(5 43 51 / 0) 35%, rgb(5 43 51 / .92) 100%); }
.tour:hover img { transform: scale(1.06); }
.tour__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; }
.tour__tag { display: inline-block; margin: 0 0 10px; padding: 5px 11px; border-radius: 999px; background: rgb(255 255 255 / .18); backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; }
.tour h3 { margin: 0 0 8px; font-weight: 800; font-size: clamp(26px, 2.3vw, 34px); line-height: 1; letter-spacing: -.03em; font-variation-settings: 'wdth' 80; }
.tour p:not(.tour__tag) { margin: 0 0 14px; font-size: 15px; line-height: 1.45; color: rgb(255 255 255 / .85); }
.tour__ask { font-weight: 600; font-size: 15px; color: var(--lagoon); text-underline-offset: 4px; }
.tour__ask:hover { color: var(--white); }

/* tours as a turning wheel (motion on): cards ride an arc like a sail coming about */
.js-anim .tours__pin { height: 100svh; padding: 0; position: relative; }
.js-anim .tours__head { position: absolute; top: 96px; left: 0; right: 0; z-index: 3; }
.tours__stage { position: relative; }
.js-anim .tours__stage { position: absolute; inset: 0; }
.tours__ghost { display: none; }
.js-anim .tours__ghost {
  display: block; position: absolute; left: 0; right: 0; top: 50%; margin: 0; z-index: 0;
  text-align: center; white-space: nowrap; pointer-events: none;
  font-weight: 800; font-size: 15vw; line-height: 1; letter-spacing: -.02em; font-variation-settings: 'wdth' 75;
  color: rgb(5 43 51 / .07);
}
.js-anim .track { position: absolute; inset: 0; padding: 0; width: auto; display: block; z-index: 1; }
.js-anim .tours .tour {
  position: absolute; left: 50%; top: 50%; width: var(--cw); height: calc(var(--cw) * 1.36); margin: calc(var(--cw) * -.68) 0 0 calc(var(--cw) / -2);
  transform-origin: 50% calc(50% + var(--r)); will-change: transform;
  box-shadow: 0 30px 50px -25px rgb(5 43 51 / .55);
}
.js-anim .tours { --cw: clamp(220px, 21vw, 320px); --r: max(900px, 85vw); }
.js-anim .tour__body > :not(.tour__tag) { display: none; }
.js-anim .tour::after { background: linear-gradient(180deg, rgb(5 43 51 / 0) 60%, rgb(5 43 51 / .55) 100%); }
.tours__info { display: none; }
.js-anim .tours__info {
  display: block; position: absolute; left: var(--gut); bottom: 5svh; z-index: 150; width: min(440px, 38vw);
  background: var(--deep); color: var(--white); border-radius: 24px; padding: 26px 28px 24px;
  box-shadow: 0 30px 60px -30px rgb(5 43 51 / .6);
}
.tours__info h3 { margin: 0 0 8px; font-weight: 800; font-size: clamp(30px, 3.4vw, 52px); line-height: .95; letter-spacing: -.02em; font-variation-settings: 'wdth' 80; }
.tours__info p { margin: 0 0 14px; font-size: 16px; color: rgb(255 255 255 / .8); }
.tours__info a { font-weight: 700; color: var(--lagoon); text-underline-offset: 5px; }
.tours__info .tour__tag { background: rgb(255 255 255 / .14); color: var(--white); }
.tours__count { display: none; }
.js-anim .tours__count {
  display: block; position: absolute; left: calc(var(--gut) + min(440px, 38vw) - 92px); bottom: calc(5svh + 22px); z-index: 151; margin: 0; color: var(--white);
  font-weight: 800; font-size: clamp(22px, 2vw, 30px); font-variant-numeric: tabular-nums; letter-spacing: 0; opacity: .6;
}

/* ---------- safari: stacked slabs ---------- */
.safari { padding: clamp(90px, 12vw, 160px) var(--gut) clamp(40px, 6vw, 80px); max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; }
.safari__intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 6vw, 70px); }
.safari__intro p { margin: 0; color: var(--muted); font-size: 18px; max-width: 42ch; }
.slab {
  position: sticky; top: 90px; height: min(78svh, 720px); margin-bottom: 40px;
  border-radius: 28px; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end;
  transform-origin: 50% 0;
}
.slab__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.slab::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(5 43 51 / 0) 45%, rgb(5 43 51 / .78) 100%); }
.slab__media { filter: saturate(1.12) contrast(1.04); }
.slab h3, .slab p { text-shadow: 0 2px 18px rgb(5 43 51 / .45); }
.slab__text { padding: clamp(24px, 4vw, 56px); max-width: 640px; }
.slab__k { margin: 0 0 10px; color: var(--lagoon); font-weight: 600; font-size: 16px; }
.slab h3 { margin: 0 0 14px; font-weight: 800; font-size: clamp(2.6rem, 6.5vw, 6rem); line-height: .92; letter-spacing: -.045em; font-variation-settings: 'wdth' 75; }
.slab p:not(.slab__k) { margin: 0 0 22px; font-size: 18px; max-width: 40ch; color: rgb(255 255 255 / .88); }

/* ---------- instagram marquee ---------- */
.ig { padding: clamp(60px, 8vw, 110px) 0; }
.ig__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 0 var(--gut); margin-bottom: 36px; flex-wrap: wrap; }
.ig__link { font-size: clamp(18px, 2vw, 24px); font-weight: 600; color: var(--lagoon); text-underline-offset: 6px; }
.marquee { overflow: hidden; }
.marquee__row { display: flex; gap: 14px; width: max-content; animation: slide 60s linear infinite; }
.marquee img { width: 220px; height: 290px; object-fit: cover; border-radius: 16px; flex: none; }
.marquee img:nth-child(even) { margin-top: 36px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- plan ---------- */
.plan {
  background: var(--sun); color: var(--deep);
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 90px); align-items: start;
  padding: clamp(80px, 10vw, 140px) max(var(--gut), calc((100vw - var(--max)) / 2));
}
.plan .h2 { color: var(--white); }
.steps { margin: 32px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; font-size: 18px; font-weight: 500; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--deep); color: var(--white); font-weight: 800;
}
.planner { display: grid; gap: 26px; background: var(--white); border-radius: 28px; padding: clamp(22px, 3vw, 40px); box-shadow: 0 30px 60px -30px rgb(5 43 51 / .45); }
.planner__picks { border: 0; padding: 0; margin: 0; }
.planner__picks legend { font-weight: 700; font-size: 18px; margin-bottom: 14px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: block; padding: 9px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; background: #EEF5F4; border: 1px solid #DCE9E7; transition: background-color .2s, color .2s; }
.chips input:checked + span { background: var(--deep); border-color: var(--deep); color: var(--white); }
.chips input:focus-visible + span { outline: 2px solid var(--lagoon); outline-offset: 2px; }
.planner__row { display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: end; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field input { height: 50px; border: 1px solid #CFE0DE; border-radius: 12px; background: #fff; padding: 0 14px; font: 400 16px var(--font); color: var(--deep); min-width: 0; }
.stepper { display: flex; align-items: center; height: 50px; border: 1px solid #CFE0DE; border-radius: 12px; }
.stepper button { width: 46px; height: 100%; background: none; border: 0; font-size: 22px; cursor: pointer; }
.stepper output { min-width: 28px; text-align: center; font-size: 17px; font-weight: 600; }
.bubble { background: #DCF8C6; border-radius: 4px 18px 18px 18px; padding: 16px 20px; }
.bubble__to { margin: 0 0 6px; font-size: 13px; color: #1f6f43; font-weight: 700; }
.bubble__msg { margin: 0; white-space: pre-line; font-size: 15px; line-height: 1.5; }
.planner__error { margin: -8px 0 0; color: #C13B0A; font-weight: 600; }
.planner .btn--big { justify-self: start; }

/* sunset: the sun sinks into the waves as you scroll through the planner */
.plan { position: relative; overflow: hidden; isolation: isolate; }
.sun {
  position: absolute; z-index: -1; left: 8%; top: 16%; width: clamp(240px, 30vw, 460px); aspect-ratio: 1; border-radius: 50%;
  background: #FFC94D; box-shadow: 0 0 0 40px rgb(255 201 77 / .18), 0 0 0 90px rgb(255 201 77 / .08);
}
.waves { position: absolute; z-index: -1; left: 0; bottom: -1px; width: 200%; height: clamp(90px, 12vw, 170px); animation: tide 14s linear infinite; }
.waves__back { fill: #0A3B45; opacity: .55; }
.waves__front { fill: var(--deep); }
@keyframes tide { to { transform: translateX(-50%); } }
.plan { padding-bottom: clamp(140px, 16vw, 230px); }
.chat { display: grid; gap: 10px; }
.chat__to { margin: 0; font-size: 13px; color: #1f6f43; font-weight: 700; }
.bubble { justify-self: end; max-width: 92%; border-radius: 18px 4px 18px 18px; }
.bubble.is-bump { animation: bump .45s cubic-bezier(.2,.9,.3,1.4); }
@keyframes bump { 40% { transform: scale(1.03); } }
.reply { justify-self: start; max-width: 85%; background: #F1F5F4; border-radius: 4px 18px 18px 18px; padding: 12px 16px; }
.reply__msg { margin: 0; font-size: 15px; line-height: 1.45; }
.reply__dots { display: inline-flex; gap: 4px; padding: 6px 2px; }
.reply__dots i { width: 7px; height: 7px; border-radius: 50%; background: #8AA5A8; animation: dot 1s infinite; }
.reply__dots i:nth-child(2) { animation-delay: .15s; }
.reply__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { transform: translateY(-4px); opacity: .5; } }
.reply.is-typing .reply__msg { display: none; }
.reply:not(.is-typing) .reply__dots { display: none; }
.fly { position: fixed; z-index: 60; pointer-events: none; padding: 9px 16px; border-radius: 999px; background: var(--deep); color: var(--white); font: 500 15px/1.2 var(--font); white-space: nowrap; }

/* ---------- footer ---------- */
.foot { position: relative; overflow: hidden; min-height: 92svh; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.foot__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.foot__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(5 43 51 / .15), rgb(5 43 51 / .75)); }
.foot__word {
  margin: 0 0 -.08em; text-align: center; white-space: nowrap;
  font-weight: 800; font-size: 26vw; line-height: .9; letter-spacing: -.015em; font-variation-settings: 'wdth' 75, 'opsz' 96;
}
.foot__word .ch { display: inline-block; }
.foot__row { position: absolute; top: clamp(90px, 12vw, 160px); left: var(--gut); right: var(--gut); display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.foot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: clamp(18px, 2vw, 26px); font-weight: 600; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.foot__small { margin: 0; font-size: 13px; color: rgb(255 255 255 / .75); max-width: 24ch; text-align: right; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav__links { display: none; }
  .plan { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .js-anim .tours { --cw: 58vw; --r: 640px; }
  .js-anim .tours__head { top: 74px; }
  .js-anim .tours__ghost { font-size: 22vw; top: 44%; }
  .js-anim .tours .tour { top: 44%; }
  .js-anim .tours__info { width: auto; right: var(--gut); bottom: 4svh; padding: 18px 20px; }
  .js-anim .tours__info h3 { font-size: 30px; }
  .js-anim .tours__info p { font-size: 14px; margin-bottom: 8px; }
  .js-anim .tours__count { left: auto; right: calc(var(--gut) + 20px); bottom: calc(4svh + 18px); font-size: 20px; }
  .sun { left: auto; right: -20%; top: 4%; width: 70vw; }
  .nav { gap: 10px; padding: 12px 16px; }
  .nav__logo { font-size: 22px; }
  .nav__logo span { display: none; }
  .nav__cta { min-height: 38px; padding: 0 16px; font-size: 14px; }
  .hero__top { top: 78px; flex-direction: column; gap: 12px; }
  .hero__lead { font-size: 17px; }
  .hero__clock { text-align: left; }
  .hero__clock strong { font-size: 24px; }
  /* the next sheet overlaps the hero by 44px: lift the giant word above it */
  .hero { padding-bottom: 40px; }
  .hero__ctas { left: var(--gut); right: var(--gut); bottom: calc(var(--hw) * .8 + 56px); }
  .hero__ctas .btn { flex: 1; padding: 0 12px; }
  .mani__facts { grid-template-columns: 1fr; gap: 18px; }
  .tours__head { flex-direction: column; align-items: start; }
  html:not(.js-anim) .tour { width: 80vw; scroll-snap-align: center; }
  html:not(.js-anim) .track { overflow-x: auto; width: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .track::-webkit-scrollbar { display: none; }

  .safari__intro { grid-template-columns: 1fr; gap: 18px; }
  .slab { top: 70px; height: 76svh; border-radius: 22px; }
  .slab::after { background: linear-gradient(180deg, rgb(5 43 51 / 0) 40%, rgb(5 43 51 / .85) 100%); }
  .slab p:not(.slab__k) { font-size: 16px; }
  .marquee img { width: 150px; height: 200px; }
  .planner__row { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
  .planner .btn--big { justify-self: stretch; }
  .foot__row { flex-direction: column; }
  .foot__small { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
