/* =========================================================
   MULTIPAGE COMPONENTS (loaded after style.css)
   ========================================================= */

/* ---------- page transition curtain ---------- */
.pt { position: fixed; inset: 0; z-index: 190; background: var(--ink); display: grid; place-items: center; pointer-events: none; }
.pt img { width: 84px; height: 84px; }
.no-js .pt, .no-motion .pt { display: none; }

/* ---------- active nav + menu extras ---------- */
.header__nav a.is-active { color: var(--leopard); }
.header__nav a.is-active::after { transform: scaleX(1); }
.menu__links { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: 6vw; }
.menu__aside a { display: block; color: var(--sand); font-size: 14px; padding: 2px 0; transition: color .3s; }
.menu__aside a:hover { color: var(--leopard); }
.menu__aside .eyebrow { margin-bottom: 12px; }

/* ---------- link with arrow ---------- */
.link-arrow { display: inline-flex; align-items: center; gap: 16px; margin-top: 18px; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--leopard); }
.link-arrow .arrow { width: 34px; }
.link-arrow:hover .arrow, a:hover .link-arrow .arrow { width: 60px; }
.safaris .link-arrow, .plan .link-arrow { color: var(--earth); }

/* ---------- inner page hero ---------- */
.phero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: var(--ink); }
.phero--short { height: 78vh; min-height: 560px; }
.phero__media { position: absolute; inset: 0; margin: 0; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); }
.phero__shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,12,9,.55) 0%, rgba(14,12,9,0) 30%), linear-gradient(0deg, rgba(14,12,9,.9) 0%, rgba(14,12,9,.25) 60%, rgba(14,12,9,.15) 100%); }
.phero--type { background: radial-gradient(ellipse at 70% 30%, #2a1f14 0%, var(--ink) 65%); }
.phero__type { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.phero__type span { font-family: var(--serif); font-weight: 300; font-size: clamp(180px, 40vw, 760px); line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(207,134,56,.35); white-space: nowrap; }
.phero__content { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(80px, 13vh, 140px); }
.phero--facts .phero__content { bottom: clamp(130px, 19vh, 190px); }
.phero__eyebrow { overflow: hidden; }
.phero__eyebrow span { display: inline-block; }
.phero__title { font-family: var(--serif); font-weight: 300; margin: 0; font-size: clamp(46px, min(8.4vw, 13vh), 150px); line-height: .94; letter-spacing: -.025em; }
.phero__title .line { display: block; overflow: hidden; padding-bottom: .07em; }
.phero__title .line > span { display: inline-block; }
.phero__title em { color: var(--sand); }
.phero__title small { display: inline-block; font-family: var(--sans); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--leopard); font-weight: 400; vertical-align: middle; }
.phero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: 30px; flex-wrap: wrap; }
.phero__lead { max-width: 520px; margin: 0; color: var(--sand); font-size: 16px; }
.phero__facts { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 28px; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); padding-top: 16px; }
.phero__facts div { padding-right: 16px; }
.phero__facts dt { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--leopard); margin-bottom: 4px; }
.phero__facts dd { margin: 0; font-size: 14px; color: var(--ivory); }
.phero .scroll-cue { z-index: 2; }

/* ---------- split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; margin-top: clamp(80px, 10vw, 150px); }
.container > .split:first-child, .section > .split { margin-top: 0; }
.split--rev .split__img { order: 2; }
.split__img { margin: 0; aspect-ratio: 4/5; overflow: hidden; }
.split__img img { width: 100%; height: 115%; object-fit: cover; }
.split__img--map { aspect-ratio: 16/10; background: var(--sand); }
.split__img--map img { height: 100%; object-fit: contain; }
.split__text p { color: var(--sand); }
.split__text .title { margin-bottom: 26px; }
.info-block { padding: 26px 0; border-top: 1px solid var(--line); }
.info-block .eyebrow { margin-bottom: 10px; }
.info-block p:last-child { margin: 0; }

/* ---------- values ---------- */
.values { background: var(--ink-2); }
.values__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.values__list li { padding: 36px 22px 0 0; }
.values__list li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.values__list span { font-size: 11px; letter-spacing: .2em; color: var(--leopard); }
.values__list h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 2.4vw, 40px); margin: 10px 0; }
.values__list p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- itinerary ---------- */
.itin__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.itin__media { position: sticky; top: 12vh; height: 76vh; overflow: hidden; }
.itin__img { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.08); transition: opacity 1s var(--ease), transform 1.6s var(--ease-out); }
.itin__img.is-active { opacity: 1; transform: none; }
.itin__img img { width: 100%; height: 100%; object-fit: cover; }
.itin__count { position: absolute; left: 20px; bottom: 18px; z-index: 2; font-size: 11px; letter-spacing: .25em; color: var(--ivory); background: rgba(14,12,9,.55); padding: 8px 14px; border-radius: 100px; backdrop-filter: blur(6px); }
.itin__list { list-style: none; margin: 0; padding: 0; }
.itin__stage { padding: 0 0 clamp(70px, 14vh, 140px) 36px; border-left: 1px solid var(--line); position: relative; opacity: .35; transition: opacity .6s; }
.itin__stage:last-child { padding-bottom: 0; }
.itin__stage.is-active, .no-motion .itin__stage { opacity: 1; }
.itin__stage::before { content: ""; position: absolute; left: -6px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); border: 1px solid var(--leopard); transition: background .4s; }
.itin__stage.is-active::before { background: var(--leopard); }
.itin__label { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--leopard); margin: 0 0 8px; }
.itin__stage h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 3vw, 48px); margin: 0 0 16px; line-height: 1.05; }
.itin__stage p { color: var(--sand); margin: 0 0 14px; }

/* ---------- route map section ---------- */
.mapsec { background: var(--ink-2); }
.mapsec__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.mapsec__map { margin: 0; background: var(--sand); }
.mapsec__map img { width: 100%; }

/* ---------- included / info grid ---------- */
.incl__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); color: var(--sand); }
.ticks li::before { content: "\2713"; position: absolute; left: 0; top: 14px; color: var(--leopard); }
.ticks--no li::before { content: "\2014"; color: var(--muted); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); margin-top: clamp(60px, 8vw, 120px); }
.info-grid--4 { grid-template-columns: repeat(4, 1fr); margin-top: 0; }
.info-grid > div { border-top: 1px solid var(--leopard); padding-top: 24px; }
.info-grid h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 12px; }
.info-grid p, .info-grid li { color: var(--muted); }
.info-grid ul { padding-left: 18px; margin: 0; }

/* ---------- booking band ---------- */
.book { background: var(--ivory); color: var(--ink); padding: clamp(70px, 9vw, 130px) 0; }
.book__grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.book__price { font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 9vw, 150px); line-height: .9; margin: 0; }
.book__note { color: #6b6152; margin: 12px 0 0; }
.book__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- next page banner ---------- */
.next { position: relative; display: block; height: 70vh; min-height: 420px; overflow: hidden; color: var(--ivory); }
.next__img { position: absolute; inset: -12% 0; margin: 0; }
.next__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 1.6s var(--ease-out); }
.next:hover .next__img img { transform: scale(1.12); }
.next__shade { position: absolute; inset: 0; background: rgba(14,12,9,.55); transition: background .6s; }
.next:hover .next__shade { background: rgba(14,12,9,.35); }
.next__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.next__title { font-family: var(--serif); font-weight: 300; font-size: clamp(52px, 9vw, 160px); line-height: .95; letter-spacing: -.02em; transition: transform .8s var(--ease-out); }
.next__title em { color: var(--leopard-2); }
.next:hover .next__title { transform: translateX(24px); }
.next .arrow { margin-top: 30px; width: 80px; color: var(--leopard); }
.next:hover .arrow { width: 140px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: 120px 0; }
.cta-band__img { position: absolute; inset: -10% 0; margin: 0; }
.cta-band__img img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,12,9,.85), rgba(14,12,9,.35)); }
.cta-band__content { position: relative; z-index: 2; }
.cta-band .title { max-width: 1100px; }
.cta-band__actions { display: flex; gap: 12px; margin-top: 44px; flex-wrap: wrap; }

/* ---------- alternating feature rows (parks / experiences / stays) ---------- */
.prow { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; padding: clamp(50px, 7vw, 100px) 0; border-bottom: 1px solid var(--line); color: inherit; scroll-margin-top: 80px; }
.prow:first-child { padding-top: 0; }
.prow:last-child { border-bottom: 0; }
.prow--rev .prow__img { order: 2; }
.prow__img { margin: 0; aspect-ratio: 5/4; overflow: hidden; }
.prow__img img { width: 100%; height: 115%; object-fit: cover; transition: filter .8s; }
a.prow:hover .prow__img img { filter: saturate(1.15) brightness(1.05); }
.prow__num { display: block; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--leopard); margin-bottom: 18px; }
.prow__tag { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--sand) !important; margin: 18px 0 10px; }
.prow__text p { color: var(--muted); }

/* ---------- kilimanjaro tabs, cards ---------- */
.kili-tabs { display: inline-flex; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 100px; margin-bottom: clamp(50px, 6vw, 90px); }
.kili-tabs a { padding: 12px 24px; border-radius: 100px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; transition: background .4s, color .4s; }
.kili-tabs a small { color: var(--muted); margin-left: 8px; letter-spacing: .06em; text-transform: none; }
.kili-tabs a.is-active { background: var(--leopard); color: var(--ink); }
.kili-tabs a.is-active small { color: var(--ink); }
a.route { display: block; color: inherit; }
a.card { color: inherit; display: block; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--3 .card { grid-column: span 1; }
.exp-list li { list-style: none; }

/* ---------- gallery ---------- */
.masonry { columns: 3 300px; column-gap: 16px; }
.masonry__item { display: block; width: 100%; padding: 0; margin: 0 0 16px; break-inside: avoid; overflow: hidden; }
.masonry__item img { width: 100%; height: auto; transition: transform 1.2s var(--ease-out), filter .6s; filter: saturate(.9); }
.masonry__item:hover img { transform: scale(1.06); filter: saturate(1.1); }
.lightbox { position: fixed; inset: 0; z-index: 130; background: rgba(10,8,6,.95); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__fig { margin: 0; }
.lightbox__fig img { max-width: 88vw; max-height: 84vh; object-fit: contain; }
.lightbox__close { position: absolute; top: 22px; right: 22px; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); font-size: 16px; transition: transform .5s var(--ease-out), background .3s; }
.lightbox__close:hover { transform: rotate(90deg); background: var(--leopard); color: var(--ink); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); font-size: 20px; transition: background .3s, color .3s; }
.lightbox__nav:hover { background: var(--leopard); color: var(--ink); }
.lightbox__nav--prev { left: 22px; }
.lightbox__nav--next { right: 22px; }
.lightbox__count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: .3em; color: var(--muted); }

.strip__cta { margin-top: 40px; text-align: center; }
.footer__grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .values__list { grid-template-columns: repeat(3, 1fr); }
  .values__list li:nth-child(4) { padding-left: 0; border-left: 0; }
  .info-grid--4 { grid-template-columns: 1fr 1fr; }
  .menu__aside { grid-template-columns: 1fr 1fr; }
  .menu__aside > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .split, .prow, .itin__grid, .mapsec__grid, .incl__grid, .info-grid { grid-template-columns: 1fr; }
  .split--rev .split__img, .prow--rev .prow__img { order: 0; }
  .itin__media { display: none; }
  .itin__stage { opacity: 1; }
  .phero__facts { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .phero--facts .phero__content { bottom: 190px; }
  .cards--3 { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .menu__links { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
}
@media (max-width: 640px) {
  .values__list { grid-template-columns: 1fr; }
  .values__list li { padding-left: 0 !important; border-left: 0 !important; padding-bottom: 20px; }
  .info-grid--4, .cards--3 { grid-template-columns: 1fr; }
  .phero__facts dd { font-size: 13px; }
  .phero--facts .phero__content { bottom: 210px; }
  .kili-tabs { display: flex; flex-direction: column; border-radius: 20px; }
  .menu__aside { grid-template-columns: 1fr; }
  .lightbox__nav { top: auto; bottom: 16px; transform: none; }
  .next__title { font-size: 46px; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- leopard spots (brand leaflet style) ----------
   Big solid spots from the brand mark, cropped by the section edge. Only two pairings:
   orange background + black spots, or black background + orange spots.
   Shapes: assets/pattern/spots-*-{black,orange}.svg, generated by _src/pattern.js; plain background images (masks fail on file://). */
.book, .values, .plan, .footer, .slogan__panel { position: relative; isolation: isolate; }
.book::before, .values::before, .plan::before, .footer::before, .slogan__panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--spots-img) var(--spots-pos) / var(--spots-size) var(--spots-repeat, no-repeat);
}
/* corner cluster, top-right (.plan flips it to bottom-left, away from the form) */
.book, .values, .plan {
  --spots-pos: right top; --spots-size: 400px 400px;
}
/* band along the bottom */
.footer, .slogan__panel {
  --spots-pos: left bottom; --spots-size: 1200px 300px; --spots-repeat: repeat-x;
}

/* orange background, black spots */
.book { background: var(--brand-orange); color: var(--brand-black); --spots-img: url("../assets/pattern/spots-corner-black.svg"); }
.book .eyebrow { color: var(--brand-black); }
.book__note { color: rgba(28, 28, 27, .78); }
.book { --spots-size: 270px 270px; }
.plan { background: var(--brand-orange); color: var(--brand-black); --spots-img: url("../assets/pattern/spots-corner-black.svg"); --spots-size: 480px 480px; }
.plan::before { transform: scale(-1, -1); }
.plan .eyebrow, .plan .title em, .plan .link-arrow { color: var(--brand-black); }
.plan__intro p { color: rgba(28, 28, 27, .78); }
.book .btn--solid { background: var(--brand-black); color: var(--brand-orange); }
.book .btn--solid:hover { color: var(--brand-black); }
.book .btn--ghost { border-color: rgba(28, 28, 27, .45); color: var(--brand-black); }

/* black background, orange spots */
.values, .footer, .slogan__panel { background: var(--brand-black); }
.values { --spots-img: url("../assets/pattern/spots-corner-orange.svg"); }
.footer, .slogan__panel { --spots-img: url("../assets/pattern/spots-band-orange.svg"); }
.footer { padding-bottom: clamp(170px, 19vw, 270px); }

@media (max-width: 640px) {
  .values { --spots-size: 150px 150px; }
  .book { --spots-size: 170px 170px; }
  .plan { --spots-size: 200px 200px; }
  .footer { --spots-size: 800px 200px; padding-bottom: 150px; }
}

/* ---------- slogan band (home) — leaflet back cover: photo, wavy black panel, spots ---------- */
.slogan { position: relative; background: #fff; }
.slogan__photo { margin: 0; height: clamp(220px, 34vw, 460px); overflow: hidden; }
.slogan__photo img { width: 100%; height: 125%; object-fit: cover; object-position: center 40%; }
.slogan__panel { margin-top: -1px; padding: clamp(10px, 2vw, 30px) 0 clamp(260px, 30vw, 420px); color: #fff; --spots-size: 1760px 440px; }
.slogan__wave { position: absolute; left: 0; bottom: 100%; width: 100%; height: clamp(50px, 8vw, 130px); fill: var(--brand-black); display: block; }
.slogan__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 100px); align-items: center; position: relative; }
.slogan__id { text-align: center; display: grid; justify-items: center; gap: 2px; font-size: 16px; }
.slogan__id img { width: clamp(96px, 10vw, 140px); height: auto; margin: calc(clamp(96px, 10vw, 140px) * -.75) 0 22px; position: relative; }
.slogan__id a { color: #fff; transition: color .3s; }
.slogan__id a:hover { color: var(--brand-orange); }
.slogan__name { margin: 0 0 4px; font-weight: 600; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: .04em; text-transform: uppercase; color: var(--brand-orange); }
.slogan__text { margin: 0; font-family: var(--sans); font-weight: 700; text-transform: uppercase; font-size: clamp(34px, 4.6vw, 72px); line-height: .98; letter-spacing: -.01em; }
.slogan__text b { font-weight: 800; font-size: 1.32em; }
.slogan__text b span { color: var(--brand-orange); }
@media (max-width: 900px) {
  .slogan__grid { grid-template-columns: 1fr; }
  .slogan__text { text-align: center; }
  .slogan__panel { padding-bottom: 210px; --spots-size: 880px 220px; }
}

