/* Safari Sisters homepage redesign: cinematic imagery, editorial spacing, clear conversion. */
:root {
  --home-ink: #17231d;
  --home-muted: #687169;
  --home-forest: #173e2b;
  --home-moss: #386247;
  --home-coral: #d9673f;
  --home-gold: #d9aa52;
  --home-ivory: #f5f1e8;
  --home-white: #fff;
  --home-line: rgba(23, 35, 29, 0.13);
}

body {
  background: var(--home-white);
  color: var(--home-ink);
}

html {
  scroll-behavior: auto;
}

/* Transparent over the hero, then compact and white after scrolling. */
.site-header,
.site-header.scrolled {
  background: transparent;
  box-shadow: none;
}

.topbar {
  min-height: 30px;
  padding: 6px 24px;
  background: rgba(18, 51, 35, 0.96);
  color: #fff;
  font-size: 12px;
}

.nav {
  width: min(1320px, calc(100% - 48px));
  min-height: 78px;
  color: #fff;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 var(--home-line);
}

.site-header.scrolled .nav {
  color: var(--home-ink);
}

.site-header:not(.scrolled) .brand strong,
.site-header:not(.scrolled) .brand small,
.site-header:not(.scrolled) .nav-links a {
  color: #fff;
}

.brand-mark {
  border-color: var(--home-gold);
  color: inherit;
}

.nav-links {
  gap: 26px;
  font-size: 14px;
}

.nav-links a::after {
  background: var(--home-gold);
}

/* Cinematic opening screen. */
.hero {
  min-height: 780px;
  color: #fff;
}

.hero picture img {
  object-position: center 48%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 19, 13, 0.83) 0%, rgba(8, 19, 13, 0.57) 43%, rgba(8, 19, 13, 0.18) 78%),
    linear-gradient(180deg, rgba(8, 19, 13, 0.25), rgba(8, 19, 13, 0.16) 58%, rgba(8, 19, 13, 0.68));
}

.hero-inner {
  width: min(1320px, calc(100% - 48px));
  margin: 152px auto 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

.hero-copy {
  max-width: 820px;
}

.hero-copy .eyebrow {
  color: var(--home-gold);
}

.hero-copy h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(56px, 5.5vw, 84px);
  line-height: 0.98;
}

.hero-copy .lead {
  max-width: 690px;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  margin-bottom: 4px;
}

.btn.primary {
  background: var(--home-coral);
  box-shadow: none;
}

.btn.secondary {
  background: var(--home-gold);
}

/* Search-like inquiry bar inspired by strong travel marketplaces. */
.quote-card {
  width: min(1050px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 142px;
  align-items: end;
  gap: 0;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 46px rgba(4, 10, 7, 0.28);
}

.quote-card h2,
.quote-card .form-note {
  display: none;
}

.quote-card label {
  min-height: 58px;
  margin: 0;
  padding: 3px 14px;
  gap: 2px;
  border-right: 1px solid #e1e5e1;
  color: #6c756f;
  font-size: 11px;
}

.quote-card input,
.quote-card select {
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--home-ink);
  box-shadow: none;
  font-size: 14px;
  font-weight: 800;
}

.quote-card .btn {
  min-height: 58px;
  padding: 10px 14px;
}

/* Trust information sits as a clean transition from photography to content. */
.trust-strip {
  width: 100%;
  margin: 0;
  border-radius: 0;
  background: #fff;
  border-bottom: 1px solid var(--home-line);
  box-shadow: none;
}

.trust-strip div {
  padding: 24px 30px;
  border-right: 0;
  text-align: center;
}

.trust-strip strong {
  color: var(--home-forest);
  font-size: 25px;
}

.trust-strip span {
  margin-top: 4px;
  font-size: 13px;
}

/* Editorial introduction. */
.intro-feature {
  width: 100%;
  min-height: 540px;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  background: var(--home-ivory);
}

.intro-feature-copy {
  max-width: none;
  padding: 96px clamp(54px, 7vw, 150px) 96px max(48px, calc((100vw - 1320px) / 2));
}

.intro-feature h2 {
  max-width: 620px;
  font-size: clamp(38px, 3.3vw, 54px);
  line-height: 1.08;
}

.intro-feature p {
  color: var(--home-muted);
}

.intro-feature-visual {
  min-height: 540px;
  border-radius: 0;
}

.desktop-scene-strip {
  display: none;
}

.section-kicker,
.tag {
  color: var(--home-coral);
}

/* Reusable centered content widths. */
.section,
.category-section,
.faq-section {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 90px 0;
}

.section-heading h2,
.why-copy h2,
.quote-section h2,
.faq-section h2 {
  color: var(--home-ink);
  font-size: clamp(34px, 3.6vw, 50px);
}

/* Travel styles: pure-color cards, no image backgrounds. */
.category-section {
  background: #fff;
}

.category-section::before,
.category-section::after,
.tours::before,
.tours::after,
.package-showcase::before,
.package-showcase::after,
.migration-band::before,
.migration-band::after,
.why::before,
.why::after,
.quote-section::before,
.quote-section::after,
.faq-section::before,
.faq-section::after {
  display: none;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.category-grid article,
.category-grid article:nth-child(2),
.category-grid article:nth-child(3) {
  min-height: 270px;
  padding: 30px;
  justify-content: flex-start;
  color: var(--home-ink);
  background: var(--home-ivory);
  border: 1px solid var(--home-line);
  border-radius: 8px;
  box-shadow: none;
}

.category-grid article::after {
  display: none;
}

.category-grid h3 {
  color: var(--home-ink);
  font-size: 26px;
}

.category-grid p {
  color: var(--home-muted);
}

.category-grid a {
  margin-top: auto;
  color: var(--home-coral);
}

/* Desktop category feature: product choices on the left, real safari image on the right. */
@media (min-width: 981px) {
  .category-section {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 620px;
    padding: 88px max(28px, calc((100vw - 1320px) / 2));
    background: var(--home-ivory);
    overflow: hidden;
  }

  .category-section > * {
    position: relative;
    z-index: 1;
    width: min(700px, 54%);
  }

  .category-section::after {
    display: block;
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40%;
    background: #dfe5dc url("assets/elephants-square.jpg") center / contain no-repeat;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .category-grid article,
  .category-grid article:nth-child(2),
  .category-grid article:nth-child(3) {
    min-height: 150px;
    padding: 22px 26px;
    background: #fff;
  }
}

/* Featured itineraries. */
.tours {
  width: 100%;
  margin: 0;
  padding: 90px max(24px, calc((100vw - 1320px) / 2));
  background: #edf2ec;
}

.tours > * {
  width: 100%;
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tour-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.tour-card .tour-media {
  display: block;
  order: 1;
  width: 100%;
  height: auto;
}

.tour-media img,
.tour-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tour-body {
  order: 2;
  padding: 24px;
}

.tour-body h3 {
  min-height: 0;
  font-size: 22px;
}

.filter,
.package-tab {
  border-radius: 6px;
  border-color: var(--home-line);
  background: #fff;
}

.filter.active,
.package-tab.active {
  background: var(--home-forest);
}

/* Full product catalog. */
.package-showcase {
  width: 100%;
  margin: 0;
  padding: 90px max(24px, calc((100vw - 1320px) / 2));
  background: #fff;
}

.package-showcase > * {
  width: 100%;
}

.package-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 180px;
  gap: 24px;
  min-height: 0;
  padding: 16px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.package-row img {
  display: block;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.package-content {
  grid-column: 2;
  grid-row: 1;
}

.package-actions {
  grid-column: 3;
  grid-row: 1;
  width: auto;
  grid-template-columns: 1fr;
}

/* Seasonal migration feature. */
.migration-band {
  width: 100%;
  margin: 0;
  padding: 100px max(24px, calc((100vw - 1320px) / 2));
  grid-template-columns: minmax(0, 1fr) 440px;
  background: var(--home-forest);
}

.migration-band > * {
  width: 100%;
}

.season-list {
  width: 100%;
  padding: 0;
  background: transparent;
}

.season-list div {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

/* Team, inquiry and FAQ. */
.why {
  width: min(1320px, calc(100% - 48px));
  padding: 100px 0;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 76px;
  background: #fff;
}

.why-image {
  order: 1;
}

.why-copy {
  order: 2;
}

.why-image img {
  aspect-ratio: 4 / 5;
  box-shadow: none;
}

.quote-section {
  width: 100%;
  margin: 0;
  padding: 90px max(24px, calc((100vw - 1320px) / 2));
  grid-template-columns: 0.78fr 1.22fr;
  background: var(--home-ivory);
}

.quote-section > * {
  width: 100%;
}

.wide-form {
  width: 100%;
  padding: 24px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #fff;
}

.faq-section {
  background: #fff;
}

.faq-list details {
  border-color: var(--home-line);
  box-shadow: none;
}

.footer {
  background: #10261a;
}

@media (max-width: 980px) {
  .topbar {
    background: var(--home-forest);
  }

  .nav {
    width: calc(100% - 28px);
    min-height: 70px;
  }

  .site-header .nav {
    color: #fff;
  }

  .site-header.scrolled .nav {
    color: var(--home-ink);
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    width: calc(100% - 28px);
    grid-template-columns: minmax(0, 1fr);
    margin-top: 142px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 11vw, 58px);
  }

  .quote-card {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 22px;
  }

  .quote-card h2,
  .quote-card .form-note {
    display: block;
  }

  .quote-card label {
    min-height: 0;
    margin-bottom: 13px;
    padding: 0;
    border-right: 0;
  }

  .quote-card input,
  .quote-card select {
    min-height: 46px;
    padding: 12px 13px;
    border: 1px solid var(--home-line);
    border-radius: 6px;
  }

  .trust-strip,
  .category-grid,
  .tour-grid,
  .migration-band,
  .why,
  .quote-section,
  .intro-feature {
    grid-template-columns: 1fr;
  }

  .category-section::after {
    display: none;
  }

  .category-section > * {
    width: 100%;
  }

  .intro-feature-copy {
    padding: 60px 24px;
  }

  .intro-feature-visual {
    min-height: 360px;
  }

  .section,
  .category-section,
  .faq-section,
  .why {
    width: calc(100% - 28px);
    padding: 68px 0;
  }

  .tours,
  .package-showcase,
  .migration-band,
  .quote-section {
    padding: 68px 14px;
  }

  .tours > *,
  .package-showcase > *,
  .migration-band > *,
  .quote-section > * {
    width: 100%;
  }

  .package-row {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .package-row img {
    grid-column: 1;
    grid-row: 1;
  }

  .package-content {
    grid-column: 2;
    grid-row: 1;
  }

  .package-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .topbar {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .topbar a {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-all;
    white-space: normal;
    font-size: 10px;
  }

  .hero,
  .hero-inner,
  .hero-copy,
  .hero-copy .lead,
  .quote-card {
    min-width: 0;
    max-width: 100%;
  }

  .hero-copy h1 {
    font-size: 42px;
    word-break: break-all;
  }

  .hero-copy,
  .hero-copy .lead {
    max-width: 100%;
  }

  .hero-copy .lead {
    width: 100%;
    font-size: 17px;
    overflow-wrap: anywhere;
    word-break: break-all;
    white-space: normal;
  }

  .intro-feature-visual {
    min-height: 280px;
  }

  .package-row {
    grid-template-columns: 1fr;
  }

  .package-row img,
  .package-content,
  .package-actions {
    grid-column: 1;
    grid-row: auto;
  }

  .package-actions {
    grid-template-columns: 1fr;
  }
}
