/* Artificial Grass Milton — "Fresh modern startup" design
   White base · green→teal gradient accents · pill buttons · soft glowing cards
   Font: Plus Jakarta Sans (Google Fonts, swap) */

:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-faint: #64748b;
  --white: #ffffff;
  --bg-tint: #f6fdf9;
  --bg-tint-2: #f0fbf6;
  --green: #16a34a;
  --green-dark: #15803d;
  --teal: #0d9488;
  --teal-deep: #0f766e;
  --grad: linear-gradient(100deg, #16a34a 0%, #0d9488 100%);
  --grad-soft: linear-gradient(100deg, rgba(22,163,74,.10) 0%, rgba(13,148,136,.10) 100%);
  --glow: 0 10px 40px -8px rgba(22, 163, 74, .25);
  --glow-teal: 0 10px 40px -8px rgba(13, 148, 136, .22);
  --card-shadow: 0 6px 28px -6px rgba(15, 23, 42, .08);
  --radius-card: 22px;
  --radius-pill: 999px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #0d9488;
  outline-offset: 2px;
  border-radius: 6px;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.8vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: .6rem 1.2rem; z-index: 200; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* gradient text helper */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons (pills) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font); font-weight: 700; font-size: 1rem; line-height: 1;
  padding: .95rem 1.9rem; border-radius: var(--radius-pill);
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px -8px rgba(22,163,74,.4); }
.btn-ghost {
  background: var(--white); color: var(--teal-deep);
  border: 2px solid rgba(13,148,136,.35);
}
.btn-ghost:hover { border-color: var(--teal); background: var(--bg-tint); }
.btn-phone {
  background: var(--white); color: var(--ink); font-weight: 800;
  border: 2px solid rgba(22,163,74,.3); box-shadow: var(--card-shadow);
}
.btn-phone:hover { border-color: var(--green); }
.btn-phone svg { color: var(--green); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15,23,42,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .65rem 1.25rem; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: 52px; border-radius: 14px; }
.brand-name { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.15; }
.brand-tag { display: block; font-size: .72rem; font-weight: 600; color: var(--ink-faint); letter-spacing: .02em; }

.main-nav ul { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .98rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--green-dark); }

/* dropdown sub-nav */
.main-nav .has-sub { position: relative; }
.sub-toggle {
  display: flex; align-items: center; gap: .4rem;
  font: inherit; font-weight: 600; font-size: .98rem; color: var(--ink-soft);
  background: none; border: none; cursor: pointer; padding: 0; line-height: 1.2;
}
.sub-toggle:hover, .has-sub:hover > .sub-toggle, .has-sub:focus-within > .sub-toggle { color: var(--green-dark); }
.sub-toggle .caret {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; transition: transform .2s ease;
}
.has-sub:hover > .sub-toggle .caret, .sub-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }
.main-nav .sub-menu {
  display: block;
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 224px; z-index: 200;
  list-style: none; margin: 0; padding: .5rem;
  background: var(--white); border: 1px solid rgba(15,23,42,.08); border-radius: 16px;
  box-shadow: 0 18px 40px -16px rgba(15,23,42,.22);
  opacity: 0; visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.main-nav .sub-menu::before { content: ""; position: absolute; bottom: 100%; left: 0; right: 0; height: 16px; }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .sub-toggle[aria-expanded="true"] + .sub-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.main-nav .sub-menu li { margin: 0; }
.main-nav .sub-menu a {
  display: block; padding: .55rem .8rem; border-radius: 10px; white-space: nowrap;
  color: var(--ink-soft); font-weight: 600; font-size: .95rem;
}
.main-nav .sub-menu a:hover, .main-nav .sub-menu a[aria-current="page"] { background: var(--bg-tint); color: var(--green-dark); }

.header-cta { display: flex; align-items: center; gap: .75rem; }
.nav-toggle {
  display: none; background: none; border: 2px solid rgba(15,23,42,.12);
  border-radius: 12px; padding: .5rem .65rem; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 18px 30px -18px rgba(15,23,42,.18); padding: 1rem 1.25rem 1.4rem;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: .4rem; }
  .main-nav a { display: block; padding: .65rem .5rem; font-size: 1.05rem; border-radius: 10px; }
  .main-nav a:hover { background: var(--bg-tint); }
  .header-cta .btn-phone span.num { display: none; }
  .header-cta .btn-phone { padding: .8rem; }
  /* mobile accordion sub-nav */
  .main-nav .has-sub { position: static; }
  .sub-toggle {
    width: 100%; justify-content: space-between; font-size: 1.05rem;
    padding: .65rem .5rem; border-radius: 10px;
  }
  .sub-toggle:hover { background: var(--bg-tint); }
  .main-nav .sub-menu {
    display: block; position: static; min-width: 0; transform: none; opacity: 1; visibility: hidden;
    background: var(--bg-tint); border: none; border-radius: 12px; box-shadow: none;
    padding: 0 0 .25rem .75rem; margin: .15rem 0 .25rem;
    max-height: 0; overflow: hidden; transition: max-height .25s ease, visibility .25s ease;
  }
  /* Desktop reveal rules above are (0,3,0) and set translateX(-50%); they would
     out-rank the (0,2,0) transform:none reset here once the accordion is open or
     focused, shoving the open sub-menu half off-screen. Re-assert at (0,4,0). */
  .main-nav .has-sub:hover > .sub-menu,
  .main-nav .has-sub:focus-within > .sub-menu { transform: none; }
  /* The desktop hover-bridge (::before, 16px, bottom:100%) is absolutely positioned,
     so on mobile it escapes the accordion's overflow:hidden, anchors to the abs-pos
     .main-nav panel, and overlays the bottom 16px of the sticky header whenever the
     accordion is open — invisibly swallowing taps on the brand/header. Not needed
     on mobile (no hover gap to bridge): remove it. */
  .main-nav .sub-menu::before { content: none; }
  .main-nav .sub-toggle[aria-expanded="true"] + .sub-menu { visibility: visible; max-height: 520px; transform: none; }
  .main-nav .sub-menu a { font-size: 1rem; padding: .55rem .5rem; }
}

@media (max-width: 560px) {
  /* Header CTA crams the bar on small screens; sticky bottom bar + hero CTA cover that role */
  .header-cta .btn-primary { display: none; }
  .brand-name { font-size: .95rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 4.5rem 0 4rem; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(640px 420px at 88% -10%, rgba(13,148,136,.14), transparent 65%),
    radial-gradient(560px 400px at -8% 30%, rgba(22,163,74,.12), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 3rem; align-items: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--grad-soft); color: var(--green-dark);
  font-size: .85rem; font-weight: 700; letter-spacing: .01em;
  padding: .45rem 1.05rem; border-radius: var(--radius-pill);
  border: 1px solid rgba(22,163,74,.18); margin-bottom: 1.2rem;
}
.hero p.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.6rem 0 2rem; }
.hero-trust { display: flex; align-items: center; gap: 1.4rem; }
.hero-trust img { width: 86px; height: 86px; }
/* Google rating badge is wide (2.78:1) — let it size naturally instead of squashing into the square slot */
.hero-trust img[src*="5-star"] { width: auto; height: 40px; }
.hero-media { position: relative; }
.hero-media img {
  border-radius: 30px; box-shadow: var(--glow-teal), 0 30px 70px -20px rgba(15,23,42,.3);
  width: 100%; object-fit: cover; aspect-ratio: 5 / 4;
}
.hero-media::after {
  content: ""; position: absolute; inset: -14px -14px auto auto; width: 110px; height: 110px;
  background: var(--grad); opacity: .14; border-radius: 36px; z-index: -1;
}
@media (max-width: 860px) {
  .hero { padding: 2.6rem 0 3rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-trust img { width: 72px; height: 72px; }
}

/* ---------- Sections ---------- */
section { padding: 4.2rem 0; }
.section-tint { background: linear-gradient(180deg, var(--bg-tint) 0%, var(--white) 100%); }
.section-kicker {
  display: inline-block; font-size: .8rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .14em; color: var(--teal-deep); margin-bottom: .5rem;
}
.section-head { max-width: 46rem; margin-bottom: 2.4rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.center { text-align: center; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1.3rem; }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .cols-4 { grid-template-columns: repeat(2, 1fr); } .cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-4, .cols-3, .cols-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid rgba(15,23,42,.07);
  border-radius: var(--radius-card); padding: 1.6rem 1.5rem;
  box-shadow: var(--card-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--glow); }
.card h3 { margin-top: .2rem; }
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: .98rem; }
.card-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--green-dark); margin-bottom: 1rem;
}
.card-icon svg { width: 26px; height: 26px; }

/* solutions chips */
.chip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 980px) { .chip-grid { grid-template-columns: repeat(2, 1fr); } }
.chip {
  display: flex; align-items: center; gap: .7rem;
  background: var(--white); border: 1px solid rgba(13,148,136,.18);
  border-radius: 18px; padding: 1rem 1.1rem; font-weight: 700; font-size: .98rem;
  box-shadow: 0 4px 18px -6px rgba(13,148,136,.14);
}
.chip svg { flex: none; width: 22px; height: 22px; color: var(--teal); }

/* benefits ticks */
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1.6rem; }
@media (max-width: 700px) { .tick-list { grid-template-columns: 1fr; } }
.tick-list li { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; color: var(--ink-soft); }
.tick-list svg { flex: none; width: 22px; height: 22px; color: var(--green); margin-top: .2rem; }

/* split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 1.8rem; } }
.split img { border-radius: 26px; box-shadow: var(--card-shadow); }
.split .glow-img { box-shadow: var(--glow-teal); }

/* areas */
.area-pills { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1rem 0 1.6rem; padding: 0; list-style: none; }
.area-pills li {
  background: var(--white); border: 1px solid rgba(22,163,74,.22);
  border-radius: var(--radius-pill); padding: .45rem 1.05rem; font-weight: 700; font-size: .92rem;
  color: var(--green-dark);
}

/* ---------- Quote form ---------- */
.quote-panel {
  background: var(--white); border-radius: 28px; padding: 2.2rem 2rem;
  border: 1px solid rgba(13,148,136,.16);
  box-shadow: var(--glow-teal), 0 24px 60px -24px rgba(15,23,42,.18);
}
.quote-panel h2, .quote-panel h3 { margin-bottom: .4rem; }
.quote-sub { color: var(--ink-soft); margin-bottom: 1.4rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
.field label .req { color: var(--teal); }
.field input, .field textarea {
  width: 100%; font-family: var(--font); font-size: 1rem; color: var(--ink);
  padding: .8rem 1rem; border: 1.5px solid rgba(15,23,42,.14); border-radius: 14px;
  background: var(--white); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 4px rgba(13,148,136,.14); outline: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { display: none; margin-top: 1rem; padding: 1rem 1.2rem; border-radius: 16px; font-weight: 600; }
.form-msg.ok { display: block; background: var(--grad-soft); border: 1px solid rgba(22,163,74,.3); color: var(--green-dark); }
.form-msg.err { display: block; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 50rem; margin: 0 auto; }
.faq-list details {
  background: var(--white); border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px; padding: 0; margin-bottom: .9rem; box-shadow: var(--card-shadow);
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer; font-weight: 700; padding: 1.1rem 1.3rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 600; color: var(--teal);
  line-height: 1; transition: transform .18s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 1.3rem 1.2rem; margin: 0; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--grad); border-radius: 30px; padding: 3rem 2.4rem;
  color: #fff; text-align: center; box-shadow: var(--glow);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 36rem; margin: 0 auto 1.6rem; }
.cta-band .btn { background: #fff; color: var(--green-dark); }
.cta-band .btn:hover { transform: translateY(-2px); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 3.2rem 0 2.6rem; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(620px 320px at 85% -20%, rgba(13,148,136,.13), transparent 65%),
              radial-gradient(480px 300px at 0% 10%, rgba(22,163,74,.1), transparent 60%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.breadcrumbs { font-size: .88rem; color: var(--ink-faint); margin-bottom: .8rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--ink-faint); }
.breadcrumbs a { color: var(--teal-deep); text-decoration: none; font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Article (blog) ---------- */
.article { max-width: 46rem; margin: 0 auto; }
.article-meta { color: var(--ink-faint); font-size: .92rem; font-weight: 600; margin-bottom: 1.6rem; }
.article h2 { margin-top: 2.2rem; font-size: 1.55rem; }
.article h3 { margin-top: 1.6rem; font-size: 1.18rem; }
.article img { border-radius: 22px; margin: 1.5rem 0; }
.prose-list li { margin-bottom: .4rem; }

/* blog card */
.post-card { display: grid; grid-template-columns: 1fr; max-width: 44rem; }
.post-card .date { color: var(--ink-faint); font-size: .9rem; font-weight: 600; }
.post-card h2 { font-size: 1.4rem; margin: .3rem 0 .6rem; }
.post-card h2 a { text-decoration: none; color: var(--ink); }
.post-card h2 a:hover { color: var(--green-dark); }
.read-more { font-weight: 700; color: var(--teal-deep); text-decoration: none; }
.read-more:hover { text-decoration: underline; }

/* ---------- Contact info ---------- */
.contact-info-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .9rem; }
.contact-info-list li { display: flex; gap: .8rem; align-items: flex-start; font-weight: 600; }
.contact-info-list svg { flex: none; width: 24px; height: 24px; color: var(--green); margin-top: .15rem; }
.contact-info-list a { color: var(--ink); text-decoration: none; }
.contact-info-list a:hover { color: var(--green-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: #0b1220; color: #cbd5e1; margin-top: 4rem;
  padding: 3.6rem 0 6.5rem; font-size: .95rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.4rem; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { width: 64px; height: 64px; border-radius: 16px; margin-bottom: .9rem; }
.footer-brand p { color: #94a3b8; }
.footer-brand a { color: #e2e8f0; }
.site-footer h4 {
  color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer ul a { color: #cbd5e1; text-decoration: none; }
.site-footer ul a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(148,163,184,.18); margin-top: 2.6rem; padding-top: 1.4rem;
  color: #94a3b8; font-size: .88rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
}

/* ---------- Mobile sticky call bar ---------- */
.mobile-call {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: none; gap: .7rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(15,23,42,.1);
}
.mobile-call .btn { flex: 1; padding: .85rem 1rem; font-size: .95rem; }
@media (max-width: 860px) { .mobile-call { display: flex; } }

/* 404 */
.error-hero { text-align: center; padding: 6rem 0; }
.error-hero .big { font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; line-height: 1; }

/* Mobile overflow guards: prevent horizontal scroll from long words and wide tables */
h1, h2, h3, h4 { overflow-wrap: break-word; }
main table { display: block; overflow-x: auto; max-width: 100%; }
