/* ==========================================================================
   TOUR / ACTIVITY DEMO TEMPLATE — theme tokens first, layout second.
   To re-skin for another operator, you should only need to touch :root
   (and maybe the two @font-face blocks). Everything below reads tokens.
   Current skin: Kaikoura Llama Trekking — NZ bush green, river-stone sand,
   halter-rope terracotta.
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  src: url('fonts/Fraunces-var.woff2') format('woff2');
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201A,
                 U+201C-201E, U+2022, U+2026;
}
/* latin-ext subset: covers macrons (ō in Kaikōura) so the display face
   doesn't fall back to a mismatched system serif */
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/Fraunces-var-ext.woff2') format('woff2');
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0304, U+1E00-1EFF;
}

:root {
  /* --- brand palette --- */
  --brand: #2d5540;        /* deep bush green: headers, buttons */
  --brand-dark: #22402f;   /* hover / footer */
  --accent: #c2643c;       /* terracotta: flags, links, highlights */
  --star: #e8a13d;         /* review stars */
  --paper: #faf6ee;        /* page background */
  --paper-tint: #f1ead9;   /* tinted sections */
  --card: #ffffff;
  --ink: #26231e;
  --muted: #6d675c;
  --line: #e3dbc9;

  /* --- type --- */
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
          'Helvetica Neue', Arial, sans-serif;

  /* --- layout --- */
  --shell: 1120px;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(38, 35, 30, 0.07), 0 12px 28px rgba(38, 35, 30, 0.09);
}

/* ========================= base ========================= */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* fallback for old browsers */
  overflow-x: clip;   /* keeps iOS position:fixed anchored to the viewport */
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; }

h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); margin-bottom: 1.6rem; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 20px; }
.shell-narrow { max-width: 780px; }

.section { padding: 3.4rem 0; }
.section-tinted { background: var(--paper-tint); }

.section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stars { color: var(--star); letter-spacing: 0.05em; }
.stars-lg { display: block; font-size: 1.3rem; margin-bottom: 0.2rem; }

/* ========================= buttons ========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  font: 600 0.95rem/1 var(--sans);
  padding: 0.8em 1.4em;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-lg { font-size: 1.05rem; padding: 0.9em 1.7em; }
.btn-block { width: 100%; }

.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: #a9532f; }

.btn-outline { border: 2px solid rgba(255, 255, 255, 0.85); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.15); }

.btn-ghost { color: var(--brand); border: 1.5px solid var(--line); background: var(--card); }
.btn-ghost:hover { border-color: var(--brand); }

/* ========================= header ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { box-shadow: 0 2px 14px rgba(38, 35, 30, 0.08); }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark { font-size: 1.6rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
/* mobile: let the full name wrap to two lines, hide the tagline */
.brand-text strong { font-family: var(--display); font-size: 0.95rem; line-height: 1.1; }
.brand-text small { display: none; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.06em; }

.main-nav { display: none; gap: 1.4rem; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.main-nav a:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-phone span { display: none; }
.btn-phone { padding: 0.8em; }

/* ========================= hero ========================= */

.hero { position: relative; min-height: 82vh; display: flex; align-items: flex-end; isolation: isolate; }

.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* keep the llama's head (right of frame) in view when narrow screens crop the sides */
  object-position: 80% 24%;
  z-index: -2;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top,
              rgba(20, 24, 18, 0.78) 0%,
              rgba(20, 24, 18, 0.32) 45%,
              rgba(20, 24, 18, 0.18) 100%);
}

.hero-inner { color: #fff; padding-top: 6rem; padding-bottom: 3rem; }

.hero-kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f4d9a4;
  margin-bottom: 0.7rem;
}

.hero h1 { font-size: clamp(2.1rem, 7.5vw, 3.6rem); margin-bottom: 0.9rem; text-wrap: balance; }

.hero-sub {
  max-width: 34em;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.5rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.3rem; }

.hero-trust { font-size: 0.95rem; color: rgba(255, 255, 255, 0.95); }
.hero-trust strong { font-size: 1.05rem; }

/* ========================= trek cards ========================= */

.trek-grid { display: grid; gap: 28px; }

.trek-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.trek-media { position: relative; aspect-ratio: 3 / 2; }
.trek-media img { width: 100%; height: 100%; object-fit: cover; }

.trek-flag {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: #fff;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.4em 0.9em; border-radius: 999px;
}
.trek-flag-alt { background: var(--brand); }

.trek-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.trek-body h3 { font-size: 1.45rem; }
.trek-tagline { color: var(--muted); margin-top: -0.7rem; }

.trek-facts { list-style: none; display: grid; gap: 0.45rem; }
.trek-facts li { padding-left: 1.4em; position: relative; font-size: 0.95rem; }
.trek-facts li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--brand); font-weight: 700;
}

.price-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.price-table caption {
  text-align: left; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 0.4rem;
}
.price-table td { padding: 0.42em 0; border-top: 1px solid var(--line); }
.price-table td:last-child { text-align: right; font-weight: 700; color: var(--brand); }

.trek-card .btn { margin-top: auto; }

.trek-note {
  margin-top: 1.8rem;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.trek-note strong, .trek-note em { color: var(--ink); }

/* ========================= highlights (split) ========================= */

.split { display: grid; gap: 28px; align-items: start; }

.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(20, 24, 18, 0.62); color: #fff;
  font-size: 0.78rem; padding: 0.35em 0.8em; border-radius: 999px;
}

.feature-list { list-style: none; display: grid; gap: 1.3rem; }
.feature-list h3 { font-size: 1.12rem; margin-bottom: 0.25rem; }
.feature-list p { color: var(--muted); font-size: 0.96rem; }

/* --- video section (owner's own YouTube video, compact band under the hero) --- */
.section-video { padding: 2.4rem 0; }
.video-block { margin-top: 0; }
.video-block h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.video-block > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.1rem; }
.video-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ========================= reviews ========================= */

.review-grid { display: grid; gap: 20px; }

.review-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.review-card p { font-size: 0.96rem; }
.review-card footer { color: var(--muted); font-size: 0.88rem; margin-top: auto; }
.review-card cite { font-style: normal; font-weight: 700; color: var(--ink); }

.review-more { margin-top: 1.5rem; }

.text-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.review-more a { color: var(--accent); font-weight: 600; text-decoration: none; }
.review-more a:hover { text-decoration: underline; }

/* ========================= faq ========================= */

#faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
#faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  font-weight: 650;
  font-size: 0.98rem;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: '+';
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}
#faq details[open] summary::after { transform: rotate(45deg); }
#faq details p { padding: 0 1.15rem 1.05rem; color: var(--muted); font-size: 0.95rem; }

/* ========================= find us ========================= */

.find-grid { display: grid; gap: 16px; }

.find-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.4rem;
}
.find-card h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.find-card p { font-size: 0.95rem; margin-bottom: 0.5rem; }
.find-hours { color: var(--muted); }

.find-note { margin-top: 1.4rem; color: var(--muted); font-size: 0.93rem; }

/* ========================= footer ========================= */

.site-footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: 2.6rem 0 2rem;
  margin-top: 1rem;
  font-size: 0.93rem;
}
.site-footer a { color: #f4d9a4; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-grid { display: grid; gap: 1.4rem; padding-bottom: 1.6rem; }
.footer-brand { font-family: var(--display); font-size: 1.15rem; color: #fff; margin-bottom: 0.4rem; }

.footer-fineprint {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1.2rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ========================= breakpoints ========================= */

@media (min-width: 720px) {
  .btn-phone span { display: inline; }
  .btn-phone { padding: 0.8em 1.4em; }

  .brand-text strong { font-size: 1.02rem; white-space: nowrap; }
  .brand-text small { display: block; }

  .trek-grid { grid-template-columns: 1fr 1fr; }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .find-grid { grid-template-columns: repeat(3, 1fr); }

  .split { grid-template-columns: minmax(280px, 380px) 1fr; gap: 44px; }
  .feature-list { gap: 1.6rem; }

  .section { padding: 4.4rem 0; }
}

@media (min-width: 1000px) {
  .main-nav { display: flex; }
  .hero { min-height: 88vh; }
}
