/* --- General Styles & Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-green: #3A7D44; 
  --dark-green: #1A2E20; 
  --light-bg: #F4F7F5;
  --text-dark: #333333;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background-color: var(--light-bg);
  color: var(--text-dark);
}

h1, h2, h3 {
  font-family: 'Lora', serif; 
  color: var(--dark-green);
}

img {
  max-width: 100%; /* Prevents massive images from breaking the layout */
  height: auto;
}

/* --- Header & Navigation (The parts I accidentally deleted!) --- */
header {
  background-color: #ffffff;
  padding: 15px 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 40px;
  width: auto;
}

header nav ul {
  list-style-type: none; /* Removes the bullets */
  display: flex;         /* Puts links in a row */
  gap: 30px;
  align-items: center;
}

header nav ul li a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.3s ease;
}

header nav ul li a:hover {
  color: var(--primary-green);
}

/* --- Services dropdown in the header --- */
header nav li.dropdown {
  position: relative;
}

.dropdown-toggle .caret {
  font-size: 11px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  min-width: 220px;
  padding: 10px 0;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  z-index: 200;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  font-weight: 400;
  color: var(--text-dark) !important; /* wins over the inline green on the toggle's page */
}

.dropdown-menu li a:hover {
  background-color: var(--light-bg);
  color: var(--primary-green) !important;
}

/* --- Global Buttons --- */
.cta-button {
  background-color: var(--primary-green);
  color: #fff;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
}

.cta-button:hover {
  background-color: var(--dark-green);
  box-shadow: 0 4px 10px rgba(58, 125, 68, 0.3);
}

/* --- Why Choose Us Section --- */
.why-choose-us {
  background-color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.why-choose-us h2 {
  font-size: 36px;
  margin-bottom: 40px;
}

.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Allows stacking on smaller screens */
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature {
  width: 300px;
}

.feature h3 {
  font-size: 24px;
  color: var(--primary-green);
  margin-bottom: 10px;
}

/* --- Services Grid (The new responsive upgrade) --- */
.services {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--light-bg);
}

.services h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-button {
  position: relative;
  height: 250px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
}

.service-button::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  z-index: 1;
}

.service-button h3 {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  position: relative;
  z-index: 2;
  padding: 20px;
  width: 100%;
  text-align: left;
}

.service-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* --- Featured Projects (home page) --- */
.featured-projects {
  padding: 60px 20px;
  text-align: center;
  background-color: #fff;
}

.featured-row {
  display: flex;
  flex-wrap: wrap; /* extra photos in photos/featured wrap to a new row */
  gap: 20px;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto 40px auto;
}

.featured-row img {
  width: 30%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- Contact Form Section --- */
.contact {
  padding: 80px 20px;
  background-color: #fff;
  text-align: center;
}

.contact form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  background: var(--light-bg);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact label {
  font-size: 16px;
  font-weight: 600;
  margin: 15px 0 5px;
  display: block;
}

.contact input, .contact select, .contact textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
}

/* --- Footer --- */
footer {
  background-color: var(--dark-green);
  color: #fff;
  padding: 30px 40px;
  text-align: center;
}

/* --- Individual Service Pages Layout --- */
.service-detail-wrapper {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  margin: 0 auto;
  min-height: 60vh; 
  background-color: var(--light-bg);
}

.service-detail-text {
  flex: 1;
  padding: 80px 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left; /* the parent .services section centers everything */
}

.service-detail-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--dark-green);
}

.service-detail-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-detail-image {
  flex: 1;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  min-height: 400px;
}

/* Mobile stacking for service pages */
@media (max-width: 768px) {
  .service-detail-wrapper {
    flex-direction: column-reverse; /* Puts image on top on mobile */
  }
  .service-detail-text {
    padding: 40px 20px;
  }
}

/* --- Mobile layout --- */
@media (max-width: 768px) {
  header {
    padding: 12px 16px;
  }

  header .header-content {
    flex-direction: column;
    gap: 12px;
  }

  .logo h1 {
    font-size: 22px !important; /* overrides the inline 30px on subpages */
  }

  header nav ul {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-content h1 {
    font-size: 2.2rem !important;
  }

  .hero-content p {
    font-size: 1.1rem !important;
  }

  .featured-row {
    flex-direction: column;
    align-items: center;
  }

  .featured-row img {
    width: 100%;
    max-width: 400px;
  }
}

/* Portfolio Teaser at bottom of service pages */
.service-portfolio-cta {
  text-align: center;
  padding: 60px 20px;
  background-color: #fff;
}

.service-portfolio-cta h3 {
  font-size: 2rem;
  margin-bottom: 15px;
}