/* Hoover Tree Specialists — site styles
   Layout idea: a green field (60%) carries the site, cream panels (30%) carry
   the reading and forms, rust (10%) is reserved for actions and the tree tally. */

/* @font-face rules live in fonts.css */

:root {
  color-scheme: only light;
  --green: #383E33;
  --green-deep: #2B3027;
  --green-line: #50574A;
  --cream: #E5E0D5;
  --paper: #F2EFE8;
  --accent: #C25934;
  --accent-press: #A64A29;
  --accent-ink: #94401F;      /* rust for small text on cream (AA) */
  --ink: #23271F;
  --ink-soft: #4C5245;        /* secondary text on cream */
  --cream-soft: #C9C5B9;      /* secondary text on green */
  --head: "Norwester", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Telegraph", "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gut: clamp(18px, 4vw, 40px);
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--green);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--head);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 6vw, 62px); }
h2 { font-size: clamp(27px, 3.8vw, 40px); }
h3 { font-size: clamp(21px, 2.4vw, 25px); letter-spacing: .005em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.on-green :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--cream); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  background: var(--cream); color: var(--ink); padding: 12px 16px; border-radius: var(--r);
}
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 10px 26px;
  font-family: var(--head); font-size: 20px; letter-spacing: .025em; text-transform: uppercase;
  line-height: 1.1; text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: var(--r);
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-press); }
.btn--ghost { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn--ghost:hover { background: var(--cream); color: var(--green); }
.btn--dark { background: var(--green); color: var(--cream); }
.btn--dark:hover { background: var(--green-deep); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.textlink { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; text-decoration-color: var(--accent); font-weight: 700; }
.textlink:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header { background: var(--green-deep); border-bottom: 1px solid var(--green-line); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 48px; }
.brand img { width: 44px; height: 47px; }
.brand span { font-family: var(--head); text-transform: uppercase; letter-spacing: .04em; font-size: clamp(15px, 4.2vw, 19px); line-height: 1.05; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 48px; min-height: 48px; padding: 0 12px;
  background: none; border: 2px solid var(--green-line); border-radius: var(--r);
  color: var(--cream); font-family: var(--head); font-size: 16px; letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--green-deep); border-bottom: 1px solid var(--green-line); padding: 8px var(--gut) 20px; }
.nav.is-open { display: block; }
.nav ul { display: flex; flex-direction: column; }
.nav a {
  display: flex; align-items: center; min-height: 48px;
  font-family: var(--head); text-transform: uppercase; letter-spacing: .04em; font-size: 18px; text-decoration: none;
  border-bottom: 1px solid var(--green-line);
}
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 4px 0 0 var(--accent); padding-left: 14px; }
.nav .btn { margin-top: 16px; width: 100%; border-bottom: 0; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav { display: block; position: static; background: none; border: 0; padding: 0; }
  .nav ul { flex-direction: row; align-items: center; gap: 4px; }
  .nav a { border: 0; padding: 0 14px; font-size: 16px; }
  .nav a:hover { color: #fff; }
  .nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); padding-left: 14px; }
  .nav .btn { margin: 0 0 0 10px; width: auto; min-height: 46px; padding: 6px 18px; font-size: 19px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--green-deep); }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture img { object-fit: cover; object-position: 62% 40%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(43,48,39,.80) 0%, rgba(43,48,39,.74) 45%, rgba(43,48,39,.92) 100%);
}
.hero .wrap { padding-block: clamp(56px, 11vw, 132px) clamp(48px, 8vw, 96px); }
.hero h1 { max-width: 17ch; }
.hero .lede { max-width: 36rem; margin-top: 20px; font-size: clamp(17px, 2.2vw, 20px); color: #F2EFE8; }
.hero .btn-row { margin-top: 30px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: 15px; color: #F2EFE8; }
.hero .facts li { display: flex; align-items: center; gap: 8px; }
.hero .facts li::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; }
@media (min-width: 900px) {
  .hero::after { background: linear-gradient(90deg, rgba(43,48,39,.94) 0%, rgba(43,48,39,.84) 38%, rgba(43,48,39,.30) 72%, rgba(43,48,39,.12) 100%); }
  .hero picture img { object-position: 50% 38%; }
}

/* Page header (inner pages) */
.page-head { background: var(--green-deep); border-bottom: 1px solid var(--green-line); }
.page-head .wrap { padding-block: clamp(40px, 7vw, 76px); }
.page-head h1 { font-size: clamp(33px, 5.2vw, 54px); max-width: 20ch; }
.page-head p { margin-top: 16px; max-width: 40rem; font-size: clamp(17px, 2.1vw, 19px); color: var(--cream); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(52px, 8vw, 96px); }
.section--cream { background: var(--cream); color: var(--ink); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--deep { background: var(--green-deep); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(26px, 4vw, 44px); max-width: 44rem; }
.section-head p { color: var(--cream-soft); }
.section--cream .section-head p, .section--paper .section-head p { color: var(--ink-soft); }
.prose { display: flex; flex-direction: column; gap: 16px; max-width: 40rem; }
.prose strong { font-weight: 700; }

/* Service index cards (home) */
.svc-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.svc-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--paper); color: var(--ink);
  border-top: 5px solid var(--green); border-radius: var(--r);
  padding: 22px 20px 20px; text-decoration: none; min-height: 100%;
  transition: border-color .15s, transform .15s;
}
.svc-card:hover { border-top-color: var(--accent); transform: translateY(-2px); }
.svc-card p { color: var(--ink-soft); font-size: 16px; flex: 1; }
.svc-card .more { font-family: var(--head); text-transform: uppercase; letter-spacing: .04em; font-size: 15px; color: var(--accent-ink); }

/* Split: text + photo */
.split { display: grid; gap: clamp(24px, 5vw, 56px); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } .split--flip > :first-child { order: 2; } }
.split > * { min-width: 0; }
.photo { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--green-deep); }
.photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo figcaption { padding: 10px 14px; font-size: 14px; background: var(--green-deep); color: var(--cream-soft); }
.section--cream .photo figcaption, .section--paper .photo figcaption { background: var(--green); color: var(--cream); }

/* Credential list */
.creds { display: grid; gap: 0; margin-top: 22px; border-top: 1px solid var(--green-line); }
.creds li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--green-line); }
.creds li::before { content: ""; width: 12px; height: 12px; margin-top: 8px; background: var(--accent); }
.section--cream .creds, .section--cream .creds li, .section--paper .creds, .section--paper .creds li { border-color: #C8C2B4; }
.creds b { display: block; font-family: var(--head); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: 19px; line-height: 1.2; }
.creds span { color: var(--cream-soft); font-size: 16px; }
.section--cream .creds span, .section--paper .creds span { color: var(--ink-soft); }

/* Service area */
.towns { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.towns li { background: var(--paper); border-left: 5px solid var(--accent); border-radius: var(--r); padding: 16px 18px; }
.towns b { display: block; font-family: var(--head); font-weight: 400; text-transform: uppercase; letter-spacing: .025em; font-size: 22px; line-height: 1.15; }
.towns span { font-size: 15px; color: var(--ink-soft); }

/* ---------- Tree tally ---------- */
.tally { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 720px) { .tally { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tally__item { border: 1px solid var(--green-line); border-radius: var(--r); padding: 20px 20px 18px; background: var(--green-deep); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tally__item--owed { border-color: var(--accent); box-shadow: inset 0 5px 0 var(--accent); }
.tally__num { font-family: var(--head); font-size: clamp(56px, 9vw, 84px); line-height: .95; font-variant-numeric: tabular-nums; color: #fff; }
.tally__label { font-family: var(--head); text-transform: uppercase; letter-spacing: .035em; font-size: 18px; }
.tally__note { font-size: 15px; color: var(--cream-soft); }
.tally__marks { display: flex; flex-wrap: wrap; gap: 6px 12px; min-height: 30px; margin-top: 6px; }
.tally__marks svg { width: 52px; height: 39px; }
.tally__marks path { stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; fill: none; }
.tally-meta { margin-top: 14px; font-size: 14px; color: var(--cream-soft); }

/* ---------- Service detail blocks ---------- */
.svc-block { display: grid; gap: clamp(18px, 4vw, 48px); grid-template-columns: minmax(0, 1fr); padding-block: clamp(30px, 5vw, 52px); border-top: 2px solid var(--green); scroll-margin-top: 20px; }
.svc-block:last-of-type { border-bottom: 2px solid var(--green); }
@media (min-width: 860px) { .svc-block { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.svc-block > div { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.svc-block h2 { font-size: clamp(27px, 3.8vw, 38px); }
.svc-block h3 { font-size: 18px; letter-spacing: .04em; color: var(--accent-ink); }
.ticks { display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.ticks li::before { content: ""; width: 14px; height: 8px; margin-top: 8px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
.note { border-left: 5px solid var(--accent); background: var(--paper); padding: 18px 20px; border-radius: var(--r); display: flex; flex-direction: column; gap: 8px; max-width: 46rem; }
.section--paper .note { background: var(--cream); }

/* Steps */
.steps { display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: step; border: 1px solid var(--green-line); border-radius: var(--r); padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: counter(step); font-family: var(--head); font-size: 44px; line-height: 1; color: var(--accent); }
.steps p { color: var(--cream-soft); font-size: 16px; }

/* People */
.people { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.person { background: var(--paper); border-radius: var(--r); border-top: 5px solid var(--green); padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; }
.person .role { font-family: var(--head); text-transform: uppercase; letter-spacing: .04em; font-size: 16px; color: var(--accent-ink); }
.person p { color: var(--ink-soft); }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery figure { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--green-deep); display: flex; flex-direction: column; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery .wide { grid-column: 1 / -1; }
.gallery .wide img { aspect-ratio: 3 / 2; }
@media (min-width: 980px) { .gallery .wide { grid-column: span 2; grid-row: span 2; } .gallery .wide img { aspect-ratio: auto; height: 100%; min-height: 0; flex: 1; } }
.gallery figcaption { padding: 12px 14px; font-size: 15px; color: var(--cream); }
.gallery figcaption b { font-family: var(--head); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; font-size: 17px; margin-right: 6px; }

/* ---------- CTA band ---------- */
.cta { background: var(--accent); color: #fff; }
.cta .wrap { padding-block: clamp(40px, 6vw, 64px); display: flex; flex-wrap: wrap; gap: 22px 40px; align-items: center; justify-content: space-between; }
.cta h2 { font-size: clamp(28px, 4.2vw, 42px); max-width: 20ch; }
.cta p { margin-top: 8px; font-size: 19px; font-weight: 700; }
.cta .btn--dark { background: var(--green-deep); }
.cta .btn--ghost { border-color: #fff; color: #fff; }
.cta .btn--ghost:hover { background: #fff; color: var(--green-deep); }
.cta :focus-visible { outline-color: #fff; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; gap: clamp(28px, 5vw, 56px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.contact-grid > * { min-width: 0; }
.callbox { background: var(--green); color: var(--cream); border-radius: var(--r); padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.callbox .num { font-family: var(--head); font-size: clamp(34px, 6vw, 44px); line-height: 1; color: #fff; letter-spacing: .015em; text-decoration: none; }
.callbox .btn { width: 100%; }
.callbox dl { margin: 6px 0 0; display: grid; gap: 12px; border-top: 1px solid var(--green-line); padding-top: 16px; }
.callbox dt { font-family: var(--head); text-transform: uppercase; letter-spacing: .04em; font-size: 15px; color: var(--cream-soft); }
.callbox dd { margin: 0; overflow-wrap: anywhere; }

.form { background: var(--paper); border-radius: var(--r); padding: clamp(20px, 4vw, 34px); display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); border-top: 5px solid var(--accent); }
@media (min-width: 600px) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 16px; }
.field .hint { font-size: 14px; color: var(--ink-soft); }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 17px; color: var(--ink);
  background: #fff; border: 2px solid #A9A493; border-radius: var(--r);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input[type="file"] { padding: 10px; background: var(--cream); border-style: dashed; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--green); }
.field [aria-invalid="true"] { border-color: #A3261A; }
.field .err { color: #A3261A; font-size: 14px; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; border: 1px solid #A9A493; }
.form-status { border-radius: var(--r); padding: 16px 18px; font-weight: 700; }
.form-status[hidden] { display: none; }
.form-status--ok { background: var(--green); color: var(--cream); }
.form-status--err { background: #F6DCD3; color: #7A1D12; border: 2px solid #A3261A; }
.form .btn { width: 100%; }
.form small { color: var(--ink-soft); font-size: 14px; }
[data-estimator-slot]:empty { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); border-top: 1px solid var(--green-line); font-size: 16px; }
.site-footer .wrap { padding-block: 48px 28px; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 220px repeat(3, minmax(0, 1fr)); } }
.foot-grid > * { min-width: 0; }
.foot-logo { width: 170px; height: auto; }
.site-footer h2 { font-size: 17px; letter-spacing: .05em; color: var(--cream-soft); margin-bottom: 8px; }
.site-footer li a, .site-footer p a { display: inline-block; padding-block: 10px; min-height: 44px; text-decoration: none; }
.site-footer li a:hover, .site-footer p a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .fine { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--green-line); color: var(--cream-soft); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; }
.foot-count b { font-family: var(--head); font-weight: 400; font-size: 20px; color: #fff; font-variant-numeric: tabular-nums; }

/* Mobile action bar */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--green-deep); border-top: 1px solid var(--green-line); }
.actionbar .btn { min-height: 48px; padding: 6px 10px; font-size: 19px; }
body { padding-bottom: 66px; }
@media (min-width: 900px) { .actionbar { display: none; } body { padding-bottom: 0; } }

/* Admin */
.admin { max-width: 520px; margin: 0 auto; padding: 28px var(--gut) 60px; display: flex; flex-direction: column; gap: 18px; }
.admin .panel { background: var(--paper); color: var(--ink); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.admin .big { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: center; }
.admin .big div { background: var(--green); color: var(--cream); border-radius: var(--r); padding: 14px 6px; }
.admin .big b { display: block; font-family: var(--head); font-weight: 400; font-size: 44px; line-height: 1; color: #fff; }
.admin .big span { font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.admin .row { display: grid; grid-template-columns: 1fr 64px; gap: 10px; }
.admin .btn { min-height: 60px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
