/* ==========================================================================
   Lawn Care Services Toronto — Main Stylesheet
   Shared by every page. Mobile-first, responsive, accessible.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --green-700: #2E7D32;   /* primary */
  --green-600: #43A047;   /* primary light */
  --green-050: #E8F3E9;   /* tint */
  --charcoal:  #1B1B1B;   /* body text */
  --charcoal-2:#3D4A3E;   /* muted text */
  --off-white: #F7F9F4;   /* page background */
  --white:     #FFFFFF;
  --accent:    #F4B400;   /* warm accent (buttons/highlights) */
  --accent-700:#C98F00;
  --border:    #E2E8DE;
  --shadow-sm: 0 1px 3px rgba(27, 27, 27, .08);
  --shadow-md: 0 6px 18px rgba(27, 27, 27, .10);
  --shadow-lg: 0 14px 40px rgba(27, 27, 27, .16);
  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 14px;
  --maxw:      1160px;
  --header-h:  72px;
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --transition: 180ms ease;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--charcoal);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a { color: var(--green-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-600); }

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

ul { margin: 0 0 1rem; padding-left: 1.2rem; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tint { background: var(--green-050); }
.section--white { background: var(--white); }

.section-head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section-head p { color: var(--charcoal-2); font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: .6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: .85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.btn--primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-600); color: #fff; box-shadow: var(--shadow-md); }

.btn--accent { background: var(--accent); color: var(--charcoal); box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: var(--accent-700); color: var(--charcoal); box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; }

.btn--outline { background: transparent; color: var(--green-700); border-color: var(--green-700); }
.btn--outline:hover { background: var(--green-700); color: #fff; }

.btn--lg { padding: 1.05rem 2rem; font-size: 1.08rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--charcoal);
  line-height: 1.1;
}
.brand:hover { color: var(--charcoal); }
.brand__mark { flex: 0 0 auto; width: 34px; height: 34px; }
.brand__name span { display: block; font-size: .72rem; font-weight: 500; color: var(--green-700); letter-spacing: .02em; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .98rem;
  color: var(--charcoal);
  padding: .35rem 0;
  position: relative;
}
.nav__link:hover { color: var(--green-700); }
.nav__link[aria-current="page"] { color: var(--green-700); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--green-700);
  border-radius: 2px;
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(rgba(20, 40, 20, .58), rgba(20, 40, 20, .62)), url("../images/hero-lawn.jpg") center/cover no-repeat, var(--green-700);
  padding: clamp(4rem, 11vw, 8rem) 0;
}
.hero__inner { max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero__sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: rgba(255,255,255,.94); margin-bottom: 1.8rem; max-width: 620px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Page banner (interior pages) */
.page-banner {
  background: var(--green-700);
  background: linear-gradient(120deg, var(--green-700), var(--green-600));
  color: #fff;
  padding: clamp(2.6rem, 6vw, 4.2rem) 0;
  text-align: center;
}
.page-banner h1 { color: #fff; margin-bottom: .4rem; }
.page-banner p { color: rgba(255,255,255,.92); max-width: 640px; margin-inline: auto; font-size: 1.08rem; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--charcoal); color: #fff; }
.trust-bar__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 2rem;
  list-style: none;
  margin: 0; padding: 1rem 0;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 500;
}
.trust-bar__list li { display: inline-flex; align-items: center; gap: .5rem; }
.trust-bar__list li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Service preview cards */
.service-card { display: block; color: inherit; }
.service-card:hover { color: inherit; }
.service-card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--green-050);
  color: var(--green-700);
  margin-bottom: 1rem;
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: .3rem; }
.service-card p { color: var(--charcoal-2); margin: 0; font-size: .96rem; }
.service-card__more { display: inline-block; margin-top: .8rem; font-weight: 600; font-family: var(--font-head); font-size: .9rem; }

/* Why-choose feature list */
.feature { text-align: left; }
.feature__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--charcoal);
  margin-bottom: .9rem;
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: .3rem; }
.feature p { color: var(--charcoal-2); margin: 0; font-size: .96rem; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; align-items: stretch; }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card--featured {
  border: 2px solid var(--green-700);
  box-shadow: var(--shadow-lg);
}
.price-card__badge {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: var(--charcoal);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  padding: .35rem .9rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.price-card__name { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; margin-bottom: .3rem; }
.price-card__price { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--green-700); line-height: 1; }
.price-card__price span { font-size: 1rem; font-weight: 500; color: var(--charcoal-2); }
.price-card__list { list-style: none; margin: 1.3rem 0 1.8rem; padding: 0; flex: 1; }
.price-card__list li { position: relative; padding-left: 1.7rem; margin-bottom: .7rem; color: var(--charcoal-2); }
.price-card__list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green-600); font-weight: 700;
}

/* Add-on table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.addon-table { width: 100%; border-collapse: collapse; background: var(--white); min-width: 480px; }
.addon-table th, .addon-table td { text-align: left; padding: .95rem 1.2rem; border-bottom: 1px solid var(--border); }
.addon-table thead th { background: var(--green-050); font-family: var(--font-head); color: var(--green-700); font-size: .95rem; }
.addon-table tbody tr:last-child td { border-bottom: none; }
.addon-table td:last-child, .addon-table th:last-child { text-align: right; font-weight: 600; white-space: nowrap; }

.note {
  background: var(--green-050);
  border-left: 4px solid var(--green-600);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  color: var(--charcoal-2);
  margin-top: 1.6rem;
}

/* ---------- Testimonials ---------- */
.testimonial { display: flex; flex-direction: column; }
.testimonial__stars { color: var(--accent); letter-spacing: 2px; margin-bottom: .6rem; }
.testimonial p { font-style: italic; color: var(--charcoal); }
.testimonial__author { display: flex; align-items: center; gap: .8rem; margin-top: auto; padding-top: 1rem; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  flex: 0 0 auto;
}
.avatar--a { background: #2E7D32; }
.avatar--b { background: #C98F00; }
.avatar--c { background: #3D6B8A; }
.testimonial__author strong { display: block; font-family: var(--font-head); }
.testimonial__author span { font-size: .88rem; color: var(--charcoal-2); }

/* ---------- Service area strip ---------- */
.area-strip { background: var(--green-700); color: #fff; text-align: center; }
.area-strip h2 { color: #fff; }
.area-strip p { color: rgba(255,255,255,.92); max-width: 760px; margin: 0 auto; font-size: 1.1rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); text-align: center; }
.cta-band h2 { margin-bottom: 1.2rem; }
.cta-band .btn--primary { background: var(--charcoal); }
.cta-band .btn--primary:hover { background: #000; }

/* ---------- Detailed service sections ---------- */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; margin-bottom: 3rem; }
.service-detail:nth-child(even) .service-detail__media { order: 2; }
.service-detail__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.service-detail h3 { font-size: 1.5rem; }
.tag {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  padding: .3rem .8rem;
  border-radius: 999px;
  margin-top: .4rem;
}
.tag--included { background: var(--green-050); color: var(--green-700); }
.tag--addon { background: #FDF3D6; color: var(--accent-700); }

/* ---------- About ---------- */
.about-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.about-split img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.promise {
  background: var(--green-700);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
}
.promise h2 { color: #fff; }
.promise p { color: rgba(255,255,255,.94); max-width: 640px; margin: 0 auto; font-size: 1.1rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 2.5rem; align-items: start; }
.form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.field .req { color: #C0392B; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  padding: .75rem .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--off-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(67, 160, 71, .18);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .error-msg { display: none; color: #C0392B; font-size: .85rem; margin-top: .35rem; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #C0392B; }
.field.invalid .error-msg { display: block; }

.form-status { border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: 1.2rem; font-weight: 500; }
.form-status--success { background: var(--green-050); color: var(--green-700); border: 1px solid var(--green-600); }
.form-status--error { background: #FBEAEA; color: #C0392B; border: 1px solid #E0A9A9; }
.form-status[hidden] { display: none; }

.info-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); margin-bottom: 1.5rem; }
.info-card h3 { margin-bottom: 1rem; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: .8rem; margin-bottom: .9rem; align-items: flex-start; }
.info-list svg { width: 20px; height: 20px; color: var(--green-700); flex: 0 0 auto; margin-top: 3px; }
.info-list a { word-break: break-word; }
.placeholder-tag { color: var(--accent-700); font-weight: 600; font-size: .82rem; }

.map-placeholder {
  background: repeating-linear-gradient(45deg, #eef2ea, #eef2ea 12px, #e6ebe2 12px, #e6ebe2 24px);
  border: 1px dashed var(--green-600);
  border-radius: var(--radius);
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--charcoal-2);
  padding: 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #cfd6cd; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: #cfd6cd; }
.site-footer a:hover { color: var(--accent); }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin-bottom: .8rem; }
.footer-brand svg { width: 30px; height: 30px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: .55rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; text-align: center; font-size: .9rem; color: #9aa79a; }
.footer-bottom a { color: #9aa79a; }

/* ---------- Scroll-reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .price-card:hover { transform: none; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-700);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .grid--3, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .about-split, .contact-grid, .service-detail { grid-template-columns: 1fr; }
  .service-detail__media { order: -1 !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .price-card--featured { transform: none; }
}

@media (max-width: 720px) {
  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: .5rem 20px 1.2rem;
    transform: translateY(-120%);
    transition: transform var(--transition);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav__link { padding: .9rem .2rem; border-bottom: 1px solid var(--border); }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav .btn { margin-top: 1rem; width: 100%; }
}

@media (max-width: 560px) {
  .grid--3, .grid--2, .pricing-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
}
