/* styles.css */
/* General Body Styles */
body {
  font-family: 'Open Sans', sans-serif;
  background-color: #f5f5f0;
  color: #2d2d2d;
  margin: 0;
  padding: 0;
  padding-top: 70px; 
}

/* Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid #e0e0e0;
  padding: 1em 2em;
  display: flex;
  align-items: center;
  z-index: 1000;
  box-sizing: border-box;
  height: 70px;
}

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

.logo a { 
  text-decoration: none;
  display: flex; 
  align-items: center;
}

.logo svg {
  max-height: 34px; /* Desktop logo height */
  width: auto;      
  display: block;   
}

/* --- DESKTOP NAVIGATION STYLES --- */
.menu-toggle {
  display: none; 
  font-size: 1.5em; 
  color: #2d7c4e; 
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25em; 
}

nav { 
  display: flex;
  align-items: center; 
  gap: 1.5em; /* Adjusted gap to make space for phone */
  margin-left: auto; 
}

nav > a, 
.nav-item > a.services-link { 
  text-decoration: none;
  color: #2d7c4e;
  font-weight: 400;
  transition: color 0.2s ease, text-decoration 0.2s ease;
  padding: 0.5em 0; 
}

nav > a:hover,
.nav-item > a.services-link:hover {
  text-decoration: underline;
}

nav > a.active,
.nav-item > a.services-link.active { 
  font-weight: 700 !important;
}

.nav-item.dropdown {
  position: relative; 
  display: inline-block; 
}

.arrow-down { 
  font-size: 0.7em;
  margin-left: 0.3em;
  transition: transform 0.2s ease-in-out;
}

.nav-item.dropdown:hover .arrow-down { 
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none; 
  position: absolute;
  top: 100%; 
  left: 0;
  background-color: #ffffff; 
  min-width: 220px; 
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
  z-index: 1001; 
  border-radius: 0 0 4px 4px; 
  border: 1px solid #e0e0e0;
  border-top: none; 
  padding: 0.5em 0; 
}

.nav-item.dropdown:hover .dropdown-menu {
  display: block; 
}

.dropdown-menu a { 
  color: #2d7c4e;
  padding: 0.75em 1.5em; 
  text-decoration: none;
  display: block; 
  font-weight: 400;
  font-size: 0.95em;
  white-space: nowrap; 
}

.dropdown-menu a:hover {
  background-color: #f5f5f0; 
  text-decoration: none; 
}

/* Clickable Phone Number in Navbar */
.navbar-phone {
  color: #2d7c4e;
  text-decoration: none;
  font-weight: 600; /* Semi-bold */
  font-size: 0.95em;
  margin-left: 1.5em; /* Space it from the last nav item */
  white-space: nowrap; /* Prevent wrapping */
}

.navbar-phone:hover {
  text-decoration: underline;
}


/* Hero Section Styles */
.hero {
  background: url('images/WaterTankPihioloRd.jpg') center center / cover no-repeat;
  min-height: 80vh;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  flex-direction: column;
  padding: 2em;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3em;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2em;
  max-width: 700px;
  margin-top: 1em;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

/* Main Content Styles */
.main-content {
  max-width: 900px;
  margin: 3em auto;
  padding: 0 1.5em;
}

.intro-text {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 2em;
}

/* Button Styles */
.button, button[type="submit"] {
  margin-top: 2em;
  padding: 0.8em 1.5em;
  background-color: #2d7c4e;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1em;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.button:hover, button[type="submit"]:hover {
  background-color: #245e3b;
}

/* Service Section Styles */
.service {
  margin-bottom: 2em;
  padding: 1.5em;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.service h2 {
  color: #2d7c4e;
  font-family: 'Playfair Display', serif;
  margin-top: 0;
}

.service img {
  width: 100%;
  max-width: 100%;
  margin-top: 1em;
  border-radius: 8px;
  height: auto;
}

/* Contact Form Styles */
form#contact-form {
  max-width: 600px;
  margin: 2em auto;
  background: white;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

label {
  display: block;
  margin-top: 1em;
  margin-bottom: 0.3em;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"], 
select,            
textarea {
  width: 100%;
  padding: 0.8em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em; 
  font-family: inherit; 
  color: #2d2d2d; 
  background-color: #fff; 
  box-sizing: border-box; 
  line-height: normal; 
  appearance: none; 
  -webkit-appearance: none;
  -moz-appearance: none;
}

select {
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%232d7c4e%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 0.7em top 50%, 0 0;
  background-size: 0.65em auto, 100%;
  padding-right: 2.5em; 
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Map Container Styles */
.map-container {
  margin-top: 3em;
  text-align: center;
}

.map-container iframe {
  width: 100%;
  max-width: 100%;
  height: 400px;
  border: none;
  border-radius: 8px;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: white;
  padding: 2.5em;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.modal-content h2 {
  font-family: 'Playfair Display', serif;
  color: #2d7c4e;
  margin-top: 0;
}

.modal-content p {
  margin-top: 1em;
  line-height: 1.6;
}

.modal-content button {
  margin-top: 1.5em;
  background-color: #2d7c4e;
  color: white;
  border: none;
  padding: 0.7em 1.3em;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
}

.modal-content button:hover {
  background-color: #245e3b;
}

/* Footer Styles */
footer {
  text-align: center;
  padding: 2em 1em;
  background: #e9e9e2;
  font-size: 0.9em;
  color: #555;
  margin-top: 3em;
}

/* --- MOBILE NAVIGATION STYLES --- */
@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }
  .navbar {
    padding: 0.8em 1em; /* Slightly less padding to accommodate phone */
    height: 60px;
    justify-content: space-between; 
  }
  .logo svg { 
    max-height: 25px; 
  }

  .menu-toggle {
    display: block; 
    margin-left: auto; /* Push toggle to the right if phone is also visible */
  }

  /* Hide desktop nav links and dropdown, but keep phone visible if desired */
  nav { 
    display: none; /* Hide the main nav link container */
  }
  .nav-item.dropdown .dropdown-menu,
  .nav-item.dropdown .arrow-down {
    display: none !important; 
  }

  /* Style phone number for mobile */
  .navbar-phone {
    font-size: 0.85em; /* Slightly smaller on mobile */
    margin-left: 0.5em; /* Space from menu toggle */
    /* To ensure it's visible and not part of the hidden 'nav' */
    display: block; 
  }
  
  /* Styles for the opened hamburger menu */
  header.navbar nav.open { /* When the mobile menu is open */
    display: flex; 
    flex-direction: column;
    background: #2d7c4e;
    position: absolute;
    top: 100%; /* Below the navbar header */
    left: 0;
    width: 100%;
    padding: 0; 
    box-sizing: border-box;
    z-index: 999; /* Ensure it's above content but below navbar if needed */
  }
 
  header.navbar nav.open > a, 
  header.navbar nav.open > .nav-item > a.services-link { 
    color: #fff;
    padding: 1em 1.5em; 
    border-bottom: 1px solid rgba(0,0,0,0.15);
    width: 100%;
    box-sizing: border-box;
    display: flex;          
    align-items: center;    
    justify-content: center; 
    text-decoration: none;  
    line-height: normal;    
  }
  header.navbar nav.open > .nav-item:last-of-type > a.services-link, 
  header.navbar nav.open > a:last-of-type { 
    border-bottom: none;
  }
  
  header.navbar nav.open > a:hover,
  header.navbar nav.open > .nav-item > a.services-link:hover {
    background-color: rgba(255,255,255,0.1);
  }
  header.navbar nav.open > a.active,
  header.navbar nav.open > .nav-item > a.services-link.active {
    background-color: rgba(255,255,255,0.2);
    font-weight: 700 !important;
  }

  /* Other mobile-specific adjustments */
  .hero h1 {
    font-size: 2.2em;
  }
  .hero p {
    font-size: 1em;
  }
  .main-content {
    margin: 2em auto;
    padding: 0 1em;
  }
  form#contact-form {
    padding: 1.5em;
  }
}
