/* ============================================================
   McLean County Tree Service — shared stylesheet
   Static site. No frameworks. System font stack. Mobile-first.
   Palette: deep forest green + warm amber CTA + earth neutrals.
   ============================================================ */

:root {
  --green-950: #0d2b1f;
  --green-900: #123a29;
  --green-800: #16482f;
  --green-700: #1d5c40;
  --green-600: #257a4e;
  --green-100: #dcebe2;
  --green-50: #f0f6f2;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #e8930c;
  --ink: #1e2a24;
  --muted: #5c6a60;
  --line: #dfe7e1;
  --bg: #ffffff;
  --bg-alt: #f4f8f5;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(13, 43, 31, 0.10);
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  line-height: 1.22;
  color: var(--green-950);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 2.2em; }
h3 { font-size: 1.25rem; margin-top: 1.6em; }
p { margin: 0 0 1.1em; }
.lead { font-size: 1.15rem; color: var(--muted); }

a { color: var(--green-700); }
a:hover { color: var(--green-900); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--amber-600);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--amber-700); color: #fff; transform: translateY(-1px); }
.btn-green { background: var(--green-700); box-shadow: 0 4px 14px rgba(29, 92, 64, 0.3); }
.btn-green:hover { background: var(--green-900); color: #fff; }
.btn-outline {
  background: transparent; color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7); box-shadow: none;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.12); color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 1.6em 0; }
.phone-link { font-weight: 700; white-space: nowrap; }

/* ---------- Topbar + header ---------- */
.topbar { background: var(--green-950); color: #cfe3d6; font-size: 0.85rem; }
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding-top: 8px; padding-bottom: 8px;
}
.topbar-phone { color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem; }
.topbar-phone:hover { color: var(--amber-500); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(13, 43, 31, 0.06);
}
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-text { font-size: 1.12rem; color: var(--green-950); line-height: 1.15; }
.brand-text strong { display: block; font-size: 1.28rem; }

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

.primary-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.primary-nav a {
  display: block; padding: 10px 12px; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.primary-nav a:hover { background: var(--green-50); color: var(--green-800); }
.primary-nav a[aria-current="page"] { color: var(--green-800); background: var(--green-50); }
.nav-cta {
  background: var(--amber-600) !important; color: #fff !important;
  padding: 10px 18px !important; margin-left: 6px;
}
.nav-cta:hover { background: var(--amber-700) !important; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 420px at 85% -60px, rgba(37, 122, 78, 0.55), transparent 60%),
    linear-gradient(160deg, var(--green-950) 0%, var(--green-800) 70%, #1b4a34 100%);
  color: #eef5f0;
  padding: 72px 0 64px;
}
.hero h1 { color: #fff; margin-bottom: 0.5em; }
.hero p.lead { color: #cfe3d6; max-width: 640px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 1.4em 0 0; padding: 0; list-style: none; }
.hero-badges li {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff; font-size: 0.88rem; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 7px;
}
.hero-badges svg { width: 15px; height: 15px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--muted); padding: 16px 0 0; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: #9aa79f; }
.breadcrumb a { color: var(--green-700); text-decoration: none; }
.page-intro { padding: 28px 0 8px; }
.page-intro h1 { margin-bottom: 0.4em; }

/* ---------- Content layout ---------- */
.prose { max-width: 780px; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--green-600); }
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.sidebar {
  background: var(--green-50); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; font-size: 0.95rem;
  position: sticky; top: 140px;
}
.sidebar h3 { margin-top: 0; font-size: 1.1rem; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { margin-bottom: 0.55em; }
.sidebar a { text-decoration: none; }
.call-card {
  background: var(--green-900); color: #fff; border-radius: var(--radius);
  padding: 26px; text-align: center; margin-top: 22px;
}
.call-card p { color: #cfe3d6; font-size: 0.92rem; margin-bottom: 0.8em; }
.call-card .btn { width: 100%; }

/* ---------- Cards & grids ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 2em 0; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; flex: none;
  background: var(--green-100); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin: 0 0 0.5em; font-size: 1.18rem; }
.card p { color: var(--muted); font-size: 0.96rem; flex: 1; }
.card a.card-link { font-weight: 700; text-decoration: none; margin-top: 0.6em; }
.card a.card-link::after { content: " →"; }

/* ---------- Steps (how it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 2em 0; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--green-700); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.step h3 { margin-top: 0; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0 0 1.4em; padding: 0; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 0.7em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px;
  background: var(--green-100); border-radius: 50%;
  -webkit-mask: none;
}
.checklist li > svg, .checklist svg.tick {
  position: absolute; left: 0; top: 4px; width: 20px; height: 20px;
}

/* ---------- CTA band / emergency strip ---------- */
.cta-band {
  background: linear-gradient(150deg, var(--amber-600), var(--amber-700));
  color: #fff; border-radius: var(--radius); padding: 40px 36px;
  margin: 3em 0; box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #fff8ec; }
.cta-band .btn { background: #fff; color: var(--amber-700); box-shadow: none; }
.cta-band .btn:hover { background: var(--green-950); color: #fff; }
.emergency-band {
  background: linear-gradient(150deg, #7f1d1d, #991b1b);
  color: #fff; border-radius: var(--radius); padding: 40px 36px; margin: 3em 0;
}
.emergency-band h2 { color: #fff; margin-top: 0; }
.emergency-band p { color: #fecaca; }

/* ---------- Tables ---------- */
.cost-table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 0.97rem; }
.cost-table th, .cost-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.cost-table th { background: var(--green-900); color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }
.cost-table tr:nth-child(even) td { background: var(--green-50); }
.cost-table td:last-child, .cost-table th:last-child { text-align: right; }
.table-note { font-size: 0.85rem; color: var(--muted); }

/* ---------- FAQ accordions ---------- */
.faq-list { margin: 1.8em 0; }
.faq-list details {
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; background: #fff; overflow: hidden;
}
.faq-list summary {
  cursor: pointer; font-weight: 700; color: var(--green-950);
  padding: 18px 22px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-size: 1.5rem; line-height: 1; color: var(--green-600); flex: none;
  transition: transform 0.15s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { background: var(--green-50); }
.faq-answer { padding: 0 22px 20px; color: var(--muted); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Town chips / service area list ---------- */
.town-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 1.8em 0; }
.town-chip {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 14px 16px; text-decoration: none;
  font-weight: 700; color: var(--green-900); font-size: 0.98rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.town-chip small { display: block; font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.town-chip:hover { border-color: var(--green-600); transform: translateY(-2px); color: var(--green-800); }

/* ---------- Forms ---------- */
.contact-form { max-width: 640px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font-size: 1rem; font-family: inherit;
  border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--green-600); outline-offset: 1px; border-color: var(--green-600);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: 0.85rem; color: var(--muted); margin-top: 5px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: #b9cfc1; margin-top: 72px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px;
  padding: 56px 20px 40px;
}
.footer-brand p { font-size: 0.93rem; }
.footer-brand .brand-text { color: #fff; }
.site-footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5em; }
.site-footer a { color: #b9cfc1; text-decoration: none; font-size: 0.93rem; }
.site-footer a:hover { color: #fff; }
.footer-phone { font-size: 1.25rem !important; font-weight: 800; color: #fff !important; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 20px; font-size: 0.85rem; color: #8fa89a;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---------- Sticky mobile call bar ---------- */
.sticky-call {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--green-950); padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.25);
}
.sticky-call a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--amber-600); color: #fff; font-weight: 800; font-size: 1.05rem;
  text-decoration: none; border-radius: 8px; padding: 13px;
}
.sticky-call svg { width: 20px; height: 20px; }

/* ---------- Misc ---------- */
.callout {
  border-left: 4px solid var(--amber-600); background: #fffaf0;
  padding: 18px 22px; border-radius: 0 8px 8px 0; margin: 1.8em 0;
}
.callout p:last-child { margin-bottom: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 1.8em 0; }
.kicker {
  display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green-700); margin-bottom: 0.6em;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .card-grid, .steps { grid-template-columns: 1fr 1fr; }
  .town-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .primary-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(13, 43, 31, 0.12); padding: 10px 20px 18px;
  }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; }
  .primary-nav a { padding: 12px 6px; border-bottom: 1px solid var(--green-50); }
  .nav-cta { margin: 10px 0 0; text-align: center; }
  .topbar-text { display: none; }
  .topbar-inner { justify-content: center; }
  .card-grid, .steps, .two-col { grid-template-columns: 1fr; }
  .town-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 44px 0; }
  .sticky-call { display: block; }
  body { padding-bottom: 76px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
