/* Base = Mobile */
.hero {
  width: 100%;
  min-height: 80vh;
  background-image: url('../images/AdobeStock_668527120.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-headers);
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  margin: 0.5rem 0;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(111, 125, 106, 0.3);
  text-shadow: 0 0.8px 1px rgba(0,0,0,0.7);
  max-width: 90%;
  margin: 1rem auto 0 auto;
}


/* =========================
   TABLET / SMALL DESKTOP
   ========================= */
@media (min-width: 768px) {
  .hero {
    min-height: 70vh;
    padding: 4rem 3rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .btn-hero-cta {
    font-size: var(--font-size-sm);
    padding: 0.6rem 1.2rem;
  }
}

/* =========================
   LARGE DESKTOP
   ========================= */
@media (min-width: 1200px) {
  .hero {
    min-height: 80vh;
    padding: 6rem 5rem;
    padding-right: 40rem;
  }

  .hero-title {
    font-size: 4rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
    max-width: 600px;
  }

  .btn-hero-cta {
    font-size: var(--font-size-lg);
    padding: 0.8rem 1.5rem;
  }
}

.services {
  padding: 2rem 2rem;
  text-align: center;
}

.services-grid {
  display: grid;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.services-header {
  margin-bottom: 1rem;
}

.services-title {
  font-size: 2.5rem;
  color: var(--color-headers);
}

.services-subtitle {
  font-size: 1.2rem;
  color: var(--color-accent);
}

.service-card h3 {
color: var(--color-headers);
}

.service-card p {
color: var(--color-text);
}

/* Desktop layout */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .featured-service {
    grid-column: span 3;
  }
}

.service-card {
  padding: 2.5rem;
  border-radius: 15px;
  border: 1px solid var(--color-primary);
  box-shadow: var(--shadow-md);
  transition: 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background-color: rgba(111, 125, 106, 0.3);
}

.featured-service {
  border: 2px solid var(--color-accent);
  background: rgba(255, 255, 255, 0.02);
}

.featured-service h3 {
  font-size: 1.8rem;
}

.service-image {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  background: var(--color-primary);
  color: var(--color-bg);
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.service-btn:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

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

.features-carousel {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 60px;
}

.features-track {
  display: flex;
  transition: transform 0.6s ease;
  align-items: stretch;
}

.features-card {
  min-width: 100%;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-primary);
  text-align: left;
  /* override any hover lift from public.css */
  transition: none;
}

/* Carousel cards should never lift on hover */
.features-carousel .features-card:hover {
  transform: none;
}


/* ===== DESKTOP ===== */
@media (min-width: 992px) {

  .features-track {
    gap: 2rem;
  }

  .features-card {
    min-width: calc((100% - 4rem) / 3);
  }
  
  .carousel-btn {
    top: 50%;
    transform: translateY(-50%);
  }

  .prev {
    left: -60px;   /* outside */
  }

  .next {
    right: -60px;  /* outside */
  }
}

/* ===== Buttons ===== */

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-navbar);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 1.5rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  border-radius: 10px;
  transition: 0.3s ease;
  z-index: 20;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

.carousel-btn:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}


@media (max-width: 768px) {
  .prev { left: 10px; }
  .next { right: 10px; }
}

.testimonials {
  padding: 2rem 1rem;
  text-align: center;
}

.testimonials-title {
  font-size: 2.5rem;
  color: var(--color-headers);
}

.testimonial-stage {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  height: 240px;
  overflow: hidden;
}

.testimonial {
  position: absolute;
  inset: 0;

  padding: 2rem;
  background-color: rgba(111, 125, 106, 0.3);
  border-radius: 15px;
  box-shadow: var(--shadow-md);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;

  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.7s ease, opacity 0.4s ease;
}

.testimonial.active {
  opacity: 1;
  transform: translateX(0);
}

.testimonial.exit {
  transform: translateX(-100%);
  opacity: 0;
}

.testimonial p {
  font-size: 1.2rem;
  margin: 0;
  max-width: 500px;
  color: var(--color-accent);

}

.client-name {
  font-weight: bold;
  color: var(--color-accent);
}

