/* =========================================================
   Serengeti Holiday Safaris — Homepage v2
   Palette inspired by the "Safar" reference (deep chocolate-brown
   dark sections + warm terracotta accent + cream/ivory backgrounds),
   built on top of the site's existing --primary/--cream/--heading
   tokens from style.css so the rest of the site stays untouched.
   ========================================================= */

.safari-home {
  --sh-dark: #2b1d12;        /* deep chocolate brown — dark section bg */
  --sh-dark-2: #3a281a;      /* slightly lighter dark, for cards on dark bg */
  --sh-terracotta: #c17f45;  /* warm accent, inspired-by-Safar highlight color */
  --sh-terracotta-deep: #a3672f;
  --sh-cream: var(--cream, #fbf3e3);
  --sh-ivory: #fffaf3;
  --sh-heading: var(--heading, #2e2a22);
  --sh-body: var(--body-text, #6b6355);
  --sh-border: var(--border, #e8ddc4);
  --sh-gold: var(--primary, #a9791f);
}

.safari-home .accent-word {
  color: var(--sh-terracotta);
  font-style: italic;
}

.safari-home .eyebrow-2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sh-terracotta-deep);
  margin-bottom: 14px;
}
.safari-home .eyebrow-2 svg { flex-shrink: 0; }

/* ---------------------------------------------------------------
   Reveal-on-scroll (shared by every section)
   --------------------------------------------------------------- */
.safari-home .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.16,.84,.44,1), transform .8s cubic-bezier(.16,.84,.44,1);
}
.safari-home .reveal.in-view { opacity: 1; transform: translateY(0); }
.safari-home .reveal-delay-1.in-view { transition-delay: .1s; }
.safari-home .reveal-delay-2.in-view { transition-delay: .2s; }
.safari-home .reveal-delay-3.in-view { transition-delay: .3s; }
.safari-home .reveal-delay-4.in-view { transition-delay: .4s; }
.safari-home .reveal-delay-5.in-view { transition-delay: .5s; }
@media (prefers-reduced-motion: reduce) {
  .safari-home .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

.safari-home .sh-section { padding: 90px 0; }
.safari-home .sh-section-tight { padding: 70px 0; }
@media (max-width: 780px) {
  .safari-home .sh-section { padding: 60px 0; }
  .safari-home .sh-section-tight { padding: 46px 0; }
}

.safari-home .sh-head { max-width: 640px; margin-bottom: 44px; }
.safari-home .sh-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.safari-home .sh-head h2 { font-size: 38px; margin-bottom: 14px; }
.safari-home .sh-head p { font-size: 16px; color: var(--sh-body); }
@media (max-width: 600px) {
  .safari-home .sh-head h2 { font-size: 29px; }
}

/* ---------------------------------------------------------------
   HERO (restyled: light cream ground, arch photo + quote card,
   matches Safar's split hero composition)
   --------------------------------------------------------------- */
.safari-home .sh-hero {
  background: var(--sh-cream);
  padding: 64px 0 0;
  overflow: hidden;
}
.safari-home .sh-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.safari-home .sh-hero-content h1 {
  font-size: 54px;
  line-height: 1.12;
  margin-bottom: 20px;
}
.safari-home .sh-hero-content p.lead {
  font-size: 18px;
  color: var(--sh-body);
  max-width: 480px;
  margin-bottom: 28px;
}
.safari-home .sh-hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.safari-home .sh-hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.safari-home .sh-hero-stats .stat strong { display: block; font-size: 16px; color: var(--sh-heading); }
.safari-home .sh-hero-stats .stat span { font-size: 13px; color: var(--sh-body); }

.safari-home .sh-hero-visual { position: relative; min-height: 460px; }
.safari-home .sh-hero-arch {
  position: absolute; top: 0; left: 10%; width: 78%; height: 420px;
  border-radius: 240px 240px 20px 20px;
  overflow: hidden; box-shadow: 0 30px 60px rgba(43,29,18,.25);
}
.safari-home .sh-hero-arch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.safari-home .sh-hero-sunburst {
  position: absolute; top: 26px; left: -6px; color: var(--sh-terracotta);
  animation: sh-spin 14s linear infinite;
}
@keyframes sh-spin { to { transform: rotate(360deg); } }
.safari-home .sh-hero-quote-wrap {
  position: absolute; right: -4%; bottom: -30px; width: 340px; max-width: 90vw;
  z-index: 4;
}
.safari-home .sh-hero-quote-wrap .quote-card { box-shadow: 0 24px 60px rgba(43,29,18,.3); }

/* ---------------------------------------------------------------
   HERO CARD — bespoke "Reserve Your Safari" widget, laid out like
   the Safar reference's check-in/check-out booking box (paired
   fields in 2-column rows, boxed cream inputs, full-width button)
   --------------------------------------------------------------- */
.safari-home .sh-hero-card {
  background: #fff;
  border-radius: 22px;
  padding: 30px 28px 26px;
  box-shadow: 0 24px 60px rgba(43,29,18,.3);
}
.safari-home .sh-hero-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--sh-heading);
  margin-bottom: 18px;
}
.safari-home .sh-hf-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px;
}
.safari-home .sh-hf-field label {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--sh-body); margin-bottom: 7px;
}
.safari-home .sh-hf-field input,
.safari-home .sh-hf-field select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--sh-border);
  border-radius: 10px; background: var(--sh-cream); font-family: inherit;
  font-size: 13.5px; color: var(--sh-heading); appearance: none; box-sizing: border-box;
}
.safari-home .sh-hf-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b6355' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; cursor: pointer;
}
.safari-home .sh-hf-field input:focus,
.safari-home .sh-hf-field select:focus { outline: none; border-color: var(--sh-terracotta); }
.safari-home .sh-hf-submit {
  width: 100%; padding: 15px; border: none; border-radius: 10px; margin-top: 4px;
  background: var(--sh-gold); color: #fff; font-size: 13px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; cursor: pointer; transition: background .25s ease;
}
.safari-home .sh-hf-submit:hover { background: var(--sh-terracotta-deep); }
.safari-home .sh-hf-submit:disabled { opacity: .7; cursor: default; }
.safari-home .sh-hero-card .form-success,
.safari-home .sh-hero-card .form-error { font-size: 13px; margin-bottom: 12px; }
@media (max-width: 420px) {
  .safari-home .sh-hf-row { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .safari-home .sh-hero-grid { grid-template-columns: 1fr; }
  .safari-home .sh-hero-content h1 { font-size: 40px; }
  .safari-home .sh-hero-visual { min-height: 380px; margin-top: 20px; }
  .safari-home .sh-hero-quote-wrap { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 60px; }
  .safari-home .sh-hero-arch { left: 4%; width: 92%; }
}

.safari-home .sh-partners-band {
  margin-top: 56px; background: var(--sh-dark); padding: 22px 0;
}
.safari-home .sh-partners-band .label {
  color: #f2e8d8; font-size: 11px; text-transform: uppercase; letter-spacing: 2px;
  text-align: center; margin-bottom: 14px; opacity: .85; font-weight: 600;
}
.safari-home .sh-partners-band .logos {
  display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap;
}
.safari-home .sh-partners-band img { height: 34px; width: auto; opacity: .9; }

/* ---------------------------------------------------------------
   DESTINATIONS — dark full-bleed strip, horizontal scroll-snap
   circular photos (Safar's "Next Safari Destination" section)
   --------------------------------------------------------------- */
.safari-home .sh-dest-band { background: var(--sh-dark); color: #f2e8d8; }
.safari-home .sh-dest-band .sh-head h2 { color: #fff; }
.safari-home .sh-dest-band .sh-head p { color: #cbb99e; }

/* Bordered pill eyebrow + hollow/stroked accent word, matching the
   Safar reference's "Next Safari Destination" band treatment */
.safari-home .sh-badge-pill {
  display: inline-block; padding: 7px 20px; border: 1px solid rgba(242,232,216,.35);
  border-radius: 30px; font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: #d8c6a8; margin-bottom: 18px;
}
.safari-home .sh-dest-band .accent-word {
  color: transparent; -webkit-text-stroke: 1.3px var(--sh-cream); font-style: italic;
}

.safari-home .sh-scroll-row {
  display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 6px 6px 18px; margin: 0 -6px;
  scrollbar-width: thin;
}
.safari-home .sh-scroll-row::-webkit-scrollbar { height: 6px; }
.safari-home .sh-scroll-row::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 4px; }

.safari-home .sh-dest-item {
  flex: 0 0 150px; scroll-snap-align: start; text-align: center; text-decoration: none;
}
.safari-home .sh-dest-photo {
  width: 128px; height: 128px; border-radius: 50%; overflow: hidden; margin: 0 auto 14px;
  border: 3px solid var(--sh-terracotta); transition: transform .35s ease, box-shadow .35s ease;
}
.safari-home .sh-dest-item:hover .sh-dest-photo { transform: translateY(-6px) scale(1.04); box-shadow: 0 16px 30px rgba(0,0,0,.35); }
.safari-home .sh-dest-photo img { width: 100%; height: 100%; object-fit: cover; }
.safari-home .sh-dest-item .divider-tick { display: block; width: 1px; height: 16px; background: rgba(242,232,216,.4); margin: 0 auto 8px; }
.safari-home .sh-dest-item .name { display: block; font-family: 'Cormorant Garamond', serif; font-size: 18px; color: #fff; margin-bottom: 4px; }
.safari-home .sh-dest-item .count { font-size: 12px; color: var(--sh-terracotta); text-transform: uppercase; letter-spacing: 1px; }

/* ---------------------------------------------------------------
   ABOUT + animated stat counters
   --------------------------------------------------------------- */
.safari-home .sh-about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.safari-home .sh-about-img { position: relative; }
.safari-home .sh-about-img img { border-radius: 18px; width: 100%; height: 420px; object-fit: cover; }
.safari-home .sh-about-img .badge {
  position: absolute; bottom: -24px; left: -24px; background: var(--sh-terracotta); color: #fff;
  padding: 20px 26px; border-radius: 14px; box-shadow: 0 16px 30px rgba(161,90,40,.35);
  font-family: 'Cormorant Garamond', serif; text-align: center;
}
.safari-home .sh-about-img .badge strong { display: block; font-size: 30px; line-height: 1; }
.safari-home .sh-about-img .badge span { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }

.safari-home .sh-stats-row { display: flex; gap: 40px; flex-wrap: wrap; margin: 30px 0 32px; }
.safari-home .sh-stat strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 42px; color: var(--sh-heading); line-height: 1; }
.safari-home .sh-stat strong .suffix { color: var(--sh-terracotta); }
.safari-home .sh-stat span { font-size: 13px; color: var(--sh-body); text-transform: uppercase; letter-spacing: .5px; }

@media (max-width: 900px) {
  .safari-home .sh-about-grid { grid-template-columns: 1fr; }
  .safari-home .sh-about-img img { height: 300px; }
}

/* ---------------------------------------------------------------
   TOURS — horizontal scroll-snap row wrapping the site's existing
   .tour-card component (rendered by render_tour_card())
   --------------------------------------------------------------- */
.safari-home .sh-tours-row.sh-scroll-row { scroll-snap-type: x mandatory; }
.safari-home .sh-tours-row .tour-card { flex: 0 0 320px; scroll-snap-align: start; }
@media (max-width: 600px) {
  .safari-home .sh-tours-row .tour-card { flex-basis: 82vw; }
}
.safari-home .sh-tours-nav { display: flex; gap: 10px; justify-content: flex-end; margin-bottom: -8px; }
.safari-home .sh-scroll-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--sh-border);
  background: #fff; cursor: pointer; font-size: 16px; color: var(--sh-heading);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .25s ease, color .25s ease;
}
.safari-home .sh-scroll-btn:hover { background: var(--sh-terracotta); color: #fff; border-color: var(--sh-terracotta); }

.safari-home .sh-section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }

/* ---------------------------------------------------------------
   WHY CHOOSE US
   --------------------------------------------------------------- */
.safari-home .sh-why-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; }
.safari-home .sh-why-grid img { border-radius: 18px; width: 100%; height: 460px; object-fit: cover; }
.safari-home .sh-why-list { list-style: none; margin-top: 26px; display: grid; gap: 16px; }
.safari-home .sh-why-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; color: var(--sh-heading); }
.safari-home .sh-why-list .tick {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--sh-terracotta);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; margin-top: 2px;
}
@media (max-width: 900px) {
  .safari-home .sh-why-grid { grid-template-columns: 1fr; }
  .safari-home .sh-why-grid img { height: 280px; }
}

/* ---------------------------------------------------------------
   PROCESS (3-step "seamless planning" band)
   --------------------------------------------------------------- */
.safari-home .sh-process-band { background: var(--sh-ivory); }
.safari-home .sh-process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.safari-home .sh-process-step { position: relative; padding: 34px 28px; background: #fff; border-radius: 16px; border: 1px solid var(--sh-border); }
.safari-home .sh-process-step .num {
  font-family: 'Cormorant Garamond', serif; font-size: 46px; color: var(--sh-terracotta); line-height: 1; margin-bottom: 14px; opacity: .55;
}
.safari-home .sh-process-step h3 { font-size: 21px; margin-bottom: 10px; }
.safari-home .sh-process-step p { font-size: 14.5px; color: var(--sh-body); }
@media (max-width: 860px) {
  .safari-home .sh-process-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------
   GALLERY ("Safari Highlights")
   --------------------------------------------------------------- */
.safari-home .sh-gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 18px;
}
.safari-home .sh-gallery-item {
  position: relative; overflow: hidden; border-radius: 12px; text-decoration: none; display: block;
}
.safari-home .sh-gallery-item img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease;
}
.safari-home .sh-gallery-item:hover img { transform: scale(1.08); }
.safari-home .sh-gallery-item::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(20,12,6,.75) 100%);
}
.safari-home .sh-gallery-item .cap {
  position: absolute; left: 16px; bottom: 14px; z-index: 2; color: #fff; font-family: 'Cormorant Garamond', serif; font-size: 20px;
}
@media (max-width: 760px) {
  .safari-home .sh-gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 480px) {
  .safari-home .sh-gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
}

/* ---------------------------------------------------------------
   BLOG teaser
   --------------------------------------------------------------- */
.safari-home .sh-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .safari-home .sh-blog-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------
   Final CTA band
   --------------------------------------------------------------- */
.safari-home .sh-cta-band {
  background: var(--sh-dark); color: #fff; border-radius: 22px; padding: 60px 50px;
  display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
}
.safari-home .sh-cta-band h2 { color: #fff; font-size: 32px; max-width: 520px; }
.safari-home .sh-cta-band p { color: #cbb99e; margin-top: 8px; }
.safari-home .sh-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.safari-home .sh-cta-actions .btn-outline { border-color: rgba(255,255,255,.4); }

/* ---------------------------------------------------------------
   Animated counter number span
   --------------------------------------------------------------- */
.safari-home [data-count-to] { font-variant-numeric: tabular-nums; }
