:root {
  --green:        #24523b;   /* header / hero pine green */
  --green-dark:   #1a3d2c;
  --green-deep:   #122b1f;
  --green-bright: #2e6a4a;   /* section headings */
  --sage:         #e6ede4;   /* light section background */
  --sage-2:       #eef2ec;
  --clay:         #9c5222;   /* warm accent for links */
  --ink:          #17241c;
  --ink-soft:     #35463b;
  --white:        #ffffff;

  --maxw: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Inter Tight', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sage-2);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--white);
}
.brand__mark {
  width: 38px; height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
}
.brand__mark svg { width: 24px; height: 24px; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.25rem);
}
.nav a {
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .18s ease, opacity .18s ease;
}
.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] { border-bottom-color: var(--white); }

/* Services dropdown */
.nav__item.has-sub {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
  min-height: 74px;
}
.has-sub > a::after {
  content: "";
  display: inline-block;
  margin-left: .45rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: middle;
}
.sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  background: var(--green-dark);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 14px 28px rgba(0,0,0,.24);
  padding: .4rem 0;
  opacity: 0;
  visibility: hidden;
  /* .35s close delay: a diagonal mouse path from "Services" down to a menu
     item briefly leaves the hover area — without the grace period the menu
     vanishes mid-move */
  transition: opacity .18s ease .35s, visibility .18s ease .35s;
  z-index: 60;
}
.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.sub-menu a {
  display: block;
  padding: .6rem 1.2rem;
  border-bottom: 0;
  font-size: .88rem;
}
.sub-menu a:hover,
.sub-menu a:focus-visible {
  border-bottom: 0;
  background: rgba(255,255,255,.12);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  padding: .4rem;
  cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero (fixed background image) ---------- */
.hero {
  position: relative;
  color: var(--white);
  text-align: center;
  background-color: var(--green);
  background-image:
    linear-gradient(rgba(36,82,59,.72), rgba(18,43,31,.82)),
    url('images/hero.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.hero__inner {
  padding-block: clamp(5rem, 14vw, 10rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0 0 1.1rem;
  max-width: 16ch;
  text-shadow: 0 2px 18px rgba(0,0,0,.28);
}
.hero__sub {
  margin: 0 0 2.2rem;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
.btn-quote {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(.95rem, 1.5vw, 1.05rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  padding: 1rem 2.25rem;
  border: 2px solid var(--white);
  border-radius: 6px;
  background: rgba(255,255,255,.02);
  transition: background .2s ease, color .2s ease, transform .12s ease;
}
.btn-quote:hover,
.btn-quote:focus-visible {
  background: var(--white);
  color: var(--green-dark);
  transform: translateY(-1px);
}

/* ---------- Generic service section ---------- */
.service {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.service--solid { background: var(--sage); }

.service h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 clamp(1.75rem, 4vw, 2.75rem);
  color: var(--green-bright);
}
.service__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
}
.service__grid.reverse .service__media { order: -1; }

.service p {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  margin: 0;
  max-width: 46ch;
}
.service__media {
  background: var(--white);
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 14px 32px rgba(30,36,16,.22);
}
.service__media img {
  width: 100%;
  height: clamp(230px, 32vw, 360px);
  object-fit: cover;
  border-radius: 3px;
  background: var(--green-dark);
}

/* white variant for links sitting on the dark fixed-photo bands */
.irrigation .service__more { color: var(--white); }

/* service section with a "learn more" link on the main page */
.service__more {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--clay);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
  transition: opacity .18s ease;
}
.service__more:hover, .service__more:focus-visible { opacity: .7; }

/* ---------- Irrigation (fixed background image + diagonal band) ---------- */
.irrigation {
  position: relative;
  color: var(--white);
  background-color: var(--green-deep);
  background-image:
    linear-gradient(rgba(30,36,16,.55), rgba(30,36,16,.6)),
    url('images/irrigation-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}
.irrigation .service h2 { color: var(--white); }
.irrigation .service p { color: var(--white); }
.irrigation .service__media { box-shadow: 0 16px 34px rgba(0,0,0,.42); }

/* ---------- Angled band edges ----------
   Solid pale wedges overlay the top and bottom of each band, fully covering the
   edge so no sliver of the (fixed) background photo can show past the diagonal.
   clip-path lives only on these cheap solid layers — never on the fixed-bg
   element itself, which is a repaint trap. Used by every band, every page. */
.irrigation > *,
.subservices > *,
.services-intro > * { position: relative; z-index: 2; }

.irrigation::before,  .irrigation::after,
.subservices::before, .subservices::after,
.services-intro::before, .services-intro::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 42px;
  background: var(--sage-2);
  z-index: 1;
  pointer-events: none;
}
.irrigation::before,
.subservices::before,
.services-intro::before {
  top: -1px;
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 45%, 0 100%);
          clip-path: polygon(0 0, 100% 0, 100% 45%, 0 100%);
}
.irrigation::after,
.subservices::after,
.services-intro::after {
  bottom: -1px;
  -webkit-clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 100%);
          clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 100%);
}

/* ---------- Interior page hero ---------- */
.page-hero {
  position: relative;
  color: var(--white);
  text-align: center;
  background-color: var(--green);
  background-image:
    linear-gradient(rgba(36,82,59,.74), rgba(18,43,31,.85)),
    url('images/hero.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.page-hero__inner { padding-block: clamp(3.25rem, 9vw, 5.5rem); }
.page-hero .eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .8rem;
  opacity: .92;
  margin: 0 0 .8rem;
}
.page-hero .eyebrow a { text-decoration: none; opacity: .8; }
.page-hero .eyebrow a:hover, .page-hero .eyebrow a:focus-visible { opacity: 1; text-decoration: underline; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.03;
  letter-spacing: -.01em;
  margin: 0;
  text-shadow: 0 2px 18px rgba(0,0,0,.28);
}
.page-hero .lead {
  max-width: 56ch;
  margin: 1.2rem auto 0;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

/* ---------- Sub-services band (photo-above-text, two columns) ---------- */
.subservices {
  position: relative;
  overflow: hidden;
  background: var(--sage);
  padding-block: clamp(4rem, 9vw, 6.5rem);
}
.sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.25rem, 6vw, 4.5rem);
}
.sub-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* framed "polaroid" media, used in both service bands */
.sub-item__media {
  width: 100%;
  max-width: 340px;
  margin: 0 auto 1.6rem;
  background: var(--white);
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 14px 32px rgba(30,36,16,.22);
}
.sub-item__media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 3px;
  background: var(--green-dark);
}
.sub-item h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--green-bright);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 .9rem;
}
.sub-item p {
  max-width: 44ch;
  margin: 0 auto;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
}

/* ---------- Services intro (dark cobblestone fixed band) ---------- */
.services-intro {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background-color: var(--green-deep);
  background-image:
    linear-gradient(rgba(20,24,12,.68), rgba(20,24,12,.74)),
    url('images/paving-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}
/* grass-background variant of the dark service band (Bobcat / Turf) */
.turf-band {
  background-image:
    linear-gradient(rgba(20,24,12,.58), rgba(20,24,12,.66)),
    url('images/grass-bg.jpg');
}
/* sprinkler-background variant of the dark service band (Irrigation page) */
.irrigation-band {
  background-image:
    linear-gradient(rgba(20,24,12,.6), rgba(20,24,12,.68)),
    url('images/irrigation-bg.jpg');
}
.services-intro .eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .8rem;
  opacity: .9;
  text-align: center;
  margin: 0 0 .9rem;
}
.services-intro .eyebrow a { text-decoration: none; opacity: .8; }
.services-intro .eyebrow a:hover,
.services-intro .eyebrow a:focus-visible { opacity: 1; text-decoration: underline; }
.services-intro__title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: .01em;
  font-size: clamp(1.7rem, 3.8vw, 2.7rem);
  max-width: 22ch;
  margin: 0 auto 1.1rem;
  text-shadow: 0 2px 14px rgba(0,0,0,.4);
}
.services-intro .lead {
  max-width: 56ch;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
}
.services-intro .sub-item h3 { color: var(--white); }
.services-intro .sub-item p { color: var(--white); }
.services-intro .sub-item__media { box-shadow: 0 16px 34px rgba(0,0,0,.45); }

/* ---------- Why Us features ---------- */
.features {
  background: var(--sage);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 5rem);
}
.feature h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--green-bright);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  margin: 0 0 .6rem;
}
.feature p {
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  max-width: 52ch;
}

/* dark closing band with a call to action (Why Us / Contact) */
.cta-band {
  text-align: center;
}
.cta-band .services-intro__title { margin-bottom: 1.8rem; }

/* ---------- Contact page ---------- */
.contact-section {
  background: var(--sage);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-details h2,
.contact-form h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--green-bright);
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  margin: 0 0 1.1rem;
}
.contact-details dl { margin: 0; }
.contact-details dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 1.3rem;
}
.contact-details dt:first-of-type { margin-top: 0; }
.contact-details dd {
  margin: .2rem 0 0;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
}
.contact-details a { color: var(--clay); }

.contact-form .field { margin-bottom: 1.15rem; }
.contact-form label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .35rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(30,36,16,.25);
  border-radius: 6px;
  padding: .7rem .85rem;
}
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.btn-submit {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--green);
  border: 2px solid var(--green);
  border-radius: 6px;
  padding: .9rem 2.2rem;
  cursor: pointer;
  transition: background .2s ease, transform .12s ease;
}
.btn-submit:hover,
.btn-submit:focus-visible {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-deep);
  color: rgba(255,255,255,.85);
  padding-block: 1.5rem;
  font-size: .9rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-inner .social { display: flex; gap: 1rem; }
.footer-inner .social a { display: inline-flex; opacity: .85; transition: opacity .18s ease; }
.footer-inner .social a:hover { opacity: 1; }
.footer-inner .social svg { width: 20px; height: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--green-dark);
    padding: .5rem var(--gutter) 1rem;
    transform: translateY(-140%);
    transition: transform .28s ease;
    box-shadow: 0 12px 24px rgba(0,0,0,.18);
  }
  .nav.open { transform: translateY(0); }
  .nav a {
    padding: .85rem 0;
    border-bottom: 1px solid rgba(255,255,255,.14);
  }
  .nav a:hover, .nav a:focus-visible { border-bottom-color: rgba(255,255,255,.14); opacity: .85; }
  .header-inner { position: relative; }

  /* dropdown flattens into the mobile menu */
  .nav__item.has-sub {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .has-sub > a::after { content: none; }
  .sub-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0 1.25rem;
    min-width: 0;
  }
  .sub-menu a {
    padding: .85rem 0;
    border-bottom: 1px solid rgba(255,255,255,.14);
    font-size: .88rem;
  }
  .sub-menu a:hover,
  .sub-menu a:focus-visible { background: transparent; border-bottom: 1px solid rgba(255,255,255,.14); }
}

@media (max-width: 680px) {
  .feature-grid, .contact-grid { grid-template-columns: 1fr; }
  .service__grid { grid-template-columns: 1fr; }
  .service__grid.reverse .service__media { order: 0; }
  .service p { max-width: none; }
  .service__media img { max-height: 300px; }
  .sub-grid { grid-template-columns: 1fr; gap: 3rem; }
  /* fixed backgrounds jitter on mobile — pin to scroll */
  .hero, .irrigation, .page-hero, .services-intro { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
