/* --- Slim Centered Services Hero --- */
.hero {
  position: relative;
  padding: 30px 0; 
  min-height: 110px;
  display: flex;
  align-items: center; /* Vertically centers the content block */
  justify-content: center; /* Horizontally centers the content block */
  overflow: hidden;
  color: #ffffff;
  border-bottom: 3px solid #6AB04C; /* ZEC Light Green accent */
}

/* --- Background Image & Overlay --- */
.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Professional gradient using ZEC Deep Green (#2D803D) and Deep Red (#9E2A2B) */
  background: linear-gradient(180deg, rgba(45, 128, 61, 0.98) 0%, rgba(158, 42, 43, 0.7) 100%);
  z-index: -1;
}

/* --- Content Layout: Centered Stack --- */
.hero-content {
  position: relative;
  max-width: 800px; /* Constrained width for better centered readability */
  width: 90%;
  display: flex;
  flex-direction: column; 
  justify-content: center;
  align-items: center; /* Centers the H1 and P relative to each other */
  text-align: center; /* Centers the actual text lines */
  gap: 8px;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
  color: #ffffff;
  /* Subtle text shadow for high-end feel */
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 300;
  margin: 0;
  color: #f0f0f0;
  letter-spacing: 0.5px;
  max-width: 600px;
  /* Centered accent: using a bottom border instead of left for symmetry */
  padding-bottom: 5px;
  position: relative;
}

/* Red accent as a centered underline */
.hero p::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: #9E2A2B; /* Deep Red accent */
}

/* --- Mobile Responsiveness --- */
@media (max-width: 600px) {
  .hero {
    min-height: 100px;
    padding: 20px 0;
  }
}


/* --- Global Container Adjustment --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Ensures content doesn't hit screen edges on mobile */
  box-sizing: border-box;
}

/* --- Responsive Hero Section --- */
.hero {
  position: relative;
  padding: 40px 15px; /* Horizontal padding for mobile */
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
  border-bottom: 4px solid #6AB04C; /* Light Green */
}

.hero-content {
  width: 100%;
  max-width: 600px;
}

.hero h1 {
  /* Dynamic font sizing based on screen width */
  font-size: clamp(1.5rem, 8vw, 2.8rem); 
  margin-bottom: 10px;
  line-height: 1.1;
  word-wrap: break-word; /* Prevents long words from breaking layout */
}

.hero p {
  font-size: clamp(0.85rem, 4vw, 1.1rem);
  line-height: 1.4;
}

/* --- Responsive Service Grid --- */
.service-grid {
  display: grid;
  /* Automatically switches from 1 column on mobile to 3 on desktop */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 20px;
  width: 100%;
}

/* --- Service Card Adjustments --- */
.service-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  border-top: 5px solid #2D803D; /* Deep Green */
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensures cards in a row are equal height */
  box-sizing: border-box;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.95rem;
  flex-grow: 1; /* Pushes button to the bottom if text is short */
  margin-bottom: 20px;
}

/* --- Buttons for Touch Screens --- */
.btn-outline {
  display: inline-block;
  padding: 12px 20px; /* Larger tap target for mobile users */
  text-align: center;
  width: 100%; /* Full width on mobile for easier clicking */
  max-width: 160px;
  border: 2px solid #2D803D;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
}

/* --- Media Queries for Specific Breakpoints --- */

/* Tablets and small desktops */
@media (max-width: 992px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Phones (Portrait) */
@media (max-width: 600px) {
  .hero {
    padding: 30px 10px;
  }

  .service-grid {
    grid-template-columns: 1fr; /* Force single column */
  }

  .service-card {
    padding: 20px; /* Slightly less padding to save space */
  }

  .btn-outline {
    width: 100%; /* Buttons expand to fit mobile width */
    max-width: none;
  }
}

/* --- Slim CTA Section --- */
.cta {
  padding: 30px 0; /* Reduced vertical padding for slim profile */
  background: linear-gradient(90deg, #2D803D 0%, #6AB04C 100%); /* ZEC Green Gradient */
  color: #ffffff;
  text-align: center;
  border-bottom: 3px solid #9E2A2B; /* Deep Red Accent */
}

.cta .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta h2 {
  /* Smaller, tighter heading */
  font-size: clamp(1.2rem, 3vw, 1.6rem); 
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.cta p {
  /* Reduced content font size */
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  margin-bottom: 20px;
  font-weight: 300;
  opacity: 0.95;
  max-width: 700px;
  line-height: 1.4;
}

/* --- Compact Button --- */
.btn-white {
  display: inline-block;
  padding: 8px 24px; /* Slimmer button padding */
  background-color: #ffffff;
  color: #2D803D; /* Deep Green Text */
  text-decoration: none;
  font-size: 0.75rem; /* Smaller button text */
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-white:hover {
  background-color: #9E2A2B; /* Transitions to Deep Red */
  color: #ffffff;
  transform: translateY(-2px);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 600px) {
  .cta {
    padding: 25px 10px;
  }
  
  .btn-white {
    width: 100%; /* Full width for mobile accessibility */
    max-width: 200px;
  }
}