/*
Theme Name: Sunset Tarangire
Theme URI: https://sunset.co.tz
Author: Sunset Tarangire Ltd
Description: Custom hand-coded theme for Sunset Tarangire Ltd — guided hunting experiences in Tanzania.
Version: 1.0
Text Domain: sunset-tarangire
*/

:root{
  --ink:#1A1712;
  --cream:#EDE6D6;
  --earth:#8C5A2B;
  --olive:#5C6146;
  --muted:#A79C87;
  --white:#FBF9F4;
  --serif: 'Fraunces', serif;
  --sans: 'Karla', sans-serif;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:auto;} /* JS handles smoothing */

a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
.wrap{max-width:1180px; margin:0 auto; padding:0 32px;}
ul{list-style:none;}

/* ---------- scroll reveal: "focus pull" — mimics a scope/lens snapping into focus ---------- */
.reveal{
  opacity:0; transform:translateY(24px) scale(1.03); filter:blur(6px);
  transition:opacity 1s ease, transform 1s ease, filter 1s ease;
}
.reveal.in-view{ opacity:1; transform:translateY(0) scale(1); filter:blur(0); }
@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1; transform:none; filter:none; transition:none;}
}

/* ---------- scope-focus hero intro (plays once) ---------- */
#scopeIntro{
  position:fixed; inset:0; z-index:300; background:var(--ink);
  display:flex; align-items:center; justify-content:center;
  transition: opacity .6s ease .3s;
}
#scopeIntro svg{ width:160px; height:160px; }
#scopeIntro.scope-hide{ opacity:0; pointer-events:none; }
#scopeIntro.scope-done{ display:none; }
#scopeRing{ transform-origin:center; animation: scopePulse 1.1s ease-out forwards; }
@keyframes scopePulse{
  0%{ r:14; opacity:0; }
  40%{ opacity:1; }
  100%{ r:90; opacity:0.9; }
}
@media (prefers-reduced-motion: reduce){
  #scopeIntro{ display:none; }
}

/* ---------- moving ticker band ---------- */
.ticker{
  background:var(--earth); color:var(--white); overflow:hidden;
  padding:14px 0; white-space:nowrap;
}
.ticker-track{
  display:inline-flex; animation: tickerScroll 22s linear infinite;
  font-family:var(--serif); font-style:italic; font-size:15px; letter-spacing:.03em;
}
@keyframes tickerScroll{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .ticker-track{ animation:none; }
}

/* ---------- logo marks ---------- */
.logo-plate{ display:inline-flex; align-items:center; }
.logo-mark{
  height:64px; width:auto; display:block; transition:height .35s ease;
  filter: drop-shadow(0 0 7px rgba(253,249,244,.6)) drop-shadow(0 1px 4px rgba(0,0,0,.45));
}
header.site-header.scrolled .logo-mark{ height:50px; }
.footer-logo-plate{ display:inline-flex; margin-bottom:16px; }
.footer-logo{
  height:88px; width:auto; display:block;
  filter: drop-shadow(0 0 7px rgba(253,249,244,.5)) drop-shadow(0 1px 4px rgba(0,0,0,.5));
}

/* crosshair cursor on trophy gallery — thematic hover, not decorative overload */
.trophy-card{ cursor: crosshair; }

/* ---------- bullet-trail scroll indicator ---------- */
#scrollTrail{
  position:fixed; top:0; right:18px; height:100vh; width:20px;
  z-index:200; display:flex; align-items:center; pointer-events:none;
}
#scrollTrail svg{height:70vh; width:20px; overflow:visible;}
#scrollTrail .trail-line{
  stroke: rgba(26,23,18,.18); stroke-width:1; stroke-dasharray:2 6;
}
#scrollTrail .trail-bullet{fill:var(--earth);}
@media (max-width:820px){ #scrollTrail{display:none;} }

/* ---------- header ---------- */
header.site-header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  display:flex; align-items:center; justify-content:space-between;
  padding: 26px 40px; color: var(--white);
  transition: background .35s ease, padding .35s ease;
}
header.site-header.scrolled{ background: var(--ink); padding: 16px 40px; }
header.site-header .logo{ font-family:var(--serif); font-size:22px; font-weight:500; }
header.site-header nav ul{ display:flex; gap:36px; font-size:14px; }
header.site-header nav a{ position:relative; padding-bottom:4px; }
header.site-header nav a::after{
  content:''; position:absolute; left:0; bottom:0; height:1px; width:0;
  background:var(--earth); transition:width .3s ease;
}
header.site-header nav a:hover::after{ width:100%; }
header.site-header .cta{
  border:1px solid rgba(251,249,244,.5); padding:10px 22px; font-size:13px;
  border-radius:2px; transition:.3s;
}
header.site-header .cta:hover{ background:var(--earth); border-color:var(--earth); }
.menu-toggle{ display:none; }
@media (max-width:900px){
  header.site-header nav{ display:none; }
  .menu-toggle{ display:block; }
}

/* ---------- hero ---------- */
.hero{
  position:relative; height:100vh; min-height:640px;
  display:flex; align-items:center; justify-content:center;
  text-align:center; overflow:hidden; color:var(--white);
}
.hero .hero-bg{
  position:absolute; inset:0; width:100%; height:112%; object-fit:cover;
  will-change:transform;
}
.hero::before{
  content:''; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(26,23,18,.6) 0%, rgba(26,23,18,.25) 40%, rgba(26,23,18,.8) 100%);
  z-index:1;
}
.hero-inner{ position:relative; z-index:2; max-width:760px; padding:0 24px; }
.hero-eyebrow{ font-size:14px; letter-spacing:.08em; color:var(--cream); opacity:.85; margin-bottom:18px; }
.hero h1{ font-family:var(--serif); font-weight:400; font-size:clamp(40px,7vw,84px); line-height:1.02; margin-bottom:22px; }
.hero p{ font-size:17px; color:var(--cream); max-width:520px; margin:0 auto 30px; }
.hero .btn{ display:inline-block; border:1px solid var(--white); padding:14px 34px; font-size:13px; transition:.3s; }
.hero .btn:hover{ background:var(--white); color:var(--ink); }

/* grass sway */
.grass-strip{ position:absolute; bottom:-2px; left:0; right:0; z-index:2; height:90px; pointer-events:none; }
.grass-strip svg{ width:100%; height:100%; }
.blade{ transform-origin:bottom center; animation: sway 3.6s ease-in-out infinite; }
.blade:nth-child(2n){ animation-duration:4.2s; animation-delay:.3s; }
.blade:nth-child(3n){ animation-duration:3.1s; animation-delay:.6s; }
.blade:nth-child(5n){ animation-duration:4.8s; animation-delay:.15s; }
@keyframes sway{
  0%,100%{ transform:rotate(-3deg); }
  50%{ transform:rotate(4deg); }
}

/* ---------- mission ---------- */
.mission{ padding:140px 0 120px; text-align:center; }
.mission .kicker{ font-family:var(--serif); font-style:italic; font-size:18px; color:var(--earth); margin-bottom:20px; }
.mission h2{ font-family:var(--serif); font-weight:400; font-size:clamp(28px,4vw,46px); max-width:760px; margin:0 auto 28px; line-height:1.25; }
.mission p{ max-width:620px; margin:0 auto; color:#4a473f; font-size:16px; line-height:1.75; }

/* ---------- trophy gallery (horizontal scroll) ---------- */
.trophies{ background:var(--ink); color:var(--cream); padding:110px 0; }
.trophies-head{ text-align:center; max-width:640px; margin:0 auto 60px; padding:0 24px; }
.trophies-head .kicker{ font-family:var(--serif); font-style:italic; color:var(--earth); font-size:18px; margin-bottom:16px; }
.trophies-head h2{ font-family:var(--serif); font-weight:400; font-size:clamp(26px,3.6vw,40px); }
.trophy-scroller{
  display:flex; gap:24px; overflow-x:auto; padding:0 40px 20px;
  scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch;
}
.trophy-scroller::-webkit-scrollbar{ height:6px; }
.trophy-scroller::-webkit-scrollbar-thumb{ background:var(--earth); border-radius:3px; }
.trophy-card{
  flex:0 0 320px; scroll-snap-align:start; position:relative;
  height:420px; overflow:hidden; border-radius:2px;
}
.trophy-card img{ width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.trophy-card:hover img{ transform:scale(1.06); }
.trophy-card .cap{
  position:absolute; left:0; right:0; bottom:0; padding:20px;
  background:linear-gradient(0deg, rgba(0,0,0,.75), transparent);
  font-family:var(--serif); font-size:19px;
}

/* ---------- services rows ---------- */
.services{ padding:120px 0; }
.services-head{ text-align:center; max-width:640px; margin:0 auto 90px; }
.services-head .kicker{ font-family:var(--serif); font-style:italic; color:var(--earth); font-size:18px; margin-bottom:16px; }
.services-head h2{ font-family:var(--serif); font-weight:400; font-size:clamp(26px,3.6vw,40px); }
.service-row{ display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:70px; margin-bottom:110px; }
.service-row:last-child{ margin-bottom:0; }
.service-row.reverse .s-media{ order:2; }
.service-row.reverse .s-text{ order:1; }

.s-text .s-index{ font-size:13px; letter-spacing:.08em; color:var(--muted); margin-bottom:14px; }
.s-text h3{ font-family:var(--serif); font-weight:400; font-size:clamp(24px,2.8vw,34px); margin-bottom:18px; line-height:1.2; }
.s-text p{ color:#4a473f; font-size:15.5px; line-height:1.75; max-width:440px; }
.s-text a{ display:inline-block; margin-top:24px; font-size:13px; border-bottom:1px solid var(--earth); padding-bottom:3px; color:var(--earth); }
@media (max-width:820px){
  .service-row, .service-row.reverse{ grid-template-columns:1fr; }
  .service-row.reverse .s-media, .service-row.reverse .s-text{ order:initial; }
  .s-media img{ height:280px; }
}


/* =========================================================
   OLD DRY-WOOD PICTURE FRAME
   ========================================================= */
.framed{
  display:block;
  background-color:#8A7256;
  background-image: url('assets/images/wood-grain-frame.svg');
  background-size: 220px 220px;
  padding:16px;
  box-shadow:0 14px 34px rgba(0,0,0,.4), inset 0 0 0 2px rgba(0,0,0,.3);
}
.framed .mat{
  background: var(--cream);
  padding:8px;
}
.framed img{
  display:block; width:100%; height:380px; object-fit:cover;
}
.fleet-media .framed img{ height:420px; }

@media (max-width:820px){
  .framed{ padding:12px; }
  .framed .mat{ padding:6px; }
  .framed img, .fleet-media .framed img{ height:260px; }
}

/* =========================================================
   GRASS: taller viewBox to match the denser blade count
   generated in front-page.php — the density/thinness comes from the PHP loop itself.
   ========================================================= */
.grass-strip{ height:100px; }

/* ---------- fleet ---------- */
.fleet{ background:var(--olive); color:var(--white); padding:110px 0; }
.fleet .wrap{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }

.fleet-text .kicker{ font-family:var(--serif); font-style:italic; font-size:17px; opacity:.85; margin-bottom:16px; }
.fleet-text h2{ font-family:var(--serif); font-weight:400; font-size:clamp(26px,3.4vw,38px); margin-bottom:22px; line-height:1.2; }
.fleet-text p{ font-size:15.5px; line-height:1.8; opacity:.92; max-width:460px; margin-bottom:28px; }
.fleet-text a{ display:inline-block; border:1px solid rgba(251,249,244,.6); padding:13px 30px; font-size:13px; transition:.3s; }
.fleet-text a:hover{ background:var(--white); color:var(--olive); border-color:var(--white); }
@media (max-width:820px){
  .fleet .wrap{ grid-template-columns:1fr; }
  .fleet-media img{ height:280px; }
}

/* ---------- crew / community ---------- */
.crew{ position:relative; padding:160px 0; text-align:center; color:var(--white); overflow:hidden; }
.crew .crew-bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.crew::before{ content:''; position:absolute; inset:0; background:rgba(26,23,18,.72); z-index:1; }
.crew-content{ position:relative; z-index:2; max-width:700px; margin:0 auto; padding:0 24px; }
.crew .kicker{ font-family:var(--serif); font-style:italic; font-size:18px; color:var(--cream); opacity:.9; margin-bottom:18px; }
.crew h2{ font-family:var(--serif); font-weight:400; font-size:clamp(28px,4vw,44px); margin-bottom:24px; }
.crew p{ font-size:16px; line-height:1.8; opacity:.92; margin-bottom:30px; }
.crew a{ display:inline-block; border:1px solid var(--white); padding:14px 34px; font-size:13px; transition:.3s; }
.crew a:hover{ background:var(--white); color:var(--ink); }

/* ---------- footer ---------- */
footer.site-footer{ background:var(--ink); color:var(--cream); padding:90px 0 40px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr 1fr; gap:40px; margin-bottom:70px; }
.footer-grid .brand{ font-family:var(--serif); font-size:24px; margin-bottom:14px; }
.footer-grid .brand-desc{ font-size:13.5px; color:var(--muted); line-height:1.7; max-width:260px; }
.footer-col h4{ font-size:12px; letter-spacing:.08em; color:var(--muted); margin-bottom:18px; text-transform:uppercase; font-weight:600; }
.footer-col a, .footer-col p{ display:block; font-size:14px; margin-bottom:12px; opacity:.9; }
.footer-col a:hover{ opacity:1; color:var(--earth); }
.footer-bottom{ border-top:1px solid rgba(251,249,244,.12); padding-top:26px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:12.5px; color:var(--muted); }
@media (max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; } }

/* ---------- generic inner page (page.php) ---------- */
.page-hero{ padding:180px 0 60px; text-align:center; }
.page-hero h1{ font-family:var(--serif); font-weight:400; font-size:clamp(32px,5vw,56px); }
.page-content{ max-width:760px; margin:0 auto; padding:0 24px 120px; font-size:16px; line-height:1.8; color:#3a3730; }
.page-content h2{ font-family:var(--serif); font-weight:400; font-size:28px; margin:40px 0 16px; }
.page-content p{ margin-bottom:20px; }

/* =========================================================
   HERO VIDEO BUTTON — FINAL VERSION
   ========================================================= */

.hero-video-btn{
  position:relative;
  margin:26px auto 0;
  width:84px; height:84px;
  border-radius:50%;
  overflow:hidden;
  cursor:pointer;
  border:2px solid rgba(251,249,244,.75);
  background:rgba(26,23,18,.55);
  box-shadow:0 8px 28px rgba(0,0,0,.4);
  transition: width .55s cubic-bezier(.22,.9,.32,1),
              height .55s cubic-bezier(.22,.9,.32,1),
              border-radius .55s cubic-bezier(.22,.9,.32,1),
              box-shadow .4s ease;
}

.hero-video-btn video{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; display:block;
}

.hero-video-btn .play-icon{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  color:var(--white); font-size:16px; z-index:2;
  transition: opacity .4s ease;
}

.hero-video-btn .btn-label{
  position:absolute; bottom:10px; left:0; right:0; text-align:center;
  color:var(--white); font-size:11px; letter-spacing:.06em;
  opacity:0; transition:opacity .35s ease .1s; z-index:2;
  text-shadow:0 1px 4px rgba(0,0,0,.6);
}

.hero-video-btn:hover,
.hero-video-btn:focus-visible{
  width:300px; height:170px;
  border-radius:10px;
  box-shadow:0 20px 60px rgba(0,0,0,.55);
}
.hero-video-btn:hover .play-icon,
.hero-video-btn:focus-visible .play-icon{ opacity:0; }
.hero-video-btn:hover .btn-label,
.hero-video-btn:focus-visible .btn-label{ opacity:1; }

/* Mobile: same relative/stacked position, just smaller — no "right" offset anywhere */
@media (max-width:820px){
  .hero-video-btn{ width:64px; height:64px; margin-top:18px; }
  .hero-video-btn:hover, .hero-video-btn:focus-visible{ width:220px; height:124px; }
}

/* Lightbox for full local video playback */
.lightbox{
  position:fixed; inset:0; z-index:400; background:rgba(10,9,7,.94);
  display:none; align-items:center; justify-content:center; padding:24px;
}
.lightbox.open{ display:flex; }
.lightbox-inner{ position:relative; width:100%; max-width:960px; }
.lightbox-frame{ position:relative; width:100%; padding-top:56.25%; background:#000; }
.lightbox-frame video{
  position:absolute; inset:0; width:100%; height:100%; object-fit:contain;
}
.lightbox-close{
  position:absolute; top:-44px; right:0; background:none; border:none;
  color:var(--white); font-size:34px; line-height:1; cursor:pointer;
}

/* =========================================================
   UPDATE 1: About hero — now full height, left-aligned text
   REPLACES the previous ".about-hero", ".about-hero-bg",
   ".about-hero::before", ".about-hero-inner",
   ".about-hero-inner .kicker", ".about-hero-inner h1",
   ".about-hero-sub" rules — search "about-hero" and delete
   all old matches before pasting this in.
   ========================================================= */
.about-hero{
  position:relative; height:100vh; min-height:640px;
  display:flex; align-items:center; justify-content:flex-start;
  text-align:left; overflow:hidden; color:var(--white);
}
.about-hero-bg{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}
.about-hero::before{
  content:''; position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(26,23,18,.72) 0%, rgba(26,23,18,.35) 55%, rgba(26,23,18,.15) 100%);
  z-index:1;
}
.about-hero-inner{
  position:relative; z-index:2; max-width:620px;
  padding-left:60px; padding-right:24px;
}
.about-hero-inner .kicker{ color:var(--cream); font-family:var(--serif); font-style:italic; font-size:16px; opacity:.9; margin-bottom:14px; }
.about-hero-inner h1{ font-family:var(--serif); font-weight:400; font-size:clamp(36px,6vw,64px); margin-bottom:18px; }
.about-hero-sub{ font-size:16px; color:var(--cream); opacity:.92; line-height:1.7; }
 
@media (max-width:820px){
  .about-hero-inner{ padding-left:28px; max-width:100%; }
}

/* =========================================================
   NEW: Founders section — two paper-framed portraits side
   by side, quote below. This is a new pattern, not a
   replacement of anything.
   ========================================================= */
.founders-section{ padding:120px 0; }
.founders-head{ text-align:center; max-width:640px; margin:0 auto 60px; }
.founders-head .kicker{ font-family:var(--serif); font-style:italic; color:var(--earth); font-size:18px; margin-bottom:16px; }
.founders-head h2{ font-family:var(--serif); font-weight:400; font-size:clamp(28px,3.8vw,44px); }
 
.founders-photos{
  display:flex; justify-content:center; align-items:flex-start;
  gap:50px; flex-wrap:wrap; margin-bottom:60px;
}
.paper-frame{
  background:#FBF9F4;
  padding:16px 16px 40px;
  box-shadow:0 12px 34px rgba(0,0,0,.22);
  width:300px;
  transform:rotate(-2deg);
  transition:transform .3s ease;
  position:relative;
}
.paper-frame::after{
  /* subtle aged-paper grain, matching the site's vintage cartography texture */
  content:'';
  position:absolute; inset:0;
  background-image:url('assets/images/savannah-topo-bg.svg');
  background-size:500px 500px;
  opacity:.5;
  mix-blend-mode:multiply;
  pointer-events:none;
}
.paper-frame-alt{ transform:rotate(2deg); }
.paper-frame:hover{ transform:rotate(0deg) scale(1.02); }
.paper-frame img{
  position:relative; z-index:1;
  display:block; width:100%; height:340px; object-fit:cover;
}
@media (max-width:700px){
  .paper-frame{ width:80%; max-width:320px; }
}
 
.founders-quote-block{ max-width:680px; margin:0 auto; text-align:center; }
.founders-quote-block .founders-quote{
  border-left:none; padding-left:0;
  font-family:var(--serif); font-style:italic; font-weight:300;
  font-size:clamp(19px,2.2vw,24px); line-height:1.6; color:var(--ink);
  margin-bottom:16px;
}
.founders-quote-block .founders-byline{ font-size:13px; letter-spacing:.05em; color:var(--earth); }
 
/* =========================================================
   Social icons moved from header into the About hero image,
   bottom-left corner. If you pasted the earlier ".social-icons"
   header rule, delete it — it's no longer used since the
   header markup for it was removed.
   ========================================================= */
.hero-socials{
  position:absolute; left:60px; bottom:44px; z-index:3;
  display:flex; flex-direction:column; align-items:center; gap:20px;
}
.hero-socials a{
  display:flex; align-items:center; justify-content:center;
  color:var(--white); opacity:.85;
  transition:color .3s ease, opacity .3s ease;
}
.hero-socials a:hover{ opacity:1; }
.hero-socials svg{ width:27px; height:27px; display:block; }
.hero-socials a.ig-icon:hover{ color:#E1306C; }
.hero-socials a.yt-icon:hover{ color:#FF0000; }

@media (max-width:820px){
  .hero-socials{ left:28px; bottom:28px; }
}

/* Mission / Vision / Goal three-up */
.pillars{ padding:20px 0 120px; }
.pillars-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:40px;
}
.pillar-card{
  background:var(--white); padding:34px 30px; border-radius:2px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}
.pillar-card .s-index{ margin-bottom:14px; }
.pillar-card p{ font-size:15px; line-height:1.75; color:#4a473f; }
@media (max-width:900px){
  .pillars-grid{ grid-template-columns:1fr; }
}

/* Affiliations strip */
.affiliates{ padding:100px 0; text-align:center; }
.affiliates .kicker{ font-family:var(--serif); font-style:italic; color:var(--earth); font-size:18px; margin-bottom:40px; }
.affiliates-row{
  display:flex; align-items:center; justify-content:center; flex-wrap:wrap;
  gap:56px;
}
.affiliates-row img{
  height:96px; width:auto; object-fit:contain;
  filter:grayscale(1) opacity(.65);
  transition:filter .35s ease;
}
.affiliates-row img:hover{ filter:grayscale(0) opacity(1); }
@media (max-width:600px){
  .affiliates-row{ gap:34px; }
  .affiliates-row img{ height:64px; }
}


/* =========================================================
   BACKGROUND FIX — replaces the body{...} background rules.
   Search "background-image: url('assets/images/savannah-topo-bg.svg')"
   in style.css, and update the surrounding body{} block to
   match this (repeat/900px900px are gone, replaced with
   cover + no-repeat + fixed attachment).
   ========================================================= */
body{
  font-family: var(--sans);
  background-color: #EFE8D8;
  background-image: url('assets/images/savannah-topo-bg.svg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--ink);
  line-height:1.5;
  overflow-x:hidden;
}

/* =========================================================
   INSTAGRAM SECTION — REPLACES the old ".insta-strip-inner",
   ".insta-text", ".insta-grid" rules entirely. Delete those
   old blocks (search "insta-strip-inner", "insta-text",
   "insta-grid") before pasting this in.
   ========================================================= */
.insta-strip{ background:var(--ink); color:var(--white); padding:100px 0 0; overflow:hidden; }

.insta-strip-head{ text-align:center; max-width:500px; margin:0 auto 50px; }
.insta-strip-head .kicker{ font-family:var(--serif); font-style:italic; font-size:17px; opacity:.85; margin-bottom:14px; }
.insta-strip-head h2{ font-family:var(--serif); font-weight:400; font-size:clamp(28px,3.6vw,42px); margin-bottom:22px; }
.insta-strip-head a{
  display:inline-block; border:1px solid rgba(251,249,244,.6); padding:12px 28px;
  font-size:13px; letter-spacing:.04em; transition:.3s;
}
.insta-strip-head a:hover{ background:var(--white); color:var(--ink); border-color:var(--white); }

/* Full-bleed auto-scrolling carousel */
.insta-carousel{ width:100%; overflow:hidden; padding-bottom:100px; }
.insta-carousel-track{
  display:flex; gap:14px; width:max-content;
  animation: instaScroll 34s linear infinite;
}
.insta-carousel:hover .insta-carousel-track{ animation-play-state:paused; }
.insta-carousel-track img{
  width:230px; height:230px; object-fit:cover; border-radius:2px; flex-shrink:0;
}
@keyframes instaScroll{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-50%); }
}
@media (max-width:820px){
  .insta-carousel-track img{ width:160px; height:160px; }
}
@media (prefers-reduced-motion: reduce){
  .insta-carousel-track{ animation:none; }
}

/* =========================================================
   NORTH TANZANIA MAASAI LAND PAGE — all new additions,
   nothing here replaces existing rules. Append to style.css.
   ========================================================= */

/* Camp selector row */
.camp-selector{ padding:60px 0 20px; text-align:center; }
.camp-selector .kicker{ font-family:var(--serif); font-style:italic; color:var(--earth); font-size:17px; margin-bottom:22px; }
.camp-selector-row{ display:flex; justify-content:center; gap:20px; flex-wrap:wrap; }
.camp-pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 26px; border:1px solid var(--earth); border-radius:30px;
  font-size:14px; letter-spacing:.03em; color:var(--ink);
  transition:.3s;
}
.camp-pill-dot{ width:8px; height:8px; border-radius:50%; background:var(--earth); }
.camp-pill-active{ background:var(--earth); color:var(--white); }
.camp-pill-active .camp-pill-dot{ background:var(--white); }
.camp-pill-active:hover{ opacity:.88; }
.camp-pill-disabled{
  border-color:var(--muted); color:var(--muted); cursor:default;
}
.camp-pill-disabled .camp-pill-dot{ background:var(--muted); }

/* 4-up pillar grid variant (reuses .pillar-card from about page) */
.pillars-grid-4{ grid-template-columns:repeat(4,1fr); }
.pillars-grid-4 .s-index{ text-transform:uppercase; font-size:12px; letter-spacing:.06em; color:var(--earth); font-weight:600; }
@media (max-width:1000px){ .pillars-grid-4{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .pillars-grid-4{ grid-template-columns:1fr; } }

/* Camp showcase */
.camp-showcase{ padding:110px 0; }
.camp-showcase-head{ text-align:center; max-width:680px; margin:0 auto 50px; }
.camp-showcase-head .kicker{ font-family:var(--serif); font-style:italic; color:var(--earth); font-size:17px; margin-bottom:14px; }
.camp-showcase-head h2{ font-family:var(--serif); font-weight:400; font-size:clamp(28px,3.8vw,44px); margin-bottom:20px; }
.camp-showcase-desc{ font-size:15.5px; line-height:1.8; color:#4a473f; }

.camp-gallery{
  display:grid; grid-template-columns:repeat(3,1fr); gap:14px;
}
.camp-gallery img{
  width:100%; height:260px; object-fit:cover; border-radius:2px; cursor:pointer;
  transition:transform .4s ease;
}
.camp-gallery img:hover{ transform:scale(1.03); }
.camp-gallery-slot{
  height:260px; border:2px dashed var(--muted); border-radius:2px;
  display:flex; align-items:center; justify-content:center; text-align:center;
  padding:20px; font-size:13px; color:var(--muted); line-height:1.5;
  background:rgba(140,90,43,.05);
}
@media (max-width:900px){ .camp-gallery{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .camp-gallery{ grid-template-columns:1fr; } }

/* Inactive / coming-soon camp variant */
.camp-showcase-inactive{ background:rgba(140,90,43,.06); }
.camp-showcase-inactive .camp-showcase-head{ opacity:.85; }
.camp-badge{
  display:inline-block; background:var(--muted); color:var(--white);
  font-size:11px; letter-spacing:.06em; text-transform:uppercase;
  padding:5px 14px; border-radius:20px; margin-bottom:16px;
}

/* =========================================================
   GALLERY PAGE — all new additions, append to style.css.
   Reuses .lightbox-close, .map-lightbox, .img-lightbox-inner,
   .camp-badge from earlier pages.
   ========================================================= */

.gallery-intro{ padding:70px 24px 20px; text-align:center; }
.gallery-intro p{
  max-width:640px; margin:0 auto; font-family:var(--serif); font-style:italic;
  font-size:19px; line-height:1.6; color:var(--ink);
}

.gallery-tabs-section{ padding:50px 0 120px; }
.gallery-tabs{
  display:flex; justify-content:center; gap:14px; flex-wrap:wrap; margin-bottom:50px;
}
.gallery-tab{
  background:none; border:1px solid var(--earth); color:var(--ink);
  padding:12px 26px; border-radius:30px; font-size:14px; letter-spacing:.03em;
  cursor:pointer; transition:.3s;
}
.gallery-tab:hover{ background:rgba(140,90,43,.1); }
.gallery-tab-active{ background:var(--earth); color:var(--white); }

.gallery-panel{ }
.gallery-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:34px;
}
.gallery-thumb{
  width:100%; height:260px; object-fit:cover; border-radius:2px; cursor:pointer;
  transition:transform .4s ease;
}
.gallery-thumb:hover{ transform:scale(1.03); }
@media (max-width:900px){ .gallery-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .gallery-grid{ grid-template-columns:1fr; } }

.gallery-panel-actions{
  display:flex; justify-content:center; align-items:center; gap:24px; flex-wrap:wrap;
}
.show-all-btn{
  background:var(--earth); color:var(--white); border:none; padding:13px 30px;
  font-size:13px; letter-spacing:.04em; cursor:pointer; transition:.3s;
}
.show-all-btn:hover{ opacity:.88; }
.gallery-link{
  font-size:13px; letter-spacing:.03em; color:var(--earth); border-bottom:1px solid var(--earth);
  padding-bottom:2px;
}

.gallery-coming-soon{
  text-align:center; padding:80px 24px; background:rgba(140,90,43,.06);
}
.gallery-coming-soon p{ margin-top:14px; color:#4a473f; font-size:15px; }

/* Show-all-photos modal */
.gallery-modal{
  position:fixed; inset:0; z-index:410; background:rgba(10,9,7,.96);
  display:none; align-items:flex-start; justify-content:center;
  padding:60px 24px; overflow-y:auto;
}
.gallery-modal.open{ display:flex; }
.gallery-modal-inner{ position:relative; width:100%; max-width:1100px; }
.gallery-modal-inner h3{
  font-family:var(--serif); font-weight:400; color:var(--white); font-size:26px; margin-bottom:26px;
}
.gallery-modal-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:12px; padding-bottom:60px;
}
.gallery-modal-thumb{
  width:100%; height:200px; object-fit:cover; border-radius:2px; cursor:pointer;
  transition:transform .3s ease;
}
.gallery-modal-thumb:hover{ transform:scale(1.04); }
.gallery-modal .lightbox-close{ position:fixed; top:24px; right:30px; color:var(--white); font-size:36px; }
@media (max-width:800px){ .gallery-modal-grid{ grid-template-columns:repeat(2,1fr); } }
.page-hero h1{ font-family:var(--serif); font-weight:400; font-size:clamp(32px,5vw,56px); }
.page-content{ max-width:760px; margin:0 auto; padding:0 24px 120px; font-size:16px; line-height:1.8; color:#3a3730; }
.page-content h2{ font-family:var(--serif); font-weight:400; font-size:28px; margin:40px 0 16px; }
.page-content p{ margin-bottom:20px; }

/* Gallery lightbox prev/next arrows */
.lightbox-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  background:rgba(0,0,0,.4); border:none; color:var(--white);
  width:48px; height:48px; border-radius:50%; font-size:18px;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:background .25s ease; z-index:3;
}
.lightbox-nav:hover{ background:rgba(0,0,0,.7); }
.lightbox-prev{ left:-64px; }
.lightbox-next{ right:-64px; }
@media (max-width:900px){
  .lightbox-prev{ left:8px; }
  .lightbox-next{ right:8px; }
}

/* =========================================================
   IMAGE MAP — click to zoom, pans with the cursor.
   Append to style.css.

   OPTIONAL CLEAN-UP: these old Google-Map rules are no longer
   used and can be deleted: .area-map-card, .area-map-frame,
   .area-map-frame iframe, .area-map-tint, .map-expand-btn,
   .map-lightbox-inner.  KEEP .map-lightbox itself — the photo
   lightboxes still use it.
   ========================================================= */

/* The map as it appears on the page (transparent PNG on the paper background) */
.map-image-btn{
  display:block; position:relative; margin:10px auto 0;
  width:100%; max-width:1000px;
  background:none; border:none; padding:0; cursor:zoom-in;
}
.map-image-btn img{
  display:block; width:100%; height:auto;
  transition:transform .5s ease, filter .5s ease;
  filter:drop-shadow(0 10px 24px rgba(60,40,20,.18));
}
.map-image-btn:hover img,
.map-image-btn:focus-visible img{
  transform:scale(1.015);
  filter:drop-shadow(0 14px 30px rgba(60,40,20,.28));
}
.map-zoom-label{
  position:absolute; right:4%; bottom:4%;
  background:var(--earth); color:var(--white);
  font-size:12px; letter-spacing:.06em; text-transform:uppercase;
  padding:9px 18px; border-radius:30px;
  transition:opacity .3s ease;
}

/* Full-screen zoomed view (white-background image) */
.map-zoom-overlay{
  position:fixed; inset:0; z-index:500;
  background:#fff; overflow:hidden;
  display:none; cursor:zoom-out;
  touch-action:none;               /* lets touch drag pan the map instead of scrolling */
}
.map-zoom-overlay.open{
  display:block;
  animation: mapZoomIn .45s ease both;
}
@keyframes mapZoomIn{
  from{ opacity:0; transform:scale(1.04); }
  to{ opacity:1; transform:scale(1); }
}
.map-zoom-overlay img{
  position:absolute; top:0; left:0;
  max-width:none; will-change:transform;
  user-select:none; -webkit-user-drag:none; pointer-events:none;
}
.map-zoom-close{
  position:fixed; left:50%; bottom:28px; transform:translateX(-50%);
  background:rgba(26,23,18,.78); color:var(--white);
  font-size:12px; letter-spacing:.06em; padding:10px 22px; border-radius:30px;
  pointer-events:none; white-space:nowrap;
}
@media (prefers-reduced-motion: reduce){
  .map-zoom-overlay.open{ animation:none; }
}

/* =========================================================
   GALLERY PHOTO VIEWER FIX
   Paste at the VERY END of style.css (it must come last so it
   wins over the earlier .lightbox-nav rules). Nothing to delete.

   Why it was broken: the viewer uses .map-lightbox and
   .img-lightbox-inner, but neither was ever defined in
   style.css, so the photo rendered inside the page instead
   of as a pop-up. Also fixes the stacking order so a photo
   opened from "Show All Photos" appears ABOVE that window
   (viewer 600 > modal 410).
   ========================================================= */

/* the pop-up itself */
.map-lightbox{
  position:fixed; inset:0; z-index:600;
  background:rgba(10,9,7,.95);
  display:none; align-items:center; justify-content:center;
  padding:24px;
}
.map-lightbox.open{ display:flex; }

.img-lightbox-inner{
  position:relative; width:100%; max-width:1100px;
  display:flex; justify-content:center;
}
.img-lightbox-inner img{
  display:block; width:auto; height:auto;
  max-width:100%; max-height:84vh;
  object-fit:contain; margin:0 auto;
}

/* controls pinned to the screen edges, so they're always reachable */
.map-lightbox .lightbox-close{
  position:fixed; top:18px; right:26px;
  background:none; border:none; color:var(--white);
  font-size:38px; line-height:1; cursor:pointer; z-index:3;
}
.map-lightbox .lightbox-nav{
  position:fixed; top:50%; transform:translateY(-50%);
  z-index:3;
}
.map-lightbox .lightbox-prev{ left:22px; }
.map-lightbox .lightbox-next{ right:22px; }
.lightbox-counter{
  position:fixed; left:0; right:0; bottom:22px;
  text-align:center; color:var(--cream);
  font-size:13px; letter-spacing:.08em; pointer-events:none;
}

/* keyboard focus ring on thumbnails */
.gallery-thumb:focus-visible,
.gallery-modal-thumb:focus-visible{
  outline:2px solid var(--earth); outline-offset:3px;
}


/* =========================================================
   PERFORMANCE LAYER — paste at the VERY END of style.css
   (it overrides earlier rules; nothing above needs deleting)
   ========================================================= */

/* 1. Fixed body background: "background-attachment: fixed" forces a full-page
      repaint on every scroll frame. A fixed pseudo-layer is painted once and
      just composited. Same look, a fraction of the cost. */
body{
  background-attachment: scroll;
  background-image: none;
}
body::before{
  content:''; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background: url('assets/images/savannah-topo-bg.svg') center / cover no-repeat;
  transform: translateZ(0);
}

/* 2. Never allow sideways scrolling (the cause of the mobile "wobble") */
html, body{ max-width:100%; overflow-x:hidden; }
@supports (overflow:clip){
  html, body{ overflow-x:clip; }
}
img, video, svg{ max-width:100%; }

/* 3. Scroll reveal: the old effect blurred (filter) and scaled whole sections
      for 1s — blur is the most expensive thing a browser can animate on big
      photo sections. Now: fade + short slide only. */
.reveal{
  opacity:0; transform:translateY(22px); filter:none;
  transition:opacity .7s ease, transform .7s ease;
}
.reveal.in-view{ opacity:1; transform:none; filter:none; }

/* 4. Hero grass: 6 animated shapes instead of 150. skewX keeps the roots planted. */
.blade-g{
  transform-box:fill-box; transform-origin:bottom center;
  animation: swayG 4.2s ease-in-out infinite;
}
.blade-g-1{ animation-duration:4.8s; animation-delay:.3s; }
.blade-g-2{ animation-duration:3.6s; animation-delay:.6s; }
.blade-g-3{ animation-duration:5.2s; animation-delay:.15s; }
.blade-g-4{ animation-duration:4s;   animation-delay:.9s; }
.blade-g-5{ animation-duration:3.3s; animation-delay:.45s; }
@keyframes swayG{
  0%,100%{ transform:skewX(-2deg); }
  50%    { transform:skewX(2.6deg); }
}
/* JS adds .is-offscreen when the hero / carousel is not on screen -> animation stops */
.hero.is-offscreen .blade-g,
.insta-carousel.is-offscreen .insta-carousel-track{ animation-play-state:paused; }

/* 5. "Follow the Journey" carousel: one composited layer for the whole track
      (not one per photo), isolated so it can't trigger page-wide repaints. */
.insta-carousel{ contain:layout paint; }
.insta-carousel-track{ will-change:transform; backface-visibility:hidden; }
.insta-carousel-track img{ will-change:auto !important; }
@media (max-width:820px){
  .insta-carousel-track{ animation-duration:26s; }
}

/* 6. Trophy scroller ("the record book") */
.trophy-scroller{ contain:content; overscroll-behavior-x:contain; }
.trophy-card{ background:#26221b; contain:layout paint; }
.trophy-card img{ background:#26221b; }
@media (hover:none){
  .trophy-card:hover img{ transform:none; }
}

/* 7. Skip rendering work for sections that are far off-screen */
.services, .fleet, .crew, .trophies{
  content-visibility:auto;
  contain-intrinsic-size:auto 900px;
}
.hero{ contain:layout paint; }

/* 8. Mobile: the lightest possible hero */
@media (max-width:820px){
  .hero .hero-bg{ height:100%; will-change:auto; }
}
@media (prefers-reduced-motion: reduce){
  .blade-g, .insta-carousel-track{ animation:none; }
  .reveal{ opacity:1; transform:none; transition:none; }
}
