/* ===============================
   Base Reset and Typography
================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* Headings and Paragraphs */
h1, h2, h3, h4 {
  margin-bottom: 10px;
  color: #333;
}

p {
  color: #555;
}

/* ===============================
   Header (Mobile-First)
================================= */
header {
  background-color: #333;
  color: white;
  width: 100%;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.header-container a {
    text-decoration: none;
}

.logo-and-title {
  display: flex;
  align-items: center;
}

.logo-and-title img {
  width: 100px;
  height: auto;
  margin-right: 20px;
}

.logo-and-title h1 {
  font-size: 24px;
  margin: 0;
  color: white;
}

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

nav li {
  display: inline;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

nav a:hover {
  background-color: #8ab69b;
}

nav a.active {
  background-color: #8ab69b;
}

nav a.active:hover {
  background-color: #429790;
}

/* Overlay is hidden by default */
.nav-overlay {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.9);
  overflow-x: hidden;
  transition: width 0.5s ease;
  z-index: 9999;
}

/* ===============================
   Main Content (Mobile-First)
================================= */
main {
  margin: 0 auto;
  max-width: 1400px;
}

/* ===============================
   Hero Section (Carousel)
================================= */
.hero {
  position: relative;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.carousel {
  position: relative;
  width: 100%;
}

.slide {
  display: none;
  position: relative;
}

.slide.active {
  display: block;
}

/* please add mobile styling for slide img and carousel-caption */
.slide img {
  width: 100%;
  height: auto;
  min-height: 400px; /* Adjust as needed */
  max-height: 400px; /* Adjust as needed */
  border-radius: 10px;
}

.carousel-caption {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 5px;
}

.carousel-caption h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #429790; /* Adjust as needed */
}

.carousel-caption p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #8ab69b; /* Adjust as needed */
}

@media (min-width: 768px) {
    .slide img {
      width: 100%;
      height: auto;
      min-height: 600px; 
      max-height: 600px;
      border-radius: 10px;
    }

    .carousel-caption {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
    .carousel-caption h2 {
      font-size: 2.5rem;
      margin-bottom: 10px;
      color: #429790; /* Adjust as needed */
    }
    
    .carousel-caption p {
      font-size: 1.2rem;
      margin-bottom: 20px;
      color: #8ab69b; /* Adjust as needed */
    }
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0 10px;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

/* Buttons (e.g., “Contact Us” in carousel) */
.btn {
  /* background-color: #8ab69b; set higher contract, currently conflicting with background */
  background-color: #429790; /* Adjust as needed */
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: #357d6f; /* Adjust as needed */

}

/* ===============================
   Team Section 
================================= */
.our-team {
  padding: 20px;
  text-align: center;
}

.our-team h2 {
  margin-bottom: 20px;
}

.team-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.team-member {
background-color: #0000001d; /* Adjust as needed */
  border-radius: 10px;
  padding: 20px;
  width: 100%;
  text-align: center;
}

.team-member img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.team-member h3 {
  margin: 10px 0 5px;
  color: #333;
}

.team-member .bio {
  font-size: 0.9rem;
}

@media (min-width: 768px) {
    .team-member {
      width: 300px;
    }
    .team-member img {
        width: 250px;
        height: 250px;
    }
}

/* ===============================
   Contact Form 
================================= */
form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

form label {
  margin-bottom: 5px;
  font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

form button {
  background-color: #8ab69b;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

form button:hover {
  background-color: #429790;
}

/* ===============================
   Find Us Section
================================= */
.find-us {
  padding: 20px;
  text-align: center;
}

.find-us iframe {
  width: 100%;
  height: 450px;
  border: 0;
  margin-top: 10px;
}

/* ===============================
   Footer
================================= */
footer {
  background-color: #f5f5f5;
  text-align: center;
  padding: 1rem;
}

footer p {
  margin: 0;
  color: #777;
}

footer a {
  color: #fff;
  text-decoration: none;
  padding: 5px 10px;
}

footer a:hover {
  text-decoration: none;
  background-color: #8ab69b;
  border-radius: 5px;
}

footer .social-icons a:hover {
    background-color: transparent;
}

/* ===============================
   Responsive Media Queries
================================= */
@media (min-width: 768px) {
  .header-container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .team-container {
    flex-wrap: nowrap;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .carousel-caption h2 {
    font-size: 3rem;
  }
  
  .carousel-caption p {
    font-size: 1.4rem;
  }
  
  /* Larger screen spacing, etc. */
  nav ul {
    gap: 1.5rem;
  }
}

/* Hide main nav, show hamburger icon on smaller screens */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .hamburger-icon {
    display: block;
    background-color: transparent;
    border: none;
  }
  .hamburger-icon svg {
    font-size: 1.25rem;
    color: white;
  }

  #closeOverlay {
    position: absolute;
    top: 40px;
    right: 15%;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background-color: transparent;
    border: none;
  }

  .overlay-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
  }

  .overlay-content ul {
    flex-direction: column;
    align-items: center;
  }

  .overlay-content a {
    padding: 10px 20px;
    margin: 5px 0;
    width: 100%;
    text-align: center;
  }

  .overlay-content a:hover {
    background-color: #429790;
  }
}

/* Show main nav, hide hamburger icon on larger screens */
@media (min-width: 769px) {
  .main-nav {
    display: flex; /* or inline-flex, etc. */
  }
  .hamburger-icon {
    display: none;
  }
}