/* ===========================
   Hero base (used by slides)
=========================== */

.hero,
.hero-slide {
  width: 100%;
  min-height: 420px;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end; /* text at bottom */
  color: #ffffff;        /* ensure white text */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.85),
    rgba(15, 23, 42, 0.15)
  );
}

.hero-content {
  position: relative;
  padding: 40px 0 36px;
  z-index: 1; /* make sure it sits above overlay */
}

.hero-kicker {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 6px;
}

.hero h1,
.hero-slide h1 {
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 10px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  max-width: 520px;
  font-size: 16px;
  margin: 0 0 18px;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===========================
   Hero Carousel
=========================== */

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 420px; /* so section has height even though slides are absolute */
}

/* Stack slides on top of each other */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  height: 100%; /* fill the carousel container */
}

/* Active slide visible */
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Arrows */

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(15, 23, 42, 0.55);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  z-index: 5;
  transition: background 0.15s ease, transform 0.15s ease;
}

.hero-arrow:hover {
  background: rgba(15, 23, 42, 0.8);
  transform: translateY(-50%) scale(1.05);
}

.hero-arrow-prev {
  left: 14px;
}

.hero-arrow-next {
  right: 14px;
}

/* Dots */

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, width 0.15s ease;
}

.hero-dot.is-active {
  background: #ffffff;
  width: 18px;
}

/* ===========================
   Responsive
=========================== */

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-carousel {
    min-height: 360px;
  }

  .hero h1,
  .hero-slide h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 14px;
  }
}

@media (max-width: 700px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-bottom: 28px;
  }

  .hero h1,
  .hero-slide h1 {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-arrow {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .hero-dots {
    bottom: 14px;
  }
}



/* ===========================
   Why section
=========================== */

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

.why-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
}

.why-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.why-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ===========================
   Footer
=========================== */

.site-footer {
  background: #111827;
  color: #ffffff;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1.4fr;
  gap: 24px;
}

.site-footer h3,
.site-footer h4 {
  margin-top: 0;
}

.site-footer a {
  color: #e5e7eb;
}

.footer-bottom {
  border-top: 1px solid rgba(156, 163, 175, 0.4);
  margin-top: 20px;
  padding-top: 14px;
  font-size: 13px;
  color: #9ca3af;
}

/* ===========================
   Responsive
=========================== */

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-carousel {
    min-height: 360px; /* NEW */
  }

  .hero,
  .hero-slide {
    /* no need for min-height here anymore if the container has it */
  }

  .hero h1,
  .hero-slide h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 14px;
  }
}

@media (max-width: 700px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-bottom: 28px;
  }

  .hero h1,
  .hero-slide h1 {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-arrow {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .hero-dots {
    bottom: 14px;
  }
}




