/* Huntsville Tree Help. Layout: one narrow reading column, a sticky call bar, signage-style condensed headings. */
:root {
  --bg: #f4f6f4;
  --surface: #ffffff;
  --ink: #15211b;
  --muted: #4f5d55;
  --line: #d5ddd7;
  --moss: #2f5a40;
  --hivis: #e8590c;
  --hivis-ink: #ffffff;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1713; --surface: #16211b; --ink: #e6ede8; --muted: #a3b2a9;
    --line: #2a3a31; --moss: #8cc4a0; --hivis: #ff7a2e; --hivis-ink: #1a0d04;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1713; --surface: #16211b; --ink: #e6ede8; --muted: #a3b2a9;
  --line: #2a3a31; --moss: #8cc4a0; --hivis: #ff7a2e; --hivis-ink: #1a0d04;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Sticky call bar */
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ink);
}
.callbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  background: var(--ink); color: var(--bg);
}
.callbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-block: 10px; flex-wrap: wrap;
}
.brand {
  font-family: var(--display); font-weight: 700; font-size: 1.25rem;
  letter-spacing: 0.02em; color: var(--bg); text-decoration: none;
}
.btn-call {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--hivis); color: var(--hivis-ink);
  font-family: var(--display); font-weight: 700; font-size: 1.125rem;
  letter-spacing: 0.02em; text-decoration: none;
  padding: 8px 16px; border-radius: 6px; white-space: nowrap;
}
.btn-call:focus-visible, a:focus-visible { outline: 3px solid var(--hivis); outline-offset: 3px; }

nav.pages .wrap {
  display: flex; flex-wrap: wrap; gap: 4px 18px; padding-block: 10px;
  border-bottom: 1px solid var(--line);
}
nav.pages a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
nav.pages a[aria-current="page"] { color: var(--ink); font-weight: 700; }
nav.pages a:hover { color: var(--ink); }

main .wrap { padding-block: 32px 48px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.1; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.25rem, 7vw, 3.25rem); font-weight: 700; letter-spacing: -0.005em; }
h2 { font-size: 1.75rem; font-weight: 700; margin-top: 40px; }
h3 { font-size: 1.3rem; font-weight: 600; margin-top: 24px; }
p { margin: 14px 0 0; max-width: 65ch; }
.lede { font-size: 1.2rem; color: var(--muted); margin-top: 16px; }
a { color: var(--moss); }
ul, ol { padding-left: 1.25rem; margin: 14px 0 0; }
li + li { margin-top: 6px; }

/* Hero call block: the one bold element on each page */
.call-block {
  margin-top: 28px; padding: 20px; border-radius: 10px;
  background: var(--surface); border: 2px solid var(--hivis);
  display: grid; gap: 6px;
}
.call-block .label { font-weight: 600; color: var(--muted); }
.call-block .number {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 9vw, 2.75rem); color: var(--ink);
  text-decoration: none; font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
}
.call-block .fine { font-size: 0.95rem; color: var(--muted); }

.note {
  margin-top: 20px; padding: 14px 16px; border-left: 4px solid var(--moss);
  background: var(--surface); color: var(--ink);
}
.note p:first-child { margin-top: 0; }

.table-wrap { overflow-x: auto; margin-top: 16px; }
table { border-collapse: collapse; width: 100%; min-width: 22rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--display); font-size: 1.05rem; font-weight: 600; }
td.num { white-space: nowrap; font-weight: 600; }
caption { caption-side: bottom; text-align: left; font-size: 0.9rem; color: var(--muted); padding-top: 8px; }

.areas { columns: 2 12rem; column-gap: 24px; }

/* Storm banner, injected by the worker from National Weather Service alerts */
.storm-banner { background: var(--surface); border-bottom: 3px solid var(--hivis); }
.storm-banner .wrap { padding-block: 12px; font-size: 1rem; }
.storm-banner a { color: var(--ink); font-weight: 700; }
.storm-banner.urgent { background: var(--hivis); color: var(--hivis-ink); border-bottom: 0; }
.storm-banner.urgent a { color: var(--hivis-ink); }

.faq h3 { font-size: 1.2rem; }
.faq h3 + p { margin-top: 6px; }

footer { border-top: 1px solid var(--line); }
footer .wrap { padding-block: 24px 40px; font-size: 0.95rem; color: var(--muted); }
footer p { margin-top: 8px; }

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