:root {
  /* Brand tokens — sampled from JJ's Tree Services work photography (brand-identity.json) */
  --color-primary: #1E4D2B;
  --color-primary-500: #1E4D2B;
  --color-primary-dark: #12291A;
  --color-secondary: #12291A;
  --color-accent: #E8641B;
  --color-sky: #2FA4D8;
  --color-bark: #5A4632;
  --color-cream: #F5F1E6;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F5F1E6;
  --color-ink: #1C2420;
  --color-ink-soft: #4A5750;
  --brand-primary: #1E4D2B;
  --brand-accent: #E8641B;
  --font-display: 'Archivo', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --container-max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-primary-dark);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.15rem; }

a { color: var(--brand-primary); }
a:hover { color: var(--brand-accent); }

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

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

section { padding: 3.5rem 0; width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  min-width: 48px;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--brand-accent); color: #fff; }
.btn-primary:hover { background: #c95614; color: #fff; }
.btn-outline { background: transparent; color: var(--brand-primary); border-color: var(--brand-primary); }
.btn-outline:hover { background: var(--brand-primary); color: #fff; }
.btn-light { background: #fff; color: var(--brand-primary); }
.btn-light:hover { background: var(--color-bg-soft); color: var(--brand-primary); }

.service-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: block;
}

:focus-visible {
  outline: 3px solid var(--color-sky);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* FAQ accordion */
.faq-item { border: 1px solid #d8ddd8; border-radius: var(--radius-md); margin-bottom: 0.75rem; background: #fff; }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 48px;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary-dark);
  text-align: left;
  cursor: pointer;
}
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a p { margin: 0; padding: 0 1.25rem 1.25rem; color: var(--color-ink-soft); }
.faq-item.open .faq-a { max-height: 500px; }
.faq-icon { flex: 0 0 auto; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-primary-dark);
  color: #fff;
  transition: box-shadow 0.25s ease;
  width: 100%;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: #fff; }
.brand img { width: 52px; height: 52px; border-radius: 50%; display: block; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1.1; text-transform: uppercase; }
.brand-tag { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.7rem; color: #ffd9bd; text-transform: none; }
.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a { color: #fff; text-decoration: none; font-weight: 600; padding: 0.7rem 0.8rem; border-radius: var(--radius-sm); min-height: 44px; display: inline-flex; align-items: center; }
.main-nav a:hover, .main-nav a.active { background: rgba(255, 255, 255, 0.12); color: #fff; }
.nav-toggle { display: none; background: none; border: 2px solid #fff; border-radius: var(--radius-sm); width: 48px; height: 48px; color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.header-call { white-space: nowrap; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-primary-dark);
    padding: 0.5rem 1.25rem 1rem;
  }
  .main-nav.open { display: flex; }
  .header-call { display: none; }
}

/* Hero */
.hero { position: relative; padding: 0; background: var(--color-primary-dark); }
.hero-media { position: relative; width: 100%; }
.hero-media img { width: 100%; height: clamp(340px, 60vh, 560px); object-fit: cover; display: block; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 41, 26, 0.88) 0%, rgba(18, 41, 26, 0.55) 55%, rgba(18, 41, 26, 0.15) 100%);
  display: flex;
  align-items: center;
  width: 100%;
}
.hero-copy { color: #fff; max-width: 640px; }
.hero-copy h1 { color: #fff; margin: 0 0 0.75rem; }
.hero-copy p.lead { font-size: 1.15rem; color: #f2ede1; margin: 0 0 1.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta-strip { background: var(--brand-accent); color: #fff; width: 100%; }
.cta-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; }
.cta-strip p { margin: 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; }

/* Cards */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.service-card { background: #fff; border: 1px solid #dfe4dc; border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; }
.step-card { background: #fff; border: 1px solid #dfe4dc; border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; }
.service-card-content { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.service-card h3 { margin: 0; }
.service-card h3 a { color: var(--color-primary-dark); text-decoration: none; }
.service-card h3 a:hover { color: var(--brand-accent); }
.service-card p { margin: 0; color: var(--color-ink-soft); }
.service-card .card-link { margin-top: auto; padding-top: 0.5rem; font-weight: 700; color: var(--brand-accent); min-height: 44px; display: inline-flex; align-items: center; }
.service-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--color-bg-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--brand-primary); }

/* Trust bar / stats */
.trust-bar { background: var(--color-bg-soft); padding: 2rem 0; width: 100%; }
.trust-items { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; }
.trust-item { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; color: var(--color-primary-dark); }
.stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--brand-accent); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.gallery-grid img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius-md); display: block; }

/* Footer */
.site-footer { background: var(--color-primary-dark); color: #e9e4d6; width: 100%; }
.site-footer .container { padding-top: 3rem; padding-bottom: 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 2rem; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: #ffd9bd; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.2); margin-top: 2rem; padding-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; font-size: 0.85rem; }
.byte-badge { display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; padding: 0.3rem 0.9rem; min-height: 40px; text-decoration: none; }

/* Page hero */
.page-hero { background: var(--color-primary); color: #fff; padding: 3rem 0; width: 100%; }
.page-hero h1 { color: #fff; margin: 0 0 0.5rem; }
.page-hero p { color: #f2ede1; margin: 0; }
.breadcrumb { font-size: 0.9rem; margin-bottom: 1rem; }
.breadcrumb a { color: #ffd9bd; }

/* Prose */
.prose { max-width: 72ch; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }

/* Contact cards */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.5rem; }
.contact-card { border: 1px solid #dfe4dc; border-radius: var(--radius-md); padding: 1.5rem; background: #fff; display: flex; gap: 1rem; align-items: flex-start; }
.contact-card h3 { margin: 0 0 0.25rem; }
.contact-card p { margin: 0; }
.contact-card a.big { font-size: 1.15rem; font-weight: 700; color: var(--brand-primary); overflow-wrap: anywhere; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius-md); display: block; }

/* Video */
.promo-video video { width: 100%; border-radius: var(--radius-lg); display: block; background: #000; }

/* Infographics */
.infographic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.5rem; }
.infographic-grid figure { margin: 0; border: 1px solid #dfe4dc; border-radius: var(--radius-md); overflow: hidden; background: #fff; }
.infographic-grid img { width: 100%; height: auto; display: block; }
.infographic-grid figcaption { padding: 1rem 1.25rem; color: var(--color-ink-soft); font-size: 0.95rem; }

/* Tap-target hardening (mobile): key links meet 40px minimum */
.breadcrumb a { display: inline-block; min-height: 40px; padding: 0.55rem 0.25rem; }
.service-card h3 a { display: inline-block; min-height: 40px; padding: 0.3rem 0; }
.footer-grid p a { display: inline-block; min-height: 40px; padding: 0.4rem 0; }
.contact-card a.big { display: inline-block; min-height: 40px; padding: 0.3rem 0; }
.back-link { display: inline-block; min-height: 40px; padding: 0.5rem 0; }
