/* ============================================================
   JUNGLEBNB — design system
   Aman-school: stillness, thin serif, deep green, full-bleed.
   ============================================================ */

:root {
  --ink: #112017;            /* near-black forest */
  --forest: #15301f;         /* deep jungle green */
  --emerald: #2e6e4e;        /* living accent */
  --moss: #6e7f64;           /* muted secondary text on light */
  --bone: #f5f2ea;           /* warm ivory background */
  --bone-deep: #ece7da;      /* darker ivory band */
  --hairline: rgba(17, 32, 23, 0.18);
  --hairline-light: rgba(245, 242, 234, 0.28);
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  font-size: 19px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--emerald); color: var(--bone); }

/* ---------- type scale ---------- */
.kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--emerald);
}
.kicker--light { color: rgba(245,242,234,0.85); }

h1, h2, h3 { font-weight: 300; line-height: 1.08; }
.display-1 { font-size: clamp(52px, 8.5vw, 124px); letter-spacing: 0.01em; }
.display-2 { font-size: clamp(38px, 5vw, 72px); }
.display-3 { font-size: clamp(28px, 3.2vw, 44px); }

.lede {
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--forest);
}

/* ---------- layout primitives ---------- */
.wrap   { max-width: 1320px; margin: 0 auto; padding: 0 6vw; }
.wrap--narrow { max-width: 860px; margin: 0 auto; padding: 0 6vw; }
.section { padding: clamp(80px, 11vw, 160px) 0; }
.rule { border: 0; border-top: 1px solid var(--hairline); }

.section-head { display: flex; flex-direction: column; gap: 22px; margin-bottom: clamp(48px, 6vw, 90px); }
.section-head .rule { width: 64px; border-color: var(--emerald); }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 26px 6vw;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .5s var(--ease), padding .5s var(--ease), box-shadow .5s var(--ease);
  color: var(--bone);
}
.site-header.is-solid {
  background: rgba(245, 242, 234, 0.96);
  color: var(--ink);
  padding: 14px 6vw;
  box-shadow: 0 1px 0 var(--hairline);
  backdrop-filter: blur(8px);
}
.brand {
  font-family: var(--sans);
  font-size: 15px; letter-spacing: 0.5em; text-transform: uppercase;
  font-weight: 400;
}
.brand b { font-weight: 600; }
.site-nav { display: flex; gap: 42px; }
.site-nav a {
  font-family: var(--sans); font-size: 11.5px;
  letter-spacing: 0.28em; text-transform: uppercase;
  opacity: 0.85; transition: opacity .3s;
  padding: 6px 0; position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.site-nav a:hover { opacity: 1; }
.site-nav a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; height: 100vh; min-height: 640px;
  display: flex; align-items: flex-end;
  color: var(--bone); overflow: hidden;
  background: var(--forest);
}
.hero--short { height: 78vh; min-height: 560px; }
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: hero-drift 26s var(--ease) both;
  will-change: transform;
}
@keyframes hero-drift {
  from { transform: scale(1.12); }
  to   { transform: scale(1.0); }
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(17,32,23,0.42) 0%, rgba(17,32,23,0.05) 36%, rgba(17,32,23,0.10) 62%, rgba(17,32,23,0.78) 100%);
}
.hero__content {
  position: relative; width: 100%;
  padding: 0 6vw clamp(60px, 9vh, 110px);
  display: flex; flex-direction: column; gap: 26px;
}
.hero__content .rule { width: 72px; border-color: rgba(245,242,234,0.5); }
.hero__sub {
  max-width: 560px; font-size: 21px; font-weight: 300;
  line-height: 1.55; color: rgba(245,242,234,0.92);
}
.hero__meta {
  display: flex; gap: 38px; flex-wrap: wrap;
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(245,242,234,0.75);
}

/* ---------- intro band ---------- */
.intro-band p + p { margin-top: 1.6em; }
.intro-band .lede { margin-bottom: 1.8em; }

/* ---------- destination index (editorial rows) ---------- */
.dest-row {
  display: grid; grid-template-columns: 7fr 5fr;
  gap: clamp(36px, 5vw, 80px); align-items: center;
  padding: clamp(44px, 5vw, 72px) 0;
  border-top: 1px solid var(--hairline);
}
.dest-row:last-child { border-bottom: 1px solid var(--hairline); }
.dest-row:nth-child(even) { grid-template-columns: 5fr 7fr; }
.dest-row:nth-child(even) .dest-row__media { order: 2; }
.dest-row__media { overflow: hidden; position: relative; }
.dest-row__media img {
  width: 100%; height: clamp(320px, 34vw, 480px); object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.dest-row:hover .dest-row__media img { transform: scale(1.045); }
.dest-row__body { display: flex; flex-direction: column; gap: 18px; }
.dest-row__body h3 { font-size: clamp(32px, 3.4vw, 52px); font-weight: 300; }
.dest-row__body p { color: var(--moss); max-width: 46ch; }
.dest-row__count {
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--moss);
}

/* ---------- text link ---------- */
.tlink {
  font-family: var(--sans); font-size: 11.5px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink); display: inline-flex; align-items: center; gap: 14px;
}
.tlink::after {
  content: "→"; font-size: 14px; transition: transform .4s var(--ease);
}
.tlink:hover::after { transform: translateX(8px); }
.tlink--light { color: var(--bone); }

/* ---------- stays (editorial, no cards) ---------- */
.stay-feature {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 78vh; background: var(--forest); color: var(--bone);
}
.stay-feature__media { position: relative; overflow: hidden; min-height: 420px; }
.stay-feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stay-feature__body {
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  padding: clamp(48px, 6vw, 110px);
}
.stay-feature__body h3 { font-size: clamp(30px, 3vw, 48px); font-weight: 300; }
.stay-feature__body p { color: rgba(245,242,234,0.82); font-weight: 300; max-width: 50ch; }

.stay-list { display: flex; flex-direction: column; }
.stay-item {
  display: grid; grid-template-columns: 88px 1fr auto;
  gap: clamp(24px, 3vw, 56px); align-items: baseline;
  padding: 34px 0; border-top: 1px solid var(--hairline);
  transition: padding-left .5s var(--ease);
}
.stay-item:last-child { border-bottom: 1px solid var(--hairline); }
.stay-item:hover { padding-left: 14px; }
.stay-item__num {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.2em;
  color: var(--moss);
}
.stay-item__name { font-size: clamp(24px, 2.4vw, 34px); font-weight: 300; line-height: 1.15; }
.stay-item__meta {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--moss); margin-top: 8px;
}
.stay-item__price {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em;
  color: var(--emerald); white-space: nowrap;
}

/* ---------- stay detail ---------- */
.stay-hero-title { display: flex; flex-direction: column; gap: 20px; }
.spec-band {
  background: var(--bone-deep);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.spec-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.spec-cell {
  padding: 38px 30px; text-align: center;
  border-left: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 10px;
}
.spec-cell:first-child { border-left: 0; }
.spec-cell__label {
  font-family: var(--sans); font-size: 10.5px;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--moss);
}
.spec-cell__value { font-size: 24px; font-weight: 400; }

.highlights { display: flex; flex-direction: column; gap: 0; margin-top: 12px; }
.highlight {
  display: flex; gap: 26px; align-items: baseline;
  padding: 22px 0; border-top: 1px solid var(--hairline);
  font-size: 21px; font-weight: 300;
}
.highlight:last-child { border-bottom: 1px solid var(--hairline); }
.highlight__tick { color: var(--emerald); font-family: var(--sans); font-size: 12px; }

.btn-solid {
  display: inline-block; background: var(--forest); color: var(--bone);
  font-family: var(--sans); font-size: 11.5px;
  letter-spacing: 0.32em; text-transform: uppercase;
  padding: 22px 52px;
  transition: background .4s var(--ease), letter-spacing .4s var(--ease);
}
.btn-solid:hover { background: var(--emerald); letter-spacing: 0.4em; }

/* ---------- full-bleed interlude ---------- */
.interlude {
  position: relative; height: 64vh; min-height: 420px; overflow: hidden;
}
.interlude img {
  width: 100%; height: 130%; object-fit: cover;
  position: absolute; top: -15%;
  will-change: transform;
}
.interlude__caption {
  position: absolute; left: 6vw; bottom: 36px;
  color: var(--bone); font-family: var(--sans);
  font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase;
  text-shadow: 0 1px 14px rgba(17,32,23,0.6);
}

/* ---------- facts ---------- */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(40px, 5vw, 90px); }
.fact {
  display: flex; flex-direction: column; gap: 8px;
  padding: 26px 0; border-top: 1px solid var(--hairline);
}
.fact__label {
  font-family: var(--sans); font-size: 10.5px;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--moss);
}
.fact__value { font-size: 21px; font-weight: 300; }

/* ---------- dark manifesto band ---------- */
.band-dark {
  background: var(--forest); color: var(--bone);
}
.band-dark .kicker { color: rgba(245,242,234,0.7); }
.band-dark .lede { color: rgba(245,242,234,0.92); }
.band-dark .rule { border-color: var(--hairline-light); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink); color: rgba(245,242,234,0.78);
  padding: clamp(70px, 8vw, 110px) 6vw 48px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(36px, 5vw, 80px); margin-bottom: 80px;
}
.footer-brand { font-family: var(--sans); font-size: 16px; letter-spacing: 0.5em; text-transform: uppercase; color: var(--bone); }
.footer-brand b { font-weight: 600; }
.footer-tag { margin-top: 20px; font-weight: 300; font-size: 17px; max-width: 32ch; color: rgba(245,242,234,0.6); }
.footer-col h4 {
  font-family: var(--sans); font-size: 10.5px; font-weight: 400;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(245,242,234,0.5); margin-bottom: 22px;
}
.footer-col a {
  display: block; padding: 6px 0; font-size: 17px; font-weight: 300;
  color: rgba(245,242,234,0.82); transition: color .3s;
}
.footer-col a:hover { color: var(--bone); }
.footer-base {
  border-top: 1px solid rgba(245,242,234,0.14);
  padding-top: 34px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  font-family: var(--sans); font-size: 10.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(245,242,234,0.45);
}
.footer-base a { color: rgba(245,242,234,0.6); }
.footer-base a:hover { color: var(--bone); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .12s; }
.reveal-d2 { transition-delay: .24s; }
.reveal-d3 { transition-delay: .36s; }

/* ---------- breadcrumb ---------- */
.crumb {
  font-family: var(--sans); font-size: 10.5px;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--moss);
  display: flex; gap: 14px; align-items: center;
}
.crumb a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  body { font-size: 17.5px; }
  .site-nav {
    position: fixed; inset: 0; background: var(--forest);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 30px; transform: translateY(-100%); transition: transform .6s var(--ease);
  }
  .site-nav.is-open { transform: none; }
  .site-nav a { color: var(--bone); font-size: 14px; }
  .nav-toggle {
    display: block; background: none; border: 0; color: inherit;
    font-family: var(--sans); font-size: 11px; letter-spacing: 0.3em;
    text-transform: uppercase; cursor: pointer; z-index: 110; position: relative;
  }
  .dest-row, .dest-row:nth-child(even) { grid-template-columns: 1fr; }
  .dest-row:nth-child(even) .dest-row__media { order: 0; }
  .stay-feature { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .spec-cell:nth-child(3) { border-left: 0; }
  .spec-cell { border-top: 1px solid var(--hairline); }
  .spec-cell:nth-child(-n+2) { border-top: 0; }
  .facts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stay-item { grid-template-columns: 1fr auto; }
  .stay-item__num { display: none; }
}
