/* Cole Mercer Tree Services — styles.css
   Plain CSS, no build step. Mobile-first, responsive. */

:root {
  --green-950: #0a2e1c;
  --green-900: #0e3b25;
  --green-800: #14532d;
  --green-700: #166534;
  --green-100: #dcfce7;
  --gold-500: #f59e0b;
  --gold-400: #fbbf24;
  --gold-600: #d97706;
  --ink: #1c2420;
  --muted: #5b6660;
  --paper: #ffffff;
  --cream: #f7f5ef;
  --line: #e5e0d3;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 46, 28, 0.12);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

.container { width: min(1140px, 92%); margin: 0 auto; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--green-950); }

.section { padding: 72px 0; }
.section-alt { background: var(--cream); }
.section-kicker {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  font-weight: 700; color: var(--green-700); margin-bottom: 10px;
}
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.section-sub { color: var(--muted); max-width: 640px; margin-bottom: 36px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold-500); color: #1c1206; box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35); }
.btn-primary:hover { background: var(--gold-400); }
.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { background: var(--green-100); }
.btn-outline-light { border-color: rgba(255,255,255,0.55); color: #fff; padding: 10px 18px; font-size: 0.88rem; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.12); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 46, 28, 0.96); backdrop-filter: blur(6px);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,0.35); }
.header-inner { display: flex; align-items: center; gap: 20px; padding: 12px 0; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: #fff; line-height: 1.15; }
.brand-text em { display: block; font-style: normal; font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-400); }

.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { color: #e8f0ea; text-decoration: none; font-weight: 500; font-size: 0.94rem; }
.main-nav a:hover { color: var(--gold-400); }

.header-cta { display: flex; align-items: center; gap: 10px; margin-left: 8px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 12px; margin-left: auto;
  position: relative; z-index: 160; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.nav-toggle span { width: 24px; height: 2.5px; background: #fff; border-radius: 2px; transition: 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(160deg, var(--green-900) 0%, var(--green-950) 70%);
  padding: 96px 0 110px;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg svg { width: 100%; height: 100%; }
.hero-inner { position: relative; max-width: 760px; }
.hero-kicker { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; font-weight: 700; color: var(--gold-400); margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5.2vw, 3.6rem); margin-bottom: 16px; }
.hero-sub { font-size: 1.12rem; color: #d7e4da; max-width: 620px; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-badges { list-style: none; display: flex; gap: 26px; flex-wrap: wrap; }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem; color: #eef4ef; }
.hero-badges svg { width: 20px; height: 20px; fill: var(--gold-400); }

/* ---------- Stats ---------- */
.stats { background: var(--gold-500); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 22px 0; }
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: #1c1206; }
.stat span { font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #4a3205; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  display: flex; align-items: center; justify-content: center;
}
.service-icon svg { width: 26px; height: 26px; fill: var(--gold-400); }
.service-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.why-copy > p { color: var(--muted); margin-bottom: 26px; }
.checklist { list-style: none; display: grid; gap: 18px; margin-bottom: 30px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist svg { width: 26px; height: 26px; flex: none; fill: #fff; background: var(--green-700); border-radius: 50%; padding: 5px; margin-top: 2px; }
.checklist strong { display: block; font-size: 1rem; }
.checklist span { color: var(--muted); font-size: 0.93rem; }
.why-visual { display: flex; justify-content: center; }
.why-card {
  position: relative; width: min(340px, 100%); aspect-ratio: 1;
  background: radial-gradient(circle at 50% 35%, #1d5c37 0%, var(--green-950) 75%);
  border-radius: 24px; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.why-card svg { width: 62%; height: 62%; }
.why-badge {
  position: absolute; bottom: 22px; background: var(--gold-500); color: #1c1206;
  font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 10px 18px; border-radius: 999px; text-align: center; line-height: 1.4;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* ---------- Service areas ---------- */
.area-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.area-pills li {
  background: #fff; border: 1.5px solid var(--green-700); color: var(--green-900);
  font-weight: 600; font-size: 0.95rem; padding: 9px 20px; border-radius: 999px;
}

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 4px 14px rgba(10, 46, 28, 0.06);
}
.stars { color: var(--gold-600); font-size: 1.1rem; letter-spacing: 2px; }
.review-card blockquote { font-size: 0.96rem; color: var(--ink); flex: 1; }
.review-card figcaption strong { display: block; font-size: 0.95rem; }
.review-card figcaption span { color: var(--muted); font-size: 0.85rem; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 800px; }
.faq-list { display: grid; gap: 12px; margin-top: 28px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--green-700);
  flex: none; transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Quote / contact ---------- */
.section-cta { background: linear-gradient(150deg, var(--green-900), var(--green-950)); color: #fff; }
.section-cta .section-title { color: #fff; }
.section-kicker-light { color: var(--gold-400); }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.quote-copy > p { color: #cfdccf; margin-bottom: 26px; }
.contact-list { list-style: none; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 24px; height: 24px; fill: var(--gold-400); flex: none; margin-top: 3px; }
.contact-list strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: #a9bfae; }
.contact-list a, .contact-list span { color: #fff; font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.contact-list a:hover { color: var(--gold-400); }

.quote-form-card { background: #fff; border-radius: 18px; padding: 32px 28px; color: var(--ink); box-shadow: 0 20px 50px rgba(0,0,0,0.35); }
.quote-form-card h3 { font-size: 1.35rem; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: grid; gap: 6px; margin-bottom: 14px; }
.form-field label { font-size: 0.85rem; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; font-size: 0.95rem; padding: 11px 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.15);
}
.form-field textarea { resize: vertical; }
.form-note { text-align: center; color: var(--muted); font-size: 0.82rem; margin-top: 10px; }
.form-success {
  margin-top: 14px; background: var(--green-100); color: var(--green-900);
  border-radius: 10px; padding: 14px 16px; font-size: 0.92rem;
}

/* ---------- Footer ---------- */
.site-footer { background: #071f13; color: #d7e2d9; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 56px 0 40px; }
.footer-brand p { font-size: 0.92rem; margin-top: 14px; max-width: 300px; }
.footer-col h3 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.footer-col a { display: block; color: #d7e2d9; text-decoration: none; font-size: 0.93rem; margin-bottom: 9px; }
.footer-col-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; align-content: start; }
.footer-col a:hover { color: var(--gold-400); }
.footer-hours { font-size: 0.88rem; color: #93a89a; margin-top: 10px; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 18px 0; font-size: 0.85rem; }
.footer-tag { color: var(--gold-400); font-weight: 600; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .quote-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--green-950);
    border-top: 1px solid rgba(255,255,255,0.12); padding: 8px 4% 16px;
    max-height: calc(100vh - 60px); max-height: calc(100dvh - 60px);
    overflow-y: auto; z-index: 150;
    box-shadow: 0 24px 48px rgba(0,0,0,0.45);
  }
  .main-nav.open a { padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 1rem; }
  .main-nav.open a:last-child { border-bottom: 0; }
  .hero { padding: 72px 0 84px; }
  .section { padding: 56px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .services-grid, .reviews-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .quote-form-card { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Dropdown nav ---------- */
.nav-drop { position: relative; }
.nav-drop-toggle { display: inline-flex; align-items: center; gap: 5px; }
.nav-drop-toggle .caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--gold-400); transition: transform .18s ease; font-size: 0; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px; background: #0d2118; border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px; padding: 10px; box-shadow: 0 18px 44px rgba(0,0,0,0.45); z-index: 200;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.nav-drop-menu-wide { min-width: 480px; }
.nav-drop-menu-wide .nav-drop-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav-drop-menu::before {
  content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px;
  background: transparent;
}
.nav-drop:hover > .nav-drop-menu,
.nav-drop:focus-within > .nav-drop-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
.nav-drop:hover .caret, .nav-drop:focus-within .caret { transform: rotate(180deg); }
.nav-drop-menu a {
  display: block; padding: 9px 14px; border-radius: 8px; font-size: 0.9rem;
  color: #e8f0ea; text-decoration: none; white-space: nowrap;
}
.nav-drop-menu a:hover { background: rgba(255,255,255,0.09); color: var(--gold-400); }

/* ---------- Breadcrumb / content helpers ---------- */
.breadcrumb { padding: 18px 0 0; font-size: 0.85rem; color: var(--muted); }
.breadcrumb a { color: var(--green-700); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.bc-sep { margin: 0 8px; color: var(--line); }
.content-narrow { max-width: 820px; }
.content-narrow p { margin-bottom: 18px; color: #333b37; }
.content-narrow .section-title { margin-top: 8px; }
.hero-slim { padding: 52px 0 60px; }
.hero-slim h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }

/* ---------- Steps / jobs / cards ---------- */
.steps { display: grid; gap: 18px; margin-top: 26px; }
.step { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step-num {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--green-800); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-head);
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.94rem; margin: 0; }
.job-list { list-style: none; display: grid; gap: 10px; margin: 18px 0 8px; }
.job-list li {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold-500);
  border-radius: 10px; padding: 12px 18px; font-size: 0.95rem;
}
.card-link { display: inline-block; margin-top: 12px; color: var(--green-800); font-weight: 700; font-size: 0.92rem; text-decoration: none; white-space: nowrap; }
.card-link:hover { color: var(--gold-600); text-decoration: underline; }
.area-pills li a { color: inherit; text-decoration: none; }
.area-pills li a:hover { color: var(--gold-600); }
.area-pill-link {
  display: inline-block; background: #fff; border: 1px solid var(--line);
  color: var(--green-900); font-weight: 600; font-size: 0.88rem;
  padding: 7px 16px; border-radius: 999px; margin: 0 8px 10px 0; text-decoration: none;
}
.area-pill-link:hover { background: var(--green-100); border-color: var(--green-700); }

/* ---------- CTA band / footer extras ---------- */
.cta-band { text-align: center; max-width: 720px; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 12px; }
.cta-band p { color: #cfdccf; margin-bottom: 28px; }
.cta-band-btns { justify-content: center; }
.footer-addr { font-size: 0.9rem; color: #d7e2d9; margin: 4px 0 8px; line-height: 1.6; }

@media (max-width: 760px) {
  .nav-drop-menu, .nav-drop-menu-wide {
    position: static; transform: none; min-width: 0; opacity: 1; visibility: visible;
    pointer-events: auto; transition: none;
    background: transparent; border: 0; box-shadow: none; padding: 0 0 0 14px;
  }
  .nav-drop-menu-wide .nav-drop-cols { grid-template-columns: 1fr; }
  .main-nav:not(.open) .nav-drop-menu { display: none; }
  .main-nav.open .nav-drop-toggle { padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; width: 100%; }
  .nav-drop-menu a { padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.92rem; white-space: normal; }
}

/* ---------- Audit fixes ---------- */
section[id], div[id] { scroll-margin-top: 88px; }

/* ---------- Town spotlight grid ---------- */
.town-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.town-grid .town-main p { max-width: 62ch; }
.town-facts { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: sticky; top: 100px; }
.town-facts h3 { font-size: 1.05rem; margin-bottom: 14px; color: var(--green-900); }
.town-facts ul { list-style: none; margin: 0 0 18px; padding: 0; }
.town-facts li { font-size: 0.9rem; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--line); }
.town-facts li:last-child { border-bottom: 0; }
.town-facts li strong { color: var(--ink); }
@media (max-width: 860px) { .town-grid { grid-template-columns: 1fr; } .town-facts { position: static; } }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }

/* ---------- Mobile sticky call bar ---------- */
.mobile-callbar { display: none; }
@media (max-width: 760px) {
  .mobile-callbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
    background: rgba(10, 46, 28, 0.97); backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,0.14);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    gap: 10px; align-items: center; justify-content: center;
  }
  .mobile-callbar .btn { flex: 1; justify-content: center; padding: 13px 10px; font-size: 0.95rem; }
  body { padding-bottom: 68px; }
}
