/* Boulder Wildlife Solutions — single stylesheet */
:root {
  --accent: #15803d;
  --accent-dark: #14532d;
  --accent-hover: #166534;
  --text: #171717;
  --text-soft: #404040;
  --text-mute: #737373;
  --bg: #fafafa;
  --bg-elev: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --shadow-sm: 0 1px 2px rgba(20, 83, 45, 0.04), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(20, 83, 45, 0.06), 0 2px 6px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --maxw: 1200px;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --pad-y: clamp(2.5rem, 6vw, 5rem);
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { margin: 0 0 1rem; max-width: 65ch; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
section { padding: var(--pad-y) 0; }
.section-tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  color: var(--text);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
}
.nav { display: none; align-items: center; gap: 1.5rem; }
.nav a {
  color: var(--text-soft);
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a.active { color: var(--accent); }
.header-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.12s ease, background 0.12s ease;
}
.phone-link:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
}
.phone-link:active { transform: scale(0.98); }
.nav-toggle {
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  padding: 1.5rem var(--pad-x);
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.mobile-nav a {
  display: block;
  padding: 0.875rem 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 0;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
  text-align: center;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); text-decoration: none; box-shadow: var(--shadow-md); }
.btn:active { transform: scale(0.98); }
.btn-lg { padding: 1rem 1.75rem; font-size: 1.0625rem; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: #fff; border-color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem);
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.hero-copy h1 { margin-bottom: 1rem; }
.hero-copy .lede {
  font-size: 1.125rem;
  color: var(--text-soft);
  margin-bottom: 1.75rem;
  max-width: 32ch;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-mute);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-trust svg { width: 16px; height: 16px; color: var(--accent); }

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #e7eee8;
  box-shadow: var(--shadow-md);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #166534 0%, #15803d 50%, #4ade80 100%);
  color: #fff;
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 60fr 40fr; }
}

/* ---------- Lead form ---------- */
.lead-form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-md);
}
.trust-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.3rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  margin-bottom: 0.875rem;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 3px rgba(20, 83, 45, 0.2);
}
.lead-form-wrap h3 { margin-bottom: 0.5rem; font-size: 1.25rem; }
.lead-form-wrap p.helper { color: var(--text-mute); font-size: 0.9375rem; margin-bottom: 1.25rem; }
.lead-form { display: grid; gap: 0.75rem; }
.field { display: grid; gap: 0.35rem; }
.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}
.field textarea { min-height: 88px; resize: vertical; }
.form-success {
  background: #ecfdf5;
  color: var(--accent-dark);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-weight: 500;
  text-align: center;
}

/* ---------- Sections / cards ---------- */
.section-head {
  max-width: 720px;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.section-head p { color: var(--text-soft); font-size: 1.0625rem; }

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .card-grid { grid-template-columns: 1fr 1fr; } }

.card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  color: var(--text-soft);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  text-decoration: none;
}
.card h3 { color: var(--text); margin-bottom: 0.5rem; }
.card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #ecfdf5;
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 1rem;
}
.card-icon svg { width: 20px; height: 20px; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

/* Asymmetric two-column layout for content + sidebar */
.layout-split {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .layout-split { grid-template-columns: minmax(0, 1fr) 360px; }
}
.layout-split .sidebar { position: sticky; top: 88px; align-self: start; }

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 1.25rem var(--pad-x);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
  justify-content: center;
  align-items: center;
}
.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 500;
}
.trust-strip svg { width: 18px; height: 18px; color: var(--accent); }

/* Process steps */
.steps { display: grid; gap: 1rem; counter-reset: step; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem 4rem;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.5rem;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-weight: 600;
}
.step h3 { margin-bottom: 0.35rem; font-size: 1.0625rem; }

/* FAQ */
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 0.625rem;
}
.faq summary {
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  padding-right: 1.5rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 400;
  transition: transform 0.18s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details > p { margin: 0.75rem 0 0; }

/* Inline CTA banner */
.cta-banner {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255, 255, 255, 0.92); margin: 0 auto 1.5rem; }
.cta-banner .btn {
  background: #fff;
  color: var(--accent-dark);
}
.cta-banner .btn:hover { background: #ecfdf5; }
.cta-banner .phone-large {
  display: inline-block;
  margin-left: 0.5rem;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: underline;
}

/* Area list inline */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}
.area-list a {
  display: inline-block;
  padding: 0.4rem 0.875rem;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 500;
}
.area-list a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Section image */
.section-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #111827;
  color: #d1d5db;
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.site-footer .container { max-width: var(--maxw); }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 {
  color: #fff;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #d1d5db; font-size: 0.9375rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 0.75rem; }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid #374151;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}
.breadcrumbs {
  font-size: 0.875rem;
  color: var(--text-mute);
  margin-bottom: 1rem;
}
.breadcrumbs a { color: var(--text-mute); }
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- Misc utility ---------- */
.muted { color: var(--text-mute); }
.lead { font-size: 1.0625rem; }
@media (max-width: 600px) {
  .header-cta .phone-link span.cta-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
