
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background: #f4f1e7;
  color: #333;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2em;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px; /* spacing between logo and text */
}

.logo {
  height: 70px; /* increase logo size here */
}

.logo-text {
  font-size: 1.4em;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: #333;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #444;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}
nav a:hover {
  color: #000;
}
.hero {
  background-color: #4e5844;
  min-height: 300px; /* not 100vh */
  padding: 4em 2em;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 3em;
  flex-wrap: wrap;
  text-align: left;
  background-size: cover;
  background-position: center;
   
}

.hero-img img {
  max-width: 400px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.services-hero {
  background-color: #434e39; /* dark green */
  padding: 3rem 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  padding: 2rem;
  flex-wrap: wrap;
}

.hero-img img {
  width: 300px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.centered-card {
  text-align: center;
  align-items: center;
  justify-content: center;
}
.centered-card h4 {
  text-align: center;
}
.centered-card p {
  text-align: center;
}
.hero-overlay h1 {
  background-color: #1d1d1d;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-size: 2.2rem;
  font-weight: 700;
  white-space: nowrap;
}
.contact-form select {
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
  background-color: white;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.65);
  padding: 2em 3em;
  border-radius: 12px;
  color: white;
  max-width: 600px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.about-hero {
  background-color: #4e5844;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-page .hero-overlay.about {
  align-items: flex-end;
  margin-left: 2em;
  margin-right: 2em;
  text-align: right;
}
.about-page .hero-img {
  position: relative;
  z-index: 2;
  padding: 1em 2em;
  margin-right: -140px; /* Adjust as needed */
}
.services-page .hero-img {
  position: relative;
  z-index: 2;
  margin-right: -100px; /* Adjust as needed */
}
.home-page .hero-img {
  position: relative;
  z-index: 2;
  min-height: 400px;
  padding: 1em 2em;
  margin-right: -110px; /* Adjust as needed */
}
.hero-overlay h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.8em;
  margin-bottom: 0.5em;
}
.hero-overlay p {
  font-size: 1.2em;
  margin-left: 0.5em;
}
.btn {
  margin-top: 1.5em;
  display: inline-block;
  padding: 0.7em 1.4em;
  background: #4b8b3b;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}
.btn:hover {
  background: #3e6f2e;
}
.contact-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 1rem;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
}
textarea {
  min-height: 180px; /* Just the message field */
  resize: vertical;
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
}
.contact-form button {
  padding: 0.75rem;
  font-size: 1rem;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #555;
}

main.content {
  padding: 3em 2em;
  max-width: 1200px;
  margin: auto;
}
.intro, .services-preview {
  margin-bottom: 4em;
  text-align: center;
}
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  justify-content: center;
}
.card {
  background: white;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  flex: 1 1 280px;
  max-width: 300px;
  text-align: left;
}
.card h4 {
  margin-top: 0;
  font-family: 'Poppins', sans-serif;
}

footer {
  text-align: center;
  background-color: #2c2c2c;
  color: white;
  padding: 1.5em;
  font-size: 0.9em;
  margin-top: 4em;
}
.custom-footer {
  position: relative;
  background-color: #2e2e2e;
  color: white;
  padding: 1em 0;
  text-align: center;
  font-size: 0.9em;
}

.footer-icon {
  position: absolute;
  top: -48%;
  transform: translateY(-50%);
  height: 160px;
  opacity: 0.75;
}

.footer-icon.left {
  left: 2rem;
}

.footer-icon.right {
  right: 2rem;
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* === MOBILE OPTIMIZATION === */
@media (max-width: 768px) {
  body {
    padding: 0 1rem;
  }

  .hero {
    background-size: cover;
    padding: 80px 20px;
    text-align: center;
  }

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

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

  .card-container,
  .services-section,
  .info-boxes {
    flex-direction: column;
    align-items: center;
  }

  .card,
  .info-box {
    width: 90%;
    margin-bottom: 1.5rem;
  }

  .navbar ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
  }

  .footer {
    text-align: center;
    padding: 1rem 0;
  }
}
