/* css/index.css */

/* === Hero Section === */

.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-background {
  background: transparent;
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 1000px;
}

.hero-logo {
  width: 65vw;
  max-width: 600px;
  min-width: 150px;
  margin: 0 auto;
}

.hero-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Hero Text */

.hero-text {
  max-width: 900px;
  margin: 0 auto;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-family: 'Overlock Bold', cursive;
  color: var(--orange);
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

/* === Testimonial Carousel === */

.testimonial-carousel {
  text-align: center;
  padding: 2rem 1rem;
  background-color: transparent;
  border-radius: 8px;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  color: var(--darkblue);
  background: linear-gradient(135deg, var(--royal) 0%, var(--orange) 70%, var(--darkblue) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.testimonial-carousel h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--royal);
}

.carousel-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
  min-height: 130px; /* optional: reserve vertical space to avoid jumping */
}

.carousel-slide {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  font-style: italic;
  padding: 1rem;
  background: var(--off-white);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  pointer-events: none; /* prevent interaction on hidden slides */
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  pointer-events: auto;
}

.carousel-slide span {
  display: block;
  margin-top: 0.5rem;
  font-weight: bold;
  color: var(--charcoal);
}

/* === Media Queries === */

@media (max-width: 599px) {
  .hero-logo {
    width: 60vw;
    min-width: 120px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .testimonial-carousel h2 {
    font-size: 1.8rem;
  }
}

@media (min-width: 600px) and (max-width: 991px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }
}

@media (min-width: 992px) {
  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-text p {
    font-size: 1.2rem;
  }
}
