:root {
  --green: #4CAF50;
  --dark-green: #388E3C;
  --light-bg: #ffffff;
  --gray: #222;
  --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  font-family: var(--font);
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #e3f8ed 0%, #ffffff 100%);
  color: var(--gray);
  line-height: 1.6;
}

/* —————————————————————— PAGE FRAME —————————————————————— */
.page-frame {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px;
  background: #ffffff;
  border: 20px solid transparent;
  border-image-source: image-set(
    url('../images/grass-texture.avif') type('image/avif'),
    url('../images/grass-texture.webp') type('image/webp'),
    url('../images/grass-texture.png') type('image/png')
  );
  border-image-slice: 30;
  border-image-width: 20px;
  border-image-repeat: round;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* High-contrast links inside the page frame */
.page-frame a {
  color: #004d00; /* Dark green (~7.5:1 contrast on white) */
  text-decoration: underline;
}

/* —————————————————————— SITE HEADER —————————————————————— */
header.site-header {
  display: flex;
  align-items: center;
  padding: 20px;
  background: var(--light-bg);
  border-bottom: 2px solid #e0e0e0;
}

header.site-header .logo-left {
  max-height: 80px;
  width: auto;
  margin-right: 20px;
  transition: max-height 0.3s ease;
}

header.site-header .logo-left.shrunk {
  max-height: 50px;
}

/* Header Title */
header.site-header .site-header-content h1 {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 0.5em;
  background: image-set(
    url('../images/grass-texture.avif') type('image/avif'),
    url('../images/grass-texture.webp') type('image/webp'),
    url('../images/grass-texture.png') type('image/png')
  ) no-repeat center/cover;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

header.site-header .site-header-content h1::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 120px;
  height: 5px;
  background: var(--green);
  border-radius: 2px;
}

header.site-header .site-header-content p {
  font-size: 1.125rem;
  margin: 0;
  color: #555;
}

/* —————————————————————— GLOBAL ELEMENTS —————————————————————— */
a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Consistent CTA Button Style */
.cta-button {
  background-color: #4CAF50; /* Lighter green for consistency */
  color: white;
  padding: 12px 20px;
  font-size: 1.1rem;
  text-align: center;
  border-radius: 5px;
  display: inline-block;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #388E3C; /* Darker green on hover for effect */
}

/* —————————————————————— SECTIONS —————————————————————— */
section {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 60px 20px;
  border-radius: 8px;
  overflow: hidden;
}

section:nth-of-type(odd) {
  background-color: rgba(236, 252, 241, 0.6);
}

section:nth-of-type(even) {
  background-color: rgba(236, 252, 241, 0.4);
}

section h2 {
  font-size: 2rem;
  color: #2a2a2a;
  margin-bottom: 0.75em;
  position: relative;
  display: inline-block;
}

section h2::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--green);
  border-radius: 2px;
}

.intro {
  font-style: italic;
  color: #666;
  margin-bottom: 1.5em;
  max-width: 800px;
  line-height: 1.5;
}

/* Trust List */
#trust ul {
  padding-left: 20px;
}

#trust ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  list-style: none;
  color: #222222; /* Nearly black */
}

#trust ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: bold;
}

/* Service Tags */
.service-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.service-tags span {
  background: #fff;
  color: var(--green);
  padding: 6px 12px;
  border: 2px solid var(--green);
  border-radius: 50px;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.service-tags span:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-2px);
}

/* Testimonials */
.testimonial-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.testimonial-item {
  background-color: rgba(236, 252, 241, 0.7);
  border-left: 4px solid var(--green);
  padding: 16px;
  font-style: italic;
  border-radius: 8px;
}

.testimonial-item footer {
  margin-top: 8px;
  color: #333;
  font-weight: bold;
  text-align: right;
}

/* Quote Form */
#quote {
  background-color: rgba(236, 252, 241, 0.8);
  border-radius: 12px;
  margin-bottom: 40px;
}

form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

form input,
form textarea {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 12px;
  width: 100%;
}

form button {
  background: var(--green);
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s ease;
}

form button:hover {
  background: #45a049;
}

/* Service Areas */
.zip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.zip-list li {
  background: #fff;
  color: var(--green);
  padding: 8px 12px;
  border: 2px solid var(--green);
  border-radius: 50px;
  font-size: 0.9rem;
}

/* Footer */
footer {
  background: #ffffff; /* White for max contrast */
  color: #222222;      /* Dark gray */
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

footer a {
  color: #004d00;      /* Match link color */
  text-decoration: underline;
}

/* Ensure headings and paragraphs inside page-frame are dark enough */
.page-frame h1,
.page-frame h2,
.page-frame p,
.page-frame blockquote p {
  color: #222222; /* Strong contrast on white */
}

/* Consolidated mobile tweaks */
@media (max-width: 600px) {
  header.site-header {
    flex-direction: column;
    text-align: center;
  }

  .logo-left {
    max-height: 60px;
    margin-bottom: 10px;
    width: auto;
  }

  section {
    padding: 30px 15px;
    border-radius: 6px;
  }

  .service-tags span,
  .zip-list li {
    font-size: 0.8rem;
  }

  .cta-button {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  section h2 {
    font-size: 1.5rem;
  }

  .intro {
    font-size: 0.9rem;
  }

  .testimonial-list {
    grid-template-columns: 1fr;
  }

  /* Remove the heavy texture on the H1 for faster mobile LCP */
  header.site-header .site-header-content h1 {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    color: var(--green) !important;
  }
}
