/* ==========================================================================
   Sod Toronto — "Farm fresh" design
   Bright grass-green + sky-blue + white · Baloo 2 headings · Poppins body
   ========================================================================== */

:root {
  --green: #3ea314;
  --green-dark: #2c7a0d;
  --green-deep: #1e5708;
  --green-tint: #eaf7e2;
  --sky: #3fa9f5;
  --sky-dark: #1b86d4;
  --sky-tint: #e9f6ff;
  --sun: #ffc93c;
  --ink: #1f2d1a;
  --muted: #51604a;
  --white: #ffffff;
  --cream: #fbfdf8;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(30, 87, 8, 0.12);
  --font-head: "Baloo 2", "Avenir Next Rounded", "Trebuchet MS", sans-serif;
  --font-body: "Poppins", "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);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 1rem;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--green-deep);
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: .6em; }
h3 { font-size: 1.25rem; margin-bottom: .4em; }

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

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

:focus-visible {
  outline: 3px solid var(--sky-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(1160px, 92%); margin: 0 auto; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--green-deep); color: #fff;
  padding: .7rem 1.2rem; z-index: 200; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  padding: .85rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 18px rgba(62, 163, 20, .35);
}
.btn-green:hover { background: var(--green-dark); color: #fff; transform: translateY(-2px); }
.btn-sky {
  background: var(--sky);
  color: #fff;
  box-shadow: 0 6px 18px rgba(63, 169, 245, .35);
}
.btn-sky:hover { background: var(--sky-dark); color: #fff; transform: translateY(-2px); }
.btn-outline {
  background: #fff;
  color: var(--green-dark);
  border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--green-tint); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--green);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .55rem 0;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 54px; height: 54px; border-radius: 50%; }
.brand-name {
  font-family: var(--font-head); font-weight: 700; font-size: 1.35rem;
  color: var(--green-deep); line-height: 1.1;
}
.brand-tag { display: block; font-family: var(--font-body); font-weight: 500; font-size: .68rem; color: var(--sky-dark); letter-spacing: .04em; text-transform: uppercase; }

.main-nav ul { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.main-nav a:not(.btn) {
  font-weight: 600; text-decoration: none; color: var(--ink); font-size: .98rem;
  padding: .3rem 0; border-bottom: 3px solid transparent;
}
.main-nav a:not(.btn):hover { color: var(--green-dark); border-bottom-color: var(--sun); }

/* ----- Dropdown sub-nav ----- */
.main-nav .has-sub { position: relative; }
.sub-toggle {
  display: flex; align-items: center; gap: .4rem;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem; color: var(--ink);
  background: none; border: none; cursor: pointer; padding: .3rem 0;
  border-bottom: 3px solid transparent; line-height: 1.4;
}
.sub-toggle:hover, .has-sub:hover > .sub-toggle, .has-sub:focus-within > .sub-toggle {
  color: var(--green-dark); border-bottom-color: var(--sun);
}
.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% + 12px); left: 0;
  min-width: 220px; z-index: 200; list-style: none; margin: 0; padding: .5rem;
  background: #fff; border: 2px solid var(--green-tint); border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  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: 14px; }
.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:not(.btn) {
  display: block; padding: .5rem .7rem; border-radius: var(--radius-sm); border-bottom: none;
  white-space: nowrap; font-weight: 600; font-size: .94rem; color: var(--ink);
}
.main-nav .sub-menu a:not(.btn):hover { background: var(--green-tint); color: var(--green-dark); border-bottom: none; }

.header-phone {
  display: flex; align-items: center; gap: .45rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  color: var(--green-deep) !important;
}
.nav-toggle {
  display: none; background: none; border: 2px solid var(--green); border-radius: 10px;
  padding: .4rem .6rem; cursor: pointer; color: var(--green-deep); font-size: 1.3rem; line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(255, 201, 60, .35), transparent 60%),
    linear-gradient(180deg, var(--sky-tint) 0%, #d6efff 55%, var(--green-tint) 100%);
  padding: 3.2rem 0 3.6rem;
  position: relative;
  overflow: hidden;
}
.hero-sun {
  position: absolute; top: -70px; right: -70px; width: 260px; height: 260px;
  color: var(--sun); opacity: .9; pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: start;
  position: relative;
}
.hero-copy .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; color: var(--green-dark);
  font-weight: 600; font-size: .85rem;
  padding: .35rem 1rem; border-radius: 999px;
  box-shadow: var(--shadow); margin-bottom: 1.1rem;
}
.hero-copy h1 { margin-bottom: .5rem; }
.hero-copy .lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.5rem 0 1.8rem; }
.hero-badges { display: flex; align-items: center; gap: 1.2rem; }
.hero-badges img { width: 86px; height: 86px; }
.hero-photo {
  margin-top: 1.8rem; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 6px solid #fff;
}
.hero-photo img { width: 100%; object-fit: cover; }

.service-chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.4rem; }
.service-chips li {
  list-style: none; background: #fff; border: 2px solid var(--green-tint);
  color: var(--green-deep); font-weight: 600; font-size: .85rem;
  padding: .35rem .95rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .4rem;
}
.service-chips .leaf { color: var(--green); }

/* ---------- Quote form card ---------- */
.quote-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.8rem 1.7rem 1.7rem; border-top: 8px solid var(--green);
}
.quote-card h2, .quote-card h3.form-title {
  font-size: 1.45rem; margin-bottom: .25rem; color: var(--green-deep);
}
.quote-card .form-sub { font-size: .9rem; color: var(--muted); margin-bottom: 1.1rem; }
.quote-form label {
  display: block; font-weight: 600; font-size: .85rem; margin: .8rem 0 .25rem;
  color: var(--ink);
}
.quote-form .req { color: #c0392b; }
.quote-form input, .quote-form textarea {
  width: 100%; padding: .7rem .9rem;
  border: 2px solid #dce8d5; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  background: var(--cream);
}
.quote-form input:focus, .quote-form textarea:focus {
  outline: none; border-color: var(--sky); background: #fff;
}
.quote-form textarea { resize: vertical; min-height: 96px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.quote-form .btn { width: 100%; margin-top: 1.2rem; font-size: 1.1rem; }
.hp-field { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.form-confirmation {
  background: var(--green-tint); border: 2px solid var(--green);
  border-radius: var(--radius-sm); padding: 1.2rem; font-weight: 600;
  color: var(--green-deep);
}
.form-error { color: #c0392b; font-size: .9rem; margin-top: .8rem; }

/* ---------- Sections ---------- */
.section { padding: 4.2rem 0; }
.section-sky { background: var(--sky-tint); }
.section-green { background: var(--green-tint); }
.section-head { text-align: center; max-width: 46em; margin: 0 auto 2.4rem; }
.section-head .sub { color: var(--muted); font-size: 1.05rem; }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* checkerboard */
.checker {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  margin-bottom: 3.5rem;
}
.checker:last-child { margin-bottom: 0; }
.checker.flip .checker-img { order: 2; }
.checker-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; }
.checker-img img { width: 100%; object-fit: cover; }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 1.4rem; }
.card {
  background: #fff; border-radius: var(--radius); padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow); border-top: 6px solid var(--sun);
  display: flex; flex-direction: column; gap: .3rem;
}
.card .card-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--green-tint); color: var(--green-dark);
  display: grid; place-items: center; margin-bottom: .7rem;
}
.card p { color: var(--muted); font-size: .95rem; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.gallery figure {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 5px solid #fff; position: relative;
}
.gallery img { width: 100%; height: 240px; object-fit: cover; transition: transform .3s ease; }
.gallery figure:hover img { transform: scale(1.04); }

/* steps */
.steps { counter-reset: step; display: grid; gap: 1.1rem; max-width: 880px; margin: 0 auto; }
.step {
  background: #fff; border-radius: var(--radius); padding: 1.5rem 1.6rem 1.5rem 4.6rem;
  box-shadow: var(--shadow); position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1.2rem; top: 1.4rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--green); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  display: grid; place-items: center;
}
.step h3 { margin-bottom: .3rem; }
.step p { color: var(--muted); font-size: .97rem; }

/* areas */
.areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.area-list { display: flex; flex-wrap: wrap; gap: .7rem; list-style: none; margin-top: 1.2rem; }
.area-list li a, .area-list li span {
  display: inline-flex; align-items: center; gap: .45rem;
  background: #fff; border: 2px solid var(--sky-tint);
  padding: .5rem 1.1rem; border-radius: 999px;
  font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--ink);
}
.area-list li a:hover { border-color: var(--sky); color: var(--sky-dark); }
.area-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; }

/* trust list */
.trust-list { list-style: none; display: grid; gap: .8rem; margin-top: 1rem; }
.trust-list li { display: flex; gap: .7rem; align-items: flex-start; }
.trust-list .leaf { color: var(--green); flex-shrink: 0; margin-top: .35rem; }
.trust-list strong { color: var(--green-deep); }

/* FAQ */
.faq-wrap { max-width: 860px; margin: 0 auto; }
.faq-wrap details {
  background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow);
  margin-bottom: .9rem; overflow: hidden; border-left: 5px solid var(--green);
}
.faq-wrap summary {
  cursor: pointer; padding: 1.1rem 1.3rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  color: var(--green-deep); list-style: none; position: relative; padding-right: 3rem;
}
.faq-wrap summary::-webkit-details-marker { display: none; }
.faq-wrap summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--sky); font-family: var(--font-head);
}
.faq-wrap details[open] summary::after { content: "–"; }
.faq-wrap details .faq-a { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--green) 0%, var(--green-dark) 70%),
    var(--green);
  color: #fff; text-align: center; padding: 4rem 0;
  position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #e6f5dc; max-width: 38em; margin: 0 auto 1.6rem; }
.cta-band .btn-sun {
  background: var(--sun); color: var(--green-deep);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}
.cta-band .btn-sun:hover { background: #ffd866; transform: translateY(-2px); }
.cta-phone {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.3rem); color: #fff; text-decoration: none; margin-bottom: 1.2rem;
}
.cta-phone:hover { color: var(--sun); }

/* breadcrumbs */
.breadcrumbs { font-size: .85rem; margin-bottom: 1rem; color: var(--muted); }
.breadcrumbs a { color: var(--sky-dark); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* page hero (inner pages) */
.page-hero {
  background:
    radial-gradient(900px 420px at 90% -20%, rgba(255, 201, 60, .3), transparent 60%),
    linear-gradient(180deg, var(--sky-tint) 0%, var(--green-tint) 100%);
  padding: 2.8rem 0 3.2rem;
}
.page-hero .lede { font-size: 1.12rem; color: var(--muted); max-width: 38em; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }

/* prose (privacy) */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.45rem; margin: 2rem 0 .6rem; }
.prose p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-deep); color: #d8ecd0; padding: 3.5rem 0 0;
  border-top: 8px solid var(--sun);
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2.4rem;
  padding-bottom: 2.6rem;
}
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer-brand img { width: 52px; height: 52px; border-radius: 50%; background: #fff; }
.footer-brand span { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: #fff; }
.site-footer h3 { color: var(--sun); font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer ul { list-style: none; display: grid; gap: .45rem; }
.site-footer a { color: #d8ecd0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-phone { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: #fff !important; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding: 1.1rem 0; font-size: .85rem; text-align: center; color: #b9d8ad;
}
.footer-bottom a { color: #b9d8ad; }

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  background: var(--green-deep); padding: .6rem .8rem;
  gap: .7rem; box-shadow: 0 -4px 16px rgba(0, 0, 0, .2);
}
.mobile-call-bar a {
  flex: 1; text-align: center; text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: .65rem .5rem; border-radius: 999px;
}
.mobile-call-bar .call { background: var(--sun); color: var(--green-deep); }
.mobile-call-bar .quote { background: var(--sky); color: #fff; }

/* ---------- 404 ---------- */
.page-404 { text-align: center; padding: 6rem 0; }
.page-404 h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .page-hero-grid, .areas-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .checker, .checker.flip { grid-template-columns: 1fr; gap: 1.4rem; }
  .checker.flip .checker-img { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 3px solid var(--green);
    box-shadow: 0 14px 24px rgba(0, 0, 0, .12); padding: 1rem 4%;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 1rem; }
  /* mobile accordion sub-nav */
  .main-nav .has-sub { position: static; width: 100%; }
  .sub-toggle { width: 100%; justify-content: space-between; padding: .3rem 0; }
  .main-nav .sub-menu {
    position: static; min-width: 0; opacity: 1; visibility: hidden; transform: none;
    border: none; box-shadow: none; background: transparent;
    padding: .25rem 0 .25rem 1rem; margin: .4rem 0 0;
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease, visibility .25s ease;
  }
  .main-nav .sub-toggle[aria-expanded="true"] + .sub-menu { visibility: visible; max-height: 480px; }
  .main-nav .sub-menu a:not(.btn) { padding: .45rem 0; }
  .header-phone { display: none; }
  .mobile-call-bar { display: flex; }
  body { padding-bottom: 64px; }
  .section { padding: 3rem 0; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-badges img { width: 70px; height: 70px; }
}
