/* =============================================================================
   Anderson Tree Experts — concept redesign by rainearcher
   A local-booking template variation. Vertical skin: ARBORIST / TREE SERVICE.
   Built on the shared token contract (docs/design-system/tokens.css): component
   CSS reads semantic tokens only; the :root block below is the per-vertical skin.
   ========================================================================== */

:root {
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Surfaces — warm bone/sand, outdoorsy and clean */
  --bg:           #F7F5EE;
  --surface:      #FFFFFF;
  --surface-alt:  #EFEBDF;
  --line:         #DED8C7;

  --text:         #1D2418;
  --text-muted:   #515A47;
  --text-faint:   #8B917D;

  /* Inverse — deep pine/forest dark bands */
  --inverse-bg:   #1A2616;
  --inverse-bg-2: #233019;
  --inverse-text: #F4F2E8;
  --inverse-muted:#AEB89B;

  /* Brand — foliage green; accent — warm safety amber (hard-hat) */
  --brand:        #3F7E36;
  --brand-strong: #2E6A29;
  --brand-hover:  #245420;
  --accent:       #E2A33A;
  --accent-deep:  #B97C1E;
  --bark:         #5A4129;

  --cta-bg:       var(--brand-strong);
  --cta-text:     #FFFFFF;
  --cta-shadow:   rgba(46, 106, 41, 0.30);

  --radius:       14px;
  --radius-sm:    9px;

  --shadow-soft:  0 2px 20px rgba(29, 36, 24, 0.07);
  --shadow-card:  0 6px 26px rgba(29, 36, 24, 0.11);
  --shadow-hover: 0 12px 38px rgba(29, 36, 24, 0.18);

  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.15s;
  --t-med:  0.30s;

  --glow-1: rgba(63, 126, 54, 0.16);
  --glow-2: rgba(226, 163, 58, 0.12);

  /* fluid type scale */
  --step-eyebrow: 12px;
  --step-h3:  clamp(19px, 3vw, 24px);
  --step-h2:  clamp(26px, 4.6vw, 42px);
  --step-h1:  clamp(30px, 6vw, 56px);
  --space-sm: 14px;
  --space-md: 26px;
  --space-lg: 52px;
  --space-xl: 80px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--text);
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  word-break: break-word;
}

a { color: var(--brand-strong); text-decoration: none; }

.wrap { width: min(1120px, 92%); margin-inline: auto; }

.eyebrow {
  font-size: var(--step-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-strong);
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 16px 24px;
  min-height: 52px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-med) var(--ease),
              background var(--t-fast) var(--ease);
  text-align: center;
}
.btn--primary {
  background: var(--cta-bg); color: var(--cta-text);
  box-shadow: 0 6px 20px var(--cta-shadow);
}
.btn--primary:hover { background: var(--brand-hover); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn--ghost {
  background: transparent; color: var(--text); border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--brand-strong); color: var(--brand-strong); transform: translateY(-2px); }
.btn--amber {
  background: var(--accent); color: #2A1E08; box-shadow: 0 6px 20px rgba(226,163,58,0.30);
}
.btn--amber:hover { background: var(--accent-deep); color: #fff; transform: translateY(-2px); }
.btn--block { width: 100%; }
.arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247, 245, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-soft); border-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand img { width: 38px; height: 45px; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.05; color: var(--text); }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }

.nav { display: none; gap: 26px; }
.nav a { color: var(--text-muted); font-weight: 600; font-size: 15px; transition: color var(--t-fast); }
.nav a:hover { color: var(--brand-strong); }

.header-call {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 16px; color: var(--brand-strong);
  white-space: nowrap;
}
.header-call .ph { font-size: 18px; }
.header-call .lbl { display: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 38px 0 30px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 0%, var(--glow-1), transparent 70%),
    radial-gradient(50% 40% at 5% 20%, var(--glow-2), transparent 70%);
}
.hero h1 { font-size: var(--step-h1); margin: 14px 0 0; max-width: 16ch; }
.hero .lede { font-size: clamp(16px, 2.4vw, 19px); color: var(--text-muted); margin-top: 16px; max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-cta .btn { flex: 1 1 220px; }
.hero-note { font-size: 13.5px; color: var(--text-faint); margin-top: 14px; }

.hero-figure { margin-top: 26px; position: relative; }
.hero-figure img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9; object-fit: cover;
}
.hero-badge {
  position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px);
  display: flex; align-items: center; gap: 9px;
  background: rgba(26, 38, 22, 0.86); color: #fff;
  padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  backdrop-filter: blur(4px); white-space: nowrap;
}
.hero-badge img { width: 26px; height: auto; border-radius: 0; box-shadow: none; aspect-ratio: auto; }

/* ---------------------------------------------------------------- trust strip */
.trust {
  background: var(--inverse-bg); color: var(--inverse-text);
}
.trust .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 16px 0; justify-content: center; }
.trust-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--inverse-text); }
.trust-item .ic { color: var(--accent); font-weight: 800; }

/* ---------------------------------------------------------------- sections */
section { padding: var(--space-lg) 0; }
.section-head { max-width: 60ch; margin-bottom: 30px; }
.section-head h2 { font-size: var(--step-h2); margin-top: 8px; }
.section-head p { color: var(--text-muted); margin-top: 12px; font-size: 16.5px; }
.section--alt { background: var(--surface-alt); }

/* services */
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.svc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-soft);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
  display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.svc-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.svc-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 { font-size: var(--step-h3); display: flex; align-items: center; gap: 9px; }
.svc-body p { color: var(--text-muted); font-size: 15px; margin-top: 10px; flex: 1; }
.svc-tag {
  display: inline-block; align-self: flex-start; margin-bottom: 12px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand-strong); background: rgba(63,126,54,0.10);
  padding: 4px 10px; border-radius: 999px;
}
.svc-link { margin-top: 16px; font-weight: 700; font-size: 15px; color: var(--brand-strong); display: inline-flex; align-items: center; gap: 6px; }

/* fire / defensible space band */
.fire {
  position: relative; color: var(--inverse-text);
  background: linear-gradient(180deg, rgba(20,28,16,0.78), rgba(16,22,12,0.92)),
              var(--bandimg, none) center/cover no-repeat, var(--inverse-bg);
}
.fire .eyebrow { color: var(--accent); }
.fire h2 { color: #fff; font-size: var(--step-h2); max-width: 20ch; }
.fire p { color: var(--inverse-muted); margin-top: 14px; max-width: 56ch; font-size: 16.5px; }
.fire ul { list-style: none; margin: 22px 0 26px; display: grid; gap: 12px; max-width: 60ch; }
.fire li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; color: var(--inverse-text); }
.fire li .ic { color: var(--accent); font-weight: 800; flex: none; }

/* why / family story */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.why-points { display: grid; gap: 18px; }
.why-point { display: flex; gap: 14px; align-items: flex-start; }
.why-point .n {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(63,126,54,0.12); color: var(--brand-strong);
  display: grid; place-items: center; font-weight: 800; font-size: 17px;
}
.why-point h3 { font-size: 18px; font-family: var(--font-body); font-weight: 700; }
.why-point p { color: var(--text-muted); font-size: 15px; margin-top: 4px; }
.why-aside {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-soft);
}
.why-aside img { border-radius: var(--radius-sm); margin-bottom: 18px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.why-aside h3 { font-size: var(--step-h3); }
.why-aside p { color: var(--text-muted); font-size: 15px; margin-top: 10px; }
.why-aside .sig { margin-top: 14px; font-family: var(--font-display); font-style: italic; color: var(--text); font-size: 16px; }

/* areas */
.areas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.area-chip {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 15px; font-size: 14px; font-weight: 600; color: var(--text-muted);
}
.area-chip strong { color: var(--brand-strong); font-weight: 700; }

/* testimonials */
.quotes { display: grid; grid-template-columns: 1fr; gap: 20px; }
.quote {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-soft);
}
.quote .stars { color: var(--accent); font-size: 16px; letter-spacing: 2px; }
.quote p { margin-top: 12px; font-size: 16px; color: var(--text); line-height: 1.65; }
.quote cite { display: block; margin-top: 14px; font-style: normal; font-weight: 700; color: var(--text-muted); font-size: 14.5px; }

/* contact / final cta */
.contact { background: var(--inverse-bg); color: var(--inverse-text); }
.contact h2 { color: #fff; font-size: var(--step-h2); }
.contact .lede { color: var(--inverse-muted); margin-top: 12px; font-size: 16.5px; max-width: 52ch; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 30px; }
.contact-cta { display: flex; flex-direction: column; gap: 12px; }
.contact-list { display: grid; gap: 16px; }
.ci { display: flex; gap: 12px; align-items: flex-start; }
.ci .ic { color: var(--accent); font-weight: 800; font-size: 18px; flex: none; width: 22px; }
.ci .lab { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--inverse-muted); font-weight: 700; }
.ci a, .ci span.v { color: #fff; font-weight: 600; font-size: 16px; }
.ci a { display: block; }
.ci .sub { color: var(--inverse-muted); font-weight: 500; font-size: 14px; }

/* footer */
.site-footer { background: var(--inverse-bg-2); color: var(--inverse-muted); padding: 26px 0 96px; font-size: 13px; }
.site-footer .wrap { display: grid; gap: 10px; text-align: center; }
.site-footer .copyright { color: var(--inverse-text); }
.site-footer .credit { color: var(--inverse-muted); }
.site-footer a { color: var(--accent); }

/* sticky mobile call bar */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; gap: 10px; padding: 10px 14px;
  background: rgba(247, 245, 238, 0.97); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(29,36,24,0.10);
}
.callbar .btn { flex: 1; min-height: 50px; padding: 13px 16px; font-size: 15.5px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- responsive */
@media (min-width: 680px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .hero-cta .btn { flex: 0 1 auto; }
}
@media (min-width: 920px) {
  .nav { display: flex; }
  .header-call .lbl { display: inline; }
  .callbar { display: none; }
  .site-footer { padding-bottom: 26px; }
  .hero { padding: 64px 0 40px; }
  .hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
  .hero-figure { margin-top: 0; }
  .hero-figure img { aspect-ratio: 4 / 3; }
  .why-grid { grid-template-columns: 1.2fr 0.8fr; gap: 44px; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 44px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
