/* Artificial Grass Guelph — "Eco organic" design
   Palette: moss green, clay, warm sand, off-white. Type: Bitter + Karla. */

:root {
  --moss: #4d6138;
  --moss-deep: #36452b;
  --moss-dark: #2a3522;
  --clay: #a95a38;
  --clay-dark: #96492a;
  --sand: #ecdfc3;
  --sand-light: #f4ecd9;
  --cream: #faf6ec;
  --ink: #2b2f22;
  --ink-soft: #4a4f3d;
  --white: #fffdf7;
  --radius-card: 22px;
  --blob: 58% 42% 55% 45% / 48% 52% 42% 58%;
  --shadow: 0 10px 30px rgba(42, 53, 34, 0.12);
  --font-head: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  /* subtle organic paper grain */
  background-image: radial-gradient(rgba(77, 97, 56, 0.05) 1px, transparent 1.4px);
  background-size: 26px 26px;
}

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

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--moss-dark); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 600; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.4rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--clay-dark); }
a:hover { color: var(--clay); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--moss-dark); color: var(--white); padding: 0.6rem 1rem;
}
.skip-link:focus { left: 0; color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn-clay { background: var(--clay); color: var(--white); }
.btn-clay:hover { background: var(--clay-dark); color: var(--white); transform: translateY(-2px); }
.btn-moss { background: var(--moss); color: var(--white); }
.btn-moss:hover { background: var(--moss-deep); color: var(--white); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--moss-dark);
  box-shadow: inset 0 0 0 2px var(--moss);
}
.btn-ghost:hover { background: var(--moss); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 236, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(77, 97, 56, 0.18);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.6rem 1.25rem; max-width: 1120px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand img { width: 52px; height: 52px; }
.brand span {
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  color: var(--moss-dark); line-height: 1.15;
}
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem;
}
.nav-toggle svg { width: 28px; height: 28px; stroke: var(--moss-dark); }
.site-nav ul { display: flex; align-items: center; gap: 1.4rem; list-style: none; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.98rem; }
.site-nav a:hover { color: var(--clay-dark); }
.site-nav a[aria-current="page"] { color: var(--clay-dark); }
.site-nav .btn { color: var(--white); }
/* (0,3,0) so the white label survives `.site-nav a:hover` (0,2,1), which otherwise
   turns the text clay-dark on the .btn-clay:hover clay-dark background */
.site-nav .btn:hover { color: var(--white); }
.site-nav .btn[aria-current="page"] { color: var(--white); }

/* products dropdown (button toggle, hover + keyboard friendly) */
.site-nav .has-sub { position: relative; }
.sub-toggle {
  display: flex; align-items: center; gap: 0.45rem;
  font: inherit; font-weight: 700; font-size: 0.98rem; color: var(--ink);
  background: none; border: 0; cursor: pointer; padding: 0; line-height: inherit;
}
.sub-toggle:hover, .has-sub:hover > .sub-toggle, .has-sub:focus-within > .sub-toggle { color: var(--clay-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 0.2s ease;
}
.has-sub:hover > .sub-toggle .caret, .sub-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }
/* override .site-nav ul { display:flex } so the dropdown stacks vertically */
.site-nav .sub-menu {
  display: block; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 230px; z-index: 200; list-style: none; margin: 0; padding: 0.5rem;
  background: var(--white); border-radius: 14px; box-shadow: var(--shadow);
  border: 1px solid rgba(77, 97, 56, 0.15);
  opacity: 0; visibility: hidden; 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: 12px; }
.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);
}
.site-nav .sub-menu li { border: 0; }
.sub-menu a { display: block; padding: 0.5rem 0.85rem; border-radius: 9px; font-weight: 500; white-space: nowrap; }
.sub-menu a:hover { background: var(--sand-light); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 0 1rem; }
  .site-nav li { border-top: 1px solid rgba(77, 97, 56, 0.12); }
  .site-nav a { display: block; padding: 0.8rem 0.25rem; }
  /* mobile accordion sub-nav */
  .site-nav .has-sub { position: static; border-top: 1px solid rgba(77, 97, 56, 0.12); }
  .sub-toggle { width: 100%; justify-content: space-between; padding: 0.8rem 0.25rem; }
  .site-nav .sub-menu {
    position: static; transform: none; min-width: 0; opacity: 1; visibility: hidden;
    box-shadow: none; border: 0; background: transparent; padding: 0 0 0.4rem 1rem; margin: 0;
    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: 460px; transform: none; }
  .site-nav .sub-menu li { border: 0; }
  .site-nav .sub-menu a { padding: 0.6rem 0.25rem; }
  .site-nav .btn { margin-top: 0.6rem; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { background: var(--moss-deep); color: var(--sand-light); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.35; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(179, 96, 59, 0.35), transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(236, 223, 195, 0.16), transparent 60%);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem; align-items: center; padding: 4rem 0 5rem;
}
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero .eyebrow {
  display: inline-block; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  font-size: 0.8rem; color: var(--sand); background: rgba(255, 253, 247, 0.12);
  padding: 0.3rem 0.9rem; border-radius: 999px; margin-bottom: 1rem;
}
.hero p.lead { font-size: 1.15rem; max-width: 34rem; margin-bottom: 1.6rem; color: var(--sand-light); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero-img img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  border-radius: var(--blob);
  border: 6px solid rgba(236, 223, 195, 0.35);
}
.hero .btn-ghost, .page-hero .btn-ghost { color: var(--sand-light); box-shadow: inset 0 0 0 2px var(--sand); }
.hero .btn-ghost:hover, .page-hero .btn-ghost:hover { background: var(--sand); color: var(--moss-dark); }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; padding: 2.6rem 0 3.5rem; }
}

/* curved organic divider */
.curve { display: block; width: 100%; height: 70px; }
.curve svg { display: block; width: 100%; height: 100%; }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-sand { background: var(--sand-light); }
.section-moss { background: var(--moss-deep); color: var(--sand-light); }
.section-moss h2, .section-moss h3 { color: var(--white); }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head .kicker {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.78rem; color: var(--clay-dark); display: block; margin-bottom: 0.4rem;
}
.section-moss .kicker { color: var(--sand); }

/* product card grid */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.card {
  background: var(--white); border-radius: var(--radius-card); padding: 1.5rem 1.25rem;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  border: 1px solid rgba(77, 97, 56, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(42, 53, 34, 0.18); color: var(--ink); }
.card .leaf { width: 38px; height: 38px; color: var(--moss); }
.card h3 { margin: 0; font-size: 1.1rem; }
.card p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* photo solution tiles — background image + dark gradient overlay for readable white text */
.card-photo {
  position: relative; overflow: hidden; min-height: 220px; justify-content: flex-end;
  padding: 1.25rem 1.25rem 1.35rem; color: var(--white);
  background-color: var(--moss-deep); background-size: cover; background-position: center;
  border-color: rgba(42, 53, 34, 0.25);
}
.card-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(42, 53, 34, 0.15) 0%, rgba(42, 53, 34, 0.55) 55%, rgba(42, 53, 34, 0.88) 100%);
  transition: background 0.2s ease;
}
.card-photo::after {
  content: "→"; position: absolute; top: 1rem; right: 1.15rem; z-index: 2;
  color: var(--white); font-size: 1.2rem; font-weight: 700; transition: transform 0.2s ease;
}
.card-photo .card-body { position: relative; z-index: 2; display: block; }
.card-photo h3 { color: var(--white); }
.card-photo p { color: rgba(255, 253, 247, 0.92); }
.card-photo:hover { color: var(--white); border-color: var(--clay); }
.card-photo:hover::before { background: linear-gradient(180deg, rgba(42, 53, 34, 0.05) 0%, rgba(42, 53, 34, 0.42) 55%, rgba(42, 53, 34, 0.78) 100%); }
.card-photo:hover::after { transform: translateX(4px); }

@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .card-grid { grid-template-columns: 1fr; } }

/* two-column split with blob image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem; align-items: center; }
.split-img img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--blob); border: 5px solid rgba(77, 97, 56, 0.2);
}
.split-img.tilt img { border-radius: 45% 55% 52% 48% / 56% 44% 56% 44%; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* checklist */
.checklist { list-style: none; margin: 1.1rem 0 1.4rem; }
.checklist li { padding-left: 2rem; position: relative; margin-bottom: 0.55rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 1.1em; height: 1.1em;
  background: var(--moss); border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}
.checklist li::after {
  content: ""; position: absolute; left: 0.3em; top: 0.62em; width: 0.55em; height: 0.28em;
  border-left: 2.5px solid var(--cream); border-bottom: 2.5px solid var(--cream);
  transform: rotate(-45deg);
}

/* badges */
.badges { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; margin-top: 1.4rem; }
.badges img { width: 96px; height: 96px; }
/* On the dark moss page-hero the red satisfaction stamp reads muddy — give badges a soft sand plate */
.page-hero .badges img { background: rgba(244, 236, 217, 0.92); border-radius: 14px; padding: 8px; }

/* benefit / feature blocks */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 1.6rem; }
.feature {
  background: var(--white); border-radius: var(--radius-card); padding: 1.4rem 1.4rem;
  border-left: 6px solid var(--moss); box-shadow: var(--shadow);
}
.section-sand .feature { background: var(--cream); }
.feature h3 { color: var(--moss-deep); }
.feature p { color: var(--ink-soft); font-size: 0.97rem; }
@media (max-width: 720px) { .feature-grid { grid-template-columns: 1fr; } }

/* process steps */
.steps { counter-reset: step; display: grid; gap: 1.1rem; margin-top: 1.4rem; }
.step {
  counter-increment: step; background: var(--white); border-radius: var(--radius-card);
  padding: 1.3rem 1.4rem 1.3rem 4.4rem; position: relative; box-shadow: var(--shadow);
}
.step::before {
  content: counter(step); position: absolute; left: 1.1rem; top: 1.15rem;
  width: 2.3rem; height: 2.3rem; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  color: var(--white); background: var(--clay);
  border-radius: 54% 46% 50% 50% / 48% 54% 46% 52%;
}

/* service areas */
.areas { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0; padding: 0; list-style: none; }
.areas li {
  background: var(--sand); color: var(--moss-dark); font-weight: 700;
  padding: 0.45rem 1.1rem; border-radius: 999px; font-size: 0.95rem;
}
.section-moss .areas li { background: rgba(236, 223, 195, 0.18); color: var(--sand-light); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.6rem; }
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px;
}
.gallery img:nth-child(odd) { border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* FAQ accordions */
.faq-list { display: grid; gap: 0.8rem; margin-top: 1.4rem; }
.faq-list details {
  background: var(--white); border-radius: 16px; border: 1px solid rgba(77, 97, 56, 0.16);
  padding: 0; overflow: hidden;
}
.faq-list summary {
  cursor: pointer; font-weight: 700; font-family: var(--font-head);
  color: var(--moss-deep); padding: 1rem 1.25rem; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.4rem; color: var(--clay); flex: none; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 1.25rem 1.1rem; color: var(--ink-soft); }

/* breadcrumbs */
.breadcrumbs { font-size: 0.9rem; padding: 1rem 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumbs li + li::before { content: "→"; margin-right: 0.4rem; color: var(--moss); }
.breadcrumbs a { color: var(--ink-soft); }

/* page hero (inner pages) */
.page-hero { background: var(--moss-deep); color: var(--sand-light); position: relative; overflow: hidden; }
.page-hero .hero-grid { padding: 2.8rem 0 3.6rem; }
.page-hero h1 { color: var(--white); margin-bottom: 0.8rem; }
.page-hero p { font-size: 1.1rem; max-width: 32rem; }
.page-hero .breadcrumbs, .page-hero .breadcrumbs a { color: var(--sand); }
.page-hero .breadcrumbs li + li::before { color: var(--sand); }

/* CTA band */
.cta-band { background: var(--clay); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 40rem; margin: 0 auto 1.4rem; }
.cta-band .btn-moss { background: var(--moss-dark); }
.cta-band .btn-moss:hover { background: var(--ink); }

/* ---------- Form ---------- */
.quote-box {
  background: var(--white); border-radius: 26px; padding: 2rem;
  box-shadow: var(--shadow); border: 1px solid rgba(77, 97, 56, 0.14);
}
.quote-box h2 { margin-bottom: 0.3rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; margin-top: 1.2rem; }
.form-field { display: flex; flex-direction: column; gap: 0.3rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: 0.92rem; color: var(--moss-dark); }
.form-field .req { color: var(--clay-dark); }
.form-field input, .form-field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 0.7rem 0.9rem; border: 1.5px solid rgba(77, 97, 56, 0.35);
  border-radius: 12px; background: var(--cream); width: 100%;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--moss); }
.form-field textarea { min-height: 110px; resize: vertical; }
.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.6rem; }
.form-confirmation {
  background: var(--sand-light); border: 2px solid var(--moss); border-radius: 16px;
  padding: 1.4rem; font-weight: 700; color: var(--moss-dark);
}
.form-error { color: var(--clay-dark); font-weight: 700; margin-top: 0.6rem; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--moss-dark); color: var(--sand); margin-bottom: 64px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem;
}
.site-footer h2 {
  color: var(--sand-light); font-size: 0.85rem; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 0.8rem; font-family: var(--font-body);
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: var(--sand); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-brand img { width: 64px; height: 64px; margin-bottom: 0.8rem; }
.footer-brand p { font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid rgba(236, 223, 195, 0.25); padding: 1.1rem 0;
  font-size: 0.88rem; text-align: center;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; gap: 1px; box-shadow: 0 -4px 16px rgba(42, 53, 34, 0.25);
}
.sticky-cta a {
  flex: 1; text-align: center; padding: 0.95rem 0.5rem; font-weight: 700;
  text-decoration: none; font-size: 1rem;
}
.sticky-cta .cta-quote { background: var(--clay); color: var(--white); }
.sticky-cta .cta-call { background: var(--moss); color: var(--white); }
@media (min-width: 861px) {
  .sticky-cta { display: none; }
  .site-footer { margin-bottom: 0; }
}

/* utility */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }

/* 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%; }
