/* Tree-service master template — deep green / charcoal / warm neutral, mobile-first.
   Re-skin: change the brand variables below only. */
:root {
  --green-900: #12301d;   /* deepest green: hero, estimate */
  --green-800: #1a4228;
  --green-700: #1f4d2e;   /* primary brand green */
  --green-500: #2f7a46;
  --leaf: #9fd36b;        /* light accent on dark backgrounds */
  --charcoal: #22262a;    /* text + contrast section */
  --charcoal-2: #2e3338;
  --cream: #f6f3ec;       /* warm off-white sections */
  --sand: #ebe5d8;
  --white: #fff;
  --muted: #5a5f63;
  --line: #d9d2c3;
  --cta: #f2a516;         /* safety amber call-to-action */
  --cta-hover: #ffb92e;
  --cta-text: #1b1d1f;
  --alert: #b3361f;
  --wrap: 1120px;
  --radius: 10px;
  --bar-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bar-h); /* room for sticky call bar */
}

a { color: var(--green-700); }
a:hover { color: var(--green-500); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--cta);
  outline-offset: 3px;
}

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 8vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 5.5vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--cta); color: var(--cta-text);
  padding: .75rem 1rem; font-weight: 700; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 52px; padding: .85rem 1.5rem;
  border: 2px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 800; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cta); color: var(--cta-text); }
.btn-primary:hover { background: var(--cta-hover); color: var(--cta-text); }
.btn-secondary { background: transparent; color: var(--white); border-color: var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--green-900); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-ghost-light:hover { background: var(--white); color: var(--charcoal); }
.btn-call { background: var(--cta); color: var(--cta-text); }
.btn-call:hover { background: var(--cta-hover); color: var(--cta-text); }
.btn-small { min-height: 44px; padding: .5rem .85rem; font-size: .95rem; white-space: nowrap; }
.btn-block { width: 100%; }

.cta-row { display: flex; flex-direction: column; gap: .75rem; margin: 1.75rem 0 1.25rem; }
.cta-row--center { margin-top: 2rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--green-900);
  border-bottom: 3px solid var(--green-700);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 64px; }
.brand {
  color: var(--white); text-decoration: none; font-weight: 800;
  font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.15;
  min-width: 0;
}
.brand:hover { color: var(--white); }
.brand-mark { color: var(--leaf); }
.header-nav { display: none; }
.btn-call-label { display: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 55%, var(--charcoal) 100%);
  color: var(--white);
  padding: 3.25rem 0 3.5rem;
}
.eyebrow {
  display: inline-block; margin-bottom: 1rem;
  color: var(--leaf); font-weight: 800; font-size: .85rem;
  letter-spacing: .08em; text-transform: uppercase;
}
.accent { color: var(--leaf); }
.lead { font-size: 1.15rem; max-width: 40em; color: #e3ebe4; }
.hero-proof { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; color: #e3ebe4; }
.hero-proof a { color: var(--white); }
.stars { color: var(--cta); letter-spacing: .1em; font-size: 1.15rem; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--charcoal); color: var(--white); }
.trust-list {
  list-style: none; margin: 0 auto; padding-top: 1rem; padding-bottom: 1rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem;
  font-weight: 700; font-size: .95rem;
}
.trust-list li { display: flex; align-items: center; gap: .5rem; }
.trust-icon {
  flex: none; display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-700); color: var(--leaf); font-size: .85rem;
}

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.kicker {
  margin-bottom: .5rem; color: var(--green-500);
  font-weight: 800; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
}
.kicker--light { color: var(--leaf); }
.section-intro { max-width: 44em; color: var(--muted); font-size: 1.1rem; }

/* Services */
.service-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
.service-card {
  background: var(--white); border: 1px solid var(--line);
  border-top: 5px solid var(--green-700); border-radius: var(--radius);
  padding: 1.5rem;
}
.service-card h3 { color: var(--green-900); }
.service-card p { margin: 0; color: var(--muted); }
.service-card--urgent { border-top-color: var(--alert); background: #fff8f1; }
.service-card--urgent h3 { color: var(--alert); }
.service-card--urgent a { color: var(--alert); }

/* Why-us contrast */
.contrast { background: var(--charcoal); color: var(--white); }
.accent-light { color: var(--leaf); }
.vs-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.vs-list li {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid #3b4147;
}
.vs-list p { margin: 0; padding: 1rem 1.25rem; }
.them { background: var(--charcoal-2); color: #c4c8cc; }
.us { background: var(--green-700); color: var(--white); font-weight: 700; }
.tag {
  display: inline-block; margin-right: .5rem; padding: .1rem .5rem;
  border-radius: 4px; font-size: .72rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; vertical-align: .1em;
}
.them .tag { background: #454b51; color: #e1e4e6; }
.us .tag { background: var(--leaf); color: var(--green-900); }

/* Reviews */
.reviews { background: var(--sand); }
.review-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
.review-card {
  position: relative; margin: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
}
.sample-label {
  position: absolute; top: .75rem; right: .75rem;
  background: var(--sand); color: var(--muted);
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: .15rem .45rem; border-radius: 4px; border: 1px dashed #b7ad98;
}
.review-stars { color: #c98400; letter-spacing: .1em; font-size: 1.1rem; margin-bottom: .5rem; }
.review-card blockquote { margin: 0 0 1rem; }
.review-card blockquote p { margin: 0; }
.review-card figcaption { color: var(--muted); font-weight: 700; font-size: .95rem; }

/* Service area */
.service-area { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.area-inner { display: grid; gap: 1rem; }
.area-list {
  margin: 0; padding: 1.25rem 1.5rem;
  background: var(--white); border-left: 6px solid var(--green-700); border-radius: var(--radius);
  font-size: 1.2rem; font-weight: 700; color: var(--green-900);
}

/* Estimate */
.estimate { background: var(--green-900); color: var(--white); }
.estimate-inner { display: grid; gap: 2rem; }
.estimate-copy p { color: #e3ebe4; font-size: 1.1rem; }
.estimate-copy a { color: var(--cta); font-weight: 800; }
.estimate-emergency {
  padding: 1rem 1.25rem; border-radius: var(--radius);
  background: rgba(0,0,0,.25); border-left: 5px solid var(--cta);
}
.estimate-form {
  background: var(--white); color: var(--charcoal);
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: .35rem; font-weight: 800; }
.hint { font-weight: 500; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 52px; padding: .75rem .9rem;
  font: inherit; color: var(--charcoal); background: var(--white);
  border: 2px solid #bdb6a8; border-radius: 8px;
}
.field input:focus, .field select:focus { border-color: var(--green-700); }
.hp { position: absolute; left: -9999px; }
.microcopy { margin: .9rem 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #c9cdd1; padding: 2.75rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: var(--white); }
.site-footer p { margin: 0 0 .4rem; }
.footer-grid { display: grid; gap: 1.75rem; }
.footer-brand { color: var(--white); font-weight: 800; font-size: 1.2rem; }
.footer-head { color: var(--leaf); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.copyright { margin-top: 2rem !important; padding-top: 1.25rem; border-top: 1px solid #3b4147; font-size: .85rem; }

/* ---------- Sticky mobile call bar ---------- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr;
  height: var(--bar-h);
  box-shadow: 0 -4px 16px rgba(0,0,0,.25);
}
.call-bar a {
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem; text-decoration: none;
}
.call-bar-call { background: var(--cta); color: var(--cta-text); }
.call-bar-call:hover { background: var(--cta-hover); color: var(--cta-text); }
.call-bar-estimate { background: var(--green-700); color: var(--white); }
.call-bar-estimate:hover { background: var(--green-500); color: var(--white); }

/* ---------- Small screens ---------- */
@media (max-width: 359px) {
  .brand { font-size: .95rem; }
  .btn-small { font-size: .85rem; padding: .5rem .6rem; }
  .trust-list { grid-template-columns: 1fr; }
}

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .cta-row { flex-direction: row; flex-wrap: wrap; }
  .cta-row--center { justify-content: center; }
  .service-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .vs-list li { grid-template-columns: 1fr 1fr; }
  .btn-call-label { display: inline; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .call-bar { display: none; }
  .header-nav { display: flex; gap: 1.5rem; margin-left: auto; margin-right: 1rem; }
  .header-nav a { color: #d6e2d8; text-decoration: none; font-weight: 700; font-size: .95rem; }
  .header-nav a:hover { color: var(--white); }
  .hero { padding: 5.5rem 0 5rem; }
  .trust-list { grid-template-columns: repeat(4, 1fr); padding-top: 1.25rem; padding-bottom: 1.25rem; }
  .section { padding: 5rem 0; }
  .service-grid, .review-grid { grid-template-columns: repeat(3, 1fr); }
  .contrast h2 { text-align: center; }
  .contrast .kicker { text-align: center; }
  .vs-list { max-width: 880px; margin-left: auto; margin-right: auto; }
  .area-inner { grid-template-columns: 1fr 1.2fr; align-items: center; gap: 2.5rem; }
  .estimate-inner { grid-template-columns: 1fr 1fr; align-items: start; gap: 3rem; }
  .estimate-form { padding: 2rem; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
