html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background: #f0fdf4;
  color: #1a3e2d;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

header {
  background: #e8f5e9;
  padding: 1rem 0;
  color: #2e7d32;
  position: relative;
  z-index: 10;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.header-text h1 {
  font-size: 2.5rem;
}

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

nav {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: #1a3e2d;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
  display: flex;
  justify-content: flex-end;
}

.nav-menu a {
  margin: 0 1rem;
  text-decoration: none;
  color: #2e7d32;
  font-weight: 600;
  transition: color 0.3s;
}

.hero {
  position: relative;
  background: linear-gradient(to right, #e8f5e9, #f1fdf5);
  padding: 3rem 0;
  overflow: hidden;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slider img.active {
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 400px;
}

.hero-text {
  text-align: center;
  max-width: 600px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
}

.hero-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2e7d32;
}

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

.cta-button {
  display: inline-block;
  background-color: #2e7d32;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.cta-button:hover {
  background-color: #256d27;
}

.section {
  padding: 3rem 0;
}

.services, .contact-form {
  background: #e8f5e9;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.container h1, .container h2 {
  color: #2e7d32;
}

.services h3, .contact-form h3, .about h3, .testimonials h3, .pricing h3, .map h3 {
  margin-bottom: 1rem;
  color: #2e7d32;
}

.service-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.service-item img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.pricing table {
  width: 100%;
  border-collapse: collapse;
}

.pricing th, .pricing td {
  border: 1px solid #c8e6c9;
  padding: 0.75rem;
  text-align: left;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form button {
  background: #2e7d32;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
}

footer {
  background: #2e7d32;
  color: white;
  text-align: center;
  padding: 1rem;
}

.footer-contact {
  background: #e8f5e9;
  padding: 2rem 1rem;
  text-align: center;
  display: flex;
  justify-content: space-evenly;
  margin-top: 20px;
}

.footer-contact .icon {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.footer-contact a {
  text-decoration: none;
  color: #1a3e2d;
  font-weight: 600;
}

blockquote {
  background: #f0fdf4;
  padding: 1rem;
  margin: 1rem 0;
  border-left: 4px solid #2e7d32;
  font-style: italic;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .header-flex {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
  }

  .header-text {
    text-align: left;
  }

  nav {
    width: 100%;
  }

  .hamburger {
    display: flex;
    position: absolute;
    right: 1rem;
    top: 1.5rem;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #a5d6a7;
    position: fixed;
    top: 100px; /* Adjusted to account for header height */
    left: 0;
    padding: 1rem 0;
    z-index: 20; /* Higher than hero-content (z-index: 2) and slider (z-index: 1) */
    overflow-y: auto; /* Scrollable if content exceeds viewport */
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    margin: 0.5rem 0;
    padding: 0.5rem 1rem;
    color: #1a3e2d;
  }

  .hero-content {
    min-height: 300px;
  }

  .hero-text {
    padding: 1rem;
  }

  .service-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .service-item img {
    width: 100%;
    height: auto;
    max-width: 350px;
  }

  .contact-form button {
    display: block;
    margin: 1rem auto;
  }

  .footer-contact {
    display: grid;
  }
}