/* styles.css */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #333;
  background-color: #F2FCF6;
  padding-top: 90px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 20px;
  background-color: #F2FCF6;
  border-bottom: 4px solid #1AA500;
  flex-wrap: wrap;
  box-sizing: border-box;
}
p {
  font-size: 20px;
  line-height: 30px;
}
h3 {
  line-height: 30px;
  text-align: center;
}

.logo img {
  height: 120px;
}
.isa-logo img {
  height: 120px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 48px;
  color: #1AA500;
  cursor: pointer;
}

#nav-menu {
  display: flex;
  /*flex-grow: 1;*/
  justify-content: center;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  overflow: visible;
  max-height: none;
  padding: 0;
  box-sizing: border-box;
}

#nav-menu.active {
  max-height: 300px;
  padding: 10px 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #1AA500;
  text-decoration: none;
  font-weight: bold;
  position: relative;
}

.nav-links a:hover::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #1AA500;
  left: 0;
  bottom: -4px;
}

.hero {
  background: url('images/tree-background.png') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.hero-about {
  background: url('images/hero-about.png') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.hero-services {
  background: url('images/hero-services.png') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.hero-contact {
  background: url('images/hero-contact.png') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 80px 20px;
}
.hero-gallery {
  background: url('images/hero-gallery.png') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.hero-overlay h1 {
  margin: 0;
  font-size: 2.5rem;
}

.btn {
  background-color: #1AA500;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  margin-top: 20px;
}

.about {
  display: flex;
  flex-direction: row;
  padding: 10px 20px;
  max-width: 1000px;
  margin: auto;
  img {
    margin-right: 15px;
    height: 150px;
  }
}

h2 {
  padding: 40px 20px 0px 20px;
  max-width: 1000px;
  margin: auto;
}

.home-services, .home, .home-gallery, .home-reviews, .services, .gallery, .contact {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
  span {
    color: white;
  }
}
.home-services {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; 
}
.home-services .icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.home-gallery {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.home-reviews {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 100%;
  font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #fff;
}

.gallery-item {
  flex: 1 1 calc(33.333% - 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 250px;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.gallery-item figcaption {
  margin-top: 8px;
  font-size: 1.2rem;
  color: #555;
  text-align: center;
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}

.service-row.reverse {
  flex-direction: row-reverse;
}

.service-row img {
  flex: 1 1 45%;
  max-width: 50%;
  border-radius: 8px;
}

.service-text {
  flex: 1 1 45%;
  text-align: center;
}

.service-text .icon {
  margin-bottom: 10px;
}

.service-text h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

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

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form input, form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  max-width: 500px;
}

form button {
  background-color: #1AA500;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  max-width: 200px;
}

footer {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  padding: 20px;
  background-color: #f0f0f0;
  p {
    font-size: 12px;
    line-height:  15px;
  }
}

.footer-contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  a {
    margin-left: 10px;
  }
}

.phone-link {
  color: #1AA500;
}

.spinner {
  margin-left: 8px;
  border: 2px solid #f3f3f3; /* Light grey */
  border-top: 2px solid #1AA500; /* Green */
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* Responsive Design */
@media (max-width: 768px) {
  .isa-logo {
    display: none;
  }
  .menu-toggle {
    display: block;
  }

  #nav-menu {
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    padding: 0;
    width: 100%;
  }

  #nav-menu.active {
    max-height: 300px;
    padding: 10px 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 20px;
  }

  header {
    align-items: center;
  }

  .hero {
    padding: 40px 10px;
  }

  .home-services {
    gap: 30px;
    justify-content: space-around;
  }

  .image_row {
    flex-direction: column;
  }
  .service-row {
    flex-direction: column;
  }

  .service-row.reverse {
    flex-direction: column;
  }

  .service-row img {
    max-width: 100%;
  }

  .footer-contact {
    flex-direction: column;
    min-width: 120px;
  }

  
}
