/* Oakland County Snow Removal Pros - base stylesheet
   Single static stylesheet, no build step, no external font or JS dependency.

   Palette: slate chrome with a brick-red signal color, and a light tint of that
   red for the second word of the wordmark rather than the amber this stylesheet
   was inherited with - amber against red reads as two accents fighting. Every
   pair below is computed, not eyeballed. This file is served publicly, so it
   carries the numbers and nothing else.

   Contrast (WCAG AA needs 4.5:1 for body text, 3:1 for large text):
     white on --signal-deep (#a52f2c) .... 6.90:1
     white on --signal (#c73e3a) ......... 5.03:1
     white on --anchor (#2f3a4a) ........ 11.51:1
     white on --steel (#4c5a72) .......... 6.97:1
     --steel on --page ..................... 6.40:1
     --signal-deep on --page ............... 6.33:1
     --glyph-c on --page ...................... 15.17:1
     --low-c on --page ..................... 5.22:1
     nav link (#e3e8ef) on --anchor ...... 9.35:1
     wordmark tail (#e7b3ab) on --anchor . 6.27:1
     footer text (#a9b3c0) on #141920 .... 8.32:1
*/

:root {
  --anchor: #2f3a4a;
  /* RGB channels of --anchor, for the hero photo scrim. */
  --film: 47, 58, 74;
  --steel: #4c5a72;
  --signal-deep: #a52f2c;
  --signal: #c73e3a;
  --page: #f6f5f3;
  --pure: #ffffff;
  --glyph-c: #1b1f26;
  --low-c: #616772;
  --edge: #dcd9d4;
  --softening: 4px;
  --extent: 1120px;
  /* 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. */
  --bar-h: 59px;
}

/* The bar is taller above the mobile breakpoint (larger type, roomier buttons). */
@media (min-width: 768px) { :root { --bar-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(--glyph-c);
  background: var(--page);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--steel); text-decoration: none; }
a:hover { text-decoration: underline; }
.aisle { max-width: var(--extent); margin: 0 auto; padding: 0 20px; }

/* Header */
header.toprail {
  background: var(--anchor);
  color: var(--pure);
  position: sticky;
  top: 0;
  z-index: 50;
}
header.toprail .batten {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--extent);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}
header.toprail .house-name {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--pure);
}
/* The brand mark sits on --anchor. --signal-deep against --anchor 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.toprail .house-name span { color: #e7b3ab; }
header.toprail nav { display: flex; gap: 16px; flex-wrap: wrap; }
header.toprail nav a { color: #e3e8ef; font-size: 0.95rem; }
header.toprail nav a:hover { color: var(--pure); }
header.toprail .speak {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  background: var(--signal-deep);
  color: var(--pure);
  padding: 9px 16px;
  border-radius: var(--softening);
  font-weight: 700;
}
header.toprail .speak:hover { background: #2d4f7c; text-decoration: none; }

/* Hero */
.standard {
  background: linear-gradient(135deg, var(--anchor), var(--steel));
  color: var(--pure);
  padding: 56px 20px 48px;
}
.standard .aisle { display: flex; flex-direction: column; gap: 18px; }
.standard .pretitle {
  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;
}
.standard h1 { font-size: 2.2rem; margin: 0; max-width: 760px; }
.standard p.dek { font-size: 1.1rem; color: #e4e2de; max-width: 600px; margin: 0; }
.standard .decision-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.actuator {
  display: inline-block;
  padding: 13px 22px;
  border-radius: var(--softening);
  font-weight: 700;
  font-size: 1rem;
}
.actuator.foremost { background: var(--signal-deep); color: var(--pure); }
.actuator.foremost:hover { background: #2d4f7c; text-decoration: none; }
.actuator.understated { background: rgba(255,255,255,0.08); color: var(--pure); border: 1px solid rgba(255,255,255,0.35); }
.actuator.understated:hover { background: rgba(255,255,255,0.16); text-decoration: none; }
.standard .tail-note { font-size: 0.9rem; color: #cdc9c2; 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. */
.standard .referral-note {
  font-size: 0.9rem;
  color: #ffffff;
  max-width: 680px;
  background: rgba(var(--film), 0.82);
  border-left: 3px solid var(--signal-deep);
  padding: 12px 16px;
  border-radius: 6px;
  margin: 18px 0 10px;
}
.standard .referral-note 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. */
.standard.plated {
  background-image:
    linear-gradient(90deg, rgba(var(--film), 0.93) 0%, rgba(var(--film), 0.88) 45%, rgba(var(--film), 0.72) 70%, rgba(var(--film), 0.35) 100%),
    url('/images/hero-ocsr-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) {
  .standard.plated {
    background-image:
      linear-gradient(180deg, rgba(var(--film), 0.88) 0%, rgba(var(--film), 0.8) 55%, rgba(var(--film), 0.65) 100%),
      url('/images/hero-ocsr-photo-mobile.jpg');
    min-height: 460px;
  }
}

/* Sections */
section { padding: 48px 20px; }
section.inset { background: var(--pure); border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.band-tag {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--signal-deep);
  font-weight: 700;
  margin-bottom: 6px;
}
h2 { font-size: 1.65rem; margin: 0 0 20px; color: var(--anchor); }
h3 { font-size: 1.15rem; margin: 0 0 8px; color: var(--anchor); }

/* Grid cards */
.board { display: grid; gap: 18px; }
.board.three-across { grid-template-columns: repeat(3, 1fr); }
.board.bisect { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) {
  .board.three-across, .board.bisect { grid-template-columns: 1fr; }
  .standard h1 { font-size: 1.7rem; }
  header.toprail .batten { 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.toprail nav {
    order: 3;
    flex: 1 0 100%;
    justify-content: center;
    margin-top: 2px;
  }
}
.module {
  background: var(--pure);
  border: 1px solid var(--edge);
  border-radius: var(--softening);
  padding: 20px;
}
.module .pictogram { font-size: 1.6rem; margin-bottom: 8px; }
.module p { color: var(--low-c); margin: 6px 0 0; font-size: 0.95rem; }

/* The second card shape on this site. `.module` is the plain bordered card;
   `.pod` is the one used where a grid is making a comparison rather than a list
   — the three ways a contract can treat a plow berm, the property types on the
   commercial hub. The left rule in the signal color is what separates them at a
   glance, and it is why the two are not the same class with a modifier. */
.pod {
  background: var(--pure);
  border: 1px solid var(--edge);
  border-left: 3px solid var(--signal);
  border-radius: 0 var(--softening) var(--softening) 0;
  padding: 18px 20px;
}
.pod h3 { margin: 0 0 7px; font-size: 1.06rem; }
.pod p { color: var(--low-c); margin: 0 0 8px; font-size: 0.95rem; }
.pod p:last-child { margin-bottom: 0; }
.pod .tail-note { display: block; margin-top: 8px; }

/* Trust strip */
.reassure {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: center;
  padding: 18px 20px;
  background: var(--pure);
  border-bottom: 1px solid var(--edge);
  font-size: 0.92rem;
  color: var(--low-c);
}
.reassure strong { color: var(--anchor); }

/* FAQ — native <details>/<summary> accordion, no JS needed */
.query-block { border-bottom: 1px solid var(--edge); padding: 14px 0; }
.query-block:first-child { padding-top: 0; }
.query-block summary {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--anchor);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.query-block summary::-webkit-details-marker { display: none; }
.query-block summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--signal-deep);
  flex-shrink: 0;
}
.query-block[open] summary::after { content: "\2212"; }
.query-block p { margin: 10px 0 0; color: var(--low-c); }

/* How It Works */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.phase-card { background: var(--pure); border: 1px solid var(--edge); border-radius: var(--softening); padding: 20px; }
.phase-card .stage-no {
  width: 30px; height: 30px; border-radius: 50%;
  background: #eef1f4; color: var(--signal-deep); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.phase-card h3 { font-size: 1.02rem; }
.phase-card p { color: var(--low-c); font-size: 0.92rem; margin: 0; }
@media (max-width: 820px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .process { grid-template-columns: 1fr; } }

/* Sticky CTA bar — visible at EVERY width (calls are the priority conversion) */
.standing-cta {
  display: flex;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--anchor);
  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 .undock-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. */
.undock-inner {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: var(--extent);
  margin: 0 auto;
}
.standing-cta 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;
}
.standing-cta .ring-mark { flex: none; }
/* Mobile: keep both buttons, but weight the call button ~60/40 over the form. */
.standing-call { flex: 3; background: var(--signal-deep); color: var(--pure); }
.perch-ask { flex: 2; background: rgba(255,255,255,0.1); color: var(--pure); border: 1px solid rgba(255,255,255,0.35); }
.standing-call:hover { background: #2d4f7c; text-decoration: none; }
.perch-ask:hover { background: rgba(255,255,255,0.18); text-decoration: none; }
/* Narrow phones: the digits must survive, the qualifier is what gives way. */
.standing-cta .suffix-note { display: none; }
@media (min-width: 520px) {
  .standing-cta .suffix-note { display: inline; }
}
/* Above the mobile breakpoint: content-width buttons, centered. */
@media (min-width: 768px) {
  .undock-inner { justify-content: center; }
  .standing-cta 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(--bar-h); }
/* Area links */
.nearby-line { display: flex; flex-wrap: wrap; gap: 10px; }
.nearby-line a {
  background: var(--pure);
  border: 1px solid var(--edge);
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--anchor);
  font-size: 0.92rem;
}
.nearby-line a:hover { border-color: var(--signal-deep); text-decoration: none; }

/* CTA band */
.send-off {
  background: var(--anchor);
  color: var(--pure);
  text-align: center;
  padding: 44px 20px;
}
.send-off h2 { color: var(--pure); }
.send-off p { color: #e3e8ef; margin-bottom: 18px; }

/* Contact form */
form.submission { display: grid; gap: 12px; max-width: 480px; }
form.submission label { font-size: 0.88rem; font-weight: 600; color: var(--anchor); display: block; margin-bottom: 4px; }
form.submission input, form.submission select, form.submission textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--edge);
  border-radius: 5px;
  font-size: 0.95rem;
  font-family: inherit;
}
form.submission .small-note { font-size: 0.78rem; color: var(--low-c); }
form.submission .cross-ref { position: absolute; left: -9999px; top: -9999px; }
form.submission button[disabled] { opacity: 0.6; cursor: not-allowed; }
.echo-line { margin-top: 12px; padding: 11px 14px; border-radius: 5px; font-size: 0.9rem; display: none; }
.echo-line.visible { display: block; }
.echo-line.success { background: #eef1f4; color: #3c4756; }
.echo-line.error { background: #fbeae7; color: #a3251d; }

/* Breadcrumb */
.path { font-size: 0.85rem; color: var(--low-c); padding: 14px 20px 0; max-width: var(--extent); margin: 0 auto; }
.path a { color: var(--low-c); }

/* Footer */
footer.toprail {
  background: #141920;
  color: #a9b3c0;
  padding: 40px 20px 24px;
  font-size: 0.9rem;
}
footer.toprail .aisle { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
footer.toprail h2 { color: var(--pure); font-size: 0.95rem; margin: 0 0 10px; }
footer.toprail ul { list-style: none; padding: 0; margin: 0; }
footer.toprail li { margin-bottom: 6px; }
footer.toprail a { color: #a9b3c0; }
footer.toprail .footline {
  max-width: var(--extent);
  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.toprail .aisle { grid-template-columns: 1fr 1fr; }
}
.not-yet {
  background: #fdf3d6;
  color: #6f5a12;
  border: 1px dashed var(--signal);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.82em;
}

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

header.toprail .house-name {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.seal {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}

/* --- 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
   / .pair 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. */
.documentary {
  max-width: var(--extent);
  margin: 0 auto;
  padding: 34px 20px;
}
.documentary img {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--softening);
  border: 1px solid var(--edge);
}

/* --- Homepage work strip ---------------------------------------------- */
/* Eight images on this site, so the grid is 4 columns and the counts come out
   even at every breakpoint: 4x2 on desktop, 2x4 at 900px and 2x4 at 520px. The
   column count is tuned to the image count, not copied - a ragged trailing row
   is the visible tell that nobody redid the arithmetic. */
.gallery-band .tiles-xs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-band 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: var(--softening);
  border: 1px solid var(--edge);
  background: var(--pure);
}
@media (max-width: 900px) { .gallery-band .tiles-xs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery-band .tiles-xs { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* --- 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. */
.grid-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--edge);
  border-radius: var(--softening);
  background: var(--pure);
}

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

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

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

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

@media (max-width: 560px) {
  .tally-band .count-fig { font-size: 1.25rem; }
  .figures th, .figures td { padding: 9px 10px; }
}

/* --- 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. */
.commendations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.voice {
  background: var(--pure);
  border: 1px solid var(--edge);
  border-radius: var(--softening);
  padding: 18px 20px;
}
.voice p { margin: 0 0 12px; font-size: 0.96rem; }
.scoring {
  color: var(--signal);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.source-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--low-c);
  font-style: normal;
}
