/* ==========================================================================
   Sod Installation Toronto — "Process-driven professional"
   Dark slate + emerald on white. Numbered steps, timeline connectors,
   squared cards with left accent borders. Work Sans + Figtree.
   ========================================================================== */

:root {
  --slate-950: #0b1220;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --emerald-50:  #ecfdf5;
  --white: #ffffff;
  --heading: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --maxw: 1140px;
  --accent-border: 4px solid var(--emerald-600);
}

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

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

h1, h2, h3, h4 {
  font-family: var(--heading);
  color: var(--slate-900);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin-bottom: 1rem; }
a { color: var(--emerald-700); }
a:hover { color: var(--emerald-600); }

:focus-visible {
  outline: 3px solid var(--emerald-600);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--slate-900);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --------------------------------------------------------------------------
   Section kicker / numbered headings
   -------------------------------------------------------------------------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald-700);
  margin-bottom: 0.85rem;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--emerald-600);
}
.kicker--light { color: var(--emerald-500); }

.section { padding: 4.5rem 0; }
.section--tint { background: var(--slate-50); border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); }
.section--dark { background: var(--slate-900); color: var(--slate-300); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head p { color: var(--slate-600); }
.section--dark .section-head p { color: var(--slate-300); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.7rem;
  border: 2px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--emerald-600); color: #fff; }
.btn--primary:hover { background: var(--emerald-700); color: #fff; }
.btn--outline { background: transparent; color: var(--slate-900); border-color: var(--slate-300); }
.btn--outline:hover { border-color: var(--slate-900); color: var(--slate-900); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn--outline-light:hover { border-color: #fff; color: #fff; }

/* --------------------------------------------------------------------------
   Top bar + header
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--slate-950);
  color: var(--slate-300);
  font-size: 0.85rem;
  padding: 0.45rem 0;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--emerald-500); }
.topbar__note { display: none; }
@media (min-width: 640px) { .topbar__note { display: block; } }

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand img { width: 48px; height: 48px; }
.brand__name {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--slate-900);
  line-height: 1.15;
}
.brand__tag {
  display: block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald-700);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}
.site-nav a {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate-700);
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--slate-900);
  border-bottom-color: var(--emerald-600);
}
.site-nav .btn { padding: 0.6rem 1.2rem; }

/* Dropdown sub-nav (desktop hover + focus-within) */
.site-nav .has-sub { position: relative; }
.sub-toggle {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--heading); font-weight: 600; font-size: 0.95rem;
  color: var(--slate-700); background: none; border: none; cursor: pointer;
  padding: 0.4rem 0; border-bottom: 2px solid transparent;
}
.sub-toggle:hover, .has-sub:hover > .sub-toggle, .has-sub:focus-within > .sub-toggle {
  color: var(--slate-900); border-bottom-color: var(--emerald-600);
}
.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); }
.site-nav .sub-menu {
  display: block; position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 220px; z-index: 200; list-style: none; margin: 0; padding: 0.5rem;
  background: var(--white); border: 1px solid var(--slate-200); border-radius: 8px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.site-nav .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: translateY(0);
}
.site-nav .sub-menu li { border: none; }
.site-nav .sub-menu a {
  display: block; padding: 0.55rem 0.75rem; border-radius: 6px; white-space: nowrap;
  border-bottom: none; font-size: 0.92rem; color: var(--slate-700);
}
.site-nav .sub-menu a:hover, .site-nav .sub-menu a[aria-current="page"] {
  background: var(--emerald-50); color: var(--emerald-700); border-bottom: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--slate-300);
  border-radius: 2px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--slate-900);
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .site-nav li { border-bottom: 1px solid var(--slate-100); }
  .site-nav li:last-child { border-bottom: none; padding-top: 0.9rem; }
  .site-nav a { display: block; padding: 0.85rem 0; }
  .site-nav .btn { width: 100%; }
  /* mobile accordion sub-nav */
  .site-nav .has-sub { position: static; }
  .sub-toggle {
    width: 100%; justify-content: space-between; display: flex;
    padding: 0.85rem 0; border-bottom: none; font-size: 0.95rem;
  }
  .site-nav .sub-menu {
    position: static; min-width: 0; opacity: 1; visibility: hidden; transform: none;
    background: transparent; border: none; border-radius: 0; box-shadow: none;
    padding: 0; margin: 0 0 0.4rem; 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: 480px; }
  .site-nav .sub-menu li { border-bottom: 1px solid var(--slate-100); }
  .site-nav .sub-menu a { padding: 0.7rem 0 0.7rem 1rem; font-size: 0.92rem; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background:
    linear-gradient(rgba(11, 18, 32, 0.82), rgba(11, 18, 32, 0.82)),
    url("../img/frontyard-sod-installation-1280x853.jpg") center/cover no-repeat;
  color: var(--slate-300);
  padding: 4rem 0 4.5rem;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: start;
}
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero__lead { font-size: 1.15rem; max-width: 540px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 2rem; }

.hero__checks {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-weight: 500;
  color: var(--slate-200);
}
.hero__checks li { display: flex; gap: 0.6rem; align-items: baseline; }
.hero__checks .tick { color: var(--emerald-500); font-weight: 700; }

.hero__badges { display: flex; gap: 1rem; margin-top: 2rem; align-items: center; }
.hero__badges img { width: 92px; height: auto; background: #fff; border-radius: 2px; padding: 4px; }

/* inner-page hero */
.hero--inner { padding: 3.5rem 0; }
.hero--inner .hero__lead { max-width: 720px; }

.breadcrumbs {
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  color: var(--slate-300);
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.45rem; color: var(--slate-500); }
.breadcrumbs a { color: var(--emerald-500); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Quote form card
   -------------------------------------------------------------------------- */
.quote-card {
  background: var(--white);
  border-top: var(--accent-border);
  border-radius: 2px;
  box-shadow: 0 18px 40px rgba(11, 18, 32, 0.35);
  padding: 1.8rem 1.6rem;
  color: var(--slate-700);
}
.quote-card h2, .quote-card h3 {
  color: var(--slate-900);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}
.quote-card__sub { font-size: 0.92rem; color: var(--slate-600); margin-bottom: 1.2rem; }

.qform .field { margin-bottom: 0.95rem; }
.qform label {
  display: block;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--slate-800);
  margin-bottom: 0.3rem;
}
.qform .req { color: var(--emerald-700); }
.qform input[type="text"],
.qform input[type="tel"],
.qform input[type="email"],
.qform textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--slate-900);
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--slate-300);
  border-radius: 2px;
  background: var(--slate-50);
}
.qform input:focus, .qform textarea:focus {
  outline: 2px solid var(--emerald-600);
  outline-offset: 0;
  border-color: var(--emerald-600);
  background: #fff;
}
.qform .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.qform .sub-label {
  font-weight: 500;
  font-size: 0.76rem;
  color: var(--slate-500);
  margin-top: 0.25rem;
  margin-bottom: 0;
}
.qform textarea { min-height: 96px; resize: vertical; }
.qform button[type="submit"] { width: 100%; margin-top: 0.4rem; }
.qform .form-error {
  display: none;
  background: #fef2f2;
  border-left: 4px solid #dc2626;
  color: #991b1b;
  font-size: 0.9rem;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.9rem;
}
.qform .form-error.is-visible { display: block; }

/* honeypot — visually removed */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-confirmation {
  background: var(--emerald-50);
  border-left: var(--accent-border);
  padding: 1.2rem 1.3rem;
  font-weight: 500;
  color: var(--slate-800);
}

/* --------------------------------------------------------------------------
   Numbered card grids (services, why-us)
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.num-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-left: var(--accent-border);
  border-radius: 2px;
  padding: 1.5rem 1.4rem;
}
.num-card__no {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--emerald-700);
  display: block;
  margin-bottom: 0.55rem;
}
.num-card h3 { margin-bottom: 0.55rem; }
.num-card p { margin-bottom: 0; font-size: 0.98rem; }

/* compact list cards (solutions checklist) */
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.8rem;
  list-style: none;
}
.check-grid li {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-left: var(--accent-border);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  font-weight: 500;
  color: var(--slate-800);
}
.check-grid .tick { color: var(--emerald-600); font-weight: 700; }

/* plain checklist (no card) */
.plain-checks { list-style: none; display: grid; gap: 0.55rem; margin-bottom: 1rem; }
.plain-checks li { display: flex; gap: 0.65rem; align-items: baseline; }
.plain-checks .tick { color: var(--emerald-600); font-weight: 700; }

/* --------------------------------------------------------------------------
   Process timeline
   -------------------------------------------------------------------------- */
.timeline { list-style: none; position: relative; max-width: 760px; }
.timeline li {
  position: relative;
  padding: 0 0 2.2rem 4.2rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  /* connector */
  content: "";
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--emerald-600) 60%, var(--slate-200));
}
.timeline li:last-child::before { display: none; }
.timeline__no {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: var(--slate-900);
  border-bottom: 3px solid var(--emerald-600);
  border-radius: 2px;
}
.section--dark .timeline__no { background: var(--emerald-600); border-bottom-color: #fff; }
.timeline h3 { margin-bottom: 0.3rem; }
.timeline p { margin-bottom: 0; }
.section--dark .timeline li::before { background: linear-gradient(var(--emerald-500) 60%, var(--slate-700)); }

/* --------------------------------------------------------------------------
   Work gallery
   -------------------------------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.work-grid figure {
  border: 1px solid var(--slate-200);
  border-radius: 2px;
  overflow: hidden;
  background: var(--white);
}
.work-grid img { width: 100%; height: 240px; object-fit: cover; }
.work-grid figcaption {
  font-family: var(--heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-600);
  padding: 0.65rem 0.9rem;
  border-top: 3px solid var(--emerald-600);
}

/* --------------------------------------------------------------------------
   Service areas
   -------------------------------------------------------------------------- */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.areas-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 1.2rem 0 1.6rem;
}
.areas-list li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  font-weight: 500;
  color: var(--slate-800);
}
.areas-list a { color: var(--slate-800); text-decoration: none; border-bottom: 2px solid var(--emerald-100); }
.areas-list a:hover { color: var(--emerald-700); border-bottom-color: var(--emerald-600); }
.areas-list .pin { color: var(--emerald-600); font-weight: 700; }
.areas-grid img { border: 1px solid var(--slate-200); border-radius: 2px; }

@media (max-width: 760px) {
  .areas-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list { max-width: 820px; }
.faq-list details {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-left: var(--accent-border);
  border-radius: 2px;
  margin-bottom: 0.7rem;
  padding: 0;
}
.faq-list summary {
  font-family: var(--heading);
  font-weight: 600;
  color: var(--slate-900);
  font-size: 1.02rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  color: var(--emerald-700);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details > div { padding: 0 1.2rem 1.1rem; }
.faq-list details p { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--slate-900);
  color: var(--slate-300);
  padding: 3.5rem 0;
  border-top: 4px solid var(--emerald-600);
}
.cta-band h2 { color: #fff; margin-bottom: 0.6rem; }
.cta-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* --------------------------------------------------------------------------
   Article (privacy policy) + prose
   -------------------------------------------------------------------------- */
.prose { max-width: 780px; }
.prose h2 { margin: 2.2rem 0 0.8rem; padding-left: 0.9rem; border-left: var(--accent-border); }
.prose h3 { margin: 1.6rem 0 0.6rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.4rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--slate-950);
  color: var(--slate-300);
  padding: 3.5rem 0 0;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.site-footer h2 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--emerald-600);
  display: inline-block;
}
.site-footer ul { list-style: none; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--slate-300); text-decoration: none; }
.site-footer a:hover { color: var(--emerald-500); }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer-brand img { width: 46px; height: 46px; background: #fff; border-radius: 2px; padding: 3px; }
.footer-brand span { font-family: var(--heading); font-weight: 700; color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--slate-800);
  padding: 1.1rem 0;
  font-size: 0.85rem;
  color: var(--slate-500);
}
address { font-style: normal; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* --------------------------------------------------------------------------
   Sticky mobile call bar
   -------------------------------------------------------------------------- */
.mobile-call {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background: var(--slate-950);
  border-top: 3px solid var(--emerald-600);
  padding: 0.6rem 0.9rem;
  gap: 0.7rem;
}
.mobile-call .btn { flex: 1; padding: 0.7rem 0.5rem; font-size: 0.95rem; }
@media (max-width: 820px) {
  .mobile-call { display: flex; }
  body { padding-bottom: 70px; }
}

/* --------------------------------------------------------------------------
   Responsive hero
   -------------------------------------------------------------------------- */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.2rem; }
}

/* 404 */
.page-404 { text-align: center; padding: 6rem 0; }
.page-404 .big {
  font-family: var(--heading);
  font-size: 5rem;
  font-weight: 700;
  color: var(--slate-200);
  line-height: 1;
}
