/* ═══════════════════════════════════════════════════════════
   HERO.CSS — Hero Carousel + Stats Section
════════════════════════════════════════════════════════════ */

/* ── Hero section ──────────────────────────────────────── */
.hero-section {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Carousel background slides ────────────────────────── */
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  transform: scale(1.06);
  transition: opacity 1.2s ease, transform 7s ease;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

/* ── Overlay (gradient + decorative pattern) ────────────── */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26,15,10,.2)  0%,
    rgba(26,15,10,.1)  35%,
    rgba(26,15,10,.72) 100%
  );
  z-index: 2;
  pointer-events: none;
}
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C97B2B' fill-opacity='0.045'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ── Hero content ──────────────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 820px;
  padding: 0 2rem;
}
.hero-eyebrow {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 1.25rem;
  animation: heroEnter .8s ease forwards;
}
.hero-heading {
  color: white;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 1.08;
  margin-bottom: 1.25rem;
  animation: heroEnter .8s ease .15s both;
  text-shadow: 0 2px 40px rgba(0,0,0,.3);
}
.hero-subheading {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  animation: heroEnter .8s ease .3s both;
  font-weight: 300;
  letter-spacing: .02em;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroEnter .8s ease .45s both;
}

/* ── Carousel prev/next buttons ────────────────────────── */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 50px; height: 50px;
  background: rgba(26,15,10,.38);
  border: 1px solid rgba(201,123,43,.38);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.carousel-prev { left: 2rem; }
.carousel-next { right: 2rem; }
.carousel-btn:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: translateY(-50%) scale(1.08);
}
.carousel-btn i { width: 22px; height: 22px; }

/* ── Pagination dots ────────────────────────────────────── */
.hero-dots {
  position: absolute;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: .6rem;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: all var(--transition-normal);
}
.hero-dot.active {
  background: var(--color-secondary);
  width: 28px;
  border-radius: 4px;
}
.hero-dot:hover:not(.active) { background: rgba(255,255,255,.7); }

/* ── Scroll indicator ───────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  color: rgba(255,255,255,.45);
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  user-select: none;
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
  transform-origin: top;
}

/* ══════════════════════════════════════════════════════════
   STATS SECTION
══════════════════════════════════════════════════════════ */
.stats-section {
  background: var(--color-dark);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,26,26,.18) 0%, rgba(201,123,43,.12) 100%);
  pointer-events: none;
}
.stats-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.stat-item {
  text-align: center;
  position: relative;
}
.stat-item::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 55%;
  background: rgba(201,123,43,.18);
}
.stat-item:last-child::after { display: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1;
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}
.stat-label {
  font-size: .8rem;
  color: rgba(253,246,236,.55);
  font-weight: 400;
  letter-spacing: .06em;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
}
@media (max-width: 480px) {
  .carousel-btn { width: 40px; height: 40px; }
  .carousel-prev { left: .75rem; }
  .carousel-next { right: .75rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
