/* ===== HOME PAGE ===== */
/* Enqueue on front-page only */

/* ===== HERO (front-page) ===== */
.hero {
  height: calc(100vh - 140px);
  min-height: 540px;
  max-height: 780px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.08);
  animation: heroZoom 12s ease forwards;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(18, 10, 3, 0.72) 0%,
    rgba(18, 10, 3, 0.3) 50%,
    rgba(18, 10, 3, 0.5) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 80px;
  max-width: 780px;
  animation: fadeUp 1.1s ease 0.3s both;
  background: linear-gradient(
    135deg,
    rgba(18, 10, 3, 0.72) 0%,
    rgba(18, 10, 3, 0.3) 50%,
    rgba(18, 10, 3, 0.5) 100%
  );
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--gold);
}
.hero-eyebrow span {
  font-size: 0.68rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}
.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 300;
  color: white;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: italic;
  color: var(--primary-color);
  font-weight: 700;
}
.hero p {
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 38px;
  font-weight: 300;
}
.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== HERO SLIDESHOW ===== */
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: 0;
  animation: heroSlide 54s linear infinite;
}
.hero-slide:nth-child(1) {
  animation-delay: 0s;
}
.hero-slide:nth-child(2) {
  animation-delay: 6s;
}
.hero-slide:nth-child(3) {
  animation-delay: 12s;
}
.hero-slide:nth-child(4) {
  animation-delay: 18s;
}
.hero-slide:nth-child(5) {
  animation-delay: 24s;
}
.hero-slide:nth-child(6) {
  animation-delay: 30s;
}
.hero-slide:nth-child(7) {
  animation-delay: 36s;
}
.hero-slide:nth-child(8) {
  animation-delay: 42s;
}
.hero-slide:nth-child(9) {
  animation-delay: 48s;
}

@keyframes heroSlide {
  0% {
    opacity: 0;
    transform: scale(1.06);
  }
  2% {
    opacity: 1;
  }
  13% {
    opacity: 1;
    transform: scale(1);
  }
  15% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: scale(1.06);
  }
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--dark-earth);
  padding: 0 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 38px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.stat-item:last-child {
  border-right: none;
}
.stat-number {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
  margin-top: 6px;
  display: block;
}

/* ===== INTRO / WHY US SECTION ===== */
.intro-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.intro-img-wrap {
  position: relative;
}
.intro-img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.intro-img-accent {
  position: absolute;
  bottom: -28px;
  right: -28px;
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 2px;
  border: 6px solid white;
}
.intro-badge {
  position: absolute;
  top: 28px;
  left: -20px;
  background: var(--primary-color);
  color: white;
  padding: 18px 22px;
  border-radius: 2px;
  text-align: center;
}
.intro-badge .badge-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
  display: block;
  line-height: 1;
}
.intro-badge .badge-txt {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.9;
}
.intro-features {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.intro-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.feature-icon {
  width: 42px;
  height: 42px;
  background: var(--primary-color-high-opacity);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.feature-text h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--tanzanite-text-gray);
  margin-bottom: 3px;
}
.feature-text p {
  font-size: 0.78rem;
  color: var(--tanzanite-muted-text-gray);
  line-height: 1.5;
}

/* ===== DESTINATIONS GRID (home) ===== */
.dest-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 44px;
}
.dest-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 16px;
}
.dest-card {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.dest-card.featured {
  grid-row: 1 / 3;
}
.dest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.dest-card:hover img {
  transform: scale(1.07);
}
.dest-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 10, 3, 0.8) 0%, transparent 55%);
  transition: opacity 0.3s;
}
.dest-card:hover .dest-card-overlay {
  opacity: 0.9;
}
.dest-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px;
}
.dest-card-info .country {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}
.dest-card-info h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: white;
}
.dest-card.featured .dest-card-info h3 {
  font-size: 2.4rem;
}

/* ===== PACKAGES TABS ===== */
.packages-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--muted-border-color);
  margin-bottom: 44px;
}
.pkg-tab {
  padding: 12px 28px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--tanzanite-muted-text-gray);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.3s;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  font-family: "Jost", sans-serif;
}
.pkg-tab.active,
.pkg-tab:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* ===== BLOG PREVIEW CARDS ===== */
.blog-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: white;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 20px;
}
.blog-card:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}
.blog-card .img-wrap {
  overflow: hidden;
}
.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s;
  display: block;
}
.blog-card:hover img {
  transform: scale(1.05);
}
.blog-card-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-cat {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 8px;
}
.blog-card-body h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--tanzanite-text-gray);
  line-height: 1.3;
  margin-bottom: 10px;
}
.blog-card-body p {
  font-size: 0.85rem;
  color: var(--tanzanite-muted-text-gray);
  line-height: 1.65;
}
.blog-date {
  font-size: 0.72rem;
  color: var(--tanzanite-muted-text-gray);
  margin-top: 14px;
}

@media (max-width: 768px) {
  .hero-content {
    padding: 10px 20px;
  }
  .stats-bar {
    grid-template-columns: 1fr 1fr;
    padding: 0 16px;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .intro-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .intro-img-accent {
    display: none;
  }
  .intro-badge {
    left: 10px;
  }
  .dest-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .dest-card.featured {
    grid-row: auto;
  }
  .blog-card {
    grid-template-columns: 1fr;
  }
  .blog-card:hover {
    transform: none;
  }
  .blog-card img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .stat-number {
    font-size: 2rem;
  }
}

/* ===== PACKAGES PAGE ===== */
/* Enqueue on page-template-packages only */

/* ===== PACKAGES GRID (choose-your-adventure) ===== */
.choose-your-adventure-w {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 1024px) {
  .choose-your-adventure-w {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Packages sidebar+grid layout */
  [style*="grid-template-columns: 280px 1fr"] {
    display: block !important;
  }
}

@media (max-width: 640px) {
  .choose-your-adventure-w {
    grid-template-columns: 1fr;
  }
}
