/* ✅ Navigation bar styling */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 15px 30px;
  box-shadow: 0px 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  z-index: 10000;
  top: 0;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0a472e;
}

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

nav ul li a {
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  color: #1f1f1f;
  font-weight: 500;
  transition: color 0.3s ease;
  border-radius: 6px;
  padding: 8px 16px;
}

nav ul li a:hover {
  color: #0a472e;
}
nav ul li a.active {
    background-color: #0a472e;
    color: white;
    font-weight; 700;
}
/* ✅ Call-to-action button in nav */
nav .cta-button {
  background: #0a472e;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

nav .cta-button:hover {
  background: #0d5e3c;
}

/* ✅ Hero section with background image */
.hero {
  position: relative;
  height: 50vh;
  background: url('hero.PNG') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 20px;
}

/* ✅ Dark overlay on top of the image */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(10, 71, 46, 0.7), /* deep eco green */
    rgba(10, 71, 46, 0.7)
  );
}

/* ✅ Make sure text is above the overlay */
.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.2rem;
  margin: 0 auto 25px auto;
  max-width: 650px;
  line-height: 1.4;
}

.hero .cta-button {
  background: #0a472e;
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1rem;
  transition: background 0.3s ease;
}
.hero .cta-button:hover {
  background: #0d5e3c;
}
/* ✅ Fade-in animation for hero text */
.hero-content {
  position: relative;
  z-index: 1;
  opacity: 0;                /* Start invisible */
  transform: translateY(20px); /* Start slightly lower */
  animation: fadeUp 1s ease-out forwards; /* Play fadeUp animation */
  animation-delay: 0.3s;     /* Slight delay for smoother effect */
}

/* ✅ Keyframes for fade + slide up */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ✅ Body styling */
body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

/* ✅ Header styling */
header {
  text-align: center;
  background: #0a472e; /* Dark green eco vibe */
  color: white;
  padding: 50px 20px;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2rem;
}

/* ✅ Section styling */
section {
  background: white;
  border-right: 5px solid #1f7a3a; /* strong green accent */
  border-left: 5px solid #1f7a3a; /* strong green accent */
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
}

section h2 {
  color: #0a472e;
  margin-bottom: 10px;
}

section p {
  font-size: 1rem;
}

.mission-section {
  background-color: #f5fdf6; /* soft green-tinted background */
  border-left: 5px solid #1f7a3a; /* strong green accent */
  padding: 24px;
  margin: 32px 0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-family: 'Helvetica Neue', sans-serif;
}

.mission-section h2 {
  color: #1f7a3a;
  margin-bottom: 12px;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
}

.leaf-icon {
  font-size: 1.5rem;
  margin-right: 8px;
}

.mission-section p {
    text-align: center;
  color: #333;
  line-height: 1.6;
  margin: 10px 0;
}
.container {
    max-width:960px;
    margin: 0 auto;
    padding: 0 20px;
}
/* ✅ Services Section */
.services {
  max-width: 900px;
  margin: 60px auto;
  text-align: center;
}

.services h2 {
  font-size: 2rem;
  color: #0a472e;
  margin-bottom: 40px;
}

.service-cards {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  background: white;
  flex: 1;
  min-width: 280px;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
  display: block;      /* ensures proper centering */
  margin: 0 auto 20px; /* centers horizontally + keeps spacing below */
  width: 100px;        /* bigger size */
  height: auto;        /* keeps proportions */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card h3 {
  margin-bottom: 10px;
  color: #0a472e;
}

.card p {
  font-size: 0.95rem;
  color: #555;
}

/* ✅ Hover effect */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 20px rgba(0,0,0,0.15);
}
/* ✅ Contact Section */
.contact {
  max-width: 900px;
  margin: 60px auto;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  color: #0a472e;
  margin-bottom: 15px;
}

.contact p {
  margin-bottom: 30px;
  color: #555;
}

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

.contact-form input,
.contact-form textarea {
  padding: 15px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  resize: none;
  font-family: inherit;
}

.contact-form button {
  background: #0a472e;
  color: white;
  padding: 15px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #0d5e3c;
}
/* ✅ Footer styling */
footer {
  background: #0a472e;   /* dark green background */
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 60px;
}

footer a {
  color: #cce6dd;        /* lighter green for links */
  text-decoration: none;
  margin: 0 5px;
}

footer a:hover {
  text-decoration: underline;
}
.mission-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    color: #1f7a3a;
    font-size: 1.8rem;
    margin-bottom: 12px;
}
.bold-paragraph {
    font-weight: bold;
}
.italic-paragraph {
    font-style: italic;
}

/* ✅ Contact Page Layout */
.contact-page {
  max-width: 800px;
  margin: 60px auto;
  text-align: center;
  padding: 20px;
}

.contact-page h1 {
  font-size: 2.5rem;
  color: #0a472e;
  margin-bottom: 15px;
}

.contact-page p {
  margin-bottom: 30px;
  color: #555;
}

/* ✅ Reuse the existing contact form styles */
.contact-info {
  margin-top: 30px;
  font-size: 1rem;
  color: #333;
}

.contact-info p {
  margin: 8px 0;
}
/* ✅ Services Page Hero */
.services-hero {
  height: 45vh; /* ✅ Taller than other sections */
  width: 100%;  /* ✅ Full width edge-to-edge */
  background: url('hero.png') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 20px;
}

/* ✅ Green gradient overlay like the example */
.services-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(10, 71, 46, 0.7), /* deep eco green */
    rgba(10, 71, 46, 0.7)
  );
}

.services-hero .hero-overlay {
  position: relative;
  z-index: 1;
  max-width: 800px; 
  animation: fadeUp 1s ease-in-out forwards;
}

.services-hero h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.services-hero p {
  font-size: 1.3rem;
  margin-bottom: 25px;
  line-height: 1.4;
}

.services-hero .cta-button,
.services-hero .cta-button:visited {
  background: #0a472e;
  color: white;
  padding: 14px 30px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.services-hero .cta-button:hover {
  background: #0d5e3c;
}

/* ✅ Service Overview */
.service-overview {
  max-width: 1100px;
  margin: 60px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 0 20px;
}

.service-overview img {
  width: 45%;          /* keep image left side */
  border-radius: 10px;
}

.overview-text {
  width: 55%;          /* text takes right side */
}

.overview-text h2 {
  font-size: 2rem;
  color: #0a472e;
  margin-bottom: 15px;
}

.overview-text ul {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.overview-text li {
  margin-bottom: 8px;
  color: #333;
}
.section-container {
  max-width: 1100px; /* same as above section */
  margin: 0 auto;
  padding: 0 20px;
}

/* ✅ How It Works Section - Matches Enviro Provides layout */
.how-it-works {
  max-width: 1100px; /* same as Enviro Provides section */
  margin: 60px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 0 20px;
}

/* Left side container */
.how-text {
  width: 55%;
  text-align: center; /* Center ONLY title + steps inside */
}

.how-text .how-title {
  font-size: 2rem;
  color: #0a472e;
  margin-bottom: 40px;
}

/* Steps row */
.how-steps-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px; /* space between steps + arrows */
}

/* Each step icon + text */
.step {
  text-align: center;
  max-width: 140px;
}

.step img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #eaf3ef;
  padding: 15px;
  margin-bottom: 10px;
}

.step p {
  font-size: 0.95rem;
  line-height: 1.3;
  color: #333;
}

/* Arrows between steps */
.arrow {
  font-size: 2rem;
  color: #0a472e;
}

/* Right side image */
.how-image {
  width: 45%;
  border-radius: 10px;
  object-fit: cover;
}

/* ✅ Why Choose Enviro - same width as other sections */
.why-choose {
  max-width: 1100px; /* matches Enviro Provides + How It Works */
  margin: 80px auto;
  text-align: center;
  padding: 40px 20px; /* more height for breathing room */
  background: #f9f9f9;
  border-radius: 10px;
}

.why-choose h2 {
  color: #0a472e;
  font-size: 2.2rem;
  margin-bottom: 50px;
}

/* ✅ Responsive grid for benefits */
.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px; /* more spacing between cards */
  justify-items: center;
}

/* ✅ Individual benefit cards */
.benefit-item {
  background: white;
  padding: 20px 25px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.08);
  font-size: 1.1rem;
  color: #333;
  text-align: center;
  width: 90%;
  max-width: 400px;
  position: relative;
  transition: all 0.3s ease;
}

/* ✅ Single clean checkmark before text */
.benefit-item::before {
  content: "✔";
  color: #0a472e;
  font-weight: bold;
  margin-right: 10px;
  position: absolute;
  left: 15px;
  top: 20px;
  font-size: 1.2rem;
}

.benefit-item:hover {
  transform: translateY(-6px) rotate(-1deg); /* slight lift + tilt */
  box-shadow: 0px 8px 20px rgba(0,0,0,0.15);
}

/* ✅ Push text inward so it doesn’t overlap the checkmark */
.benefit-item {
  padding-left: 45px; /* leaves space for checkmark */
}

/* ✅ Consultation Form */
.quote-form {
  max-width: 1100px;
  margin: 60px auto;
  text-align: center;
  padding: 20px;
}
.overview-text h3 {
  color: #0a472e;
  margin-top: 20px;
  font-size: 1.4rem;
}
.logo-img {
    height: 80px;
    width: auto;
    display:block;
}
.logo-img:hover {
    transform: translateY(-4px);
    transition: transform 0.3 ease;
}

form input,
form button {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

form button {
  background-color: #1c4d27; /* Your green color */
  color: white;
  border: none;
  cursor: pointer;
}

form button:hover {
  background-color: #163e20; /* Slightly darker on hover */
}

form input,
form button {
  display: block;
  width: 100%;
  max-width: 100%;   /* 🔥 this line prevents overflow */
  box-sizing: border-box; /* ✅ ensures padding doesn’t break layout */
  padding: 10px;
  margin-bottom: 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.legal-page {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  line-height: 1.8;
  color: #333;
}

.legal-page h1,
.legal-page h2 {
  color: #1c4d27;
  margin-top: 30px;
}
footer a.active{
    text-decoration: underline;
    color: #ffffff;
}



/* Fix nav bar and layout on small screens */
@media (max-width: 768px) {
  nav {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  nav ul {
    flex-direction: column;
    padding: 0;
    margin: 0;
  }

  nav ul li {
    margin: 10px 0;
  }

  .navbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1,
  .hero p,
  .hero button {
    text-align: center;
  }

  .hero {
    padding: 20px;
  }

  .section,
  .card,
  .content-wrapper,
  .contact-form {
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  form input,
  form textarea,
  form button {
    width: 100%;
    margin-bottom: 10px;
  }
}
@media screen and (max-width: 768px) {
  /* Prevent overflow */
  .how-it-works {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
  }

  .how-it-works .step {
    min-width: 30%;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
  }

  /* Reduce text size a bit on mobile */
  .how-it-works .step p,
  .how-it-works .step h3 {
    font-size: 0.9rem;
  }

  /* Adjust icon/image size inside how-it-works */
  .how-it-works .step img,
  .how-it-works .step svg {
    max-width: 40px;
    height: auto;
    margin-bottom: 10px;
  }

  /* Fix contact page spacing */
  .contact-section {
    padding-bottom: 80px;
  }

  /* Make home page text a little bigger for readability */
  body,
  p,
  li {
    font-size: 16px;
    line-height: 1.5;
  }

  /* Ensure footer stays clean */
  footer {
    padding: 20px;
    font-size: 14px;
    text-align: center;
  }
}


/* Base layout for desktop */
.how-it-works {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
  padding: 20px;
}

/* Individual step boxes */
.step {
  flex: 1;
  text-align: center;
  max-width: 200px;
}

/* Arrows (optional styling) */
.arrow {
  font-size: 24px;
}

/* Responsive layout: tweak only on mobile */
@media screen and (max-width: 768px) {
  .how-it-works {
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 30px;
    padding: 10px;
  }

  .step {
    min-width: 250px;
    flex-shrink: 0;
  }

  .how-it-works::-webkit-scrollbar {
    height: 6px;
  }

  .how-it-works::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
  }
}
/* Hero section responsiveness */
@media (max-width: 768px) {
  .hero {
    height: auto; /* Let content define the height */
    padding: 60px 20px; /* Add vertical padding for breathing room */
    text-align: center;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .hero button {
    font-size: 1rem;
    padding: 10px 20px;
  }
}

.hero {
  background-size: cover;
  background-position: center;
}

/* Mobile-only styles */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 18px;
  }

  p, li {
    font-size: 16px;
  }

  .how-it-works-icons p {
    font-size: 14px;
  }

  .hero-content {
    padding: 1.5rem;
    text-align: center;
  }

  .section {
    padding: 1.5rem 1rem;
  }

  .quote-form input,
  .quote-form textarea {
    font-size: 16px;
    padding: 0.75rem;
  }

  .quote-form button {
    font-size: 16px;
    padding: 0.75rem 1.5rem;
  }
}

/* Mobile Text Fix */
@media (max-width: 768px) {
  h2, h3 {
    font-size: 1.4rem; /* Bigger section titles */
  }

  p, li {
    font-size: 1.05rem; /* Regular text slightly larger */
    line-height: 1.6;
  }

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

  .card p {
    font-size: 1rem;
  }

  .how-title,
  .services-title,
  .mission-title {
    font-size: 1.5rem;
  }

  .service-card {
    padding: 1rem;
  }

  .service-card img {
    width: 60px;
    height: auto;
  }

  input, textarea {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .contact-section {
    min-height: calc(100vh - 200px); /* Adjust for nav + footer height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    text-align: center;
  }

  .contact-section form {
    max-width: 100%;
    margin: 0 auto;
  }

  footer {
    margin-top: auto;
  }

  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  main {
    flex: 1;
  }
}