/* =========================================================
   M&M MOWER REPAIR — HOMEPAGE MOCKUP STYLES
   Design system: rugged/industrial outdoor power equipment.
   Palette derived from the supplied logo (mower red + grass
   green) against charcoal structure and warm off-white.
   ========================================================= */

:root {
  /* -- brand palette (derived from logo) -- */
  --charcoal: #191c1a;
  --charcoal-2: #242825;
  --charcoal-3: #33372f;
  --offwhite: #f6f3ec;
  --white: #ffffff;
  --ink: #1b1e1a;
  --muted: #5c6058;
  --muted-light: #9aa08f;

  --brand-green: #2c6b3c;
  --brand-green-dark: #1e4c2a;
  --brand-green-light: #e3ede2;
  --brand-red: #c1372a;
  --brand-red-dark: #942a20;
  --brand-lime: #b7e04f;

  --border-soft: rgba(27, 30, 26, 0.12);
  --border-soft-dark: rgba(255, 255, 255, 0.14);

  --font-head: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 3px;
  --radius-md: 6px;

  --shadow-1: 0 2px 10px rgba(0, 0, 0, 0.18);
  --shadow-2: 0 12px 32px rgba(0, 0, 0, 0.22);

  --container: min(1200px, 92vw);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--offwhite);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}

h2 { font-size: clamp(1.7rem, 1.35rem + 1.5vw, 2.6rem); }
h3 { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); }

p { margin: 0 0 1em; color: var(--ink); }

.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; fill: currentColor; }
.icon-lg { width: 40px; height: 40px; stroke: currentColor; fill: none; }
.icon-xl { width: 56px; height: 56px; stroke: currentColor; fill: none; }

.sr-only {
  position: absolute; 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: 1rem; top: -60px;
  background: var(--charcoal); color: var(--white);
  padding: 0.7rem 1.1rem; border-radius: var(--radius-sm);
  z-index: 200; transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

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

.section-inner, .header-inner, .hero-inner, .utility-inner, .footer-inner {
  width: var(--container);
  margin-inline: auto;
}

.section { padding: clamp(3rem, 2.3rem + 3vw, 5.5rem) 0; }

.section-eyebrow {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--brand-green);
  margin: 0 0 0.6em;
}
.section-eyebrow-light { color: var(--brand-lime); }

.section-lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
}
.on-dark { color: var(--white); }
.on-dark-lead { color: rgba(255,255,255,0.78); max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: transform 0.12s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { padding: 0.55rem 1rem; font-size: 0.88rem; }

.btn-primary {
  background: var(--brand-red);
  color: var(--white);
  border-color: var(--brand-red);
}
.btn-primary:hover { background: var(--brand-red-dark); border-color: var(--brand-red-dark); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-ghost-light {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: transparent;
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.18); }

.btn-outline-dark {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-outline-dark:hover { background: var(--charcoal); color: var(--white); }

.btn-ghost-dark {
  background: var(--brand-green-light);
  color: var(--brand-green-dark);
  border-color: transparent;
}
.btn-ghost-dark:hover { background: #d3e4d1; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.4rem; }
.cta-row--center { justify-content: center; }

.tag-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.8rem;
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand-lime);
}
.tag-badge-outline {
  background: var(--white);
  color: var(--charcoal);
  border: 1.5px solid var(--border-soft);
  border-left: 3px solid var(--brand-green);
}

/* ---------- utility bar ---------- */
.utility-bar {
  background: var(--charcoal);
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
}
.utility-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.5rem 0;
}
.utility-list { display: flex; align-items: center; gap: 1.3rem; }
.utility-list a { display: inline-flex; align-items: center; gap: 0.4rem; }
.utility-list a:hover { color: var(--brand-lime); }
.utility-status { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--brand-lime); }
.utility-actions a {
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border-soft-dark);
  border-radius: var(--radius-sm);
}
.sr-only-mobile { display: inline; }

/* ---------- header ---------- */
/* anchor targets (section headings, jump-to blocks) scroll to just
   below the sticky header instead of landing partially hidden under it */
[id] { scroll-margin-top: 100px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--offwhite);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow 0.2s ease, padding 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-1); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  transition: padding 0.2s ease;
}
.site-header.is-scrolled .header-inner { padding: 0.5rem 0; }

.brand { display: flex; align-items: center; min-width: 0; }

/* Wide lockup logo (default: tablet/desktop) */
.brand-logo-full {
  height: clamp(56px, 3.6vw + 38px, 78px);
  width: auto;
  flex-shrink: 0;
  transition: height 0.2s ease;
}
.site-header.is-scrolled .brand-logo-full { height: clamp(46px, 2.6vw + 32px, 60px); }

/* Compact emblem logo (mobile only, see media query below) */
.brand-logo-compact {
  display: none;
  height: 58px;
  width: 58px;
  flex-shrink: 0;
}


.nav-toggle {
  display: none;
  padding: 0.5rem; border-radius: var(--radius-sm);
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.primary-nav { display: flex; align-items: center; gap: 1.8rem; }
.primary-nav ul { display: flex; gap: 1.5rem; }
.nav-link {
  display: inline-block; /* so vertical padding is respected in layout — prevents
     the link's tap-target padding from visually overlapping the next item */
  font-weight: 700; font-size: 0.95rem; padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.is-active { border-color: var(--brand-red); color: var(--brand-red); }
.nav-cta { flex-shrink: 0; }

/* ---------- hero ---------- */
.hero { background: var(--charcoal); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(44,107,60,0.28), transparent 55%),
    linear-gradient(320deg, rgba(193,55,42,0.18), transparent 50%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 3vw, 4rem);
  align-items: center;
  padding-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 2rem + 3vw, 4rem);
}
.eyebrow {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.8rem; color: var(--brand-lime);
  margin-bottom: 0.8em;
}
.hero-copy h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 1.5rem + 3vw, 3.5rem);
  max-width: 14ch;
}
.hero-lead { color: rgba(255,255,255,0.82); font-size: 1.08rem; max-width: 56ch; margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-panel {
  position: relative;
  background: var(--charcoal-2);
  border: 1px solid var(--border-soft-dark);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 2vw, 2.5rem);
  display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
  box-shadow: var(--shadow-2);
}
.hero-panel-grid {
  position: absolute; inset: 0; border-radius: var(--radius-md);
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
}
.hero-panel-logo {
  position: relative;
  width: clamp(150px, 18vw, 220px); height: clamp(150px, 18vw, 220px);
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45));
}
.brand-tags {
  position: relative;
  display: flex; flex-direction: column; gap: 0.6rem; width: 100%;
}

.trust-strip { position: relative; background: var(--brand-green-dark); }
.trust-strip ul {
  width: var(--container); margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: 1.4rem 2.2rem;
  padding: 0.9rem 0;
}
.trust-strip li {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--white); font-weight: 600; font-size: 0.92rem;
}
.trust-strip .icon { color: var(--brand-lime); }

/* ---------- divider ---------- */
.deck-divider {
  height: 14px;
  background: repeating-linear-gradient(
    -45deg, var(--brand-green) 0 18px, var(--brand-green-dark) 18px 36px
  );
}

/* ---------- equipment categories ---------- */
.category-grid {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-top: 4px solid var(--brand-green);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.5rem;
  display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.category-icon { color: var(--brand-green); margin-bottom: 0.9rem; }
.category-card p { color: var(--muted); font-size: 0.95rem; flex-grow: 1; }
.card-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 700; font-size: 0.9rem; color: var(--brand-red);
  margin-top: 0.8rem;
}
.card-link:hover { text-decoration: underline; }
.card-link-secondary { color: var(--brand-green); margin-top: 0.4rem; }
.card-link .icon { width: 0.9em; height: 0.9em; }

/* ---------- current equipment (evergreen) ---------- */
.current-equipment-section { background: var(--brand-green-light); }
.current-equipment-inner { text-align: left; max-width: 70ch; }

/* ---------- service section ---------- */
.service-section { background: var(--charcoal); }
.service-grid {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.8rem, 3vw, 3rem);
  align-items: start;
}
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.9rem 1.5rem; }
.service-list li {
  display: flex; align-items: center; gap: 0.7rem;
  color: rgba(255,255,255,0.9); font-weight: 600; font-size: 0.95rem;
  padding-bottom: 0.7rem; border-bottom: 1px solid var(--border-soft-dark);
}
.service-list .icon { color: var(--brand-lime); width: 1.2em; height: 1.2em; }

.service-panel {
  background: var(--charcoal-2);
  border: 1px solid var(--border-soft-dark);
  border-radius: var(--radius-md);
  padding: clamp(1.4rem, 2vw, 2rem);
}
.service-panel h3 { color: var(--white); }
.service-panel > p { color: rgba(255,255,255,0.78); }
.process-list {
  list-style: decimal; padding-left: 1.2rem;
  color: rgba(255,255,255,0.88); display: grid; gap: 0.4rem; margin-bottom: 0.5rem;
}
.fine-print { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 1rem; margin-bottom: 0; }

/* ---------- parts section ---------- */
.parts-tag-list { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ---------- why choose ---------- */
.why-section { background: var(--offwhite); }
.why-grid {
  margin-top: 2rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem 2rem;
}
.why-item { border-left: 3px solid var(--brand-red); padding-left: 1rem; }
.why-item p { color: var(--muted); font-size: 0.94rem; margin-bottom: 0; }

/* ---------- shop section ---------- */
.shop-section { background: var(--charcoal-3); }
.shop-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 3vw, 3.5rem);
  align-items: center;
}
.shop-copy .section-eyebrow { color: var(--brand-lime); }
.shop-copy h2 { color: var(--white); }
.shop-copy p { color: rgba(255,255,255,0.8); max-width: 52ch; }

.shop-panel-frame {
  background: var(--charcoal-2);
  border: 1.5px dashed var(--border-soft-dark);
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.8rem; color: rgba(255,255,255,0.55); text-align: center; padding: 1.5rem;
}
.shop-panel-frame span { font-size: 0.85rem; font-weight: 600; }

/* ---------- seasonal ---------- */
.seasonal-section { background: linear-gradient(120deg, var(--brand-green-dark), var(--brand-green)); }
.seasonal-inner { max-width: 68ch; }
.seasonal-section h2 { max-width: 20ch; }

/* ---------- contact ---------- */
.contact-section { background: var(--offwhite); }
.contact-inner {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 3vw, 3.5rem);
  align-items: start;
}
.contact-details {
  margin: 1.6rem 0 0; display: grid; gap: 1.1rem;
}
.contact-details dt {
  font-family: var(--font-head); font-weight: 800; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand-green);
  margin-bottom: 0.2em;
}
.contact-details dd { margin: 0; color: var(--ink); }
.contact-details a:hover { color: var(--brand-red); }

.location-panel-frame {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-top: 4px solid var(--brand-red);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  text-align: center;
}
.location-panel-frame .icon-xl { color: var(--brand-red); }
.location-address { color: var(--muted); margin-bottom: 0.4rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,0.75); }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.2rem;
  padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0 2.5rem;
}
.footer-logo {
  width: 64px; height: 64px;
  margin-bottom: 0.8rem;
}
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.92rem; max-width: 32ch; }
.footer-hero-mark { width: 100%; max-width: 190px; height: auto; margin-top: 1.1rem; display: block; opacity: 0.92; }
.footer-col h3 {
  color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}
.footer-col p { font-size: 0.92rem; margin-bottom: 0.5rem; color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--brand-lime); }
.footer-nav { display: grid; gap: 0.5rem; }
.footer-nav a { font-size: 0.92rem; color: rgba(255,255,255,0.7); }

.footer-bottom {
  border-top: 1px solid var(--border-soft-dark);
  padding: 1.2rem 0;
}
.footer-bottom-inner {
  width: var(--container); margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.2rem;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; list-style: none; margin: 0; padding: 0; }
.footer-legal a { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer-legal a:hover { color: rgba(255,255,255,0.8); }
.footer-copy { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-credit { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin: 0; }
.footer-credit-brand { color: var(--brand-lime); font-weight: 700; }
.footer-credit-brand:hover { text-decoration: underline; }

/* ---------- legal pages (privacy policy / terms of service) ---------- */
.legal-content p, .legal-content ul { max-width: 74ch; }
.legal-content h2 { margin: 2rem 0 0.6rem; font-size: 1.15rem; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content ul { padding-left: 1.2rem; }
.legal-content li { margin-bottom: 0.4em; }
.legal-content a { color: var(--brand-green-dark); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--brand-green); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .service-grid, .shop-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { order: -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .utility-text { display: none; }
  .utility-location .utility-text { display: none; }
  .utility-list { gap: 0.9rem; }
  .utility-actions a { padding: 0.4rem; }

  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    /* must paint ABOVE the open drawer (z-index 90) or the close X is buried */
    position: relative; z-index: 95;
  }

  /* drawer is charcoal — swap the icon to white while it's open so the X stays visible */
  .nav-toggle[aria-expanded="true"] { color: var(--white); }

  .primary-nav {
    position: fixed; inset: 0 0 0 30%;
    background: var(--charcoal);
    flex-direction: column; align-items: stretch; justify-content: center;
    gap: 2rem; padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 90;
  }
  .primary-nav.is-open {
    transform: translateX(0);
    /* dim the page beside the drawer so the menu reads as an overlay, not overlapping content */
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.55);
  }
  .primary-nav ul { flex-direction: column; gap: 0.7rem; }
  .nav-link {
    color: var(--white); font-size: 1.15rem; padding: 0.85rem 0.2rem;
    border-bottom: 0; /* no divider lines in the drawer (also kills the desktop underline rule here) */
  }
  /* the desktop red is-active rule loses contrast on the charcoal drawer —
     current page reads lime here */
  .primary-nav .nav-link:hover,
  .primary-nav .nav-link.is-active {
    color: var(--brand-lime);
  }
  /* script.js focuses the first drawer link on open (a11y requirement) —
     give the focus ring its own inset outline + offset so it never
     visually crowds/overlaps the link below it, regardless of which
     link the browser puts focus on or the platform's default ring size. */
  .primary-nav .nav-link:focus-visible {
    outline: 2px solid var(--brand-lime);
    outline-offset: -4px;
  }
  .nav-cta { text-align: center; justify-content: center; }

  /* set by script.js while the drawer is open */
  body.nav-open { overflow: hidden; }

  /* Full lockup logo stays on mobile too (per client request) — centered
     independently of the nav toggle via absolute positioning, since the
     toggle button's width isn't symmetric with anything on the left. */
  .header-inner { position: relative; justify-content: flex-end; }
  .brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .brand-logo-full { height: 60px; }
  .brand-logo-compact { display: none; }

  .category-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .trust-strip ul { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .hero-actions .btn, .cta-row .btn { width: 100%; justify-content: center; }
  .hero-actions, .cta-row { flex-direction: column; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================================================
   V2 ADDITIONS — 4-page dealer upgrade (Jul 10, 2026)
   All selectors below are NEW names (no ripple into v1 rules).
   Photo placeholders: .ph-frame blocks are swapped for real
   <img> tags when photos arrive — the label text says what to shoot.
   ========================================================= */

/* ---------- photo placeholder frames ---------- */
.ph-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.045) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, var(--charcoal-2), var(--charcoal-3));
  border: 1px dashed var(--border-soft-dark);
  border-radius: var(--radius-md);
  color: var(--muted-light);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
  overflow: hidden;
  min-height: 180px;
}
.ph-frame .icon-xl { width: 42px; height: 42px; fill: currentColor; opacity: 0.8; }
.ph-frame span { max-width: 28ch; line-height: 1.35; }
.ph-frame--light {
  background:
    repeating-linear-gradient(45deg, rgba(27,30,26,0.05) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, #eceadf, #e0ddd0);
  border-color: var(--border-soft);
  color: var(--muted);
}
.ph-frame--wide { aspect-ratio: 16 / 9; }
.ph-frame--tall { height: 100%; min-height: 260px; }

/* real embedded map (real content swap-in, like .ph-photo but for an iframe).
   Fixed height + absolute-fill iframe on purpose: height:100% would chain
   through .location-panel's auto-height flex column and collapse to 0,
   leaving the dark placeholder background showing through underneath. */
.ph-frame--embed {
  padding: 0; border-style: solid; background: var(--white);
  position: relative; height: 320px; min-height: 260px;
}
.ph-frame--embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.location-panel { display: flex; flex-direction: column; gap: 0.9rem; }
.location-panel-cta { align-self: flex-start; }

/* ---------- products page: brand sections + spec cards ---------- */
.brand-section { margin-top: 3.2rem; }
.brand-section.is-hidden { display: none; }
.brand-section:first-of-type { margin-top: 2rem; }
.brand-section-head { max-width: 68ch; margin-bottom: 1.6rem; }
.brand-section-head h2 { margin-bottom: 0.3em; }
.brand-section-head p { color: var(--muted); margin: 0; }
.brand-tagline {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--white); background: var(--brand-green);
  padding: 3px 10px; border-radius: 99px; margin-bottom: 0.6rem;
}

.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.spec-card {
  background: var(--white); border: 1px solid var(--border-soft);
  border-top: 4px solid var(--brand-green); border-radius: var(--radius-md);
  padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.spec-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.spec-card-badge {
  align-self: flex-start; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand-green); border: 1px solid var(--brand-green);
  padding: 2px 8px; border-radius: 99px; margin-bottom: 0.7rem;
}
.spec-card-badge--gold { color: #8a6d1f; border-color: #cda343; background: #fbf1da; }
.spec-card-badge--red { color: var(--brand-red); border-color: var(--brand-red); background: #fbeceb; }
.spec-card h3 { font-size: 1.05rem; margin: 0 0 0.35em; }
.spec-card .spec-desc { color: var(--muted); font-size: 0.92rem; margin: 0 0 0.7em; }
.spec-facts {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.7rem;
  font-size: 0.82rem; color: var(--ink); font-weight: 600;
  margin: 0 0 0.7em; padding: 0.6rem 0.7rem;
  background: var(--brand-green-light); border-radius: var(--radius-sm);
}
.spec-facts span { white-space: nowrap; }
.spec-best-for { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.8em; }
.spec-best-for b { color: var(--ink); }
.spec-card-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; }
.stock-note {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand-green); border: 1px solid rgba(44,107,60,0.35);
  padding: 3px 9px; border-radius: 99px;
}
.spec-card[hidden] { display: none; }

.also-available {
  margin-top: 1.8rem; background: var(--white); border: 1px solid var(--border-soft);
  border-radius: var(--radius-md); padding: 1.3rem 1.4rem;
}
.also-available h4 {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  font-size: 0.92rem; margin: 0 0 0.6em; color: var(--ink);
}
.also-available ul { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; }
.also-available li {
  font-size: 0.86rem; color: var(--muted); background: var(--offwhite);
  padding: 0.35rem 0.8rem; border-radius: 99px; border: 1px solid var(--border-soft);
}
.also-available p { margin: 0.8rem 0 0; font-size: 0.85rem; color: var(--muted); }

/* two-axis filter bar (brand + category) — reuses the gallery-sorter button look */
.filter-bar { margin: 1.8rem 0 0.6rem; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; }
.filter-row-label {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-right: 0.3rem;
}
.spec-card.is-hidden { display: none; }
.filter-bar .gallery-sorter-btn.is-hidden { display: none; }

/* ---------- equipment page: photo gallery sorter ---------- */
.gallery-sorter {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin: 1.6rem 0 0.4rem;
}
.gallery-sorter-btn {
  font: 700 0.82rem var(--font-body); color: var(--ink);
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: 99px; padding: 0.5rem 1rem; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.gallery-sorter-btn:hover { border-color: var(--brand-green); }
.gallery-sorter-btn.is-active {
  background: var(--brand-green); border-color: var(--brand-green); color: var(--white);
}
.photo-category.is-hidden { display: none; }

/* ---------- equipment page: per-category photo galleries ---------- */
.photo-category { margin-top: 2.6rem; }
.photo-category:first-of-type { margin-top: 2rem; }
.gallery-note {
  margin-top: 1.4rem; padding: 0.9rem 1.1rem; text-align: center;
  background: var(--brand-green-light); border-radius: var(--radius-sm);
  font-size: 0.92rem; color: var(--ink); display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center; gap: 0.3rem 0.7rem;
}
.gallery-note .card-link { font-weight: 700; }
.photo-category h3 {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.02em; font-size: 1.1rem; color: var(--ink);
  margin: 0 0 0.9rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-soft);
}
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.photo-grid .ph-frame { aspect-ratio: 4 / 3; min-height: 0; }
@media (max-width: 900px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .photo-grid { grid-template-columns: 1fr; } }

/* real photo swap-ins (photo now supplied) */
.ph-photo { padding: 0; border-style: solid; }
.ph-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s ease; }
.photo-tag {
  position: absolute; left: 0.9rem; bottom: 0.9rem; z-index: 2;
  background: rgba(15,17,15,0.8); color: var(--white);
  font: 800 0.72rem var(--font-head); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.35rem 0.75rem; border-radius: var(--radius-sm);
}

/* photos with expandable detail (lightbox) */
.ph-photo[data-lb-title] { cursor: zoom-in; }
.ph-photo[data-lb-title]:hover img,
.ph-photo[data-lb-title]:focus-visible img { transform: scale(1.04); }
.ph-photo[data-lb-title]:focus-visible { outline: 2px solid var(--brand-green); outline-offset: 2px; }
.photo-expand {
  position: absolute; top: 0.7rem; right: 0.7rem; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(15,17,15,0.7); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; line-height: 1; pointer-events: none;
}

/* ---------- photo lightbox modal ---------- */
body.lightbox-locked { overflow: hidden; }
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(10,12,10,0.86);
  display: flex; align-items: center; justify-content: center;
  padding: 1.2rem; opacity: 0; visibility: hidden;
  transition: opacity 0.18s ease;
}
.lightbox-overlay.is-open { opacity: 1; visibility: visible; }
.lightbox-box {
  background: var(--white); border-radius: var(--radius-md);
  max-width: 920px; width: 100%; max-height: 90vh; overflow-y: auto; overflow-x: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr;
}
@media (max-width: 720px) { .lightbox-box { grid-template-columns: 1fr; } }
.lightbox-media { background: #0f110f; display: flex; align-items: center; justify-content: center; min-height: 260px; }
.lightbox-media img { width: 100%; height: 100%; object-fit: contain; display: block; max-height: 70vh; }
.lightbox-body { padding: 1.6rem 1.7rem; position: relative; display: flex; flex-direction: column; }
.lightbox-close {
  position: absolute; top: 0.7rem; right: 0.7rem;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-soft);
  background: var(--white); font-size: 1.1rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.lightbox-close:hover { border-color: var(--brand-green); color: var(--brand-green); }
.lightbox-model { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.2em; }
.lightbox-body h3 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: 1.3rem; margin: 0 0 0.4em; padding-right: 2rem; }
.lightbox-desc { color: var(--muted); font-size: 0.95rem; margin: 0 0 1em; }
.lightbox-specs { display: flex; flex-wrap: wrap; gap: 0.4rem 0.7rem; font-size: 0.86rem; color: var(--ink); font-weight: 600; margin: 0 0 1em; padding: 0.7rem 0.8rem; background: var(--brand-green-light); border-radius: var(--radius-sm); }
/* longer spec phrases (e.g. "Rear-discharge bagger & mulch plug standard")
   must wrap instead of forcing the lightbox to scroll sideways */
.lightbox-specs span { max-width: 100%; overflow-wrap: break-word; }
.lightbox-bestfor { font-size: 0.88rem; color: var(--muted); margin: 0 0 1.2em; }
.lightbox-bestfor b { color: var(--ink); }
.lightbox-cta { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; }

/* ---------- hero v2: full-bleed photo behind copy ---------- */
.hero-v2 { position: relative; background: var(--charcoal); overflow: hidden; }
.hero-v2-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(15,17,15,0.92) 0%, rgba(15,17,15,0.78) 32%, rgba(15,17,15,0.35) 62%, rgba(15,17,15,0.55) 100%),
    url("../assets/images/mm-mowers-hero-photo.png");
  background-size: cover;
  background-position: center 60%;
}
.hero-v2-inner {
  position: relative; width: var(--container); margin: 0 auto;
  padding: clamp(3.2rem, 8vw, 6rem) 0 clamp(2.4rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.hero-v2 .hero-lead { color: rgba(255,255,255,0.82); font-size: 1.08rem; max-width: 54ch; margin: 0 0 1.6em; }
.hero-v2 h1 {
  font-family: var(--font-head); font-weight: 900; color: var(--white);
  font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.04;
  letter-spacing: -0.01em; text-transform: uppercase; margin: 0 0 0.4em;
}
.hero-v2 .eyebrow { color: var(--brand-lime); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 1em; }
.hero-v2-side { display: grid; gap: 0.9rem; align-content: center; }
.hero-quick {
  background: rgba(25,28,26,0.72); border: 1px solid var(--border-soft-dark);
  border-radius: var(--radius-md); padding: 1rem 1.2rem; color: var(--white);
  display: flex; gap: 0.8rem; align-items: center;
}
.hero-quick .icon { width: 22px; height: 22px; fill: var(--brand-lime); flex: none; }
.hero-quick b { display: block; font-size: 0.98rem; }
.hero-quick span { color: rgba(255,255,255,0.72); font-size: 0.86rem; }

/* ---------- dealer brand strip ---------- */
.brand-strip { background: var(--charcoal-2); border-top: 1px solid var(--border-soft-dark); border-bottom: 1px solid var(--border-soft-dark); }
.brand-strip-inner {
  width: var(--container); margin: 0 auto; padding: 0.9rem 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.6rem 2.4rem;
}
.brand-strip .strip-label { color: var(--muted-light); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.brand-strip .strip-brand {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--white); font-size: 1.05rem; text-align: center;
}
.brand-strip .strip-brand small { display: block; font: 600 0.66rem var(--font-body); letter-spacing: 0.1em; color: var(--brand-lime); }

/* ---------- featured section (Spartan spotlight + unit cards) ---------- */
.featured-section { background: var(--charcoal); color: var(--white); }
.spotlight {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.4rem, 4vw, 3rem); align-items: center; margin-bottom: 2.6rem;
}
.spotlight-photo { display: flex; flex-direction: column; gap: 0.9rem; }
.spotlight-photo .feat-body { padding: 0; }
.spotlight-badge {
  display: inline-block; background: var(--brand-red); color: var(--white);
  font: 800 0.75rem var(--font-head); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.35rem 0.8rem; border-radius: var(--radius-sm); margin-bottom: 1rem;
}
.featured-section .spotlight h3 { font-family: var(--font-head); font-weight: 900; text-transform: uppercase; font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.05; margin: 0 0 0.5em; color: var(--white); }
.featured-section .spotlight p { color: rgba(255,255,255,0.8); max-width: 52ch; }
.spotlight p { max-width: 52ch; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.feat-grid--dealers { grid-template-columns: repeat(2, 1fr); }
.feat-card {
  position: relative;
  background: var(--charcoal-2); border: 1px solid var(--border-soft-dark);
  border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column;
}
.feat-card .ph-frame { border: 0; border-bottom: 1px dashed var(--border-soft-dark); border-radius: 0; aspect-ratio: 4 / 3; min-height: 0; }
.feat-card .ph-frame.ph-photo { border-bottom: 0; }
.feat-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.feat-body h4 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; color: var(--white); font-size: 1.02rem; margin: 0; }
.feat-body p { color: var(--muted-light); font-size: 0.9rem; margin: 0; flex: 1; }
.feat-chip {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brand-lime); border: 1px solid rgba(183,224,79,0.4);
  padding: 3px 9px; border-radius: 99px;
}
.feat-ribbon {
  position: absolute; top: 0.7rem; right: 0.7rem; z-index: 3;
  font: 800 0.66rem var(--font-head); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.32rem 0.7rem; border-radius: 99px; box-shadow: var(--shadow-1);
}
.feat-ribbon--gold { background: #cda343; color: #241c07; }
.feat-ribbon--red { background: var(--brand-red); color: var(--white); }
.feat-card--gold { border-color: #cda343; box-shadow: 0 0 0 1px rgba(205,163,67,0.45); }
.feat-card--red { border-color: var(--brand-red); box-shadow: 0 0 0 1px rgba(193,55,42,0.45); }

/* ---------- buy / sell / repair pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.pillar {
  background: var(--white); border: 1px solid var(--border-soft);
  border-top: 4px solid var(--brand-green); border-radius: var(--radius-md);
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow-1);
}
.pillar:nth-child(2) { border-top-color: var(--brand-red); }
.pillar:nth-child(3) { border-top-color: var(--charcoal); }
.pillar .icon-lg { width: 34px; height: 34px; fill: var(--brand-green); margin-bottom: 0.7rem; }
.pillar:nth-child(2) .icon-lg { fill: var(--brand-red); }
.pillar:nth-child(3) .icon-lg { fill: var(--charcoal); }
.pillar h3 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: 1.05rem; margin: 0 0 0.4em; }
.pillar p { color: var(--muted); font-size: 0.94rem; margin: 0 0 0.9em; }

/* ---------- sub-page hero ---------- */
.page-hero { background: var(--charcoal); position: relative; overflow: hidden; }
.page-hero-inner { width: var(--container); margin: 0 auto; padding: clamp(2.2rem, 6vw, 3.6rem) 0; position: relative; }
.page-hero h1 { font-family: var(--font-head); font-weight: 900; text-transform: uppercase; color: var(--white); font-size: clamp(1.7rem, 4.4vw, 2.7rem); line-height: 1.05; margin: 0 0 0.3em; }
.page-hero .hero-lead { color: rgba(255,255,255,0.8); max-width: 60ch; margin: 0; }
.page-hero .eyebrow { color: var(--brand-lime); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: 0.9em; }
.crumbs { font-size: 0.8rem; margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted-light); text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.crumbs span { color: var(--muted-light); }

/* ---------- photo gallery grid (placeholders) ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* ---------- full-width CTA band ---------- */
.cta-band { background: var(--brand-green-dark); color: var(--white); }
.cta-band-inner { width: var(--container); margin: 0 auto; padding: 2.2rem 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.cta-band h2 { font-family: var(--font-head); font-weight: 900; text-transform: uppercase; font-size: clamp(1.25rem, 3vw, 1.8rem); margin: 0; color: var(--white); }

/* ---------- responsive for v2 blocks ---------- */
@media (max-width: 900px) {
  .hero-v2-inner { grid-template-columns: 1fr; }
  .feat-grid, .pillars, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .spotlight { grid-template-columns: 1fr; }
  /* narrow viewports crop the wide hero photo hard — shift the focal
     point right and down so the mower stays in frame, not the house */
  .hero-v2-bg { background-position: 78% 62%; }
}
@media (max-width: 620px) {
  .feat-grid, .pillars, .gallery-grid { grid-template-columns: 1fr; }
  .brand-strip-inner {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0.8rem 1rem; padding: 1.1rem 0; text-align: center;
  }
  .brand-strip .strip-label { grid-column: 1 / -1; margin-bottom: 0.2rem; }
  .cta-band-inner { justify-content: center; text-align: center; }
}
@media (max-width: 380px) {
  .brand-strip-inner { grid-template-columns: 1fr; }
}

/* ---------- print (light polish, not a hard requirement) ---------- */
@media print {
  .utility-bar, .nav-toggle, .hero-panel, .site-footer, .ph-frame, .cta-band { display: none; }
}
