/* ==========================================================================
   Tree Removal Boise — design system
   Palette grounded in Idaho conifer/canopy + sawdust, not generic AI defaults.
   ========================================================================== */

:root {
  /* Core palette */
  --canopy-950: #0f2318;   /* near-black conifer shadow */
  --canopy-900: #15301f;
  --canopy-800: #1d3f28;
  --canopy-700: #275233;   /* primary brand green */
  --canopy-600: #34693f;
  --canopy-500: #4a7f50;
  --canopy-100: #e4ebe1;
  --canopy-50:  #f3f6f0;

  --bark-900: #3a2a1f;
  --bark-700: #5b4433;

  --sawdust-500: #c98a3d;  /* warm amber accent — sparingly */
  --sawdust-600: #b0742c;
  --sawdust-100: #f7e9d3;

  --paper: #f6f4ee;        /* warm off-white, not the cliché cream */
  --paper-dim: #edeadf;
  --ink: #1b211b;
  --ink-soft: #445043;
  --line: #d8d6c8;

  --white: #ffffff;
  --danger: #a3341f;
  --focus: #ffb648;

  /* Type */
  --font-display: "Fjalla One", "Archivo Narrow", Arial Narrow, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --wrap: 1160px;
  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(15, 35, 24, 0.08), 0 8px 24px -12px rgba(15, 35, 24, 0.25);
}

/* ---------------------------------------------------------------------- */
/* Reset                                                                   */
/* ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--canopy-700); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--sawdust-600); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.12;
  color: var(--canopy-950);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1.1em; max-width: 68ch; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: 0.45em; }
strong { color: var(--canopy-950); }
hr { border: none; border-top: 1px solid var(--line); margin: 2.5em 0; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.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: 8px; top: -60px; background: var(--canopy-950); color: #fff;
  padding: 10px 16px; border-radius: 4px; z-index: 200; transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

/* ---------------------------------------------------------------------- */
/* Top utility bar + header                                                */
/* ---------------------------------------------------------------------- */
.topbar {
  background: var(--canopy-950);
  color: var(--canopy-100);
  font-size: 0.86rem;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: var(--canopy-100); }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.tb-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar .tb-phone { font-weight: 700; color: var(--sawdust-500); display: inline-flex; align-items: center; gap: 6px; }
.topbar .tb-phone:hover { color: var(--sawdust-100); }

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand svg { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-size: 1.28rem; color: var(--canopy-950); white-space: nowrap; }
.brand-sub { font-size: 0.72rem; letter-spacing: 0.04em; color: var(--ink-soft); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav a.nav-link {
  display: block; padding: 10px 12px; color: var(--ink); text-decoration: none;
  font-size: 0.97rem; border-radius: var(--radius); white-space: nowrap;
}
.main-nav a.nav-link:hover, .main-nav a.nav-link:focus-visible { background: var(--canopy-100); color: var(--canopy-900); }
.has-drop > .nav-link::after { content: ""; display: inline-block; margin-left: 6px; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.dropdown {
  position: absolute; top: 100%; left: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); list-style: none; margin: 6px 0 0; padding: 8px;
  min-width: 280px; display: none; max-height: 70vh; overflow-y: auto; z-index: 50;
}
.has-drop:hover > .dropdown, .has-drop:focus-within > .dropdown { display: block; }
.dropdown li a { padding: 8px 10px; font-size: 0.93rem; border-radius: 5px; }
.dropdown li a:hover { background: var(--canopy-50); }

.header-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 11px 20px; border-radius: 999px; font-weight: 700; text-decoration: none;
  font-size: 0.95rem; border: 2px solid transparent; cursor: pointer; line-height: 1.2;
}
.btn-primary { background: var(--sawdust-500); color: var(--canopy-950); }
.btn-primary:hover { background: var(--sawdust-600); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--canopy-700); color: var(--canopy-800); }
.btn-outline:hover { background: var(--canopy-700); color: var(--white); }
.btn-ghost { background: var(--canopy-950); color: var(--white); }
.btn-ghost:hover { background: var(--canopy-800); color: var(--white); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn svg { flex: none; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 11px; cursor: pointer;
}
.nav-toggle svg { display: block; }

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--canopy-950);
  color: var(--paper);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0 64px;
  position: relative;
  z-index: 2;
}
.hero .eyebrow-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18); color: var(--sawdust-100); border-radius: 999px;
  padding: 6px 14px; font-size: 0.85rem; margin-bottom: 18px;
}
.hero h1 { color: var(--white); margin-bottom: 0.4em; }
.hero .lede { color: var(--canopy-100); font-size: 1.12rem; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; max-width: 520px; }
.hero-points li { display: flex; gap: 9px; align-items: flex-start; color: var(--canopy-100); font-size: 0.95rem; margin: 0; }
.hero-points svg { flex: none; margin-top: 3px; color: var(--sawdust-500); }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }
.hero-canopy-line {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 64px; z-index: 1;
}

/* ---------------------------------------------------------------------- */
/* Sections                                                                */
/* ---------------------------------------------------------------------- */
section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--canopy-50); }
.section-dark { background: var(--canopy-950); color: var(--canopy-100); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 720px; margin: 0 0 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { color: var(--sawdust-600); font-weight: 700; font-size: 0.86rem; letter-spacing: 0.02em; margin-bottom: 8px; display: block; }
.section-dark .kicker { color: var(--sawdust-500); }

/* Trust strip */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.trust-strip .wrap { display: flex; flex-wrap: wrap; gap: 26px 34px; justify-content: space-between; padding: 22px 20px; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 0.95rem; font-weight: 600; }
.trust-item svg { color: var(--canopy-700); flex: none; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink);
  transition: border-color .15s ease, transform .15s ease;
}
.service-card:hover { border-color: var(--canopy-600); transform: translateY(-2px); color: var(--ink); }
.service-card .icon-wrap {
  width: 48px; height: 48px; border-radius: 12px; background: var(--canopy-100); display: flex;
  align-items: center; justify-content: center; color: var(--canopy-800);
}
.service-card h3 { margin-bottom: 2px; font-size: 1.2rem; }
.service-card p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 4px; }
.card-link { font-weight: 700; font-size: 0.92rem; color: var(--canopy-700); margin-top: auto; }

.zip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.zip-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 22px; text-decoration: none; color: var(--ink); display: flex; gap: 16px; align-items: flex-start;
}
.zip-card:hover { border-color: var(--sawdust-500); color: var(--ink); }
.zip-badge {
  flex: none; width: 58px; height: 58px; border-radius: 10px; background: var(--canopy-950); color: var(--sawdust-100);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 0.98rem;
  line-height: 1.1; text-align: center;
}
.zip-card h3 { font-size: 1.05rem; margin-bottom: 3px; }
.zip-card p { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }

/* Process steps (real sequence -> numbering justified) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 6px; }
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--sawdust-500); color: var(--canopy-950);
  font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 14px;
}
.steps h3 { font-size: 1.08rem; margin-bottom: 4px; }
.steps p { font-size: 0.93rem; color: var(--ink-soft); }

/* Two column content */
.two-col { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; }
.content-block :is(h2, h3):not(:first-child) { margin-top: 1.6em; }
.content-block ul, .content-block ol { margin-top: 0.6em; }

/* Sidebar */
.sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.side-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.side-card ul { list-style: none; padding: 0; margin: 0; }
.side-card ul li { margin-bottom: 9px; }
.side-card ul a { text-decoration: none; font-size: 0.94rem; display: block; padding: 4px 0; }
.side-card.cta-card { background: var(--canopy-950); color: var(--canopy-100); border-color: var(--canopy-950); }
.side-card.cta-card h3 { color: var(--white); }
.side-card.cta-card .btn { width: 100%; margin-top: 10px; }
.tel-strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--sawdust-500); display: block; text-decoration: none; margin: 6px 0; }

/* FAQ accordion */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 18px 4px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1.02rem;
  font-weight: 700; color: var(--canopy-950); font-family: var(--font-body);
}
.faq-q .plus { flex: none; width: 22px; height: 22px; position: relative; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--canopy-800); border-radius: 2px; }
.faq-q .plus::before { top: 50%; left: 0; width: 100%; height: 2.5px; transform: translateY(-50%); }
.faq-q .plus::after { left: 50%; top: 0; height: 100%; width: 2.5px; transform: translateX(-50%); transition: transform .18s ease; }
.faq-item[data-open="true"] .plus::after { transform: translateX(-50%) rotate(90deg) scale(0); }
.faq-a { padding: 0 4px 20px; color: var(--ink-soft); display: none; }
.faq-item[data-open="true"] .faq-a { display: block; }
.faq-a p:last-child { margin-bottom: 0; }

/* Zip detail chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.1em; }
.chip { background: var(--canopy-100); color: var(--canopy-900); border-radius: 999px; padding: 6px 14px; font-size: 0.87rem; font-weight: 600; }

/* Table */
.table-wrap { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 480px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
thead th { background: var(--canopy-50); color: var(--canopy-950); font-family: var(--font-display); font-weight: 400; font-size: 0.98rem; }
tbody tr:last-child td { border-bottom: none; }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.85rem; color: var(--ink-soft); padding: 14px 0; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--canopy-700); text-decoration: underline; }
.breadcrumbs .sep { margin: 0 6px; }

/* Page hero (interior pages) */
.page-hero { background: var(--canopy-950); color: var(--white); padding: 44px 0 52px; }
.page-hero h1, .page-hero h2, .page-hero h3 { color: var(--white); }
.page-hero .kicker { color: var(--sawdust-500); }
.page-hero p.lede { color: var(--canopy-100); font-size: 1.08rem; max-width: 70ch; }
.page-hero .hero-actions { margin-top: 22px; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--canopy-800), var(--canopy-950));
  color: var(--white); border-radius: var(--radius-lg); padding: 44px; text-align: center;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: var(--canopy-100); margin: 0 auto 22px; }
.cta-banner .hero-actions { justify-content: center; }

/* Related links list */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-grid a {
  display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.96rem;
}
.related-grid a:hover { border-color: var(--canopy-600); color: var(--canopy-800); }

/* Footer */
.site-footer { background: var(--canopy-950); color: var(--canopy-100); padding: 56px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-grid h4 { color: var(--white); font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; break-inside: avoid; }
.footer-grid a { color: var(--canopy-100); text-decoration: none; font-size: 0.93rem; }
.footer-grid a:hover { color: var(--sawdust-500); }
.footer-brand p { color: var(--canopy-100); font-size: 0.93rem; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.footer-services-list { column-count: 2; column-gap: 24px; }
.footer-services-list li { margin-bottom: 9px; }
.footer-areas { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; margin-bottom: 24px; }
.footer-areas h4 { color: var(--white); font-family: var(--font-display); font-weight: 400; font-size: 0.98rem; margin-bottom: 10px; }
.footer-zip-line { margin: 0; font-size: 0.9rem; line-height: 2; color: var(--canopy-100); }
.footer-zip-line a { color: var(--canopy-100); text-decoration: none; }
.footer-zip-line a:hover { color: var(--sawdust-500); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: var(--canopy-100);
}
.footer-bottom a { color: var(--canopy-100); }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Sticky mobile call bar */
.mobile-call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none;
  background: var(--sawdust-500); box-shadow: 0 -4px 16px rgba(0,0,0,0.18);
}
.mobile-call-bar a {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px;
  color: var(--canopy-950); font-weight: 800; text-decoration: none; font-size: 1.02rem;
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.max-prose { max-width: 74ch; }
.badge-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.badge-list li { display: flex; gap: 8px; align-items: center; font-size: 0.93rem; color: var(--ink-soft); }
.badge-list svg { color: var(--canopy-700); flex: none; }
.section-dark .badge-list li { color: var(--canopy-100); }
.section-dark .badge-list svg { color: var(--sawdust-500); }

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .header-cta .btn-outline { display: none; }
  .main-nav a.nav-link { padding: 10px 9px; font-size: 0.93rem; }
  .main-nav ul { gap: 0; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-art { order: -1; max-width: 360px; margin: 0 auto; }
  .two-col { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .zip-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-services-list { column-count: 2; }
}
@media (max-width: 1040px) {
  .main-nav, .header-cta .btn-outline { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta { gap: 8px; }
  body { font-size: 16.5px; padding-bottom: 62px; }
  .mobile-call-bar { display: block; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .topbar .wrap { justify-content: center; text-align: center; }
  .hero-points { grid-template-columns: 1fr; }
  .cta-banner { padding: 32px 22px; }
  section { padding: 44px 0; }
}

/* Off-canvas mobile nav */
.mobile-nav {
  position: fixed; inset: 0; background: var(--canopy-950); color: var(--white); z-index: 200;
  padding: 20px; overflow-y: auto; display: none;
}
.mobile-nav.open { display: block; }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mobile-nav-close { background: none; border: 1px solid rgba(255,255,255,0.25); border-radius: 8px; color: var(--white); padding: 8px 10px; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > .wrap-m > ul > li { border-bottom: 1px solid rgba(255,255,255,0.12); }
.mobile-nav a { color: var(--white); text-decoration: none; display: block; padding: 14px 4px; font-size: 1.05rem; }
.mobile-nav details summary { color: var(--white); padding: 14px 4px; cursor: pointer; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; }
.mobile-nav details summary::-webkit-details-marker { display: none; }
.mobile-nav details ul { padding-left: 12px; }
.mobile-nav details ul a { font-size: 0.96rem; color: var(--canopy-100); padding: 10px 4px; }
.mobile-nav .btn { width: 100%; margin-top: 18px; }

/* Print */
@media print {
  .site-header, .site-footer, .mobile-call-bar, .topbar, .hero-actions, .btn { display: none !important; }
}
