@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary-green: #6B8E23;
  --dark-charcoal: #212121;
  --light-grey: #F8F8F8;
  --white: #FFFFFF;
  --secondary-green: #B0D728;
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --transition-smooth: all 0.3s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-primary);
  color: var(--dark-charcoal);
  background-color: var(--white);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; transition: var(--transition-smooth); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Typography Hierarchy */
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; color: var(--white); margin-bottom: 1.5rem; text-shadow: 2px 2px 8px rgba(0,0,0,0.8), 0 0 10px rgba(0,0,0,0.5); }
.hero p { font-size: clamp(1.125rem, 2vw, 1.5rem); color: var(--white); margin-bottom: 2rem; max-width: 600px; text-shadow: 2px 2px 8px rgba(0,0,0,0.8), 0 0 10px rgba(0,0,0,0.5); }
.section-title { font-size: clamp(2rem, 4vw, 2.5rem); text-align: center; margin-bottom: 3rem; color: var(--dark-charcoal); }

/* Reusable Components */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.bg-light { background-color: var(--light-grey); }
.bg-dark { background-color: var(--dark-charcoal); color: var(--white); }
.bg-primary { background-color: var(--primary-green); color: var(--white); }

/* Buttons */
.button, .primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.primary-cta {
  background-color: var(--primary-green);
  color: var(--white);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.primary-cta:hover {
  background-color: var(--dark-charcoal);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.button-secondary {
  background-color: var(--white);
  color: var(--primary-green);
  border-color: var(--primary-green);
}

.button-secondary:hover {
  background-color: var(--primary-green);
  color: var(--white);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo-lockup {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-green);
}

.logo-lockup img {
  height: 40px;
  margin-right: 0.5rem;
}

.desktop-nav {
  display: none;
}

.desktop-nav ul {
  display: flex;
  gap: 2rem;
}

.desktop-nav a {
  font-weight: 500;
  color: var(--dark-charcoal);
  position: relative;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-green);
  transition: width 0.3s ease;
}

.desktop-nav a:hover::after, .desktop-nav a.active::after {
  width: 100%;
}

.header-right {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.mobile-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-header-right .button {
  display: inline-flex;
}

@media (min-width: 768px) {
  .desktop-nav, .header-right {
    display: flex;
  }
  
  .mobile-header-right {
    display: none;
  }

.call-us-link {
  font-weight: 600;
  color: var(--dark-charcoal);
}

.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle svg {
  width: 28px;
  height: 28px;
  fill: var(--dark-charcoal);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--dark-charcoal);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
}

.mobile-nav-overlay.active {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.mobile-nav-close {
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-nav-close svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
  margin-bottom: auto;
}

.mobile-nav-links a {
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 600;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: 70px; /* Offset for header */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* NO OVERLAY PER INSTRUCTIONS */
}

.primary-cta::after {
  content: '';
  position: absolute;
  top: var(--y, 50%);
  left: var(--x, 50%);
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 50%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.primary-cta:hover::after {
  transform: translate(-50%, -50%) scale(2);
}

.button-secondary::after {
  content: '';
  position: absolute;
  top: var(--y, 50%);
  left: var(--x, 50%);
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(107, 142, 35, 0.2) 0%, transparent 50%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.button-secondary:hover::after {
  transform: translate(-50%, -50%) scale(2);
}

/* Fallback for when no image is available, but instruction says use exactly */
/* We just set the background image inline on HTML */

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  /* Adding a text shadow and subtle background behind text just to ensure readability without an overlay */
  background: rgba(0, 0, 0, 0.4); 
  padding: 2rem;
  border-radius: 8px;
  max-width: 800px;
}
/* Wait, the instruction says: "Display hero section images exactly as they are... Do NOT add semi-transparent colored divs... over hero images". 
   Does that mean the text might be hard to read? I'll use strong text-shadow instead of background block. */
.hero-content {
  background: none;
  padding: 0;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* About/Mission */
.about-mission .grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.about-image img {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Differentiators / Services Grid */
.grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: var(--transition-smooth);
  border-top: 4px solid var(--primary-green);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-card img {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
}

.service-card h3 {
  color: var(--primary-green);
  margin-bottom: 1rem;
}

/* Process Timeline */
.process-steps .timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: var(--light-grey);
  border-radius: 8px;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary-green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark-charcoal);
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 2px rgba(107, 142, 35, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.testimonial {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.testimonial .quote {
  font-style: italic;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  color: #555;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info .name {
  font-weight: 700;
  display: block;
}

.author-info .location {
  font-size: 0.875rem;
  color: #777;
}

/* Footer */
.site-footer {
  background-color: var(--dark-charcoal);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-green);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #ccc;
}

.footer-links a:hover {
  color: var(--primary-green);
  text-decoration: underline;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.social-icons a:hover {
  background: var(--primary-green);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #aaa;
  font-size: 0.875rem;
}

/* Responsive Breakpoints */
@media (min-width: 768px) {
  .desktop-nav, .header-right {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: none;
  }

  .about-mission .grid-layout {
    grid-template-columns: 1fr 1fr;
  }

  .grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps .timeline {
    flex-direction: row;
  }

  .step-card {
    flex: 1;
  }

  .contact-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  .form-group.full-width {
    grid-column: 1 / -1;
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-layout {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .differentiators .grid-layout {
    grid-template-columns: repeat(4, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
