/* M&M Lawn Service — Design DNA
   Register: BRAND
   Mood: Clean, no-nonsense, blue-collar-professional. A dispatch board, not a
   trade-shop porch. Reads like a well-run outfit that shows up on schedule.
   Anchor refs: a work-order clipboard, a jobsite dispatch whiteboard, mown-stripe turf
   Color: cool graphite-gray canvas, safety-red brand color, slate-navy structural tone
          (Committed palette — distinct hue lane from every other build in this pool)
   Type: Big Shoulders Display (condensed industrial display) + IBM Plex Sans (body)
   Layout: fixed left dispatch rail (nav + call CTA + rating, persistent) with
           scrolling main content — not a split hero, not a stacked oversized hero
   Motion: calm, slow fade-up — no bounce
   Signature element: interactive before/after mow-condition slider (uncut vs. striped)
*/

:root {
  --canvas: oklch(95% 0.012 240);
  --canvas-alt: oklch(91% 0.015 238);
  --panel: oklch(98% 0.006 240);
  --ink: oklch(20% 0.015 245);
  --ink-soft: oklch(42% 0.012 245);
  --red: oklch(54% 0.19 22);
  --red-dark: oklch(44% 0.19 20);
  --slate: oklch(28% 0.04 242);
  --slate-light: oklch(38% 0.035 242);
  --line: oklch(84% 0.01 235);
  --rail-width: 272px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3, .display {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

.container { max-width: 900px; margin: 0 auto; padding: 0 40px; }

/* ---- Dispatch rail (fixed sidebar, signature layout skeleton) ---- */
.rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--rail-width);
  background: var(--slate);
  color: oklch(94% 0.008 240);
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  z-index: 10;
  overflow-y: auto;
}

.rail-brand {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
  color: white;
  margin-bottom: 4px;
}
.rail-brand span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: oklch(75% 0.03 240);
  text-transform: uppercase;
  margin-top: 6px;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 40px 0 32px;
}
.rail-nav a {
  font-size: 14px;
  font-weight: 500;
  color: oklch(80% 0.02 240);
  padding: 9px 0;
  border-bottom: 1px solid oklch(38% 0.03 242);
  transition: color 0.2s ease;
}
.rail-nav a:hover, .rail-nav a.active { color: white; }

.rail-cta {
  background: var(--red);
  color: white !important;
  text-align: center;
  padding: 15px 16px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 3px;
  margin-bottom: 20px;
  transition: background 0.2s ease;
}
.rail-cta:hover { background: var(--red-dark); }

.rail-rating {
  font-size: 13px;
  color: oklch(78% 0.02 240);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: auto;
}
.rail-rating strong { color: white; }

.rail-foot {
  font-size: 12.5px;
  color: oklch(65% 0.02 240);
  padding-top: 24px;
  border-top: 1px solid oklch(38% 0.03 242);
  margin-top: 24px;
}

.rail-toggle { display: none; }

/* ---- Main content offset by rail ---- */
main { margin-left: var(--rail-width); }

/* ---- Hero ---- */
.hero {
  padding: 88px 40px 64px;
  max-width: 780px;
}
.hero h1 {
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.02;
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}
.hero .sub {
  font-family: 'IBM Plex Sans', sans-serif;
  text-transform: none;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.15s forwards;
}
.hero-cta {
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-primary {
  background: var(--red);
  color: white;
  padding: 14px 28px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 15px;
  display: inline-block;
  transition: background 0.2s ease;
}
.btn-primary:hover { background: var(--red-dark); }

.btn-secondary {
  border: 1.5px solid var(--line);
  padding: 14px 28px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  display: inline-block;
}

/* ---- Signature element: before/after mow-condition slider ---- */
.mow-slider {
  position: relative;
  max-width: 780px;
  margin: 8px 40px 72px;
  height: 220px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.45s forwards;
}
.mow-before,
.mow-after {
  position: absolute;
  inset: 0;
}
.mow-before {
  background-color: var(--canvas-alt);
  background-image:
    radial-gradient(circle at 12% 30%, oklch(58% 0.05 140 / 0.55) 0 9px, transparent 10px),
    radial-gradient(circle at 30% 65%, oklch(58% 0.05 140 / 0.5) 0 12px, transparent 13px),
    radial-gradient(circle at 55% 20%, oklch(58% 0.05 140 / 0.5) 0 10px, transparent 11px),
    radial-gradient(circle at 70% 55%, oklch(58% 0.05 140 / 0.55) 0 14px, transparent 15px),
    radial-gradient(circle at 88% 35%, oklch(58% 0.05 140 / 0.5) 0 11px, transparent 12px),
    radial-gradient(circle at 20% 85%, oklch(58% 0.05 140 / 0.45) 0 9px, transparent 10px),
    radial-gradient(circle at 65% 85%, oklch(58% 0.05 140 / 0.5) 0 13px, transparent 14px);
}
.mow-after {
  background: repeating-linear-gradient(
    90deg,
    var(--canvas) 0 28px,
    var(--canvas-alt) 28px 56px
  );
  clip-path: inset(0 0 0 var(--pos, 50%));
}
.mow-label {
  position: absolute;
  bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 3px;
  color: var(--ink-soft);
}
.mow-label.left { left: 12px; }
.mow-label.right { right: 12px; }
.mow-slider input[type="range"] {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  margin: 0;
  accent-color: var(--red);
  cursor: ew-resize;
}

/* ---- Sections ---- */
section { padding: 64px 40px; max-width: 900px; }
.section-alt { background: var(--canvas-alt); max-width: none; padding-left: 0; padding-right: 0; }
.section-alt > .container, .section-alt > .services-list, .section-alt > * { max-width: 900px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12.5px;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-head h2 { font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 14px; max-width: 640px; }
.section-head p { font-family: 'IBM Plex Sans', sans-serif; text-transform: none; color: var(--ink-soft); font-size: 16px; max-width: 560px; }

/* ---- Services: editorial numbered rows, not a card grid ---- */
.services-list { margin-top: 40px; }
.service-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row .num {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--red);
}
.service-row h3 { font-size: 19px; text-transform: none; margin-bottom: 6px; }
.service-row p { font-family: 'IBM Plex Sans', sans-serif; text-transform: none; font-size: 15px; color: var(--ink-soft); max-width: 560px; }

/* ---- Note strip (generic, unattributed) ---- */
.note-strip {
  max-width: 640px;
  margin: 8px 0 0;
  padding: 24px 0;
  font-size: 16px;
  color: var(--ink-soft);
}
.note-strip strong { color: var(--ink); }

/* ---- CTA band ---- */
.cta-band {
  background: var(--slate);
  color: white;
  text-align: center;
  padding: 68px 32px;
  max-width: none;
}
.cta-band h2 { color: white; font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 14px; }
.cta-band p { font-family: 'IBM Plex Sans', sans-serif; text-transform: none; color: oklch(85% 0.02 240); margin-bottom: 26px; }
.cta-band .btn-primary { background: var(--red); }
.cta-band .btn-primary:hover { background: var(--red-dark); }

/* ---- Footer ---- */
footer {
  padding: 36px 40px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
  text-align: left;
}

/* ---- Inner page layout (about/contact) ---- */
.page-header {
  padding: 72px 40px 36px;
  max-width: 720px;
}
.page-header h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 16px; }
.page-header p { font-family: 'IBM Plex Sans', sans-serif; text-transform: none; font-size: 17px; color: var(--ink-soft); }

.stat-strip {
  display: flex;
  gap: 0;
  max-width: 780px;
  margin: 0 40px 56px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.stat-strip .stat {
  flex: 1;
  padding: 22px 20px;
  border-left: 1px solid var(--line);
  background: var(--panel);
}
.stat-strip .stat:first-child { border-left: none; }
.stat-strip .stat strong {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 26px;
  display: block;
  color: var(--red);
  margin-bottom: 4px;
}
.stat-strip .stat span { font-size: 13px; color: var(--ink-soft); }

.about-body { max-width: 680px; padding: 0 40px 72px; }
.about-body p { margin-bottom: 18px; color: var(--ink-soft); font-size: 16px; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 40px 80px;
}
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
  background: var(--panel);
}
.contact-panel a.phone {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 30px;
  color: var(--red);
  display: block;
  margin: 8px 0 22px;
}
.contact-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.contact-row span:first-child { color: var(--ink-soft); }

form.quote-form { display: flex; flex-direction: column; gap: 16px; }
form.quote-form label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
form.quote-form input, form.quote-form select, form.quote-form textarea {
  border: 1.5px solid var(--line);
  border-radius: 3px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  background: var(--canvas);
  width: 100%;
}
form.quote-form button {
  background: var(--red);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.2s ease;
}
form.quote-form button:hover { background: var(--red-dark); }

@media (max-width: 900px) {
  :root { --rail-width: 0px; }
  .rail {
    position: static;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 18px 24px;
  }
  .rail-nav { display: none; }
  .rail-brand { font-size: 22px; margin-right: auto; }
  .rail-brand span { display: none; }
  .rail-rating { display: none; }
  .rail-foot { display: none; }
  .rail-cta { margin-bottom: 0; padding: 10px 16px; font-size: 14px; }
  main { margin-left: 0; }
  .contact-layout { grid-template-columns: 1fr; }
  .stat-strip { flex-direction: column; }
  .stat-strip .stat { border-left: none; border-top: 1px solid var(--line); }
  .stat-strip .stat:first-child { border-top: none; }
}
