/* ==========================================================================
   Outreach Africa homepage
   The homepage is intentionally scoped so tour, booking and admin views retain
   their established component styling.
   ========================================================================== */
.home-page {
  --home-serif: "Playfair Display", Georgia, serif;
  --home-cream: #fbf7f1;
  --home-cream-deep: #f5eee5;
  --home-red: #b5221d;
  --home-red-dark: #8f1915;
  --home-gold: #a46e20;
  --home-ink: #201e1b;
  --home-muted: #68625b;
  --home-line: #e8e0d7;
}

.home-page main { overflow: hidden; }
.home-page main h1,
.home-page main h2,
.home-page main h3 { font-family: var(--home-serif); }
.home-page .container { max-width: 1240px; }
.home-page .home-section { padding: clamp(64px, 6.5vw, 92px) 0; }

.home-eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--home-gold);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.home-page .home-btn,
.home-page .home-outline-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: .72rem 1.55rem;
  border-radius: 6px;
  font-size: .9rem;
}
.home-page .home-btn i,
.home-page .home-outline-btn i { font-size: 1rem; }
.home-page .home-outline-btn {
  background: transparent;
  border: 1px solid var(--home-red);
  color: var(--home-red);
  font-weight: 600;
}
.home-page .home-outline-btn:hover {
  background: var(--home-red);
  color: #fff;
}

/* Hero */
.home-hero {
  min-height: 555px;
  position: relative;
  display: flex;
  align-items: center;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(18, 17, 15, .79) 0%, rgba(18, 17, 15, .55) 38%, rgba(18, 17, 15, .13) 72%),
    linear-gradient(0deg, rgba(18, 17, 15, .3), transparent 45%),
    url('../images/home.jpg');
  background-size: cover;
  background-position: center 43%;
}
.home-hero-inner {
  width: 100%;
  padding-top: 42px;
  padding-bottom: 82px;
}
.home-hero-copy { max-width: 650px; }
.home-hero-kicker {
  margin: 0 0 6px;
  color: #ddab55;
  font-family: Georgia, var(--home-serif);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-style: italic;
  line-height: 1.25;
}
.home-page main .home-hero h1 {
  max-width: 630px;
  margin: 0;
  color: #fff !important;
  font-size: clamp(3.25rem, 5.1vw, 4.55rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.04;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .25);
}
.home-hero-lede {
  max-width: 590px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .96);
  font-size: 1.02rem;
  line-height: 1.7;
}
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.home-hero-actions .btn { min-width: 188px; }

/* Trust strip */
.home-trust { position: relative; z-index: 5; margin-top: -60px; padding-bottom: 22px; }
.home-trust-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 25px 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(226, 217, 207, .7);
  border-radius: 14px;
  box-shadow: 0 15px 45px rgba(48, 37, 25, .11);
}
.home-trust-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 13px;
  align-items: start;
  min-width: 0;
  padding: 3px 24px;
}
.home-trust-item + .home-trust-item { border-left: 1px solid var(--home-line); }
.home-trust-item > i {
  color: var(--home-red);
  font-size: 2.05rem;
  line-height: 1;
}
.home-page main .home-trust-item h2 {
  margin: 0 0 7px;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.25;
}
.home-trust-item p { margin: 0; color: var(--home-muted); font-size: .76rem; line-height: 1.65; }

/* Shared section headings */
.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 34px;
}
.home-page main .home-section-heading h2,
.home-page main .home-destinations > .container > h2 {
  margin: 0;
  color: var(--home-ink) !important;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  letter-spacing: -.025em;
  line-height: 1.15;
}
.home-section-heading > div > p {
  max-width: 670px;
  margin: 10px 0 0;
  color: var(--home-muted);
  font-size: .98rem;
}
.home-section-heading > .btn { flex: none; margin-bottom: 4px; }

/* Featured tours */
.home-featured { background: var(--home-cream); }
.home-page .home-featured-container { max-width: 1500px; }
.home-tour-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}
.home-tour-card {
  min-width: 0;
  border-color: #e5ded5;
  border-radius: 10px;
  box-shadow: 0 3px 14px rgba(48, 37, 25, .055);
}
.home-tour-card:hover { box-shadow: 0 10px 24px rgba(48, 37, 25, .1); transform: translateY(-2px); }
.home-tour-card .tour-card-media { aspect-ratio: 4 / 3; }
.home-tour-card .duration-txt {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  font-size: .7rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.home-tour-card .tour-card-body { min-height: 150px; padding: 22px 22px 12px; gap: 11px; }
.home-page .home-tour-card .tour-card-title {
  font-family: var(--font-body);
  font-size: 1.18rem;
  line-height: 1.35;
}
.home-tour-card .tour-card-title a { color: var(--home-ink); text-decoration: none; }
.home-tour-card .tour-card-title a:hover { color: var(--home-red); }
.home-tour-card .tour-card-desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--home-muted);
  font-size: .9rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.home-tour-card .tour-card-footer { padding: 10px 22px 22px; }
.home-tour-card .tour-card-footer .btn { padding: .66rem 1.2rem; font-size: .84rem; }
.home-price { display: flex; flex-direction: column; line-height: 1.2; }
.home-price span,
.home-price small { color: var(--home-muted); font-size: .65rem; }
.home-price strong { margin: 2px 0; color: var(--home-red); font-size: 1.25rem; }

/* Tailor-made feature */
.home-tailor { background: #fff; }
.home-tailor-card {
  display: grid;
  grid-template-columns: minmax(0, 47%) minmax(0, 53%);
  min-height: 372px;
  overflow: hidden;
  background: var(--home-cream);
  border: 1px solid #eee5da;
  border-radius: 14px;
}
.home-tailor-copy { align-self: center; padding: 50px clamp(36px, 5vw, 68px); }
.home-page main .home-tailor-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}
.home-tailor-copy p { max-width: 490px; margin: 18px 0 24px; color: var(--home-muted); font-size: .9rem; line-height: 1.75; }
.home-tailor-image {
  min-height: 372px;
  background: url('../../media/medium/6918244fbe937.jpg') center / cover no-repeat;
}

/* Destinations */
.home-destinations { background: var(--home-cream); }
.home-destination-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 28px;
}
.home-destination-carousel { display: none; }
.home-swipe-hint { display: none; }
.home-destination-card {
  position: relative;
  display: block;
  height: 218px;
  overflow: hidden;
  border-radius: 10px;
  color: #fff;
}
.home-destination-card::after {
  content: '';
  position: absolute;
  inset: 28% 0 0;
  background: linear-gradient(0deg, rgba(17, 15, 13, .78), transparent);
}
.home-destination-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.home-destination-card:hover img { transform: scale(1.045); }
.home-destination-card span {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 15px;
  left: 14px;
  color: #fff;
  font-size: .86rem;
  font-weight: 600;
  text-align: center;
}

/* Testimonials */
.home-reviews { background: #fff; }
.home-reviews-panel {
  padding: clamp(34px, 4.2vw, 52px);
  background: var(--home-cream);
  border: 1px solid #f0e9df;
  border-radius: 14px;
}
.home-reviews-heading { margin-bottom: 26px; }
.home-review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.home-review-carousel { display: none; }
.home-review-card {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 28px 24px 22px;
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 11px;
  box-shadow: 0 3px 12px rgba(48, 37, 25, .045);
}
.home-quote-mark {
  position: absolute;
  top: 9px;
  left: 18px;
  color: #d7a04a;
  font-family: var(--home-serif);
  font-size: 2.8rem;
  line-height: 1;
}
.home-review-card blockquote {
  margin: 17px 0 19px;
  color: #4c4741;
  font-size: .82rem;
  line-height: 1.7;
}
.home-review-card figcaption { color: var(--home-ink); font-size: .8rem; font-weight: 700; }

/* Closing CTA */
.home-final-cta {
  min-height: 265px;
  display: flex;
  align-items: center;
  padding: 48px 0;
  background-image:
    linear-gradient(rgba(23, 20, 17, .6), rgba(23, 20, 17, .64)),
    url('../images/capetown-table-mountain.jpg');
  background-position: center;
  background-size: cover;
}
.home-page main .home-final-cta h2 {
  margin: 0 0 8px;
  color: #fff !important;
  font-size: clamp(2rem, 3.2vw, 2.7rem);
}
.home-final-cta p { margin: 0 0 22px; color: rgba(255, 255, 255, .93); font-size: .98rem; }

@media (max-width: 1199.98px) {
  .home-trust-item { grid-template-columns: 42px 1fr; padding-right: 17px; padding-left: 17px; }
  .home-trust-item > i { font-size: 1.75rem; }
  .home-tour-grid { gap: 22px; }
}

@media (max-width: 991.98px) {
  .home-hero { min-height: 510px; background-position: 58% center; }
  .home-hero-inner { padding-bottom: 72px; }
  .home-trust-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; }
  .home-trust-item { padding: 18px; }
  .home-trust-item + .home-trust-item { border-left: 0; }
  .home-trust-item:nth-child(even) { border-left: 1px solid var(--home-line); }
  .home-trust-item:nth-child(n+3) { border-top: 1px solid var(--home-line); }
  .home-tour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .home-tour-card .tour-card-body { min-height: 132px; }
  .home-destination-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-destination-card:nth-child(n+4) { height: 195px; }
  .home-review-grid { grid-template-columns: 1fr; }
  .home-review-card blockquote { min-height: auto; }
}

@media (max-width: 767.98px) {
  .home-page .home-section { padding: 58px 0; }
  .home-hero { min-height: 500px; background-position: 62% center; }
  .home-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 14, 12, .17);
  }
  .home-hero-inner { position: relative; z-index: 1; padding-bottom: 80px; }
  .home-page main .home-hero h1 { font-size: clamp(2.7rem, 10vw, 3.5rem); }
  .home-trust { margin-top: -52px; }
  .home-section-heading { align-items: start; flex-direction: column; gap: 22px; }
  .home-section-heading > .btn { margin: 0; }
  .home-tailor-card { grid-template-columns: 1fr; }
  .home-tailor-copy { padding: 42px 34px; }
  .home-tailor-image { min-height: 310px; }
  .home-destination-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-destination-card,
  .home-destination-card:nth-child(n+4) { height: 205px; }
  .home-destination-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 575.98px) {
  .home-page .container { padding-right: 20px; padding-left: 20px; }
  .home-page .home-section { padding: 52px 0; }
  .home-hero {
    min-height: 545px;
    background-image:
      linear-gradient(90deg, rgba(18, 17, 15, .78), rgba(18, 17, 15, .43)),
      url('../images/home.jpg');
    background-position: 56% center;
  }
  .home-hero-inner { padding-top: 42px; padding-bottom: 84px; }
  .home-hero-kicker { font-size: 1.15rem; }
  .home-page main .home-hero h1 { font-size: clamp(2.45rem, 12.4vw, 3.2rem); line-height: 1.07; }
  .home-hero-lede { max-width: 400px; margin-top: 18px; font-size: .9rem; line-height: 1.65; }
  .home-hero-actions { align-items: stretch; flex-direction: column; max-width: 270px; margin-top: 23px; }
  .home-hero-actions .btn { width: 100%; }
  .home-trust-panel { grid-template-columns: 1fr; padding: 10px 18px; }
  .home-trust-item { grid-template-columns: 42px 1fr; padding: 17px 0; }
  .home-trust-item:nth-child(even) { border-left: 0; }
  .home-trust-item + .home-trust-item,
  .home-trust-item:nth-child(n+3) { border-top: 1px solid var(--home-line); }
  .home-page main .home-section-heading h2,
  .home-page main .home-destinations > .container > h2 { font-size: 2rem; }
  .home-tour-grid { grid-template-columns: 1fr; }
  .home-tour-card .tour-card-body { min-height: auto; }
  .home-tailor-copy { padding: 38px 24px; }
  .home-tailor-image { min-height: 250px; }
  .home-destination-grid-desktop { display: none; }
  .home-destination-carousel {
    display: block;
    margin: 24px 0 6px;
    padding-bottom: 28px;
    touch-action: pan-y pinch-zoom;
  }
  .home-destination-carousel .carousel-inner { border-radius: 10px; }
  .home-destination-carousel .home-destination-card,
  .home-destination-carousel .home-destination-card:nth-child(n+4),
  .home-destination-carousel .home-destination-card:last-child {
    width: 100%;
    height: 245px;
    grid-column: auto;
    border-radius: 10px;
  }
  .home-destination-carousel .carousel-control-prev,
  .home-destination-carousel .carousel-control-next {
    top: 50%;
    bottom: auto;
    width: 38px;
    height: 38px;
    color: #fff;
    background: rgba(25, 22, 19, .78);
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 50%;
    opacity: 1;
    transform: translateY(-75%);
  }
  .home-destination-carousel .carousel-control-prev { left: 10px; }
  .home-destination-carousel .carousel-control-next { right: 10px; }
  .home-destination-carousel .carousel-control-prev i,
  .home-destination-carousel .carousel-control-next i { color: #fff; font-size: 1.05rem; }
  .home-destination-carousel .carousel-indicators {
    position: absolute;
    bottom: 0;
    gap: 5px;
    margin: 0;
  }
  .home-destination-carousel .carousel-indicators [data-bs-target] {
    width: 7px;
    height: 7px;
    margin: 0;
    background-color: #d9cec2;
    border: 0;
    border-radius: 50%;
    opacity: 1;
  }
  .home-destination-carousel .carousel-indicators .active { width: 20px; background-color: var(--home-red); border-radius: 999px; }
  .home-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 20px;
    color: var(--home-muted);
    font-size: .76rem;
    line-height: 1.4;
  }
  .home-swipe-hint i { color: var(--home-red); font-size: .9rem; }
  .home-reviews-panel { padding: 32px 20px; border-radius: 12px; }
  .home-reviews > .container { padding-right: 20px; padding-left: 20px; }
  .home-review-card { padding-right: 20px; padding-left: 20px; }
  .home-review-grid-desktop { display: none; }
  .home-review-carousel {
    display: block;
    padding-bottom: 48px;
    touch-action: pan-y pinch-zoom;
  }
  .home-review-carousel .carousel-inner { border-radius: 11px; }
  .home-review-carousel .home-review-card {
    min-height: 290px;
    display: flex;
    flex-direction: column;
  }
  .home-review-carousel .home-review-card blockquote { flex: 1; }
  .home-review-carousel .carousel-control-prev,
  .home-review-carousel .carousel-control-next {
    top: auto;
    bottom: 0;
    width: 36px;
    height: 36px;
    color: #fff;
    background: var(--home-red);
    border: 0;
    border-radius: 50%;
    opacity: 1;
  }
  .home-review-carousel .carousel-control-prev { left: 0; }
  .home-review-carousel .carousel-control-next { right: 0; }
  .home-review-carousel .carousel-control-prev i,
  .home-review-carousel .carousel-control-next i { color: #fff; font-size: 1rem; }
  .home-review-carousel .carousel-indicators {
    bottom: 12px;
    gap: 5px;
    margin: 0 48px;
  }
  .home-review-carousel .carousel-indicators [data-bs-target] {
    width: 7px;
    height: 7px;
    margin: 0;
    background-color: #d9cec2;
    border: 0;
    border-radius: 50%;
    opacity: 1;
  }
  .home-review-carousel .carousel-indicators .active {
    width: 20px;
    background-color: var(--home-red);
    border-radius: 999px;
  }
  .home-final-cta { min-height: 285px; padding: 52px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .home-page *::before,
  .home-page *::after { scroll-behavior: auto !important; transition: none !important; }
}
