/* ════════════════════════════════════════════════════════════════
   LAWN 'N' ORDER — Homepage Redesign · Core styles
   Tokens · Themes · Base · Header · Hero · Trust · Seasons · Services
   ════════════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --green-900: #1d3d1a;
  --green-700: #2d5a27;
  --green-500: #4a7c45;
  --green-300: #7bc67a;
  --gold: #b8860b;
  --gold-soft: #d4a93c;
  --winter: #7fb6d9;

  /* Tweakable CTA color (set by Tweaks panel) */
  --cta: var(--green-700);
  --cta-hover: var(--green-900);

  /* Type */
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-hand: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-1: 0 1px 2px rgba(20, 32, 20, 0.06), 0 8px 24px -12px rgba(20, 32, 20, 0.18);
  --shadow-2: 0 2px 6px rgba(20, 32, 20, 0.08), 0 24px 48px -16px rgba(20, 32, 20, 0.28);
  --wrap: 1240px;
}

/* ── Themes ──────────────────────────────────────────────────── */
html[data-theme="warm"] {
  --bg: #faf6ed;
  --bg-alt: #f2ebdb;
  --surface: #ffffff;
  --ink: #1a2419;
  --muted: #5d6757;
  --line: #e4dcc8;
  --brand: var(--green-700);
  --brand-bright: var(--green-500);
  --accent: var(--gold);
  --hand-color: var(--green-500);
  --header-bg: rgba(250, 246, 237, 0.88);
}
html[data-theme="luxe"] {
  --bg: #0e1812;
  --bg-alt: #13201a;
  --surface: #18261f;
  --ink: #f2efe6;
  --muted: #9fae9f;
  --line: #25362c;
  --brand: var(--green-300);
  --brand-bright: var(--green-300);
  --accent: var(--gold-soft);
  --hand-color: var(--gold-soft);
  --header-bg: rgba(14, 24, 18, 0.85);
  --cta: #3f7a39;
  --cta-hover: #2d5a27;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.35), 0 24px 48px -16px rgba(0, 0, 0, 0.6);
}
html[data-theme="fresh"] {
  --bg: #ffffff;
  --bg-alt: #f2f7f1;
  --surface: #ffffff;
  --ink: #15211b;
  --muted: #5b6b5e;
  --line: #e2eae1;
  --brand: #2f7d33;
  --brand-bright: #2f7d33;
  --accent: var(--gold);
  --hand-color: #2f7d33;
  --header-bg: rgba(255, 255, 255, 0.88);
}

/* ── Base ────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[data-motion="off"] { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
  font-weight: 700;
}
p { text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
section { position: relative; }
.hand {
  font-family: var(--font-hand);
  color: var(--hand-color);
  font-weight: 500;
  letter-spacing: -0.026em;
}

/* Section header pattern */
.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 14px 0;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.sec-head--center .eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.sec-head h2 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.015em; }
.sec-head .lede { font-size: 18px; color: var(--muted); margin: 18px 0 0 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.25s ease, color 0.25s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--solid { background: var(--cta); color: #fff; box-shadow: var(--shadow-1); }
.btn--solid:hover { background: var(--cta-hover); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn--solid:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn--glass {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-2px); }

/* Scroll-reveal primitives */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--rd, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
html[data-motion="off"] [data-reveal] { opacity: 1; transform: none; transition: none; }

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  padding: 18px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-header.is-scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 10px 0;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  color: #fff;
  transition: color 0.3s ease;
}
.site-header.is-scrolled .logo { color: var(--ink); }
.logo b {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.logo span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 4px;
}
.main-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.main-nav a {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 13px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
.site-header.is-scrolled .main-nav a { color: var(--muted); }
.site-header.is-scrolled .main-nav a:hover { color: var(--brand); background: var(--bg-alt); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease;
}
.header-phone svg { width: 16px; height: 16px; }
.site-header.is-scrolled .header-phone { color: var(--ink); }
.header-phone:hover { color: var(--accent); }
.site-header .btn { padding: 11px 20px; font-size: 15px; }
@media (max-width: 1300px) {
  .main-nav { display: none; }
  .header-phone span { display: none; }
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.hero-media {
  position: absolute;
  inset: -12% 0;
  z-index: 0;
  will-change: transform;
}
.hero-media img, .hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-media video.is-playing { opacity: 1; }
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(8, 14, 9, 0.82) 0%, rgba(8, 14, 9, 0.35) 38%, rgba(8, 14, 9, 0.18) 62%, rgba(8, 14, 9, 0.42) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 140px 0 64px;
}
.hero-note {
  font-family: var(--font-hand);
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--green-300);
  margin: 0 0 10px 0;
  transform: rotate(-1.5deg);
  display: inline-block;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}
.hero h1 {
  font-size: clamp(42px, 6.4vw, 88px);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 13ch;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.hero h1 .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em) rotate(1.2deg);
  animation: heroWord 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}
.hero h1 .w--accent { color: var(--green-300); }
@keyframes heroWord {
  to { opacity: 1; transform: none; }
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  max-width: 52ch;
  margin: 20px 0 30px;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.hero-anim {
  opacity: 0;
  animation: heroFade 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .w, .hero-anim { opacity: 1 !important; transform: none !important; animation: none !important; }
}
html[data-motion="off"] .hero h1 .w,
html[data-motion="off"] .hero-anim { opacity: 1; transform: none; animation: none; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.45);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.hero-phone:hover { color: #fff; border-color: var(--green-300); }
.hero-phone svg { width: 15px; height: 15px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.hero-trust .stars { color: #fbbf24; letter-spacing: 2px; font-size: 15px; }
.hero-trust .sep { opacity: 0.4; }
.scroll-cue {
  position: absolute;
  right: 36px;
  bottom: 36px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-cue::after {
  content: "";
  width: 1.5px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
  animation: cueDrop 2s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue::after { animation: none; } }
@media (max-width: 720px) {
  .scroll-cue { display: none; }
  .hero-content { padding-top: 120px; }
}

/* ── Stats / trust band ──────────────────────────────────────── */
.stats-band { background: var(--bg); padding: 64px 0 56px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.5vw, 62px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.stat .num sup { font-size: 0.5em; color: var(--accent); }
.stat .label { font-size: 14.5px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.cred-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 40px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.cred-row img {
  height: 44px;
  width: auto;
  opacity: 0.75;
  filter: grayscale(1);
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}
.cred-row img:hover { opacity: 1; filter: none; transform: translateY(-3px); }
html[data-theme="luxe"] .cred-row img { filter: grayscale(1) invert(0.9); }
html[data-theme="luxe"] .cred-row img:hover { filter: invert(0.92); }
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Season switcher ─────────────────────────────────────────── */
.seasons { padding: 96px 0; background: var(--bg-alt); overflow: hidden; transition: background 0.5s ease; }
.season-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  gap: 4px;
  box-shadow: var(--shadow-1);
}
.season-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.season-toggle button svg { width: 17px; height: 17px; }
.season-toggle button.is-active { background: var(--cta); color: #fff; }
body[data-season="winter"] .season-toggle button.is-active { background: #2c5d7c; }
.season-stage {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 52px;
}
.season-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-2);
}
.season-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.8s ease, transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.season-visual img.is-active { opacity: 1; transform: scale(1); }
.season-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  color: #1a2419;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.season-copy h3 {
  font-size: clamp(26px, 3vw, 38px);
  margin-bottom: 14px;
}
.season-copy .pane { display: none; }
.season-copy .pane.is-active { display: block; animation: paneIn 0.55s cubic-bezier(0.22, 0.61, 0.36, 1); }
@keyframes paneIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
html[data-motion="off"] .season-copy .pane.is-active { animation: none; }
.season-copy p { color: var(--muted); margin: 0 0 22px; }
.season-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.season-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
}
.season-list svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--brand); }
body[data-season="winter"] .season-list svg { color: #2c5d7c; }
html[data-theme="luxe"] body[data-season="winter"] .season-list svg,
html[data-theme="luxe"].x body[data-season="winter"] .season-list svg { color: var(--winter); }
@media (max-width: 920px) {
  .season-stage { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Services (3 pillars) ────────────────────────────────────── */
.services { padding: 104px 0; background: var(--bg); }
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}
.pillar:hover { transform: translateY(-8px); box-shadow: var(--shadow-2); }
.pillar-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.pillar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.pillar:hover .pillar-img img { transform: scale(1.07); }
.pillar-step {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(10, 18, 11, 0.65);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
  padding: 7px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.pillar-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.pillar-body h3 { font-size: 25px; margin-bottom: 10px; }
.pillar-body > p { color: var(--muted); font-size: 15.5px; margin: 0 0 18px; }
.pillar-links { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 2px; }
.pillar-links a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  margin: 0 -10px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, gap 0.2s ease;
}
.pillar-links a svg { width: 15px; height: 15px; color: var(--brand); flex: none; transition: transform 0.2s ease; }
.pillar-links a:hover { background: var(--bg-alt); color: var(--brand); }
.pillar-links a:hover svg { transform: translateX(3px); }
.pillar-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--brand);
  text-decoration: none;
}
.pillar-cta svg { width: 17px; height: 17px; transition: transform 0.25s ease; }
.pillar-cta:hover svg { transform: translateX(4px); }
@media (max-width: 920px) {
  .pillars { grid-template-columns: 1fr; }
}
