/* Traverse City Snow Plowing — base stylesheet
   Single static stylesheet, no build step, no external font/JS dependency.

   Palette: deep bay teal with a cherry-amber accent, assigned before the build
   and checked against every other stylesheet in the portfolio so no two sites
   share a family. The reasoning is recorded outside the web root — this file is
   served publicly, so it carries none of that.

   Contrast, computed rather than eyeballed (WCAG AA needs 4.5:1):
     white on --lantern-deep (#9a5410) ........ 5.75:1
     white on --hue (#2d5f6a) ............... 7.10:1
     --hue (#2d5f6a) on --surface ................ 6.61:1
     --lantern-deep on --surface (section labels) .. 5.35:1
     nav link (#e3ecee) on --groundwork ............ 8.15:1
     brand mark (#f4c67a) on --groundwork .......... 6.15:1
     footer text (#b9c7ca) on #10303a ........ 8.03:1
     --body-c on --surface ........................... 16.07:1
     --sub on --surface ......................... 5.79:1
   The bright --lantern (#e39a3b) is a display color only: white on it is
   2.35:1, which is why every button that carries white text uses --lantern-deep.
*/

:root {
  --groundwork: #1b4a52;
  /* RGB channels of --groundwork, for the hero photo scrim. */
  --dim-layer: 27, 74, 82;
  --hue: #2d5f6a;
  --lantern-deep: #9a5410;
  --lantern: #e39a3b;
  --surface: #f5f7f7;
  --bright: #ffffff;
  --body-c: #141c1f;
  --sub: #556368;
  --seam-c: #d5dedf;
  --round: 5px;
  --width-cap: 1140px;
  /* The fixed CTA bar's real height, not a round number: 7+10 padding top and
     bottom plus a 0.90rem line (23px), +2px slack. Above 768px the link grows to
     0.95rem and the bar to 60px. body's padding-bottom tracks both. */
  --perch-h: 59px;
}

/* The bar is taller above the mobile breakpoint (larger type, roomier buttons). */
@media (min-width: 768px) { :root { --perch-h: 60px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--body-c);
  background: var(--surface);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--hue); text-decoration: none; }
a:hover { text-decoration: underline; }
.spine-x { max-width: var(--width-cap); margin: 0 auto; padding: 0 20px; }

/* Header */
header.topbar {
  background: var(--groundwork);
  color: var(--bright);
  position: sticky;
  top: 0;
  z-index: 50;
}
header.topbar .header-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--width-cap);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}
header.topbar .titlemark {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--bright);
}
/* The brand mark sits on --groundwork. --lantern-deep against --groundwork computes to 2.4:1,
   below the 3:1 large-text floor, so the mark uses a lighter tint of the
   same hue (6.43:1) rather than the accent variable. */
header.topbar .titlemark span { color: #f4c67a; }
header.topbar nav { display: flex; gap: 16px; flex-wrap: wrap; }
header.topbar nav a { color: #e3ecee; font-size: 0.95rem; }
header.topbar nav a:hover { color: var(--bright); }
header.topbar .dial {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  background: var(--lantern-deep);
  color: var(--bright);
  padding: 9px 16px;
  border-radius: var(--round);
  font-weight: 700;
}
header.topbar .dial:hover { background: #7c4410; text-decoration: none; }

/* Hero */
.prow {
  background: linear-gradient(135deg, var(--groundwork), var(--hue));
  color: var(--bright);
  padding: 56px 20px 48px;
}
.prow .spine-x { display: flex; flex-direction: column; gap: 18px; }
.prow .flag-line {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  width: fit-content;
}
.prow h1 { font-size: 2.2rem; margin: 0; max-width: 760px; }
.prow p.first-para { font-size: 1.1rem; color: #e6eeef; max-width: 600px; margin: 0; }
.prow .choice-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.trigger {
  display: inline-block;
  padding: 13px 22px;
  border-radius: var(--round);
  font-weight: 700;
  font-size: 1rem;
}
.trigger.main-btn { background: var(--lantern-deep); color: var(--bright); }
.trigger.main-btn:hover { background: #7c4410; text-decoration: none; }
.trigger.soft-btn { background: rgba(255,255,255,0.08); color: var(--bright); border: 1px solid rgba(255,255,255,0.35); }
.trigger.soft-btn:hover { background: rgba(255,255,255,0.16); text-decoration: none; }
.prow .small-print { font-size: 0.9rem; color: #c9d6d8; max-width: 640px; }

/* The referral disclosure is a legal requirement (16 CFR 461.3 and the FTC's
   .com Disclosures prominence factors), not decoration, so it does not rely on
   the hero photo being dark behind it. Its own scrim keeps it conspicuous at
   every viewport width and against any part of the background image. */
.prow .stated {
  font-size: 0.9rem;
  color: #ffffff;
  max-width: 680px;
  background: rgba(var(--dim-layer), 0.82);
  border-left: 3px solid var(--lantern-deep);
  padding: 12px 16px;
  border-radius: 6px;
  margin: 18px 0 10px;
}
.prow .stated strong { color: #ffffff; }

/* Hero with a full-bleed background photo (homepage only) — layers a
   left-to-right dark gradient over the image so the H1/lead text stays
   readable.

   Stops are darker than the default ramp. Measured at 1440px: the H1 runs
   to x=1100 and the lead to x=940 of 1440, i.e. 76% and 65% across — and this
   site's hero photo has a white van sitting right under that range. On the
   default 0.90/0.72/0.28/0.05 ramp the lead computed to about 2.5:1 against
   white text, well under WCAG AA. At 0.93/0.88/0.72/0.35 the lead lands near
   7:1 and the H1 near 5:1, and the right quarter of the frame is still open
   enough to read as a photograph. Check this again if the hero is ever
   replaced with a darker image — the ramp can go back. */
.prow.scened {
  background-image:
    linear-gradient(90deg, rgba(var(--dim-layer), 0.93) 0%, rgba(var(--dim-layer), 0.88) 45%, rgba(var(--dim-layer), 0.72) 70%, rgba(var(--dim-layer), 0.35) 100%),
    url('/images/hero-tcsp-photo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 540px;
  display: flex;
  align-items: center;
  padding: 56px 20px;
}
@media (max-width: 820px) {
  .prow.scened {
    background-image:
      linear-gradient(180deg, rgba(var(--dim-layer), 0.88) 0%, rgba(var(--dim-layer), 0.8) 55%, rgba(var(--dim-layer), 0.65) 100%),
      url('/images/hero-tcsp-photo-mobile.jpg');
    min-height: 460px;
  }
}

/* Sections */
section { padding: 48px 20px; }
section.recessed { background: var(--bright); border-top: 1px solid var(--seam-c); border-bottom: 1px solid var(--seam-c); }
.section-flag {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--lantern-deep);
  font-weight: 700;
  margin-bottom: 6px;
}
h2 { font-size: 1.65rem; margin: 0 0 20px; color: var(--groundwork); }
h3 { font-size: 1.15rem; margin: 0 0 8px; color: var(--groundwork); }

/* A heading promoted from <h3> to <h2> so the outline has no skipped level.
   Identical metrics to h3 — semantics changed, rendering did not. */
h2.lv2 { font-size: 1.15rem; margin: 0 0 8px; color: var(--groundwork); }

/* Grid cards */
.tileset { display: grid; gap: 18px; }
.tileset.three-col { grid-template-columns: repeat(3, 1fr); }
.tileset.halves { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) {
  .tileset.three-col, .tileset.halves { grid-template-columns: 1fr; }
  .prow h1 { font-size: 1.7rem; }
  header.topbar .header-rail { justify-content: center; text-align: center; }
}

/* 821-1060px: brand + a full nav + the phone number no longer fit on one line
   now that the call button shows real digits. Rather than shrink the number,
   give the nav its own centered row — brand left, phone right, nav beneath —
   instead of letting the call button orphan itself under the brand. */
@media (min-width: 821px) and (max-width: 1060px) {
  header.topbar nav {
    order: 3;
    flex: 1 0 100%;
    justify-content: center;
    margin-top: 2px;
  }
}
.parcel {
  background: var(--bright);
  border: 1px solid var(--seam-c);
  border-radius: var(--round);
  padding: 20px;
}

.parcel p { color: var(--sub); margin: 6px 0 0; font-size: 0.95rem; }

/* Trust strip */

/* FAQ — native <details>/<summary> accordion, no JS needed */

/* How It Works */

@media (max-width: 820px) { }
@media (max-width: 540px) { }

/* Testimonials shell — honest placeholder until real reviews exist */

/* Sticky CTA bar — visible at EVERY width (calls are the priority conversion) */
.dockbar {
  display: flex;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--groundwork);
  padding: 7px 14px calc(7px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
  /* Fallback for chrome baked into blog pages before the .pinned-inner
     wrapper existed: those have the two <a> as direct children. No-op once the
     wrapper is present (single child, already full width). */
  gap: 10px;
  justify-content: center;
}
/* Constrain to the site's content width rather than two full-bleed halves. */
.pinned-inner {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: var(--width-cap);
  margin: 0 auto;
}
.dockbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  text-align: center;
  padding: 10px 10px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.90rem;
}
.dockbar .glyph-tel { flex: none; }
/* Mobile: keep both buttons, but weight the call button ~60/40 over the form. */
.dockbar-call { flex: 3; background: var(--lantern-deep); color: var(--bright); }
.undock-ask { flex: 2; background: rgba(255,255,255,0.1); color: var(--bright); border: 1px solid rgba(255,255,255,0.35); }
.dockbar-call:hover { background: #7c4410; text-decoration: none; }
.undock-ask:hover { background: rgba(255,255,255,0.18); text-decoration: none; }
/* Narrow phones: the digits must survive, the qualifier is what gives way. */
.dockbar .tagline-sm { display: none; }
@media (min-width: 520px) {
  .dockbar .tagline-sm { display: inline; }
}
/* Above the mobile breakpoint: content-width buttons, centered. */
@media (min-width: 768px) {
  .pinned-inner { justify-content: center; }
  .dockbar a { flex: 0 0 auto; padding: 10px 22px; font-size: 0.95rem; }
}
/* Keep content — including the footer's last row — clear of the fixed bar. */
body { padding-bottom: var(--perch-h); }
/* Area links */
.patches { display: flex; flex-wrap: wrap; gap: 10px; }
.patches a {
  background: var(--bright);
  border: 1px solid var(--seam-c);
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--groundwork);
  font-size: 0.92rem;
}
.patches a:hover { border-color: var(--lantern-deep); text-decoration: none; }

/* CTA band */
.last-word {
  background: var(--groundwork);
  color: var(--bright);
  text-align: center;
  padding: 44px 20px;
}
.last-word h2 { color: var(--bright); }
.last-word p { color: #e3ecee; margin-bottom: 18px; }

/* Contact form */
form.inquiry { display: grid; gap: 12px; max-width: 480px; }
form.inquiry label { font-size: 0.88rem; font-weight: 600; color: var(--groundwork); display: block; margin-bottom: 4px; }
form.inquiry input, form.inquiry select, form.inquiry textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--seam-c);
  border-radius: 5px;
  font-size: 0.95rem;
  font-family: inherit;
}
form.inquiry .assent-note { font-size: 0.78rem; color: var(--sub); }
form.inquiry .filler-line { position: absolute; left: -9999px; top: -9999px; }
form.inquiry button[disabled] { opacity: 0.6; cursor: not-allowed; }
.reply-note { margin-top: 12px; padding: 11px 14px; border-radius: 5px; font-size: 0.9rem; display: none; }
.reply-note.visible { display: block; }
.reply-note.success { background: #e8f1ee; color: #1e3a3f; }
.reply-note.error { background: #fdecea; color: #b3261e; }

/* Breadcrumb */

/* Footer */
footer.topbar {
  background: #10303a;
  color: #b9c7ca;
  padding: 40px 20px 24px;
  font-size: 0.9rem;
}
footer.topbar .spine-x { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
footer.topbar h2 { color: var(--bright); font-size: 0.95rem; margin: 0 0 10px; }
footer.topbar ul { list-style: none; padding: 0; margin: 0; }
footer.topbar li { margin-bottom: 6px; }
footer.topbar a { color: #b9c7ca; }
footer.topbar .base-row {
  max-width: var(--width-cap);
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 720px) {
  footer.topbar .spine-x { grid-template-columns: 1fr 1fr; }
}

/* Brand logo (added 2026-08-11) */

header.topbar .titlemark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.roundel {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}

/* Founder note (replaces empty testimonial placeholder) — added 2026-08-11 */

/* --- Work photos ------------------------------------------------------ */
/* Inline documentary shots dropped between two content sections partway down a
   service page. Deliberately NOT a gallery grid and NOT a CSS background: one
   photo per page, off-rhythm, no captions.

   The base rule caps width so an unclassed figure can never render full-bleed
   across the page — that failure looks completely correct in the markup, so the
   block has to ship before any page references the class. No .portrait / .wide
   / .halves modifiers here: every master on this site is landscape 1200x800, and
   an unused modifier is how "add the class" becomes the easy fix for an image
   that should have been regenerated. */
.job-frame {
  max-width: var(--width-cap);
  margin: 0 auto;
  padding: 34px 20px;
}
.job-frame img {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--round);
  border: 1px solid var(--seam-c);
}

/* --- Homepage work strip ---------------------------------------------- */
/* TEN small thumbnails low on the homepage - one for each of the ten service
   pages. Deliberately NOT links and NOT lightboxed: they are scroll-depth
   reassurance, not a gallery. Full-size versions live on the matching pages.

   Column counts are worked for ten so the rows come out even at every
   breakpoint: 5x2 on desktop, 2x5 at 900px and 2x5 at 520px. A ragged
   trailing row is the visible tell that nobody redid the arithmetic. */
.contact-sheet .proofs-sm {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.contact-sheet img {
  display: block;
  width: 100%;
  /* height:auto is required - the img height="320" attribute is a
     presentational hint that would otherwise make the box 320px tall and
     cause aspect-ratio to be ignored entirely. */
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--seam-c);
  background: var(--bright);
}
@media (max-width: 900px) { .contact-sheet .proofs-sm { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .contact-sheet .proofs-sm { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* --- Who-signs-off note ------------------------------------------------ */
/* A one-line jurisdiction statement, set apart from body copy because on a
   site spanning this many separate city ordinances it is the fact most often
   wrong elsewhere and most often load-bearing. Prose, not a definition list:
   the answer is a sentence, and dozens of pages carrying identical field
   labels would read as a generated table. */

/* --- Wide tables ------------------------------------------------------- */
/* A table whose minimum content width exceeds
   the viewport slides the WHOLE document sideways at 375px unless it gets its
   own scroll context. The table's own overflow:hidden (used for radius
   clipping) does not create one. Only the permit-comparison page has a table,
   and it has five columns. */
.table-glide {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--seam-c);
  border-radius: var(--round);
  background: var(--bright);
}

/* --- Snow-trade blocks — specific to a seasonal-contract trade. ------------
   .figures-band replaces the .warrants strip under the hero: four figures rather
   than four claims, because on a seasonal-contract page the numbers ARE the
   argument. .price-list and .answers exist so this site does not repeat the
   .point <details> shape every other trade uses (§12 — vary structure,
   not only class names). */
.figures-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--seam-c);
  border-top: 1px solid var(--seam-c);
  border-bottom: 1px solid var(--seam-c);
}
.figures-band > div {
  background: var(--bright);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.figures-band .big-num {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--groundwork);
  letter-spacing: -0.01em;
}
.figures-band .caption-sm { font-size: 0.86rem; color: var(--sub); line-height: 1.4; }

.price-list { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 0.95rem; }
.price-list caption {
  caption-side: top;
  text-align: left;
  font-size: 0.85rem;
  color: var(--sub);
  padding-bottom: 8px;
}
.price-list th, .price-list td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--seam-c);
  vertical-align: top;
}
.price-list thead th {
  background: var(--groundwork);
  color: var(--bright);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.price-list tbody tr:nth-child(even) td { background: rgba(0, 0, 0, 0.018); }
.price-list td:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }

.winter-plan { counter-reset: step; list-style: none; margin: 4px 0 16px; padding: 0; }
.winter-plan li {
  counter-increment: step;
  position: relative;
  padding: 0 0 14px 44px;
  margin: 0;
}
.winter-plan li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lantern);
  color: var(--groundwork);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.answers { margin: 4px 0 0; }
.answers dt {
  font-weight: 650;
  color: var(--groundwork);
  margin: 18px 0 5px;
  font-size: 1.02rem;
}
.answers dt:first-child { margin-top: 0; }
.answers dd { margin: 0; padding: 0 0 4px 0; color: var(--body-c); }

@media (max-width: 560px) {
  .figures-band .big-num { font-size: 1.25rem; }
  .price-list th, .price-list td { padding: 9px 10px; }
}

/* --- Station lookup (services/where-the-snow-falls.html only).
   Which side of the lake-effect belt an address sits on decides how many
   times a season it gets cleared, so the page answers that for a community
   rather than describing it. No storage, no network — a lookup only. */
.station-panel {
  background: var(--bright);
  border: 1px solid var(--seam-c);
  border-radius: var(--round);
  padding: 20px;
  margin: 10px 0 4px;
}
.station-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.station-fields label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hue);
  margin-bottom: 5px;
}
.station-fields input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--seam-c);
  border-radius: var(--round);
  font-size: 1rem;
  font-family: inherit;
  color: var(--body-c);
  background: var(--surface);
}
.station-fields input:focus {
  outline: 2px solid var(--lantern);
  outline-offset: 1px;
  background: var(--bright);
}
.station-readout {
  margin-top: 18px;
  border-top: 1px solid var(--seam-c);
  padding-top: 16px;
}
.readout-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.readout-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--groundwork);
  font-variant-numeric: tabular-nums;
}
.readout-label { font-size: 0.92rem; color: var(--sub); }
.readout-note { font-size: 0.9rem; color: var(--hue); margin: 6px 0 0; }

/* --- Ordinance quotes (local-rules/, service-area pages).
   Sec. 668.11, Sec. 410.04(d)(i), the Suttons Bay ordinance and MCL 257.677a
   are quoted verbatim where the page turns on the wording; a paraphrase would
   lose "cause to be deposited". Two forms: a block with a cite, and a single
   quoted paragraph. */
.ordinance-quote, .law-note {
  margin: 8px 0 18px;
  padding: 18px 20px;
  background: var(--bright);
  border-left: 4px solid var(--lantern);
  border-radius: 0 var(--round) var(--round) 0;
}
.ordinance-quote p { margin: 0 0 10px; font-size: 1.02rem; line-height: 1.6; }
p.law-note { font-size: 1.02rem; line-height: 1.6; }
.ordinance-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sub);
  letter-spacing: 0.02em;
}

/* --- Reviews partial (inc/partials/reviews.php).
   Ships gated OFF via site.php show_reviews=false, but the partial ALSO renders
   when $IS_PREVIEW is true — so without these rules the block appears unstyled
   on the preview URL, and if the switch is ever flipped. Styled now so that
   flipping it is safe. */
.feedback-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.account {
  background: var(--bright);
  border: 1px solid var(--seam-c);
  border-radius: var(--round);
  padding: 18px 20px;
}
.account p { margin: 0 0 12px; font-size: 0.96rem; }
.grade-marks {
  color: var(--lantern);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.said-by {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--sub);
  font-style: normal;
}
