/* =========================================================
   Wildlife India — Grand Tour
   Brand: deep forest green, warm cream, ember accent
   ========================================================= */

:root {
  --green-900: #14261c;
  --green-800: #1d3a2c;
  --green-700: #25513b;
  --green-600: #2f6a4d;
  --cream-50:  #faf6ec;
  --cream-100: #f3ecd8;
  --cream-200: #e9dfc4;
  --ember:     #c9892a;
  --ember-dark:#a8701c;
  --ink:       #1a1a17;
  --ink-soft:  #44443d;
  --line:      rgba(20,38,28,0.12);
  --shadow-1:  0 6px 24px rgba(20,38,28,0.10);
  --shadow-2:  0 18px 48px rgba(20,38,28,0.18);
  --serif:     "Cormorant Garamond", "Cormorant", "Garamond", Georgia, serif;
  --sans:      "Inter", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --max-w:     1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--ember-dark); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--green-900);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

.lead {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  color: var(--ink-soft);
  font-style: italic;
  line-height: 1.55;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember-dark);
  font-weight: 600;
  margin-bottom: 0.6em;
  display: inline-block;
}

/* ---------- Layout ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; }
section.tight { padding: 64px 0; }

/* When .container / .container-narrow are applied directly to a <section>,
   restore vertical padding (the .container rule's `padding: 0 24px` would
   otherwise zero it out). */
section.container,
section.container-narrow { padding-top: 32px; padding-bottom: 32px; }
section.container.tight,
section.container-narrow.tight { padding-top: 22px; padding-bottom: 22px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 16px 0;
  background: rgba(20, 38, 28, 0);
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(20, 38, 28, 0.92);
  backdrop-filter: blur(8px);
  padding: 10px 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--cream-50); font-family: var(--serif);
  font-size: 1.55rem; letter-spacing: 0.04em;
}
.brand img, .brand svg { height: 52px; width: auto; }
@media (max-width: 600px) { .brand img, .brand svg { height: 42px; } }
.brand .brand-mark { display:flex; align-items:center; gap:10px; }
.brand small { font-size: 0.65rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--cream-200); font-family: var(--sans); display:block; }

.nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.nav ul a {
  color: var(--cream-50); font-size: 0.95rem; letter-spacing: 0.03em;
  padding: 6px 0; position: relative;
}
.nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--ember); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav ul a:hover::after, .nav ul a.active::after { transform: scaleX(1); }
.nav ul a:hover, .nav ul a.active { color: var(--cream-50); }

.menu-toggle {
  display: none; background: transparent; border: 0;
  color: var(--cream-50); font-size: 1.6rem; cursor: pointer;
}

@media (max-width: 800px) {
  .menu-toggle { display: block; }
  .nav ul {
    position: fixed; top: 64px; right: 0; left: 0;
    background: rgba(20,38,28,0.97); backdrop-filter: blur(8px);
    flex-direction: column; padding: 22px 24px; gap: 16px;
    transform: translateY(-150%); transition: transform 0.3s ease;
  }
  .nav ul.open { transform: translateY(0); }
}

/* ---------- Hero / Parallax ---------- */
.hero {
  position: relative;
  height: 100vh; min-height: 620px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream-50); text-align: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,38,28,0.45) 0%, rgba(20,38,28,0.65) 100%);
  z-index: 1;
}
.hero-bg {
  position: absolute; inset: -10% 0;
  background-size: cover; background-position: center;
  will-change: transform;
}
.hero-content { position: relative; z-index: 2; padding: 0 24px; max-width: 880px; }
.hero h1 {
  color: var(--cream-50);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 0.5em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}
.hero p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  color: var(--cream-100);
  max-width: 700px; margin: 0 auto 2.2em;
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 2; color: var(--cream-100); font-size: 0.75rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-cue::after { content: ""; display:block; width:1px; height:38px;
  background: var(--cream-100); margin: 8px auto 0; }
@keyframes bob { 50% { transform: translate(-50%, 8px); opacity: 0.7; } }

/* Parallax interstitials */
.parallax {
  position: relative;
  height: 70vh; min-height: 460px;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream-50);
  overflow: hidden;
}
.parallax::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,38,28,0.35), rgba(20,38,28,0.6));
}
.parallax-inner {
  position: relative; z-index: 2; text-align: center; padding: 0 24px; max-width: 760px;
}
.parallax h2 { color: var(--cream-50); font-style: italic; font-weight: 400; }
.parallax p { font-family: var(--serif); font-size: 1.25rem; color: var(--cream-100); }

/* iOS doesn't support fixed-attachment well; fall back to scroll */
@supports (-webkit-touch-callout: none) {
  .parallax { background-attachment: scroll; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 4px;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary { background: var(--ember); color: var(--green-900); }
.btn-primary:hover { background: var(--ember-dark); color: var(--cream-50); transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn-ghost { background: transparent; color: var(--cream-50); border: 1.5px solid var(--cream-100); }
.btn-ghost:hover { background: var(--cream-50); color: var(--green-900); }
.btn-dark { background: var(--green-800); color: var(--cream-50); }
.btn-dark:hover { background: var(--green-700); color: var(--cream-50); }
.btn-wa {
  background: #25D366; color: white;
}
.btn-wa:hover { background: #1da851; color: white; }

/* ---------- Sections ---------- */
.section-title {
  text-align: center; max-width: 720px; margin: 0 auto 56px;
}
.section-title h2 { margin-bottom: 0.4em; }

/* Featured tours grid */
.tour-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.tour-card {
  background: var(--cream-50);
  border-radius: 8px; overflow: hidden;
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tour-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.tour-card-img {
  aspect-ratio: 4 / 3; overflow: hidden; position: relative; background: #ddd;
}
.tour-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.tour-card:hover .tour-card-img img { transform: scale(1.04); }
.tour-card-body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.tour-card .meta { font-size: 0.78rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ember-dark); font-weight:600;
  margin-bottom: 10px; }
.tour-card h3 { margin-bottom: 12px; }
.tour-card p { color: var(--ink-soft); font-size: 0.96rem; flex: 1; }
.tour-card .actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Blog cards */
.blog-grid {
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.blog-card {
  background: white;
  border-radius: 8px; overflow: hidden;
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.blog-card-img { aspect-ratio: 16/10; overflow: hidden; background: #ddd; }
.blog-card-img img { width: 100%; height:100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 24px 24px 28px; }
.blog-card .tag {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ember-dark); font-weight:600;
}
.blog-card h3 { margin: 8px 0 10px; line-height: 1.2; }
.blog-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Gallery ---------- */
.gallery-filters {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px;
}
.chip {
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.08em;
  transition: all 0.2s ease;
}
.chip:hover { border-color: var(--green-700); color: var(--green-700); }
.chip.active { background: var(--green-800); color: var(--cream-50); border-color: var(--green-800); }

.masonry {
  column-count: 3; column-gap: 14px;
}
@media (max-width: 900px) { .masonry { column-count: 2; } }
@media (max-width: 540px) { .masonry { column-count: 1; } }
.masonry-item {
  break-inside: avoid; margin: 0 0 14px; cursor: zoom-in;
  border-radius: 6px; overflow: hidden; background: #eee;
  transition: transform 0.2s ease;
}
.masonry-item img { width: 100%; display: block; }
.masonry-item:hover { transform: translateY(-2px); }
.masonry-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
  color: var(--cream-50); font-size: 0.85rem;
  opacity: 0; transition: opacity 0.2s ease;
}
.masonry-item { position: relative; }
.masonry-item:hover .cap { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10,18,14,0.95);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1400px, 95vw); max-height: 90vh; object-fit: contain; box-shadow: 0 16px 60px rgba(0,0,0,0.6); }
.lightbox .lb-close,
.lightbox .lb-prev,
.lightbox .lb-next {
  position: absolute; background: rgba(255,255,255,0.08); color: white;
  border: 0; font-size: 1.6rem; line-height: 1; padding: 14px 18px;
  cursor: pointer; border-radius: 999px; backdrop-filter: blur(4px);
}
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-cap {
  position: absolute; bottom: 22px; left: 0; right: 0; text-align: center;
  color: var(--cream-100); font-family: var(--serif); font-style: italic; font-size: 1.05rem;
}

/* ---------- Tour booking page ---------- */
.tour-detail {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: stretch;
  background: white; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-1);
  margin-bottom: 28px;
}
.tour-detail .img { background-size: cover; background-position: center; min-height: 320px; }
.tour-detail .body { padding: 36px 36px 40px; }
.tour-detail h3 { margin-bottom: 0.4em; font-size: 1.7rem; }
.tour-detail .facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px;
  margin: 18px 0 22px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.tour-detail .facts div { font-size: 0.92rem; color: var(--ink-soft); }
.tour-detail .facts strong { color: var(--green-900); display:block; font-family: var(--sans); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 4px; }
.tour-detail ul { padding-left: 18px; margin: 0 0 24px; color: var(--ink-soft); }
.tour-detail ul li { margin-bottom: 6px; }
@media (max-width: 760px) { .tour-detail { grid-template-columns: 1fr; }
  .tour-detail .img { min-height: 220px; }
  .tour-detail .body { padding: 28px; }
}

/* ---------- Blog post ---------- */
.post-hero {
  position: relative; height: 70vh; min-height: 520px;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end; color: var(--cream-50);
}
.post-hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,38,28,0.15), rgba(20,38,28,0.85)); }
.post-hero .container { position: relative; z-index: 2; padding-bottom: 60px; }
.post-hero h1 { color: var(--cream-50); max-width: 880px; }
.post-hero .meta { color: var(--cream-200); font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 14px; }

.post-body { padding: 80px 0 40px; }
.post-body p { font-size: 1.1rem; color: var(--ink); }
.post-body p:first-of-type::first-letter {
  font-family: var(--serif); font-size: 4.2rem; line-height: 0.9;
  float: left; padding: 6px 14px 0 0; color: var(--green-700);
  font-weight: 500;
}
.post-body figure { margin: 50px -40px; }
@media (max-width: 800px) { .post-body figure { margin: 36px -20px; } }
.post-body figure img { width: 100%; border-radius: 4px; box-shadow: var(--shadow-1); }
.post-body figcaption {
  text-align: center; font-style: italic; font-family: var(--serif);
  color: var(--ink-soft); margin-top: 14px; font-size: 0.98rem;
}
.post-body h2 { margin-top: 60px; }
.post-body h3 { margin-top: 38px; color: var(--green-700); }
.post-body blockquote {
  border-left: 3px solid var(--ember);
  padding: 6px 22px; margin: 36px 0;
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--green-800);
}

/* Tour CTA at bottom of blog */
.tour-cta {
  background: var(--green-800); color: var(--cream-50);
  border-radius: 10px; padding: 44px 44px 48px;
  margin: 60px 0;
  position: relative; overflow: hidden;
}
.tour-cta::before {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(201,137,42,0.25), transparent 70%);
}
.tour-cta .eyebrow { color: var(--ember); }
.tour-cta h3 { color: var(--cream-50); font-size: 1.8rem; margin-bottom: 12px; }
.tour-cta p { color: var(--cream-100); margin-bottom: 22px; }
.tour-cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Photo grid inside posts */
.photo-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 50px 0;
}
.photo-pair img { width: 100%; border-radius: 4px; box-shadow: var(--shadow-1); }
/* Reset the .post-body figure negative margin so paired figures don't overlap */
.post-body .photo-pair figure,
.photo-pair figure { margin: 0; min-width: 0; }
.photo-pair figcaption {
  text-align: center; font-style: italic; font-family: var(--serif);
  color: var(--ink-soft); margin-top: 12px; font-size: 0.95rem;
}
@media (max-width: 700px) {
  .photo-pair { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- About page ---------- */
.about-hero {
  background: var(--green-800); color: var(--cream-50);
  padding: 140px 0 100px;
  position: relative; overflow: hidden;
}
.about-hero h1 { color: var(--cream-50); margin-bottom: 0.2em; }
.about-hero p.lead { color: var(--cream-100); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-grid img { border-radius: 8px; box-shadow: var(--shadow-1); }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }

.contact-row {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 24px;
}
.contact-row a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--cream-100); color: var(--green-800);
  font-size: 0.92rem;
}
.contact-row a:hover { background: var(--green-800); color: var(--cream-50); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900); color: var(--cream-100);
  padding: 70px 0 30px; margin-top: 0;
}
.site-footer h4 { color: var(--cream-50); font-family: var(--serif);
  font-weight: 500; font-size: 1.05rem; letter-spacing: 0.04em; margin-bottom: 18px; }
.site-footer .foot-grid { display: grid; gap: 36px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 800px) { .site-footer .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .site-footer .foot-grid { grid-template-columns: 1fr; } }
.site-footer a { color: var(--cream-100); }
.site-footer a:hover { color: var(--ember); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer .legal {
  border-top: 1px solid rgba(250,246,236,0.12);
  padding-top: 22px; margin-top: 50px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem; color: rgba(250,246,236,0.6);
}

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

/* ---------- Helpers ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 18px; }
.mb-0 { margin-bottom: 0; }
.bg-cream { background: var(--cream-100); }
.bg-green { background: var(--green-800); color: var(--cream-50); }
.bg-green h2, .bg-green h3 { color: var(--cream-50); }
.bg-green p { color: var(--cream-100); }
.tag-pill {
  display: inline-block; padding: 4px 12px;
  background: var(--cream-200); color: var(--green-800);
  border-radius: 999px; font-size: 0.74rem;
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
}
