/* Vanuatu Jungle Zipline — public site.
   Canopy greens and basalt, with harness yellow kept for the actions that book. */
:root {
  --canopy: #17352A;
  --fern: #2F6B4A;
  --basalt: #26231F;
  --mist: #EEF3EC;
  --line: #D7DDD3;
  --quiet: #5B6157;
  --harness: #F3C623;
  --harness-deep: #D9AC0C;
  --danger: #A3271F;
  --white: #FFFFFF;
  --display: 'Archivo', 'Arial Narrow', sans-serif;
  --body: 'Atkinson Hyperlegible', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--basalt); font: 400 1.0625rem/1.6 var(--body); }
img { max-width: 100%; }
a { color: var(--fern); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--harness); outline-offset: 2px;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--harness); color: var(--basalt); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(680px, 100% - 32px); }
h1, h2, h3 { font-family: var(--display); font-stretch: 75%; font-weight: 800; line-height: 1.02; letter-spacing: -.01em; color: var(--canopy); margin: 0 0 .4em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.4em; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: 1.2rem; }
.small { font-size: .9rem; color: var(--quiet); }

/* buttons: yellow only where it books or pays */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.3em; border-radius: 4px;
  border: 2px solid transparent; font: 700 1rem/1.1 var(--body); text-decoration: none; cursor: pointer; }
.btn-go { background: var(--harness); color: var(--basalt); border-color: var(--harness); }
.btn-go:hover { background: var(--harness-deep); border-color: var(--harness-deep); }
.btn-quiet { background: transparent; color: var(--canopy); border-color: var(--canopy); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-small { min-height: 40px; padding: .5em 1em; font-size: .95rem; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* top bar */
.topbar { background: var(--canopy); color: var(--white); position: sticky; top: 0; z-index: 5; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.brand { font-family: var(--display); font-stretch: 70%; font-weight: 800; font-size: 1.35rem; color: var(--white); text-decoration: none; }
.topbar nav { display: flex; align-items: center; gap: 1.2rem; }
.topbar nav a:not(.btn) { color: var(--white); text-decoration: none; font-weight: 700; }
@media (max-width: 560px) { .topbar nav a:not(.btn) { display: none; } }

/* hero with the cable */
.hero { position: relative; color: var(--white); background: var(--canopy) var(--hero, none) center/cover no-repeat; min-height: min(78vh, 640px); display: flex; align-items: flex-end; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,53,42,.15) 0%, rgba(23,53,42,.85) 78%); }
.hero-in { position: relative; z-index: 1; padding: 0 0 56px; }
.hero h1 { color: var(--white); font-size: clamp(3rem, 9vw, 7rem); font-stretch: 62%; max-width: 11ch; line-height: .92; }
.hero .lede { max-width: 46ch; }
.cable { position: absolute; left: 0; right: 0; top: 10%; width: 100%; height: auto; overflow: visible; pointer-events: none; }
.cable .strand { filter: drop-shadow(0 4px 3px rgba(0,0,0,.35)); }
/* the trolley photo follows the cable and tilts with it, rolls past the low point, then settles back at the bottom of the sag */
.cable .trolley { offset-path: path('M0 30 Q600 168 1200 66'); offset-anchor: 0 0; offset-rotate: auto; offset-distance: 57.6%; animation: ride 8s cubic-bezier(.45,0,.35,1) .4s 1 both; filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); }
@keyframes ride { 0% { offset-distance: 1%; } 72% { offset-distance: 71%; } 100% { offset-distance: 57.6%; } }
@media (prefers-reduced-motion: reduce) { .cable .trolley { animation: none; } }
@media (max-width: 640px) { .cable { top: 8%; } }

/* where are you coming from */
.routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: -1px; border-bottom: 1px solid var(--line); }
.route { display: block; padding: 22px 20px 24px; color: var(--basalt); text-decoration: none; border-right: 1px solid var(--line); }
.route:last-child { border-right: 0; }
.route span { display: block; }
.route-name { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 1.35rem; color: var(--canopy); margin-bottom: .2em; }
.route:hover .route-name { text-decoration: underline; }
@media (max-width: 760px) { .routes { grid-template-columns: 1fr; } .route { border-right: 0; border-bottom: 1px solid var(--line); } }

/* tours */
.tours { padding: 24px 0 8px; }
.tour-list { display: grid; gap: 28px; }
.tour { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: center; }
.tour:nth-child(even) .tour-img { order: 2; }
.tour-img { display: block; aspect-ratio: 4 / 3; background: var(--canopy) center/cover no-repeat; border-radius: 4px; }
.tour h3 a { color: inherit; text-decoration: none; }
.tour-meta { color: var(--quiet); }
@media (max-width: 760px) { .tour { grid-template-columns: 1fr; gap: 12px; } .tour:nth-child(even) .tour-img { order: 0; } }
.safety-band { background: var(--canopy); color: var(--white); padding: 48px 0; margin: 16px 0 48px; border-top: 6px solid var(--harness); }
.safety-band h2, .safety-band h3 { color: var(--white); }
.safety-band h2 { max-width: 22ch; margin-top: 0; }
.safety-band .kicker { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .85rem; color: var(--harness); margin: 0 0 .4em; }
.safety-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 24px 0 28px; }
.safety-grid > div { border-left: 2px solid rgba(255,255,255,.25); padding-left: 16px; }
.safety-grid p { margin: 0; color: #DCE6DE; }
.safety-grid strong { color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
/* wet weather */
.rain { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 8px 0 40px; }
.rain.no-photo { grid-template-columns: 1fr; max-width: 760px; }
.rain-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: var(--mist); }
.rain .kicker { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .85rem; color: var(--fern); margin: 0 0 .4em; }
.rain h2 { margin-top: 0; }
@media (max-width: 760px) { .rain { grid-template-columns: 1fr; gap: 16px; } }
/* owner bio */
.owner { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; padding: 0 0 56px; }
.owner.no-photo { grid-template-columns: 1fr; max-width: 760px; }
.owner-photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; background: var(--mist); }
.owner .kicker { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .85rem; color: var(--fern); margin: 0 0 .4em; }
.owner h2 { margin-top: 0; }
.owner p { max-width: 65ch; }
@media (max-width: 760px) { .owner { grid-template-columns: 1fr; } .owner-photo { max-width: 220px; } }
@media (max-width: 760px) { .safety-grid { grid-template-columns: 1fr; gap: 20px; } }

/* tour page */
.tour-hero { color: var(--white); background: var(--canopy) var(--hero, none) center/cover no-repeat; position: relative; padding: 140px 0 40px; }
.tour-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,53,42,.1), rgba(23,53,42,.85)); }
.tour-hero .wrap { position: relative; }
.tour-hero h1 { color: var(--white); }
.tour-page { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); gap: 48px; padding: 32px 0 56px; }
.tour-side { align-self: start; position: sticky; top: 84px; background: var(--mist); padding: 20px; border-radius: 4px; }
.tour-side h2 { margin-top: 0; }
.times { padding-left: 1.1em; }
.prices { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.prices th, .prices td { text-align: right; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.prices th[scope="row"], .prices thead th:first-child { text-align: left; }
@media (max-width: 860px) { .tour-page { grid-template-columns: 1fr; } .tour-side { position: static; } }

/* booking flow */
.book { padding: 32px 0 64px; }
.step { border-top: 1px solid var(--line); padding: 20px 0; }
.step > h2 { font-size: 1.5rem; margin: 0 0 .6em; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-weight: 700; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], select, textarea {
  font: inherit; color: inherit; width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 4px; background: var(--white);
}
textarea { min-height: 88px; }
input:focus, select:focus, textarea:focus { border-color: var(--fern); outline: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.slot { text-align: left; padding: 12px 14px; border: 2px solid var(--line); border-radius: 4px; background: var(--white); cursor: pointer; font: inherit; color: inherit; }
.slot b { display: block; font-family: var(--display); font-stretch: 75%; font-size: 1.4rem; color: var(--canopy); }
.slot[aria-pressed="true"] { border-color: var(--canopy); background: var(--mist); box-shadow: inset 4px 0 0 var(--harness); }
.slot[disabled] { opacity: .5; cursor: not-allowed; }
.qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.qty-ctl { display: flex; align-items: center; gap: 8px; }
.qty-ctl button { width: 44px; height: 44px; border-radius: 4px; border: 2px solid var(--canopy); background: var(--white); color: var(--canopy); font-size: 1.4rem; cursor: pointer; }
.qty-ctl output { min-width: 2ch; text-align: center; font-weight: 700; font-size: 1.2rem; }
.seg { display: inline-flex; border: 2px solid var(--canopy); border-radius: 4px; overflow: hidden; }
.seg button { font: 700 1rem var(--body); padding: 10px 16px; border: 0; background: var(--white); color: var(--canopy); cursor: pointer; min-height: 44px; }
.seg button[aria-pressed="true"] { background: var(--canopy); color: var(--white); }
.summary { background: var(--mist); padding: 16px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.summary .line.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; font-size: 1.15rem; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 24px; height: 24px; margin-top: 2px; flex: none; accent-color: var(--canopy); }
.error { color: var(--danger); font-weight: 700; }
.notice { background: #FFF6D6; padding: 10px 14px; border-radius: 4px; }

/* booking view and pay */
.booking-view, .pay { padding: 32px 0 64px; }
.status { display: inline-block; font-weight: 700; padding: 4px 10px; border-radius: 4px; background: var(--mist); color: var(--canopy); }
.status-cancelled, .status-no_show { background: #FDECEC; color: var(--danger); }
.status-pending_payment { background: #FFF6D6; color: var(--basalt); }
.meet { border-left: 6px solid var(--harness); background: var(--mist); padding: 14px 16px; margin: 16px 0; }
.meet p { margin: 0 0 .3em; }
.meet-label { color: var(--quiet); }
.meet-place { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 1.6rem; color: var(--canopy); line-height: 1.1; }
.facts { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-variant-numeric: tabular-nums; }
.facts dd { margin: 0; text-align: right; }
.facts .total { font-weight: 700; border-top: 1px solid var(--line); padding-top: 6px; }
.ref { font-family: var(--display); font-stretch: 100%; font-weight: 800; letter-spacing: .04em; }
.checkin-qr { margin: 24px 0; text-align: center; }
.checkin-qr figcaption { color: var(--quiet); font-size: .95rem; }
.cancel { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 12px; }
.cancel summary { cursor: pointer; font-weight: 700; color: var(--danger); }
.testcard { border: 2px dashed var(--quiet); border-radius: 4px; padding: 16px; }
.points { columns: 2 260px; padding-left: 1.1em; }

/* footer */
.foot { background: var(--canopy); color: var(--white); padding: 32px 0; margin-top: 24px; }
.foot a { color: var(--white); }
.foot-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot p { margin: 0 0 .4em; }
.foot-name { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 1.3rem; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }

/* reviews */
.btn-canopy { background: var(--canopy); color: var(--white); border-color: var(--canopy); }
.btn-canopy:hover { background: var(--fern); border-color: var(--fern); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.reviews-home { padding: 8px 0 48px; }
.reviews-home .kicker { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .85rem; color: var(--fern); margin: 0 0 .4em; }
.reviews-home h2 { margin-top: 0; }
.stars { color: #C98A00; letter-spacing: 2px; font-size: 1.1rem; }
.stars-off { color: var(--line); }
.reviews-sum { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 20px 0; }
.review-list { display: grid; gap: 16px; margin: 20px 0; }
.review { margin: 0; background: var(--mist); border-radius: 4px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.review blockquote { margin: 0; }
.review figcaption { margin-top: auto; }
.review-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.socials { list-style: none; padding: 0; margin: 16px 0 0; display: flex; gap: 8px 20px; flex-wrap: wrap; font-weight: 700; }
.socials a { color: var(--canopy); }
.socials-foot { margin: 0 0 .6em; }
.socials-foot a { color: var(--white); }
@media (max-width: 860px) { .review-grid { grid-template-columns: 1fr; } }
.write-review { padding: 32px 0 64px; }
.rating { border: 0; padding: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating legend { float: left; width: 100%; margin-bottom: 6px; }
.rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating label { font-size: 2.4rem; line-height: 1; color: var(--line); cursor: pointer; padding: 2px; }
.rating input:checked ~ label, .rating label:hover, .rating label:hover ~ label { color: #C98A00; }
.rating input:focus-visible + label { outline: 3px solid var(--fern); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.where { padding: 24px 0 48px; }
