:root {
  --green-900: #14352a;
  --green-800: #1b4d3a;
  --green-700: #216648;
  --green-600: #2a7a56;
  --green-100: #e8f3ec;
  --amber: #b45309;
  --amber-dark: #92400e;
  --ink: #15201b;
  --muted: #5b6b63;
  --line: #d7e3db;
  --bg: #f7faf8;
  --white: #ffffff;
  --danger: #b91c1c;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(20, 53, 42, 0.08);
  --max: 1080px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.05rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); }
a:hover { color: var(--green-900); }
h1, h2, h3 { line-height: 1.25; color: var(--green-900); margin: 0 0 0.75rem; }
h1 { font-size: clamp(1.85rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.85rem); margin-top: 2rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1.25rem; padding-left: 1.2rem; }
li { margin-bottom: 0.4rem; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--green-900); color: #fff; padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.75rem 0; min-height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 0.55rem;
  text-decoration: none; color: var(--green-900); font-weight: 800; letter-spacing: -0.02em;
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(145deg, var(--green-600), var(--green-900));
  color: #fff; display: grid; place-items: center; font-size: 0.95rem;
}
.logo-text { font-size: 1.05rem; }
.logo-text span { display: block; font-size: 0.72rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.header-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.header-call {
  white-space: nowrap;
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem;
  flex-shrink: 0;
}
.header-call-full { display: none; }
.header-call-short { display: inline; }
@media (min-width: 480px) {
  .header-call-short { display: none; }
  .header-call-full { display: inline; }
  .header-call { padding: 0.7rem 1rem; font-size: 0.95rem; }
}
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--green-900); position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--green-900);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.site-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); padding: 0.75rem 1rem 1rem;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.site-nav a {
  display: block; text-decoration: none; color: var(--ink);
  padding: 0.7rem 0.85rem; border-radius: 8px; font-weight: 600;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--green-100); color: var(--green-900); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border-radius: 999px; padding: 0.8rem 1.2rem; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.2;
}
.btn-call, .btn-primary {
  background: var(--amber); color: #fff; border-color: var(--amber);
}
.btn-call:hover, .btn-primary:hover { background: var(--amber-dark); border-color: var(--amber-dark); color: #fff; }
.btn-secondary {
  background: var(--green-800); color: #fff; border-color: var(--green-800);
}
.btn-secondary:hover { background: var(--green-900); color: #fff; }
.btn-outline {
  background: transparent; color: var(--green-900); border-color: var(--green-700);
}
.btn-outline:hover { background: var(--green-100); color: var(--green-900); }
.btn-lg { padding: 0.95rem 1.35rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.mobile-call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(20, 53, 42, 0.96);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
}
.mobile-call-bar .btn { border-radius: 10px; padding: 0.85rem 0.5rem; font-size: 0.95rem; }
body { padding-bottom: 76px; }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(42, 122, 86, 0.25), transparent 40%),
    linear-gradient(160deg, #0f2b22 0%, #1b4d3a 55%, #245c44 100%);
  color: #edf7f1;
  padding: 2.5rem 0 2.75rem;
}
.hero h1 { color: #fff; margin-bottom: 0.85rem; }
.hero p { color: #d5ebe0; font-size: 1.08rem; max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 1.35rem 0 1.1rem; }
.hero-note {
  display: inline-block; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 999px;
  padding: 0.35rem 0.8rem; font-size: 0.88rem; color: #e5f6ed;
}
.trust-strip {
  display: grid; gap: 0.75rem; margin-top: 1.75rem;
}
.trust-item {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 0.85rem 1rem; font-size: 0.95rem;
}
.trust-item strong { display: block; color: #fff; margin-bottom: 0.15rem; }

/* Sections */
.section { padding: 2.5rem 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 46rem; }
.cards {
  display: grid; gap: 1rem; margin-top: 1.25rem;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem; box-shadow: var(--shadow); text-decoration: none; color: inherit;
  display: block;
}
a.card:hover { border-color: var(--green-600); transform: translateY(-1px); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; color: var(--muted); }
.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--green-700); background: var(--green-100);
  border-radius: 999px; padding: 0.2rem 0.55rem; margin-bottom: 0.55rem;
}
.grid-2 { display: grid; gap: 1.25rem; }
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem;
}
.cta-band {
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  color: #e8f6ef; padding: 2rem 0; text-align: center;
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #cfe6da; max-width: 36rem; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; justify-content: center; margin-top: 1rem; }

.prose h2:first-child { margin-top: 0; }
.prose .callout {
  background: var(--green-100); border-left: 4px solid var(--green-700);
  padding: 0.9rem 1rem; border-radius: 0 10px 10px 0; margin: 1.25rem 0;
}
.prose .warn {
  background: #fff7ed; border-left: 4px solid var(--amber);
  padding: 0.9rem 1rem; border-radius: 0 10px 10px 0; margin: 1.25rem 0;
}
.sources { font-size: 0.92rem; color: var(--muted); }
.sources a { word-break: break-word; }

/* FAQ */
.faq-list { display: grid; gap: 0.65rem; margin-top: 1rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.faq-item button {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: 0.95rem 1rem; font: inherit; font-weight: 700; color: var(--green-900);
  display: flex; justify-content: space-between; gap: 1rem;
}
.faq-item button::after { content: "+"; font-weight: 400; color: var(--muted); }
.faq-item.is-open button::after { content: "–"; }
.faq-item .faq-body { display: none; padding: 0 1rem 1rem; color: var(--muted); }
.faq-item.is-open .faq-body { display: block; }

/* Forms */
.form-grid { display: grid; gap: 0.85rem; }
label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 0.75rem 0.85rem; font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
.form-hint { font-weight: 500; color: var(--muted); font-size: 0.88rem; }
.form-status { margin-top: 0.85rem; font-size: 0.95rem; }
.form-status.success { color: var(--green-700); }
.form-status.error { color: var(--danger); }
.form-note {
  margin-top: 1rem; padding: 0.85rem 1rem; background: #fff; border: 1px dashed var(--line);
  border-radius: 10px; font-size: 0.9rem; color: var(--muted);
}

/* Areas chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1rem 0; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.35rem 0.75rem; font-size: 0.9rem; color: var(--ink); font-weight: 600;
}
a.chip { text-decoration: none; }
a.chip:hover { border-color: var(--green-600); color: var(--green-800); }

/* Footer */
.site-footer {
  background: var(--green-900); color: #c9ddd3; padding: 2.25rem 0 1.5rem;
}
.site-footer a { color: #e7f5ee; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 1.5rem; }
.footer-brand { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 0.4rem; }
.footer-col h3 { color: #fff; font-size: 0.95rem; margin: 0 0 0.55rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.35rem; }
.footer-bottom {
  margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.88rem; color: #9fbaae;
}

.page-hero {
  background: #fff; border-bottom: 1px solid var(--line); padding: 1.75rem 0 1.5rem;
}
.breadcrumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.65rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--green-700); }

@media (min-width: 720px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block; position: static; border: 0; padding: 0; background: transparent;
  }
  .site-nav ul { display: flex; gap: 0.15rem; align-items: center; }
  .site-nav a { padding: 0.4rem 0.5rem; font-size: 0.88rem; }
  .header-inner { gap: 1.25rem; }
  .logo { margin-right: auto; }
  .trust-strip { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .mobile-call-bar { display: none; }
  body { padding-bottom: 0; }
}

@media (min-width: 960px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards.cards-2 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 3.5rem 0 3.25rem; }
}

@media (max-width: 379px) {
  .logo-text span { display: none; }
  .logo-text { font-size: 0.95rem; }
  .header-inner { gap: 0.5rem; }
}


/* Photo heroes — CSS background only (never an in-flow <img>, which stacked above text for some users) */
.hero--photo,
.page-hero--photo {
  position: relative !important;
  overflow: hidden;
  background-color: #0f2b22;
  background-size: cover;
  background-position: 70% center;
  background-repeat: no-repeat;
}

.hero--sky,
.page-hero--sky {
  background-image: url("/assets/img/sky-arborist-1280.jpg");
  background-position: 72% center;
}
.hero--storm,
.page-hero--storm {
  background-image: url("/assets/img/storm-1280.jpg");
  background-position: center center;
}
.hero--stump,
.page-hero--stump {
  background-image: url("/assets/img/stump-1280.jpg");
  background-position: center center;
}
.hero--canopy,
.page-hero--canopy {
  background-image: url("/assets/img/canopy-1280.jpg");
  background-position: center center;
}
.hero--chipper,
.page-hero--chipper {
  background-image: url("/assets/img/chipper-aerial-1280.jpg");
  background-position: center center;
}

@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
  .hero--sky,
  .page-hero--sky {
    background-image: image-set(
      url("/assets/img/sky-arborist-1280.webp") type("image/webp") 1x,
      url("/assets/img/sky-arborist-1920.webp") type("image/webp") 1.5x,
      url("/assets/img/sky-arborist-2400.webp") type("image/webp") 2x
    );
  }
  .hero--storm,
  .page-hero--storm {
    background-image: image-set(
      url("/assets/img/storm-1280.webp") type("image/webp") 1x,
      url("/assets/img/storm-1920.webp") type("image/webp") 2x
    );
  }
  .hero--stump,
  .page-hero--stump {
    background-image: image-set(
      url("/assets/img/stump-1280.webp") type("image/webp") 1x,
      url("/assets/img/stump-1920.webp") type("image/webp") 2x
    );
  }
  .hero--canopy,
  .page-hero--canopy {
    background-image: image-set(
      url("/assets/img/canopy-1280.webp") type("image/webp") 1x,
      url("/assets/img/canopy-1920.webp") type("image/webp") 1.5x,
      url("/assets/img/canopy-2400.webp") type("image/webp") 2x
    );
  }
  .hero--chipper,
  .page-hero--chipper {
    background-image: image-set(
      url("/assets/img/chipper-aerial-1280.webp") type("image/webp") 1x,
      url("/assets/img/chipper-aerial-1600.webp") type("image/webp") 2x
    );
  }
}

/* Left-weighted overlay: darker on text side, photo more visible on the right */
.hero-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background: linear-gradient(
    90deg,
    rgba(8, 28, 20, 0.88) 0%,
    rgba(12, 40, 30, 0.72) 38%,
    rgba(15, 43, 34, 0.42) 62%,
    rgba(15, 43, 34, 0.28) 100%
  );
}
@media (max-width: 719px) {
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(8, 28, 20, 0.82) 0%,
      rgba(12, 40, 30, 0.70) 45%,
      rgba(10, 32, 24, 0.78) 100%
    );
  }
}

.hero--photo > .container,
.page-hero--photo > .container {
  position: relative !important;
  z-index: 2 !important;
}

.hero--photo .btn-outline,
.page-hero--photo .btn-outline {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.85) !important;
}
.hero--photo .btn-outline:hover,
.page-hero--photo .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

.page-hero--photo {
  border-bottom: 0;
  color: #e8f6ef;
  padding: 2.25rem 0 2rem;
  min-height: 280px;
}
.page-hero--photo h1 { color: #fff; }
.page-hero--photo .lead { color: #d5ebe0; }
.page-hero--photo .breadcrumbs,
.page-hero--photo .breadcrumbs a { color: #b7d4c6; }
.page-hero--photo .breadcrumbs a:hover { color: #fff; }

.content-photo {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.content-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.content-photo figcaption {
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label { font-weight: 600; color: var(--green-900, #0f3d28); }
.form-consent { margin-top: 0.25rem; }
.checkbox-label { display: flex; gap: 0.65rem; align-items: flex-start; font-weight: 500; font-size: 0.92rem; line-height: 1.45; }
.checkbox-label input[type="checkbox"] { margin-top: 0.25rem; width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
.prose { max-width: 42rem; }
.prose h2 { margin-top: 1.75rem; }

/* Distinguish in-text links beyond color */
.prose a, .form-hint a, .form-note a, .footer-bottom a, .lead a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
