.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  min-height: 300px;
  padding: 2rem;
  background-color: #4caf50;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  transition: background-image 3s ease-in-out;
}

/* Overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

/* Text on top of overlay */
.hero h2,
.hero p {
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-family: var(--font-primary);
  font-size: 55px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Hero button */
.hero button {
  position: relative;
  z-index: 1;
  padding: 0.8rem 1.8rem;
  background-color: rgba(245, 245, 245, 0.123);
  color: white;
  border: 1px solid white;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.hero button:hover {
  background-color: #4c8b4c;
  border: none;
  color: white;
}

/* ===== About Us Section ===== */
.about-us {
  background-color: #f5f2f2;
  padding: 3rem 1.5rem;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: auto;
  gap: 3rem;
}

/* Text */
.about-text {
  flex: 1;
}

.about-text h2 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.about-text p {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-text button {
  padding: 0.75rem 1.8rem;
  border: 1px solid green;
  color: green;
  background: transparent;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.about-text button:hover {
  background: green;
  color: white;
}

/* Image */
.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 100%;
  max-width: 450px;
  height: auto;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* ===== Stats Section ===== */
.stats-section {
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #245c2a, #3b743d);
  color: white;
}

.stats-container {
  max-width: 1100px;
  margin: 0 auto;
}

.stats-container .stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap;
}

.stats-container .stat {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.stats-container .stat h3 {
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.stats-container .stat p {
  font-family: var(--font-primary);
  font-size: 1rem;
}

/* ===== Responsive ===== */
/* ===== Stats Section - Responsive Grid ===== */

/* Tablet: 2x2 grid with spacing */
@media (min-width: 600px) and (max-width: 900px) {
  .stats-container .stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3rem;
    row-gap: 3rem;
    justify-content: center;
  }

  .stats-container .stat {
    width: 100%;
    text-align: center;
  }
}

/* Mobile: 1 column */
@media (max-width: 600px) {
  .stats-container .stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stats-container .stat {
    width: 100%;
    text-align: center;
  }
}

/* Extra small screens: same as mobile */
@media (max-width: 480px) {
  .stats-container .stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.intro {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 2.8rem;
  margin-top: 6rem;
  text-align: center;
}

.view-service-button {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 26px;
  border: 1px solid white;
  color: white;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1.5px;
  background: transparent;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-service-button:hover {
  background: white;
  color: green;
}

/* ===== Services Preview ===== */
.services-preview {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(280px, 1fr)
  ); /* dynamic columns */
  gap: 2rem;
  padding: 2rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  justify-items: center;
}

.preview-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  padding-bottom: 2rem;
  width: 100%;
  max-width: 360px;
}

.preview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.preview-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.preview-card h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  margin: 1rem 0 0.5rem 0;
}

.preview-card p {
  font-family: var(--font-secondary);
  font-size: 1rem;
  color: #555;
  padding: 0 2rem 2rem 2rem;
}

.preview-button {
  padding: 0.7rem 1.2rem;
  background-color: green;
  color: white;
  border: none;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.3s;
}

.preview-button:hover {
  background-color: #45a049;
}

.contact-preview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  max-width: 1050px;
  margin: auto;
}

.contact-preview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.contact-preview-card h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  margin: 1rem 0 0.5rem 0;
  color: #4caf50;
}

.contact-preview-card p {
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  color: #555;
  margin: 0.5rem 0 1.5rem 0;
  line-height: 1.5;
}

.contact-preview-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

.contact-preview-card h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  margin: 1rem 0 0.5rem 0;
  color: #4caf50;
}

.contact-support-button {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 26px;
  border: 1px solid green;
  color: green;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: transparent;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-support-button:hover {
  background: green;
  color: white;
}

@media (max-width: 1024px) {
  .services-preview {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

.preview-card {
  width: 100%;
  max-width: 360px;
}

.contact-preview-card {
  padding: 1.5rem 1rem;
}

.contact-preview-card h3 {
  font-size: 1.2rem;
}

.contact-support-button {
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
}

/* ===== Services Page Tabs ===== */

.tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 3rem auto 2rem auto; /* top margin increased */
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.8rem 1.8rem;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  background-color: #f0f0f0;
  color: #333;
  border: none;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: 0.3s;
}

.tab-btn:hover {
  background-color: #e0e0e0;
}

.tab-btn.active {
  background-color: #4caf50;
  color: white;
  font-weight: bold;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

/* ===== Tablet ===== */
@media (max-width: 900px) {
  .about-container {
    gap: 2rem;
  }

  .about-text h2 {
    font-size: 2rem;
  }
}

/* ===== Mobile ===== */
@media (max-width: 600px) {
  .about-us {
    padding: 2rem 1rem;
  }

  .about-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .about-image {
    order: -1;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  .about-text p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }

  .about-image img {
    max-width: 100%;
  }
}
