/* GLOBAL SPACING */
section {
  padding: 60px 20px;
}

.home-container {
  max-width: 1200px;
  margin: auto;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 15px;
}

body {
  font-size: 15px;
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
  background: #E8F5E9;
  color: #1B5E20;
}





/* HERO HEADING */
.home-hero-content h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  letter-spacing: -1px;
}

/* HERO SUBTEXT */
.home-hero-content h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}

/* SECTION HEADINGS */
.home-section-title,
.home-about-text h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
}
/* HERO */
.home-hero {
  position: relative;
  height: 75vh;
  min-height: 500px;
  max-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* VIDEO BACKGROUND */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
  z-index: -2;
}

/* DARK OVERLAY FOR TEXT VISIBILITY */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.65), rgba(0,0,0,0.3));
  z-index: -1;
}

/* CONTENT */
.home-hero-content {
  text-align: center;
  color: #fff;
  max-width: 700px;
  animation: fadeUp 1s ease;
}

.home-hero-content h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.home-hero-content h2 {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* BUTTONS */
.hero-btns {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.home-btn {
  padding: 12px 24px;
  background: #1B5E20;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
}
.home-btn:hover {
  transform: translateY(-3px);
  background: #2e7d32;
}

.home-btn.outline {
  background: transparent;
  border: 1.5px solid #fff;
}
/* VIEW SERVICES HOVER EFFECT */
.home-btn.outline:hover {
  background: #1B5E20;   /* same as Book Appointment */
  color: #fff;
  border-color: #1B5E20;
  transform: translateY(-3px);
}
/* ANIMATION */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= ABOUT SECTION ================= */
.home-about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;

  max-width: 1200px;
  margin: 40px auto; /* 🔥 reduced spacing */
  padding: 20px;

  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* TEXT */
.home-about-text {
  flex: 1;
}

/* HEADING */
.home-about-text h2 {
  font-family: 'Sora', sans-serif;
  font-size: 30px;
  margin-bottom: 15px;
  color: #1B5E20;
}

/* INTRO TEXT */
.about-intro {
  font-size: 15px;
  margin-bottom: 15px;
  color: #3e5f4f;
}

/* LIST */
.about-list {
  margin: 15px 0;
  padding-left: 18px;
}

.about-list li {
  margin-bottom: 8px;
  font-size: 14px;
  color: #2e7d32;
}

/* DESCRIPTION */
.about-desc {
  font-size: 14px;
  margin-top: 10px;
  color: #3e5f4f;
}

/* BUTTON */
.about-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 22px;
  border-radius: 30px;

  background: #1B5E20;
  color: white;
  text-decoration: none;

  transition: 0.3s;
}

.about-btn:hover {
  background: #2e7d32;
  transform: translateX(4px);
}

/* IMAGE */
.home-about-image {
  flex: 1;
  max-width: 500px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.home-about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}

/* IMAGE HOVER */
.home-about-image:hover img {
  transform: scale(1.05);
}

/* GREEN OVERLAY (MATCH HERO STYLE) */
.home-about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(27, 94, 32, 0.15);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .home-about {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .about-list {
    padding-left: 0;
    list-style: none;
  }
}

@media (max-width: 576px) {
  .home-about {
    margin: 20px auto;
  }

  .home-about-text h2 {
    font-size: 22px;
  }
}

/* ================= WHY SECTION ================= */
.home-why {
  position: relative;
  padding: 70px 20px 50px;

  background: url("images/chooseus1.webp") center/cover no-repeat;

  overflow: visible;
}

/* OVERLAY */
.why-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.35)
  );
}

/* TITLE */
.home-section-title {
  position: relative;
  z-index: 2;

  text-align: center;
  font-size: 34px;
  color: #ffffff;
  font-family: 'Sora', sans-serif;

  margin-bottom: 35px;
}

/* CONTAINER */
.home-why-container {
  position: relative;
  z-index: 2;
  overflow: visible;
}

/* ================= ROW ================= */
.home-why-left {
  display: flex;
  justify-content: center;
  gap: 25px;

  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: visible;

  padding: 20px 40px 10px;
  scroll-behavior: smooth;
}

/* EDGE SPACING (VERY IMPORTANT 🔥) */
.home-why-left::before,
.home-why-left::after {
  content: "";
  flex: 0 0 20px;
}

/* HIDE SCROLLBAR */
.home-why-left::-webkit-scrollbar {
  display: none;
}

/* ================= CARD ================= */
.hex-card {
  position: relative;
  z-index: 1;

  min-width: 260px;
  padding: 25px;

  border-radius: 18px;

  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);

  color: #fff;
  text-align: center;

  border: 1px solid rgba(255,255,255,0.2);

  transition: all 0.3s ease;
}

/* TEXT */
.hex-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.hex-card p {
  font-size: 14px;
  opacity: 0.9;
}

/* HOVER */
.hex-card:hover {
  z-index: 10;

  transform: translateY(-4px) scale(1.03);

  background: rgba(29, 90, 33, 0.7);

  box-shadow: 0 12px 30px rgba(0,0,0,0.2);

  border: 1px solid rgba(255,255,255,0.4);
}

/* ================= TABLET ================= */
@media (max-width: 992px) {

  .home-why {
    padding: 60px 15px 45px;
  }

  .home-section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .home-why-left {
    padding: 20px 20px 10px; /* 🔥 FIXED */
    gap: 18px;
  }

  .hex-card {
    min-width: 240px;
    padding: 20px;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 576px) {

  .home-why {
    padding: 50px 12px 35px;
  }

  .home-section-title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .home-why-left {
    justify-content: flex-start;
    gap: 15px;

    padding: 20px 16px 10px;

    scroll-snap-type: x mandatory;
  }

  /* 🔥 CRITICAL FIX FOR EDGE SPACING */
  .home-why-left::before,
  .home-why-left::after {
    flex: 0 0 16px;
  }

  .hex-card {
    min-width: calc(100% - 32px); /* 🔥 prevents touching edges */
    scroll-snap-align: center;

    padding: 18px;
    border-radius: 16px;
  }

  .hex-card h3 {
    font-size: 16px;
  }

  .hex-card p {
    font-size: 13px;
  }
}

/* ================= SMALL DEVICES ================= */
@media (max-width: 400px) {

  .home-section-title {
    font-size: 20px;
  }

  .hex-card {
    min-width: calc(100% - 24px);
    padding: 16px;
  }

  .hex-card h3 {
    font-size: 15px;
  }

  .hex-card p {
    font-size: 12px;
  }
}

/* SERVICES */
.home-services {
  padding: 80px;
  background: #eaf4ec;
  text-align: center;
  
}

.home-services h2 {
  font-size: 26px;
  margin-bottom: 20px;
  color: #1B5E20;
  font-family: 'Sora', sans-serif;
}

/* SLIDER */
.svc-slider {
  overflow: hidden;
}

/* TRACK */
.svc-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scrollCards 25s linear infinite;
}

/* AUTO SCROLL */
@keyframes scrollCards {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* PAUSE ON HOVER */
.svc-slider:hover .svc-track {
  animation-play-state: paused;
}

/* CARD */
.home-service-card {
  min-width: 300px;
  background: #9fd1a9; /* softer premium color */
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
   border: 1.5px solid transparent;
}

/* HOVER */
.home-service-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
   border: 1.5px solid #2e7d32;
  box-shadow: 0 0 12px rgba(46, 125, 50, 0.4);
}

/* IMAGE */
.home-service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.home-service-card:hover img {
  transform: scale(1.1);
}

/* CONTENT ALIGN */
.home-service-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1b3a2f;
  margin: 12px 0 5px;
  text-align: left;
  padding: 0 18px;
}

.home-service-card:hover h3 {
  color: #1B5E20;
}

.home-service-card p {
  font-size: 15px;
  color: #3e5f4f;
  line-height: 1.4;
  padding: 0 18px;
  text-align: left;
}

/* BUTTON (REFERENCE STYLE 🔥) */
.service-btn {
  display: inline-block;
  margin: 12px 18px;

  font-size: 14px;
  font-weight: 600;
  color: #1B5E20;
  text-decoration: none;

  position: relative;
}

/* UNDERLINE ANIMATION */
.service-btn::after {
  content: "";
  width: 0%;
  height: 2px;
  background: #1B5E20;
  position: absolute;
  left: 0;
  bottom: -3px;
  transition: 0.3s;
}

.service-btn:hover::after {
  width: 100%;
}




/* ================= TESTIMONIALS ================= */
.home-testimonials {
  padding: 80px 20px 220px;
  position: relative;
  text-align: center;
  
  background: url("images/testimonial-background.webp") center/cover no-repeat;

  border-radius: 20px;
  overflow: hidden;
}

/* OVERLAY (MATCH WHY SECTION) */
.home-testimonials::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    rgba(27, 94, 32, 0.55),
    rgba(27, 94, 32, 0.35)
  );

  z-index: 0;
}

/* CONTENT ABOVE OVERLAY */
.home-testimonials * {
  position: relative;
  z-index: 1;
}

/* HEADING */
.home-testimonials h2 {
  margin-top: 0;
  margin-bottom: 40px;
  color: #ffffff;
  font-family: 'Sora', sans-serif;
}

/* WRAPPER */
.testimonial-wrapper {
  position: relative;
  height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ================= CARD BASE ================= */
.testimonial-card {
  position: absolute;
  width: 320px;
  padding: 25px;
  border-radius: 20px;
margin-bottom: 20px;
  /* GLASS EFFECT */
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);

  color: #fff;

  border: 1px solid rgba(255,255,255,0.2);

  left: 50%;
  transform: translateX(-50%) scale(0.8);

  transition: all 0.6s ease;
  opacity: 0;
}

/* CENTER ACTIVE CARD */
.testimonial-card.active {
  opacity: 1;
  transform: translateX(-50%) scale(1.1);
  z-index: 3;

  background: rgba(27, 94, 32, 0.85);

  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  margin-bottom: 20px;
}

/* LEFT CARD */
.testimonial-card.left {
  opacity: 0.6;
  transform: translateX(calc(-50% - 260px)) scale(0.9);
  z-index: 2;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.12);
}

/* RIGHT CARD */
.testimonial-card.right {
  opacity: 0.6;
  transform: translateX(calc(-50% + 260px)) scale(0.9);
  z-index: 2;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.12);
}
/* ================= FAQ SECTION ================= */
.home-faq-section {
  padding: 50px 20px;
  background: #f4f8f4;
}

/* WRAPPER (MAIN LAYOUT) */
.faq-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 40px;

  align-items: center; /* 🔥 KEY FOR CENTERING */
  min-height: 450px;
}

/* TITLE */
.home-section-title {
  text-align: center;
  font-size: 30px;
  color: #1B5E20;
  margin-bottom: 30px;
  font-family: 'Sora', sans-serif;
}

/* FAQ LIST */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* FAQ CARD */
.home-faq-item {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e3efe6;
  transition: 0.25s ease;
  overflow: hidden;
}

/* HOVER */
.home-faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}

/* QUESTION */
.home-faq-question {
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.home-faq-question h3 {
  font-size: 15px;
  color: #1B5E20;
}

.home-faq-question span {
  font-size: 18px;
  transition: 0.3s;
}

/* ANSWER */
.home-faq-answer {
  display: none;
  padding: 0 18px 12px;
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}

.home-faq-item.active .home-faq-answer {
  display: block;
}

/* ACTIVE BORDER */
.home-faq-item.active {
  border-left: 3px solid #1B5E20;
}

/* ================= IMAGE SIDE ================= */
.faq-image {
  display: flex;
  justify-content: center;
  align-items: center; /* 🔥 PERFECT CENTER */
  height: 100%;
}

.faq-image img {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  object-fit: cover;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .faq-wrapper {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .faq-image {
    order: -1; /* 🔥 image moves on top */
  }
}

@media (max-width: 768px) {
  .home-section-title {
    font-size: 24px;
  }
.home-services{
    padding: 40px;
}
  .home-faq-question h3 {
    font-size: 14px;
  }

  .home-faq-answer {
    font-size: 13px;
  }
}

