/* ==========================================================================
   Oscar's Tree Service — Design System & Responsive Stylesheet
   Follows homelab web-design.md:
   - HSL CSS custom properties exclusively (zero raw hex/rgb in components)
   - 4px base spacing scale (--space-1 .. --space-8)
   - Mobile-first min-width media queries
   - Light/Dark mode via prefers-color-scheme + [data-theme]
   - WCAG AA/AAA contrast & 44x44px touch targets
   ========================================================================== */

:root {
  /* Typography */
  --font-display: "Outfit", system-ui, -apple-system, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;

  /* 4px Spacing Scale */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.5rem;   /* 24px */
  --space-6: 2rem;     /* 32px */
  --space-7: 3rem;     /* 48px */
  --space-8: 4rem;     /* 64px */
  --space-9: 5.5rem;   /* 88px */

  /* Border Radius Scale */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-pill: 9999px;

  /* HSL Color Palette — Light Mode (Sunlit California Limestone & Canopy Pine) */
  --bg-page: hsl(42, 33%, 97%);
  --bg-surface: hsl(0, 0%, 100%);
  --bg-subtle: hsl(42, 26%, 92%);
  --bg-chip: hsl(42, 24%, 94%);
  --bg-forest: hsl(152, 48%, 16%);
  --bg-forest-deep: hsl(154, 52%, 11%);
  --bg-forest-mid: hsl(150, 40%, 23%);
  --bg-glass: hsla(42, 35%, 98%, 0.86);
  --bg-hero-grad-start: hsla(154, 54%, 10%, 0.9);
  --bg-hero-grad-mid: hsla(152, 48%, 13%, 0.72);
  --bg-hero-grad-end: hsla(152, 42%, 14%, 0.36);
  --bg-backdrop: hsla(154, 48%, 8%, 0.82);

  --text-primary: hsl(152, 38%, 12%);
  --text-secondary: hsl(150, 14%, 31%);
  --text-muted: hsl(150, 10%, 42%);
  --text-on-dark: hsl(42, 36%, 97%);
  --text-on-dark-muted: hsla(42, 30%, 92%, 0.84);

  --accent-amber: hsl(36, 92%, 47%);
  --accent-amber-hover: hsl(34, 94%, 41%);
  --accent-amber-soft: hsla(36, 92%, 48%, 0.15);
  --accent-amber-text: hsl(154, 54%, 10%);

  --accent-leaf: hsl(148, 52%, 30%);
  --accent-leaf-hover: hsl(148, 56%, 24%);
  --accent-leaf-soft: hsla(148, 52%, 32%, 0.12);
  --accent-leaf-bright: hsl(142, 62%, 62%);

  --border-subtle: hsla(152, 28%, 16%, 0.11);
  --border-strong: hsla(152, 28%, 16%, 0.24);
  --border-on-dark: hsla(42, 30%, 96%, 0.18);
  --focus-ring: hsl(36, 92%, 47%);

  --status-ok-bg: hsla(148, 58%, 30%, 0.12);
  --status-ok-border: hsla(148, 58%, 30%, 0.32);
  --status-ok-text: hsl(148, 64%, 22%);
  --status-err-bg: hsla(4, 76%, 48%, 0.11);
  --status-err-border: hsla(4, 76%, 48%, 0.32);
  --status-err-text: hsl(4, 74%, 36%);

  /* Elevation Scale */
  --shadow-sm: 0 1px 3px hsla(152, 40%, 10%, 0.06);
  --shadow-md: 0 6px 18px hsla(152, 40%, 10%, 0.09);
  --shadow-lg: 0 16px 38px hsla(152, 42%, 8%, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-page: hsl(154, 32%, 8%);
    --bg-surface: hsl(153, 26%, 12%);
    --bg-subtle: hsl(153, 24%, 15%);
    --bg-chip: hsl(153, 22%, 17%);
    --bg-forest: hsl(154, 38%, 12%);
    --bg-forest-deep: hsl(155, 42%, 7%);
    --bg-forest-mid: hsl(151, 34%, 18%);
    --bg-glass: hsla(154, 32%, 9%, 0.86);

    --text-primary: hsl(42, 30%, 95%);
    --text-secondary: hsl(146, 14%, 76%);
    --text-muted: hsl(146, 10%, 62%);

    --accent-amber: hsl(37, 94%, 54%);
    --accent-amber-hover: hsl(39, 96%, 60%);
    --accent-amber-soft: hsla(37, 94%, 54%, 0.16);
    --accent-amber-text: hsl(154, 54%, 9%);

    --accent-leaf: hsl(144, 54%, 52%);
    --accent-leaf-hover: hsl(144, 58%, 60%);
    --accent-leaf-soft: hsla(144, 54%, 52%, 0.15);

    --border-subtle: hsla(144, 24%, 82%, 0.12);
    --border-strong: hsla(144, 24%, 82%, 0.25);

    --status-ok-bg: hsla(144, 56%, 45%, 0.16);
    --status-ok-border: hsla(144, 56%, 52%, 0.35);
    --status-ok-text: hsl(142, 68%, 74%);
    --status-err-bg: hsla(4, 78%, 56%, 0.16);
    --status-err-border: hsla(4, 78%, 62%, 0.36);
    --status-err-text: hsl(6, 86%, 78%);

    --shadow-sm: 0 1px 3px hsla(0, 0%, 0%, 0.28);
    --shadow-md: 0 6px 20px hsla(0, 0%, 0%, 0.38);
    --shadow-lg: 0 18px 42px hsla(0, 0%, 0%, 0.52);
  }
}

:root[data-theme="dark"] {
  --bg-page: hsl(154, 32%, 8%);
  --bg-surface: hsl(153, 26%, 12%);
  --bg-subtle: hsl(153, 24%, 15%);
  --bg-chip: hsl(153, 22%, 17%);
  --bg-forest: hsl(154, 38%, 12%);
  --bg-forest-deep: hsl(155, 42%, 7%);
  --bg-forest-mid: hsl(151, 34%, 18%);
  --bg-glass: hsla(154, 32%, 9%, 0.86);

  --text-primary: hsl(42, 30%, 95%);
  --text-secondary: hsl(146, 14%, 76%);
  --text-muted: hsl(146, 10%, 62%);

  --accent-amber: hsl(37, 94%, 54%);
  --accent-amber-hover: hsl(39, 96%, 60%);
  --accent-amber-soft: hsla(37, 94%, 54%, 0.16);
  --accent-amber-text: hsl(154, 54%, 9%);

  --accent-leaf: hsl(144, 54%, 52%);
  --accent-leaf-hover: hsl(144, 58%, 60%);
  --accent-leaf-soft: hsla(144, 54%, 52%, 0.15);

  --border-subtle: hsla(144, 24%, 82%, 0.12);
  --border-strong: hsla(144, 24%, 82%, 0.25);

  --status-ok-bg: hsla(144, 56%, 45%, 0.16);
  --status-ok-border: hsla(144, 56%, 52%, 0.35);
  --status-ok-text: hsl(142, 68%, 74%);
  --status-err-bg: hsla(4, 78%, 56%, 0.16);
  --status-err-border: hsla(4, 78%, 62%, 0.36);
  --status-err-text: hsl(6, 86%, 78%);

  --shadow-sm: 0 1px 3px hsla(0, 0%, 0%, 0.28);
  --shadow-md: 0 6px 20px hsla(0, 0%, 0%, 0.38);
  --shadow-lg: 0 18px 42px hsla(0, 0%, 0%, 0.52);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 5.25rem;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 4.75rem; /* Space for mobile sticky quick-bar */
}

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

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.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: var(--space-4);
  top: -100px;
  z-index: 200;
  padding: var(--space-3) var(--space-4);
  background: var(--accent-amber);
  color: var(--accent-amber-text);
  font-weight: 700;
  border-radius: var(--radius-md);
}

.skip-link:focus {
  top: var(--space-3);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Top Announcement Bar */
.top-strip {
  background: var(--bg-forest-deep);
  color: var(--text-on-dark);
  font-size: 0.85rem;
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  text-align: center;
  border-bottom: 1px solid var(--border-on-dark);
}

.top-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-leaf-bright);
  display: inline-block;
  flex-shrink: 0;
}

/* Sticky Glassmorphic Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: var(--space-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  min-width: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.98rem, 4vw, 1.25rem);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-sub {
  display: none;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-muted);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-3);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: color 180ms ease, background-color 180ms ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 150ms ease;
}

.icon-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 46px;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  text-align: center;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent-amber);
  color: var(--accent-amber-text);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-amber-hover);
  box-shadow: var(--shadow-md);
}

.btn-secondary-hero {
  background: hsla(42, 35%, 97%, 0.14);
  color: var(--text-on-dark);
  border-color: var(--border-on-dark);
  backdrop-filter: blur(8px);
}

.btn-secondary-hero:hover {
  background: hsla(42, 35%, 97%, 0.24);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: var(--bg-subtle);
}

.btn-forest {
  background: var(--accent-leaf);
  color: var(--text-on-dark);
}

.btn-forest:hover {
  background: var(--accent-leaf-hover);
}

.header-cta {
  padding: var(--space-2) var(--space-4);
  font-size: 0.9rem;
  white-space: nowrap;
}

.header-cta-desktop-label {
  display: none;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-forest-deep);
  color: var(--text-on-dark);
  padding: var(--space-7) 0 var(--space-8);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    112deg,
    var(--bg-hero-grad-start) 0%,
    var(--bg-hero-grad-mid) 56%,
    var(--bg-hero-grad-end) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: hsla(42, 36%, 97%, 0.13);
  border: 1px solid var(--border-on-dark);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-4);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.4vw, 3.65rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-4);
  color: var(--text-on-dark);
}

.hero-lead {
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.65;
  color: var(--text-on-dark-muted);
  margin: 0 0 var(--space-6);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}

.hero-trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-on-dark);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: hsla(154, 48%, 8%, 0.5);
  border: 1px solid var(--border-on-dark);
  backdrop-filter: blur(10px);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--accent-amber-soft);
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-on-dark);
}

.trust-desc {
  display: block;
  font-size: 0.83rem;
  color: var(--text-on-dark-muted);
}

/* Section Foundations */
.section {
  padding: var(--space-8) 0;
}

.section-alt {
  background: var(--bg-subtle);
}

.section-header {
  max-width: 680px;
  margin-bottom: var(--space-6);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-leaf);
  margin: 0 0 var(--space-2);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
  color: var(--text-primary);
}

.section-sub {
  margin: 0;
  font-size: 1.03rem;
  color: var(--text-secondary);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.service-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-subtle);
  position: relative;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.service-card:hover .service-media img {
  transform: scale(1.03);
}

.service-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-leaf-soft);
  color: var(--accent-leaf);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 var(--space-2);
  color: var(--text-primary);
}

.service-card p {
  margin: 0 0 var(--space-4);
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex: 1;
}

.service-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  display: grid;
  gap: var(--space-2);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.service-bullets li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.service-bullets li::before {
  content: "✓";
  font-weight: 800;
  color: var(--accent-leaf);
}

.service-quote-btn {
  align-self: flex-start;
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--accent-leaf-soft);
  color: var(--accent-leaf);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.service-quote-btn:hover {
  background: var(--accent-leaf);
  color: var(--text-on-dark);
}

/* Gallery Section & Filter Pills */
.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.filter-btn {
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.filter-btn:hover {
  color: var(--text-primary);
  background: var(--bg-chip);
}

.filter-btn[aria-pressed="true"] {
  background: var(--bg-forest);
  color: var(--text-on-dark);
  border-color: var(--bg-forest);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.gallery-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: left;
  padding: 0;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  width: 100%;
  background: var(--bg-subtle);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.gallery-card:hover .gallery-thumb img {
  transform: scale(1.04);
}

.gallery-tag {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--bg-hero-grad-start);
  color: var(--text-on-dark);
  font-size: 0.76rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.gallery-info {
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.gallery-loc {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-leaf);
  margin-bottom: var(--space-1);
}

.gallery-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.gallery-desc {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Process / How It Works */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.process-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.process-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 var(--space-2);
  color: var(--text-primary);
}

.process-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* Mulch Callout Banner */
.mulch-banner {
  margin-top: var(--space-7);
  background: linear-gradient(135deg, var(--bg-forest) 0%, var(--bg-forest-mid) 100%);
  color: var(--text-on-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.mulch-banner .eyebrow {
  color: var(--accent-amber);
}

.mulch-banner h3 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 var(--space-2);
}

.mulch-banner p {
  margin: 0 0 var(--space-5);
  color: var(--text-on-dark-muted);
  max-width: 60ch;
}

.mulch-banner-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-on-dark);
  aspect-ratio: 16 / 10;
}

.mulch-banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Service Area Pills */
.city-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.city-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.city-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-leaf);
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: var(--space-3);
  max-width: 820px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-4) var(--space-5);
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--text-primary);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  font-size: 1.2rem;
  color: var(--accent-leaf);
  transition: transform 180ms ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* Contact & Free Estimate Section */
.contact-section {
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg-page) 100%);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: start;
}

.contact-info-panel {
  background: var(--bg-forest);
  color: var(--text-on-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
}

.contact-info-panel .eyebrow {
  color: var(--accent-amber);
}

.contact-info-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 var(--space-3);
}

.contact-info-panel > p {
  color: var(--text-on-dark-muted);
  margin: 0 0 var(--space-6);
}

.contact-cards {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.contact-detail-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: hsla(42, 36%, 97%, 0.08);
  border: 1px solid var(--border-on-dark);
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-amber-soft);
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-on-dark-muted);
}

.contact-detail-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-on-dark);
}

/* Interactive Quote Form Card */
.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.choice-chip {
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-chip);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.choice-chip:hover {
  border-color: var(--accent-leaf);
}

.choice-chip[aria-pressed="true"] {
  background: var(--accent-leaf);
  border-color: var(--accent-leaf);
  color: var(--text-on-dark);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 46px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-page);
  color: var(--text-primary);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-leaf);
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-actions {
  display: grid;
  gap: var(--space-3);
}

.form-submit-btn {
  width: 100%;
  min-height: 52px;
  font-size: 1.05rem;
}

.form-status {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.94rem;
}

.form-status[hidden] {
  display: none;
}

.form-status.is-error {
  background: var(--status-err-bg);
  border: 1px solid var(--status-err-border);
  color: var(--status-err-text);
}

.form-status.is-success {
  background: var(--status-ok-bg);
  border: 1px solid var(--status-ok-border);
  color: var(--status-ok-text);
}

.confirmation-box {
  text-align: center;
  padding: var(--space-6) var(--space-4);
}

.confirmation-box[hidden] {
  display: none;
}

.confirmation-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--status-ok-bg);
  border: 1px solid var(--status-ok-border);
  color: var(--status-ok-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: var(--space-3);
}

/* Footer */
.site-footer {
  background: var(--bg-forest-deep);
  color: var(--text-on-dark);
  padding: var(--space-7) 0 var(--space-6);
  border-top: 1px solid var(--border-on-dark);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  justify-content: space-between;
}

.footer-meta {
  color: var(--text-on-dark-muted);
  font-size: 0.88rem;
  max-width: 52ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: 0.92rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent-amber);
}

.footer-bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-on-dark);
  font-size: 0.82rem;
  color: var(--text-on-dark-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
}

/* Mobile Sticky Quick-Action Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 85;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  transition: transform 220ms ease, opacity 220ms ease;
}

.mobile-sticky-bar .btn {
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  font-size: 0.92rem;
  white-space: nowrap;
}

.mobile-sticky-bar.is-hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

/* Accessible Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--bg-backdrop);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  max-width: 860px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.lightbox-media {
  position: relative;
  background: var(--bg-forest-deep);
  max-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-media img {
  max-height: 62vh;
  width: 100%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-on-dark);
  background: var(--bg-hero-grad-start);
  color: var(--text-on-dark);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
}

.lightbox-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.lightbox-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.lightbox-nav {
  display: flex;
  gap: var(--space-2);
}

/* 404 Page */
.not-found-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.not-found-card {
  max-width: 520px;
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-7) var(--space-6);
  box-shadow: var(--shadow-md);
}

.not-found-card h1 {
  font-family: var(--font-display);
  margin: 0 0 var(--space-3);
}

/* Responsive Min-Width Breakpoints */
@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-6);
  }

  .brand {
    gap: var(--space-3);
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-sub {
    display: block;
  }

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

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

  .contact-form-card {
    padding: var(--space-6);
  }

  .header-cta-mobile-label {
    display: none;
  }

  .header-cta-desktop-label {
    display: inline;
  }
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }

  .mobile-sticky-bar {
    display: none;
  }

  .hero {
    padding: var(--space-9) 0;
  }

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

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

  .mulch-banner {
    grid-template-columns: 1.25fr 1fr;
    padding: var(--space-7);
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }

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

  .contact-layout {
    grid-template-columns: 0.92fr 1.18fr;
    gap: var(--space-7);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
