/* =====================================================================
   Embers of the Pearl Safaris: homepage
   Hero slider · trust strip · signature experiences · why travel with us
   Reference viewport: 1440px.
   ===================================================================== */

/* ---------- Shared buttons ---------- */
.hbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 52px;
  padding: 0 26px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform 250ms ease, background-color 250ms ease, box-shadow 250ms ease, color 250ms ease, border-color 250ms ease;
}
.hbtn svg { width: 22px; height: 22px; flex-shrink: 0; }
.hbtn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .12); }
.hbtn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hbtn-gold { background: var(--gold-light); color: var(--ink); }
.hbtn-gold:hover { background: #EDB93D; }
.hbtn-gold svg { transition: transform 250ms ease; }
.hbtn-gold:hover svg { transform: translateX(3px); }
.hbtn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.hbtn-outline:hover { background: rgba(255, 255, 255, .12); }

/* main.css pads every <section>; these bands are full-bleed. */
.home-hero, .trust, .why { padding: 0; }

/* ---------- Hero ---------- */
.home-hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  isolation: isolate;
  background: var(--forest-deep);
  color: #fff;
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  opacity: 0;
  transition: opacity 1000ms ease;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center 45%);
  /* --zoom lets a slide push its subject away from the headline. */
  transform-origin: var(--origin, 50% 50%);
  transform: scale(calc(var(--zoom, 1) * 1.03));
  transition: transform 7000ms cubic-bezier(.2, .6, .35, 1);
}
.hero-slide.is-active img { transform: scale(var(--zoom, 1)); }
.hero-slide img[data-img-empty] { opacity: 0; }

/* Per-slide crops: keep the animals right of the headline. */
.hero-slide[data-slide="0"] img { --pos: 50% 30%; --zoom: 1.4; --origin: 0% 12%; }
.hero-slide[data-slide="1"] img { --pos: 60% 55%; }
.hero-slide[data-slide="2"] img { --pos: 60% 62%; }
.hero-slide[data-slide="3"] img { --pos: center 55%; }

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 20, 12, .80) 0%, rgba(0, 25, 14, .52) 40%, rgba(0, 0, 0, .02) 75%),
    linear-gradient(0deg, rgba(0, 0, 0, .22) 0%, transparent 22%);
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 680px;
  margin-left: max(8.5vw, calc((100vw - 1320px) / 2 + 60px));
  padding: 0 20px 6px 0;
}
.hh-eyebrow {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
  line-height: 1;
}
.hh-eyebrow::after {
  content: "";
  display: block;
  width: 74%;
  height: 3px;
  margin-top: 11px;
  background: var(--gold-light);
}
.home-hero h1 {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 62px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.hero-desc {
  margin-top: 18px;
  max-width: 470px;
  font-size: 18px;
  line-height: 1.5;
  color: #fff;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(3, 31, 26, .28);
  color: #fff;
  cursor: pointer;
  opacity: .75;
  backdrop-filter: blur(4px);
  transition: opacity .25s ease, background-color .25s ease, transform .25s ease;
}
.hero-arrow svg { width: 22px; height: 22px; }
.hero-arrow:hover, .hero-arrow:focus-visible { opacity: 1; background: rgba(3, 31, 26, .6); }
.hero-arrow:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 22px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}
.hh-dot {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: background-color .25s ease, transform .25s ease;
}
.hh-dot:hover { transform: scale(1.15); }
.hh-dot[aria-current="true"] { background: var(--gold-light); }
.hh-dot:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* ---------- Trust strip ---------- */
.trust { background: #fff; border-bottom: 1px solid #EFEFEA; }
.trust-grid {
  width: min(1320px, calc(100% - 96px));
  margin: 0 auto;
  min-height: 96px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}
.trust-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px 12px;
}
.trust-item + .trust-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 46px;
  margin-top: -23px;
  background: #DDDDDD;
}
.trust-item svg { width: 44px; height: 44px; color: var(--ember); flex-shrink: 0; }
.trust-item strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.trust-item span { display: block; font-size: 14px; line-height: 1.4; color: #4E5751; }

/* ---------- Signature experiences ---------- */
.experiences {
  background: linear-gradient(180deg, #F6F6F2 0%, #FFFFFF 46%);
  padding: 40px 0 38px;
}
.exp-head { text-align: center; margin-bottom: 26px; }
.exp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ember);
}
.exp-eyebrow::before, .exp-eyebrow::after {
  content: "";
  width: 50px;
  height: 2px;
  background: var(--ember);
}
.exp-head h2 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--forest);
}
.exp-grid {
  width: min(1352px, calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.exp-card {
  position: relative;
  display: block;
  height: 260px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--forest);
  color: #fff;
  box-shadow: 0 10px 26px -14px rgba(3, 31, 26, .45);
  transition: transform 500ms ease, box-shadow 500ms ease;
}
.exp-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.exp-card::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(to top, rgba(3, 42, 33, .98) 0%, rgba(3, 42, 33, .82) 50%, transparent 100%);
  transition: opacity 500ms ease;
}
.exp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(3, 31, 26, 0);
  transition: background-color 500ms ease;
  pointer-events: none;
}
.exp-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: block;
  padding: 0 20px 20px 22px;
}
.exp-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  color: #fff;
  letter-spacing: -0.005em;
}
.exp-card-text > span {
  display: block;
  margin-top: 6px;
  max-width: calc(100% - 56px);
  font-size: 14.5px;
  line-height: 1.38;
  color: rgba(255, 255, 255, .95);
}
.exp-card-arrow {
  position: absolute;
  right: 20px;
  bottom: 22px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--ink);
  transition: transform 300ms ease;
}
.exp-card-arrow svg { width: 18px; height: 18px; }
.exp-card:hover, .exp-card:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 34px -16px rgba(3, 31, 26, .55); }
.exp-card:hover img, .exp-card:focus-visible img { transform: scale(1.06); }
.exp-card:hover::before, .exp-card:focus-visible::before { background: rgba(3, 31, 26, .14); }
.exp-card:hover .exp-card-arrow, .exp-card:focus-visible .exp-card-arrow { transform: translateX(3px); }
.exp-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Why travel with us ---------- */
.why { background: var(--forest); }
.why-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 430px;
}
.why-media { position: relative; overflow: hidden; min-height: 100%; }
.why-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.why-panel {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: #fff;
  padding: 46px 66px 54px;
}
.why-copy { position: relative; z-index: 1; max-width: 560px; }
.why-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
}
.why-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold-light); }
.why h2 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
  letter-spacing: -0.01em;
}
.why-desc {
  margin-top: 14px;
  max-width: 500px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .95);
}
.why-list { margin-top: 16px; display: grid; gap: 7px; padding-left: 10px; }
.why-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15.5px;
  font-weight: 500;
  color: #fff;
}
.why-list svg { width: 24px; height: 24px; color: var(--gold-light); flex-shrink: 0; }
.why-btn { margin-top: 26px; height: 48px; min-width: 210px; }
.why-art {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(62%, 420px);
  height: auto;
  color: var(--gold);
  opacity: .75;
  pointer-events: none;
}

/* ---------- Existing sections below the reference layout ---------- */

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .home-hero h1 { font-size: 56px; }
  .exp-card h3 { font-size: 21px; }
  .trust-item { gap: 12px; }
  .trust-item svg { width: 38px; height: 38px; }
  .trust-item strong { font-size: 16px; }
  .trust-item span { font-size: 13px; }
}

@media (max-width: 1199px) {
  .home-hero { height: 520px; }
  .home-hero h1 { font-size: 48px; }
  .hero-desc { font-size: 17px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); padding: 10px 0; }
  .trust-item { justify-content: flex-start; padding: 16px 24px; }
  .trust-item:nth-child(3)::before { display: none; }
  .exp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exp-card { height: 300px; }
  .why-panel { padding: 46px 44px 150px; }
  .why h2 { font-size: 38px; }
  .why-art { width: min(70%, 380px); }
}

@media (max-width: 899px) {
  .why-split { grid-template-columns: 1fr; }
  .why-media { height: 340px; min-height: 0; }
}

@media (max-width: 767px) {
  /* Phones: photo on top, copy beneath it, so text never covers the animals. */
  .home-hero { height: auto; min-height: 580px; display: flex; flex-direction: column; }
  .hero-slides { position: relative; inset: auto; height: 330px; flex-shrink: 0; overflow: hidden; }
  .hero-shade {
    inset: 0 0 auto;
    height: 330px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, 0) 40%, rgba(3, 31, 26, .55) 78%, #031F1A 100%);
  }
  .hero-content {
    height: auto;
    margin: -56px 0 0;
    padding: 0 20px 64px;
    justify-content: flex-start;
  }
  .hero-slide[data-slide="0"] img { --pos: 64% 40%; --zoom: 1; }
  .hero-slide[data-slide="1"] img { --pos: 55% 50%; }
  .hero-slide[data-slide="2"] img { --pos: 60% 55%; }
  .hero-slide[data-slide="3"] img { --pos: 40% 50%; }
  .hh-eyebrow { font-size: 12px; letter-spacing: 3px; }
  .home-hero h1 { font-size: 38px; margin-top: 18px; }
  .hero-desc { font-size: 16px; }
  .hero-ctas { gap: 12px; }
  .hbtn { height: 50px; padding: 0 20px; font-size: 15px; }
  .hero-ctas .hbtn { flex: 1 1 200px; }
  .hero-arrow { display: none; }
  .hero-dots { bottom: 24px; }

  .trust-grid { width: calc(100% - 32px); grid-template-columns: 1fr 1fr; padding: 8px 0; }
  .trust-item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 10px; }
  .trust-item + .trust-item::before { display: none; }
  .trust-item svg { width: 34px; height: 34px; }
  .trust-item strong { font-size: 15px; }

  .experiences { padding: 44px 0 48px; }
  .exp-eyebrow { font-size: 12px; letter-spacing: 3px; gap: 12px; }
  .exp-eyebrow::before, .exp-eyebrow::after { width: 28px; }
  .exp-head { padding: 0 20px; }
  .exp-head h2 { font-size: 32px; }
  .exp-grid { width: calc(100% - 40px); grid-template-columns: 1fr; gap: 16px; }
  .exp-card { height: 260px; }

  .why-media { height: 250px; }
  .why-panel { padding: 40px 20px 150px; }
  .why h2 { font-size: 32px; }
  .why-desc { font-size: 16px; }
  .why-list { padding-left: 0; }
  .why-btn { width: 100%; }
  .why-art { width: 82%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition-duration: 200ms; }
  .hero-slide img, .hero-slide.is-active img { transform: scale(var(--zoom, 1)); transition: none; }
  .exp-card, .exp-card img, .exp-card-arrow, .hbtn { transition: none; }
}

/* =====================================================================
   Meet Our Safari Guides
   ===================================================================== */
.section-guides {
  position: relative;
  overflow: hidden;
  background: #FAF7F0;
  border: 0;
  padding: 65px 0 75px;
  isolation: isolate;
}
.guides-art {
  position: absolute;
  top: 18px;
  right: 0;
  z-index: -1;
  width: min(620px, 48vw);
  height: auto;
  color: #B9A27A;
  opacity: .13;
  pointer-events: none;
}

.guides-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.guides-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #98700D;
}
.guides-eyebrow::before { content: ""; width: 35px; height: 2px; background: #D7A52B; }
.section-guides h2 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #073B30;
}
.guides-intro {
  margin-top: 14px;
  max-width: 750px;
  font-size: 16px;
  line-height: 1.7;
  color: #455450;
}

.section-guides .guides-scroll-nav { display: flex; gap: 12px; flex-shrink: 0; margin-bottom: 6px; }
.section-guides .guides-scroll-nav[hidden] { display: none; }
.section-guides .guides-nav-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1.5px solid #073B30;
  border-radius: 50%;
  background: transparent;
  color: #073B30;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 250ms ease, color 250ms ease, opacity 250ms ease;
}
.section-guides .guides-nav-btn svg { width: 22px; height: 22px; }
.section-guides .guides-nav-btn:hover:not(:disabled) { background: #073B30; color: #fff; transform: none; }
.section-guides .guides-nav-btn:disabled { opacity: .35; cursor: default; }
.section-guides .guides-nav-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Track: three cards per view on desktop, native swipe on touch screens. */
.section-guides .guides-scroll-track {
  display: flex;
  gap: 26px;
  margin-top: 35px;
  padding: 4px 4px 24px;
  margin-left: -4px;
  margin-right: -4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  align-items: stretch;
}
.section-guides .guides-scroll-track::-webkit-scrollbar { display: none; }
.section-guides .guides-scroll-track:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 20px; }

.section-guides .guide-card {
  flex: 0 0 calc((100% - 52px) / 3);
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #EAE5DC;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .09);
  transition: transform 350ms ease, box-shadow 350ms ease;
}
.section-guides .guide-card:hover {
  transform: translateY(-5px);
  border-color: #EAE5DC;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .13);
}

/* Photo, with an initials placeholder underneath until a real photo loads. */
.guide-photo {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #0B4A3C 0%, #073B30 55%, #052D25 100%);
}
.guide-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 500ms ease;
}
.section-guides .guide-card:hover .guide-photo img { transform: scale(1.04); }
.guide-photo img[data-img-empty],
.guide-photo img:not([src]) { visibility: hidden; }
.guide-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(243, 199, 90, .9);
  background:
    radial-gradient(circle at 50% 46%, rgba(243, 199, 90, .14) 0 72px, transparent 73px),
    radial-gradient(circle at 50% 46%, transparent 0 84px, rgba(243, 199, 90, .18) 85px 86px, transparent 87px);
}
.section-guides .guide-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: auto;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #F3C75A;
  color: #073B30;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  backdrop-filter: none;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35);
}

.guide-panel {
  min-height: 95px;
  padding: 18px 28px;
  background: #073B30;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section-guides .guide-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
.section-guides .guide-role {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.4;
  text-transform: uppercase;
  color: #F3C75A;
}

.guide-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 28px 25px;
  background: #fff;
}
.section-guides .guide-bio {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #35423E;
}
.guide-specialties {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.section-guides .guide-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: #F7F0E1;
  color: #073B30;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.section-guides .guide-tag .ico { width: 14px; height: 14px; color: #B98408; flex-shrink: 0; }

@media (max-width: 1199px) {
  .section-guides { padding: 60px 0 70px; }
  .section-guides h2 { font-size: 40px; }
  .section-guides .guide-card { flex-basis: calc((100% - 26px) / 2); }
  .guide-photo { height: 240px; }
}

@media (max-width: 767px) {
  .section-guides { padding: 52px 0 60px; }
  .section-guides .wrap { width: calc(100% - 48px); }
  .guides-head { flex-direction: column; align-items: flex-start; gap: 22px; }
  .guides-eyebrow { font-size: 12px; letter-spacing: 2.5px; }
  .section-guides h2 { font-size: 34px; margin-top: 14px; }
  .guides-intro { font-size: 15.5px; }
  .section-guides .guides-scroll-track { margin-top: 24px; gap: 16px; }
  .section-guides .guide-card { flex-basis: 100%; }
  .guide-photo { height: 240px; }
  .guide-panel { padding: 16px 22px; }
  .section-guides .guide-name { font-size: 24px; }
  .guide-content { padding: 18px 22px 22px; }
  .guides-art { width: 80vw; opacity: .1; }
}

@media (prefers-reduced-motion: reduce) {
  .section-guides .guides-scroll-track { scroll-behavior: auto; }
  .section-guides .guide-card, .guide-photo img { transition: none; }
}
