/* ==========================================================================
   YardCritters — Design tokens
   ========================================================================== */
:root {
  --purple: #5826d0;
  --purple-bright: #7c4dff;
  --purple-dim: #4019a3;
  --charcoal: #151517;
  --charcoal-2: #1d1d21;
  --charcoal-3: #26262c;
  --line: #33333b;
  --white: #ffffff;
  --off-white: #f6f5fa;
  --ink: #17171a;
  --ink-soft: #4a4a52;
  --danger: #dc2626;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-glow: 0 0 0 1px rgba(124, 77, 255, 0.25), 0 20px 60px -20px rgba(88, 38, 208, 0.55);
  --shadow-soft: 0 10px 30px -12px rgba(17, 17, 20, 0.25);
  --container: 1160px;
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p { line-height: 1.65; margin: 0 0 1em; color: var(--ink-soft); }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 88px 0; }
@media (max-width: 720px) {
  section { padding: 56px 0; }
}

/* Circuit-grid texture on dark sections */
.dark-section {
  background:
    radial-gradient(circle at 15% 20%, rgba(124, 77, 255, 0.18), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(88, 38, 208, 0.22), transparent 45%),
    linear-gradient(var(--charcoal), var(--charcoal));
  color: var(--white);
  position: relative;
}
.dark-section::before {
  content: "";
  position: absolute;
  inset: 0;
  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: 42px 42px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  pointer-events: none;
}
.dark-section h1, .dark-section h2, .dark-section h3 { color: var(--white); }
.dark-section p { color: rgba(255,255,255,0.72); }
.dark-section > * { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}
.dark-section .eyebrow { color: #c9b6ff; }
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--purple-bright);
  box-shadow: 0 0 10px var(--purple-bright);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple-bright), var(--purple));
  color: var(--white);
  box-shadow: 0 12px 30px -10px rgba(88, 38, 208, 0.65);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(88, 38, 208, 0.8); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }
.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--purple); color: var(--purple); }
.btn-block { width: 100%; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
/* The blur lives on a pseudo-element rather than .site-header itself —
   filter/backdrop-filter on an ancestor becomes the containing block for
   any position:fixed descendant, which broke the mobile nav overlay's
   full-viewport positioning when it was set directly on .site-header. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(21, 21, 23, 0.9);
  backdrop-filter: blur(10px);
  z-index: -1;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { height: 32px; width: auto; flex-shrink: 0; }
.brand-word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1;
}
.brand-word .word-yard { color: var(--white); }
.brand-word .word-critters { color: var(--purple-bright); }
.footer-brand .brand-icon { height: 28px; }
.footer-brand .brand-word { font-size: 19px; }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--white); }
.main-nav .btn-primary { display: none; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 940px) {
  .main-nav {
    position: fixed;
    inset: 78px 0 0 0;
    background: var(--charcoal);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .header-actions .btn-primary { display: none; }
  .main-nav .btn-primary { margin-top: 16px; display: inline-flex; }
  .nav-toggle { display: inline-flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 76px 0 100px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); }
.hero-lede { font-size: 1.15rem; color: rgba(255,255,255,0.78); max-width: 46ch; }
.hero-sub { font-size: 0.98rem; color: rgba(255,255,255,0.55); margin-bottom: 30px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-art .art-card {
  background: linear-gradient(160deg, #ffffff, #efeaff);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow-glow);
  max-width: 360px;
  position: relative;
}
.hero-art .art-card img { border-radius: 16px; }
.hero-art .badge {
  position: absolute;
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-art .badge-top { top: -18px; right: -18px; }
.hero-art .badge-bottom { bottom: -18px; left: -18px; }
.hero-art .badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #29c46a; box-shadow: 0 0 8px #29c46a; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; margin-bottom: 12px; }
  .hero-art .art-card { max-width: 300px; }
}

/* ==========================================================================
   Section headers
   ========================================================================== */
.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid #ece9f5;
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -16px rgba(17,17,20,0.18); }
.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple-bright), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px -8px rgba(88,38,208,0.6);
}
.card .icon svg { width: 24px; height: 24px; stroke: var(--white); }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

.card-dark {
  background: var(--charcoal-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 30px 26px;
}
.card-dark h3 { color: var(--white); }
.card-dark p { color: rgba(255,255,255,0.65); margin-bottom: 0; }
.card-dark .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(124,77,255,0.15);
  border: 1px solid rgba(124,77,255,0.4);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card-dark .icon svg { width: 22px; height: 22px; stroke: var(--purple-bright); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 8px; }
.step .num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(124,77,255,0.55);
  margin-bottom: 10px;
}
.step h3 { font-size: 1.05rem; color: var(--white); margin-bottom: 8px; }
.step p { font-size: 0.94rem; margin-bottom: 0; }

/* Benefits (light) */
.benefit { text-align: left; }
.benefit .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--off-white);
  border: 1px solid #ece9f5;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.benefit .icon svg { width: 22px; height: 22px; stroke: var(--purple); }

/* Split layout with mascot art */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}
.split-art { display: flex; justify-content: center; }
.split-art img { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.split.reverse { grid-template-columns: 1.15fr 0.85fr; }
.split.reverse .split-art { order: 2; }
@media (max-width: 900px) {
  .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-art { order: -1; }
}

/* Service area */
.service-area-card {
  background: linear-gradient(160deg, var(--charcoal-2), var(--charcoal));
  border: 1px solid rgba(124,77,255,0.35);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) {
  .service-area-card { grid-template-columns: 1fr; padding: 32px 24px; }
}
.pin-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pin-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,77,255,0.12);
  border: 1px solid rgba(124,77,255,0.4);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-family: var(--font-head);
}

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid #ece9f5;
  border-radius: var(--radius-sm);
  background: var(--off-white);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 22px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--purple);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; margin: 0; }

/* CTA band */
.cta-band {
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
}
@media (max-width: 640px) { .cta-band { padding: 40px 22px; } }

/* ==========================================================================
   Form
   ========================================================================== */
.form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  padding: 44px;
  max-width: 760px;
  margin: 0 auto;
}
@media (max-width: 640px) { .form-wrap { padding: 26px 20px; } }
.form-wrap h3 { color: var(--ink); }
.form-wrap .form-required-note { color: var(--ink-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.required-mark { color: var(--danger); margin-left: 2px; }
.form-required-note { font-size: 12.5px; color: var(--ink-soft); margin: -12px 0 24px; }
.field .hint { font-size: 12.5px; color: var(--ink-soft); font-weight: 400; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #e2dff0;
  background: var(--off-white);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(88,38,208,0.12);
}
.field-error {
  display: none;
  font-size: 12.5px;
  color: var(--danger);
  margin-top: 6px;
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--danger);
}
.field.invalid input:focus,
.field.invalid select:focus,
.field.invalid textarea:focus {
  box-shadow: 0 0 0 4px rgba(220,38,38,0.12);
}
.field.invalid .field-error { display: block; }
.field.invalid .checkbox-row { color: var(--danger); }
.radio-row { display: flex; gap: 22px; }
.radio-option {
  display: flex; align-items: center; gap: 8px;
  font-size: 14.5px; color: var(--ink);
  border: 1.5px solid #e2dff0;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--off-white);
}
.radio-option input { accent-color: var(--purple); }
.checkbox-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--ink-soft);
}
.checkbox-row input { margin-top: 3px; accent-color: var(--purple); }
#mower-detail { display: none; }
#mower-detail.show { display: flex; }
.form-success {
  display: none;
  text-align: center;
  padding: 40px 10px;
}
.form-success.show { display: block; }
.form-success .icon-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-bright), var(--purple));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.form-success .icon-circle svg { width: 30px; height: 30px; stroke: var(--white); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { margin-bottom: 14px; }
.footer-grid h4 {
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { font-size: 14px; color: rgba(255,255,255,0.65); }
.footer-grid a:hover { color: var(--white); }
.footer-social { display: flex; gap: 12px; margin-top: 4px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { border-color: var(--purple-bright); background: rgba(124,77,255,0.15); }
.footer-social svg { width: 17px; height: 17px; stroke: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 12.5px; flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--white); }

/* ==========================================================================
   Inner page hero (Services / About / FAQ)
   ========================================================================== */
.page-hero { padding: 64px 0 72px; text-align: center; }
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.page-hero p { max-width: 60ch; margin: 0 auto; }

/* Service detail rows */
.service-detail {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 32px 0;
  border-bottom: 1px solid #ece9f5;
}
.service-detail:last-child { border-bottom: none; }
.service-detail .icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--purple-bright), var(--purple));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px -8px rgba(88,38,208,0.6);
}
.service-detail .icon svg { width: 28px; height: 28px; stroke: var(--white); }
.service-detail h3 { font-size: 1.3rem; }
@media (max-width: 560px) {
  .service-detail { grid-template-columns: 1fr; }
}

/* Simple 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px;
}
.error-page .code {
  font-family: var(--font-head);
  font-size: 5rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 8px;
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--ink-soft); }
