/* ===========================================================
   Wilpattu Wild Trails — stylesheet
   Natural, earthy palette. No bright/vibrant colours.
   =========================================================== */

:root {
  --bg: #f6f2e8;
  --bg-alt: #ede5d3;
  --panel: #fffdf8;
  --forest-950: #1c231a;
  --forest-900: #232b1f;
  --forest-800: #313c29;
  --forest-700: #445238;
  --forest-600: #5c6b4b;
  --earth-700: #6b4f36;
  --earth-600: #8a6644;
  --sand-400: #cdbb92;
  --sand-300: #ddd0ab;
  --ink: #2a2620;
  --ink-soft: #59544a;
  --ink-faint: #8a8375;
  --line: #ddd3bd;
  --rust-600: #9c5a34;
  --rust-700: #82492a;
  --whatsapp: #4c7a52;
  --whatsapp-dark: #3d6342;
  --radius-s: 4px;
  --radius-m: 8px;
  --shadow-soft: 0 10px 30px -12px rgba(28, 35, 26, 0.25);
  --shadow-tight: 0 2px 10px rgba(28, 35, 26, 0.12);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Karla", -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: "Fraunces", "Iowan Old Style", Georgia, serif;
  color: var(--forest-950);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-block;
  font-family: "Karla", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--earth-600);
  font-weight: 700;
  margin-bottom: 0.9em;
}

section { padding: 92px 0; }
@media (max-width: 720px) {
  section { padding: 60px 0; }
}

.section-head {
  max-width: 640px;
  margin: 0 0 3rem;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { font-size: 1.05rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-s);
  font-family: "Karla", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--whatsapp);
  color: #fdfaf3;
  box-shadow: var(--shadow-tight);
}
.btn-primary:hover { background: var(--whatsapp-dark); }

.btn-outline {
  background: transparent;
  border-color: rgba(246, 242, 232, 0.55);
  color: inherit;
}
.btn-outline:hover { background: rgba(246, 242, 232, 0.12); }

.btn-dark {
  background: var(--forest-900);
  color: var(--bg);
}
.btn-dark:hover { background: var(--forest-950); }

.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }

.site-header.scrolled {
  background: rgba(246, 242, 232, 0.94);
  backdrop-filter: blur(6px);
  padding: 12px 0;
  box-shadow: var(--shadow-tight);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #fdfaf3;
  letter-spacing: 0.01em;
}
.site-header.scrolled .brand { color: var(--forest-950); }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand-sub {
  display: block;
  font-family: "Karla", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand-300);
  margin-top: 1px;
}
.site-header.scrolled .brand-sub { color: var(--earth-600); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(253, 250, 243, 0.9);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.site-header.scrolled .nav-links a { color: var(--forest-800); }
.nav-links a:hover { color: var(--sand-300); }
.site-header.scrolled .nav-links a:hover { color: var(--rust-600); }

.nav-cta { display: none; }
@media (min-width: 980px) { .nav-cta { display: inline-flex; } }

.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { width: 26px; height: 26px; color: #fdfaf3; }
.site-header.scrolled .nav-toggle svg { color: var(--forest-950); }

@media (max-width: 979px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--panel);
    padding: 14px 28px 22px;
    box-shadow: var(--shadow-soft);
  }
  .site-header.nav-open .nav-links a {
    color: var(--forest-900);
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .site-header.nav-open .nav-links li.nav-cta-mobile {
    width: 100%;
    border-bottom: none;
  }
  .site-header.nav-open .nav-links li.nav-cta-mobile a {
    border-bottom: none;
    padding: 0;
  }
  .site-header.nav-open .nav-cta-mobile {
    display: block;
    width: 100%;
    margin-top: 12px;
  }
  .site-header.nav-open .nav-cta-mobile .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: flex-end;
  color: #fdfaf3;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 42%;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(22, 26, 18, 0.55) 0%, rgba(22, 26, 18, 0.25) 32%, rgba(20, 24, 16, 0.72) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 88px;
  max-width: 760px;
}
.hero .eyebrow { color: var(--sand-300); }
.hero h1 {
  color: #fdfaf3;
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 0.35em;
}
.hero-lede {
  color: rgba(253, 250, 243, 0.88);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 2em;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(253, 250, 243, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.hero-scroll .line { width: 1px; height: 34px; background: rgba(253, 250, 243, 0.5); animation: pulse-line 2s ease-in-out infinite; }
@keyframes pulse-line { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ---------- intro / about ---------- */
.about { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }

.about-copy p { font-size: 1.03rem; }
.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 2.2em;
}
.fact {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.fact strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  color: var(--forest-900);
}
.fact span { font-size: 0.82rem; color: var(--ink-faint); }

.about-media {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.about-media img { width: 100%; height: 560px; object-fit: cover; }
@media (max-width: 860px) { .about-media img { height: 360px; } }

/* ---------- journey / steps ---------- */
.journey { background: var(--forest-950); color: var(--sand-300); }
.journey .section-head h2 { color: #fdfaf3; }
.journey .section-head p { color: rgba(221, 208, 171, 0.8); }
.journey .eyebrow { color: var(--sand-300); }

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: step;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
  padding: 26px 20px 22px;
  background: rgba(253, 250, 243, 0.04);
  border: 1px solid rgba(221, 208, 171, 0.16);
  border-radius: var(--radius-m);
}
.step-num {
  font-family: "Fraunces", serif;
  font-size: 1.7rem;
  color: var(--sand-400);
  margin-bottom: 0.4em;
}
.step h3 {
  color: #fdfaf3;
  font-size: 1.08rem;
  margin-bottom: 0.4em;
}
.step p { color: rgba(221, 208, 171, 0.78); font-size: 0.92rem; margin: 0; }

/* ---------- service / included ---------- */
.service { background: var(--bg-alt); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 860px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 28px 24px;
}
.service-card .icon {
  width: 42px; height: 42px;
  margin-bottom: 16px;
  color: var(--rust-600);
}
.service-card h3 { font-size: 1.08rem; margin-bottom: 0.5em; }
.service-card p { font-size: 0.94rem; margin: 0; }

.service-note {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--panel);
  border: 1px dashed var(--sand-400);
  border-radius: var(--radius-m);
  padding: 18px 22px;
}
.service-note svg { width: 26px; height: 26px; flex: none; color: var(--forest-700); }
.service-note p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.service-note strong { color: var(--forest-900); }

/* ---------- wildlife ---------- */
.wildlife { background: var(--bg); }

.wildlife-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 860px) { .wildlife-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .wildlife-grid { grid-template-columns: 1fr; } }

.wildlife-card {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-tight);
}
.wildlife-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.wildlife-card:hover img { transform: scale(1.06); }
.wildlife-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,24,16,0) 40%, rgba(18,22,14,0.86) 100%);
}
.wildlife-card .tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--sand-300);
  background: rgba(20, 24, 16, 0.55);
  padding: 5px 10px;
  border-radius: 20px;
}
.wildlife-card .info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 18px;
  color: #fdfaf3;
}
.wildlife-card h3 { color: #fdfaf3; font-size: 1.15rem; margin-bottom: 0.25em; }
.wildlife-card p { color: rgba(253, 250, 243, 0.82); font-size: 0.86rem; margin: 0; }

.also-look {
  margin-top: 48px;
}
.also-look h3 {
  font-size: 1.1rem;
  margin-bottom: 1.1em;
}
.also-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0; padding: 0;
}
.also-list li {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.also-list li strong { color: var(--forest-900); font-weight: 700; }

/* ---------- nature, unscripted ---------- */
.unscripted { background: var(--bg-alt); }
.unscripted-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 700px) { .unscripted-grid { grid-template-columns: 1fr; } }

.unscripted-grid figure {
  margin: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-tight);
}
.unscripted-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.unscripted-grid figcaption {
  padding: 12px 4px 0;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

/* ---------- sighting story (videos) ---------- */
.story { background: var(--forest-900); color: var(--sand-300); }
.story .eyebrow { color: var(--sand-300); }
.story .section-head h2 { color: #fdfaf3; }
.story .section-head p { color: rgba(221, 208, 171, 0.82); }

.sightings-carousel {
  overflow: hidden;
  margin-top: 44px;
  padding: 4px 0 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.sightings-carousel.interacted {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.sightings-carousel.interacted::-webkit-scrollbar { height: 8px; }
.sightings-carousel.interacted::-webkit-scrollbar-thumb { background: rgba(221, 208, 171, 0.3); border-radius: 8px; }

.sightings-track {
  display: flex;
  gap: 22px;
  width: max-content;
  padding: 0 28px;
  animation: sightings-scroll 68s linear infinite;
}
.sightings-carousel:hover .sightings-track { animation-play-state: paused; }
.sightings-carousel.interacted .sightings-track { animation: none; }
.sightings-carousel.interacted .is-clone { display: none; }

@keyframes sightings-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .sightings-track { animation: none; }
}

.video-card {
  flex: 0 0 auto;
  width: clamp(190px, 24vw, 250px);
  scroll-snap-align: start;
  background: rgba(253, 250, 243, 0.04);
  border: 1px solid rgba(221, 208, 171, 0.16);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.video-frame {
  position: relative;
  line-height: 0;
}
.video-card video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #10140d;
  display: block;
  cursor: pointer;
}
.video-frame::after {
  /* soft vignette so overlay controls always read, regardless of footage brightness */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 20, 13, 0.32) 0%, transparent 22%, transparent 78%, rgba(16, 20, 13, 0.45) 100%);
  pointer-events: none;
  z-index: 1;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(253, 250, 243, 0.92);
  box-shadow: 0 6px 18px rgba(16, 20, 13, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
.play-btn:hover {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.07);
}
.play-btn svg {
  width: 18px;
  height: 18px;
  color: var(--forest-950);
  margin-left: 3px;
}
.video-card.is-playing .play-btn {
  display: none;
}

.mute-btn {
  position: absolute;
  right: 10px;
  bottom: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(16, 20, 13, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}
.mute-btn:hover { background: rgba(16, 20, 13, 0.75); }
.mute-btn svg { width: 15px; height: 15px; color: #fdfaf3; }
.video-card.is-playing .mute-btn { display: flex; }

.progress-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(253, 250, 243, 0.2);
  z-index: 2;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--sand-300);
}
.video-card .cap {
  padding: 14px 16px 16px;
}
.video-card .cap .step-tag {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand-400);
  font-weight: 700;
}
.video-card .cap p {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: rgba(221, 208, 171, 0.85);
}

/* ---------- gallery ---------- */
.gallery { background: var(--bg-alt); }
.gallery-grid {
  columns: 3 280px;
  column-gap: 18px;
}
@media (max-width: 700px) { .gallery-grid { columns: 2 200px; } }

.gallery-grid figure {
  margin: 0 0 18px;
  break-inside: avoid;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-tight);
  cursor: zoom-in;
  position: relative;
}
.gallery-grid img {
  width: 100%;
  transition: transform 0.4s ease;
}
.gallery-grid figure:hover img { transform: scale(1.04); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(16, 20, 13, 0.92);
  padding: 40px 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(90vw, 1000px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-s);
}
.lightbox .lb-cap {
  position: absolute;
  bottom: 24px; left: 0; right: 0;
  text-align: center;
  color: var(--sand-300);
  font-size: 0.9rem;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(253, 250, 243, 0.08);
  border: 1px solid rgba(253, 250, 243, 0.25);
  color: #fdfaf3;
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lb-close svg, .lb-prev svg, .lb-next svg { width: 20px; height: 20px; }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close { top: 10px; right: 10px; }
}

/* ---------- contact ---------- */
.contact {
  background: var(--forest-950);
  color: var(--sand-300);
  text-align: center;
}
.contact .eyebrow { color: var(--sand-300); }
.contact h2 { color: #fdfaf3; font-size: clamp(1.9rem, 4vw, 2.7rem); max-width: 700px; margin: 0 auto 0.5em; }
.contact p.lede {
  max-width: 560px;
  margin: 0 auto 2em;
  color: rgba(221, 208, 171, 0.85);
  font-size: 1.05rem;
}
.contact-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }

.contact-meta {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(221, 208, 171, 0.18);
}
.contact-meta div { text-align: left; min-width: 190px; }
.contact-meta span.label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand-400);
  font-weight: 700;
  margin-bottom: 6px;
}
.contact-meta span.val { color: #fdfaf3; font-size: 0.98rem; }

.pickup-map {
  margin-top: 10px;
  width: 200px;
  max-width: 100%;
  height: 100px;
  border-radius: var(--radius-s);
  overflow: hidden;
  opacity: 0.55;
  filter: grayscale(85%) contrast(0.9);
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.pickup-map:hover,
.pickup-map:focus-within {
  opacity: 1;
  filter: grayscale(15%) contrast(1);
}
.pickup-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- footer ---------- */
footer {
  background: var(--forest-950);
  color: rgba(221, 208, 171, 0.6);
  padding: 26px 0 34px;
  text-align: center;
  font-size: 0.82rem;
  border-top: 1px solid rgba(221, 208, 171, 0.12);
}
footer a { color: rgba(221, 208, 171, 0.85); text-decoration: none; }
footer a:hover { color: var(--sand-300); }

/* ---------- floating whatsapp ---------- */
.fab-whatsapp {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(20, 24, 16, 0.35);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.fab-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-2px); }
.fab-whatsapp svg { width: 28px; height: 28px; color: #fdfaf3; }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
