/* Artificial Turf Richmond Hill — "Warm suburban family" design
   Sage green + cream base, terracotta accent, rounded + soft. */

:root {
  --cream: #faf5ec;
  --cream-2: #f2ebdc;
  --white: #fffdf8;
  --sage: #7a9b76;
  --sage-aa: #607e5c; /* deeper sage for white/light text fills (WCAG AA) */
  --sage-deep: #46603f;
  --sage-ink: #2f4029;
  --ink: #36402f;
  --ink-soft: #5c6553;
  --terracotta: #b3522e;
  --terracotta-dark: #93421f;
  --terracotta-tint: #f6e3da;
  --radius: 20px;
  --radius-sm: 14px;
  --pill: 999px;
  --shadow: 0 12px 32px -10px rgba(86, 62, 38, 0.18);
  --shadow-soft: 0 6px 22px -8px rgba(86, 62, 38, 0.14);
  --font-head: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Nunito Sans", "Avenir Next", "Segoe UI", sans-serif;
}

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

img { max-width: 100%; height: auto; }
a { color: var(--sage-deep); }
a:hover { color: var(--terracotta-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--sage-ink);
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section.wrap, .section.article { padding-left: 20px; padding-right: 20px; }
.section-alt { background: var(--cream-2); border-radius: 36px; margin: 0 12px; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: var(--pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--sage-deep); border-color: var(--sage); }
.btn-outline:hover { background: var(--sage-aa); color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 236, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(122, 155, 118, .25);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  max-width: 1180px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 56px; height: 56px; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--sage-ink);
  line-height: 1.15;
}
.brand-tag { display: block; font-size: .72rem; font-weight: 600; color: var(--ink-soft); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav a {
  display: block;
  padding: 9px 16px;
  border-radius: var(--pill);
  text-decoration: none;
  font-weight: 700;
  font-size: .98rem;
  color: var(--sage-ink);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--cream-2); color: var(--sage-deep); }

/* dropdown sub-nav */
.main-nav .has-sub { position: relative; }
.sub-toggle {
  display: flex; align-items: center; gap: 7px;
  font: inherit; font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  color: var(--sage-ink); background: none; border: none; cursor: pointer;
  padding: 9px 16px; border-radius: var(--pill);
}
.sub-toggle:hover, .has-sub:hover > .sub-toggle, .has-sub:focus-within > .sub-toggle { background: var(--cream-2); color: var(--sage-deep); }
.sub-toggle .caret {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; transition: transform 0.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% + 8px); left: 0; min-width: 224px; z-index: 200;
  list-style: none; margin: 0; padding: 8px;
  background: var(--white); border: 1px solid rgba(122, 155, 118, .25);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.sub-menu::before { content: ""; position: absolute; bottom: 100%; left: 0; right: 0; height: 10px; }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .sub-toggle[aria-expanded="true"] + .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.main-nav .sub-menu a {
  display: block; padding: 9px 13px; border-radius: 8px; white-space: nowrap;
  color: var(--sage-ink); font-weight: 700; font-size: .94rem;
}
.main-nav .sub-menu a:hover, .main-nav .sub-menu a[aria-current="page"] { background: var(--cream-2); color: var(--sage-deep); }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-family: var(--font-head);
  color: var(--sage-deep);
  text-decoration: none;
  white-space: nowrap;
}
.header-cta { white-space: nowrap; padding: 11px 22px; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--cream-2);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  color: var(--sage-ink);
}
.nav-toggle svg { display: block; }

/* Hero */
.hero { padding: 48px 0 24px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 36px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: var(--terracotta-tint);
  color: var(--terracotta-dark);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--pill);
  margin-bottom: 16px;
}
.hero-badges { display: flex; gap: 18px; align-items: center; margin: 22px 0; }
.hero-badges img { width: 96px; height: auto; border-radius: 12px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-banner { margin-top: 40px; }
.hero-banner img {
  width: 100%;
  height: clamp(220px, 38vw, 420px);
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

/* Quote form card */
.quote-card {
  background: var(--white);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 26px 26px 30px;
  border-top: 8px solid var(--sage);
}
.quote-card h2, .quote-card h3 { margin-bottom: 6px; }
.quote-card p.form-note { margin: 0 0 14px; font-size: .92rem; color: var(--ink-soft); }
.lead-form label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  color: var(--sage-ink);
  margin: 12px 0 4px;
}
.lead-form .req { color: var(--terracotta); }
.lead-form input, .lead-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d8d2c2;
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
.lead-form input:focus, .lead-form textarea:focus { border-color: var(--sage); }
.lead-form textarea { resize: none; height: 100px; }
.addr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lead-form .btn { width: 100%; margin-top: 18px; }
.hp-field { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.form-confirmation {
  background: #eef4ea;
  border: 2px solid var(--sage);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-weight: 700;
  color: var(--sage-deep);
}
.form-error { color: var(--terracotta-dark); font-weight: 700; margin-top: 10px; }

/* Cards */
.card-grid { display: grid; gap: 22px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img { width: 100%; height: 190px; object-fit: cover; }
.card .card-body { padding: 18px 22px 22px; }
.card h3, .card h2 { font-size: 1.15rem; margin: 0; }
.card p { margin: 8px 0 0; font-size: .98rem; color: var(--ink-soft); }
.icon-card { padding: 26px 24px; }
.icon-card .icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--terracotta-tint);
  color: var(--terracotta-dark);
  border-radius: 16px;
  margin-bottom: 14px;
  font-size: 1.4rem;
}

/* Split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: 24px; box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 9px 0 9px 38px; position: relative; font-weight: 600; }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 7px;
  width: 26px; height: 26px;
  background: var(--sage-aa);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .85rem; font-weight: 800;
}

/* Area chips */
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 18px 0; }
.chip-list li {
  background: var(--white);
  border: 1.5px solid rgba(122,155,118,.4);
  border-radius: var(--pill);
  padding: 7px 18px;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--sage-deep);
  font-size: .95rem;
}

/* Process steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li {
  counter-increment: step;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 18px 22px 18px 70px;
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 18px; top: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  display: grid; place-items: center;
}
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* FAQ */
.faq details {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  margin-bottom: 12px;
  padding: 0;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--sage-ink);
  padding: 16px 20px;
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  background: var(--cream-2);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--terracotta-dark);
  font-weight: 800;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 18px; color: var(--ink-soft); }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--sage-deep), var(--sage-aa));
  color: #fff;
  border-radius: 30px;
  padding: 48px 30px;
  text-align: center;
  margin: 24px 12px;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-band .btn-primary { background: var(--terracotta); }
.cta-band .cta-phone { color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; text-decoration: none; display: inline-block; margin: 8px 14px; }
.cta-band .cta-phone:hover { color: var(--terracotta-tint); }

/* Page hero (inner pages) */
.page-hero { position: relative; margin: 16px 12px 0; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); }
.page-hero img { width: 100%; height: clamp(260px, 40vw, 420px); object-fit: cover; display: block; }
.page-hero .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(47, 64, 41, .82) 0%, rgba(47, 64, 41, .35) 65%, rgba(47,64,41,.1) 100%);
  display: flex; flex-direction: column; justify-content: center;
  padding: 30px clamp(24px, 6vw, 70px);
}
.page-hero h1 { color: #fff; max-width: 620px; }
.page-hero p { color: #f3eee2; max-width: 560px; font-size: 1.1rem; margin-top: 0; }
.breadcrumbs { font-size: .85rem; margin: 14px 22px 0; color: var(--ink-soft); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--sage-deep); }

/* Article */
.article { max-width: 760px; margin: 0 auto; }
.article img { border-radius: var(--radius); box-shadow: var(--shadow-soft); margin: 12px 0; }
.post-meta { color: var(--ink-soft); font-size: .92rem; margin-bottom: 24px; }
.article table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-soft); font-size: .95rem; }
.article th, .article td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--cream-2); }
.article th { background: var(--sage-aa); color: #fff; font-family: var(--font-head); }
.post-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 36px; }

/* Partners */
.partner-logos { display: flex; gap: 36px; align-items: center; flex-wrap: wrap; }
.partner-logos img { height: 84px; width: auto; background: var(--white); padding: 14px 20px; border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); }

/* Footer */
.site-footer {
  background: var(--sage-ink);
  color: #e9eadf;
  margin-top: 64px;
  border-radius: 36px 36px 0 0;
  padding: 56px 0 90px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h2 { color: #fff; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; }
.site-footer a { color: #cfdac6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-logo { width: 120px; height: auto; background: var(--cream); border-radius: 18px; padding: 10px; }
.footer-bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); font-size: .88rem; color: #b9c4ad; }

/* Mobile call bar */
.mobile-call {
  display: none;
  position: fixed;
  left: 16px; right: 16px; bottom: 14px;
  z-index: 60;
  background: var(--terracotta);
  color: #fff;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 15px 20px;
  border-radius: var(--pill);
  box-shadow: 0 10px 28px -6px rgba(147, 66, 31, .55);
}
.mobile-call:hover { color: #fff; background: var(--terracotta-dark); }

/* 404 */
.error-page { text-align: center; padding: 90px 20px; }

@media (max-width: 920px) {
  .hero-grid, .split, .cols-3, .cols-4, .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-phone { display: none; }
}

@media (max-width: 700px) {
  .hero-grid, .split, .cols-2, .cols-3, .cols-4, .footer-grid, .addr-row { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(122,155,118,.3);
    box-shadow: var(--shadow);
    padding: 10px 16px 18px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  /* mobile accordion sub-nav */
  .main-nav .has-sub { position: static; }
  .sub-toggle { width: 100%; justify-content: space-between; font-size: 1.02rem; padding: 12px 16px; border-radius: var(--pill); }
  .main-nav .sub-menu {
    position: static; min-width: 0; opacity: 1; visibility: hidden; transform: none;
    background: var(--cream-2); border: none; border-radius: var(--radius-sm);
    box-shadow: none; padding: 2px 0 6px 14px; margin: 0 0 4px;
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease, visibility 0.25s ease;
  }
  .sub-toggle[aria-expanded="true"] + .sub-menu { visibility: visible; max-height: 420px; }
  /* desktop hover-bridge escapes the static sub-menu on mobile and overlays the header — disable it */
  .sub-menu::before { content: none; }
  .main-nav .sub-menu a { font-size: .98rem; padding: 10px 12px; }
  .mobile-call { display: block; }
  .site-footer { padding-bottom: 120px; }
  .section { padding: 44px 0; }
  .split.flip img { order: -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%; }
