/* ===========================================================
   Jim's Mowing (Canada) — site stylesheet
   5-color palette: #5CA945, #02853f, #fff004, black, white
   (black/white/green may appear at reduced opacity for tints,
   borders, and shadows — no other hues are used)
   =========================================================== */

:root {
  --green-dark: #02853f;
  --green: #5CA945;
  --yellow: #fff004;
  --black: #000000;
  --white: #ffffff;
  --green-tint: color-mix(in srgb, var(--green) 12%, var(--white) 88%);
  --line: rgba(0, 0, 0, 0.12);
  --ink-soft: rgba(0, 0, 0, 0.65);
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  --radius: 10px;
  --maxw: 1180px;
  --section-pad: 96px;
  --cta-pad: 80px;
  font-size: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3,
h4 {
  color: var(--green-dark);
  line-height: 1.2;
  margin: 0 0 20px;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  text-wrap: balance;
}

li {
  text-wrap: balance;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--yellow);
  color: var(--green-dark);
}

.btn-primary:hover {
  filter: brightness(0.93);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--green-dark);
}

.btn-white:hover {
  background: var(--green-tint);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand img {
  height: 76px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}

.main-nav>ul>li {
  position: relative;
}

.main-nav a.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--black);
  padding: 10px 2px;
  display: inline-block;
  text-decoration: none;
}

.main-nav>ul>li>a.nav-link:hover,
.main-nav>ul>li.active>a.nav-link {
  color: var(--green);
}

.has-dropdown>a.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.has-dropdown>a.nav-link::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform .15s ease;
}

.has-dropdown:hover>a.nav-link::after,
.has-dropdown:focus-within>a.nav-link::after,
.has-dropdown.open>a.nav-link::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  min-width: 240px;
  max-width: 640px;
  z-index: 600;
  border: 1px solid var(--line);
}

.has-dropdown .dropdown.wide {
  display: none;
  columns: 2;
  column-gap: 8px;
  min-width: 480px;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  break-inside: avoid;
  text-decoration: none;
}

.dropdown a:hover {
  background: var(--green-tint);
  color: var(--green-dark);
}

.header-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-ctas .btn {
  padding: 10px 18px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--green-dark);
  cursor: pointer;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  background: var(--green-dark);
}

.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.hero .hero-inner {
  position: relative;
  z-index: 2;
  padding: 120px 24px 140px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--white);
}

.hero p.lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
}

.hero .hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}

.page-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  padding: 88px 24px;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 8px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto;
}

.page-hero-split {
  text-align: left;
  padding: 40px 24px;
}

.page-hero-split .two-col {
  gap: 48px;
  align-items: center;
}

.page-hero-split p {
  margin: 0;
  max-width: none;
}

.page-hero-split .hero-photo {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.page-hero-split .hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

/* ---------------- Sections ---------------- */
section {
  padding: var(--section-pad) 0;
}

.section-alt {
  background: var(--green-tint);
}

/* Adjacent blocks sharing a background shouldn't stack their padding into one big gap */
.section-alt+.section-alt {
  margin-top: calc(-1 * var(--section-pad));
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 4px;
  border-radius: 2px;
  background: var(--yellow);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col img,
.two-col .media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  margin-top: 56px;
}

.stat-row .num {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--green);
}

.stat-row .label {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Service / card grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .15s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  height: 170px;
  width: 100%;
  object-fit: cover;
}

.card .card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card .card-body h3 {
  margin: 0;
  font-size: 1.15rem;
}

.card .card-body h3 .card-title-link {
  color: inherit;
  text-decoration: none;
}

.card .card-body h3 .card-title-link:hover {
  color: var(--green);
}

.card .card-body h3 .card-title-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card .card-body p {
  margin: 0;
  font-size: 0.92rem;
  flex: 1;
}

.card .card-body .card-link {
  font-weight: 700;
  color: var(--green);
  margin-top: 6px;
}

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 14px;
}

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  margin-top: 10px;
  font-size: 0.85rem;
  text-align: center;
}

/* Franchisee grid */
.franchisee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}

.franchisee-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .15s ease;
}

.franchisee-card:hover {
  transform: translateY(-4px);
}

.franchisee-card .photo {
  aspect-ratio: 4 / 3;
  background: var(--green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.franchisee-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.franchisee-card .info {
  padding: 16px 14px 20px;
}

.franchisee-card .name {
  font-weight: 700;
  font-size: 0.95rem;
}

.franchisee-card .loc {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* Before / after photos */
.before-after-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.before-after-card {
  margin: 0;
}

.before-after-card a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s ease;
}

.before-after-card a:hover {
  transform: translateY(-4px);
}

.before-after-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.before-after-card a img {
  border-radius: 0;
  box-shadow: none;
}

.before-after-card figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
}

.before-after-feature {
  max-width: 640px;
  margin: 40px auto 0;
}

.before-after-feature img {
  box-shadow: var(--shadow);
}

/* Whats included list */
ul.check-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

ul.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  color: var(--ink-soft);
}

ul.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--white);
  background: var(--green);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* CTA band */
.cta-band {
  background: var(--yellow);
  text-align: center;
  padding: var(--cta-pad) 24px;
}

.cta-band .btn {
  margin-top: 14px;
}

/* Forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.franchise-inquiry-frame,
.quote-request-frame {
  width: 100%;
  border: 0;
}

.franchise-inquiry-frame {
  height: 756px;
}

.quote-request-frame {
  height: 900px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--black);
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--black);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--green);
  border-color: var(--green);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 18px;
}

/* Contact info blocks */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-bottom: 56px;
}

.contact-card {
  background: var(--green-tint);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.contact-card .icon-badge {
  margin: 0 auto 14px;
}

.contact-card a {
  display: block;
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
}

.contact-card a+a {
  margin-top: 6px;
}

/* Franchise benefits */
.benefit-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.benefit-list .card-body {
  padding: 26px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 64px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  color: var(--white);
}

.footer-brand img {
  height: 50px;
  margin-bottom: 14px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
}

.footer-brand p a {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.65);
}

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

  .before-after-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }

  .header-ctas .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-header.open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    box-shadow: var(--shadow);
  }

  .site-header.open .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
  }

  .site-header.open .main-nav li {
    width: 100%;
  }

  .site-header.open .main-nav a.nav-link {
    display: flex;
    width: 100%;
    text-align: left;
    justify-content: space-between;
  }

  .site-header.open .has-dropdown .dropdown,
  .site-header.open .has-dropdown .dropdown.wide {
    display: none;
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    columns: 1;
    padding-left: 14px;
    min-width: 0;
    text-align: left;
  }

  .site-header.open .has-dropdown.open .dropdown {
    display: block;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .card-grid-3 {
    grid-template-columns: 1fr;
  }

  .before-after-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .hero .hero-inner {
    padding: 80px 20px 100px;
  }
}