/* SCI Simons Construction Inc - Templeton - spec build #53
   ---------------------------------------------------------------------------
   PALETTE SAMPLED OFF THEIR OWN MATERIAL (clustered by hue, median per cluster):
   - Blue  #284FF2  the SCI oval on their logo (p10). Used as sampled: it clears
                    6.02:1 on white, so no darkening was needed.
   - Navy  #191762  the ground of their ad banner (p07).
   - Red   #C10326  the "24 HOUR SERVICE / DISASTER CLEAN UP" strip on the same
                    banner - so the red means emergency here, as it does there.
   ⚠ Hue collision with #49 Armorcoat's indigo (hue ~230 vs ~242). The brand
   wins; they are separated by the red, the layout and 60 miles.

   Structure, unlike #46-#52: a red emergency bar, a navy hero with TWO call
   buttons (their card prints two numbers), a GRID OF SMALL BEFORE/AFTER PAIRS
   shown at their native 320px (they were posted from a phone app at that size
   and are NOT upscaled), the three-column service list off their card, four
   reviews in a two-column grid, the license with their logo. No eyebrows.

   ⚠ EVERY RATIO BELOW WAS COMPUTED, NOT ESTIMATED.
     #FFFFFF on navy 15.67 | #AFC0FF blueL on navy 8.81 | #B7BAD6 mutedD on navy 8.21
     #284FF2 blue on white 6.02 | white on blue 6.02 | blue on navy 2.60 (NEVER)
     #C10326 red: white on it 6.35 | on white 6.35 | on paper 5.78
     #12132B ink on paper 16.56 | #545770 muted on paper 6.42, on white 7.06
   --------------------------------------------------------------------------- */

:root {
  --white:  #FFFFFF;
  --paper:  #F3F4F8;
  --ink:    #12132B;
  --navy:   #191762;
  --blue:   #284FF2;
  --blueL:  #AFC0FF;   /* DARK GROUNDS ONLY */
  --red:    #C10326;
  --muted:  #545770;
  --mutedD: #B7BAD6;   /* DARK GROUNDS ONLY */
  --rule:   #DDE0EA;
  --rule-d: #34327C;
  --r: 8px;
  --wide: 1180px;
  --sect: clamp(64px, 9vw, 108px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}

/* Browser surfaces. The parts you did not draw still carry the design, and
   this is the cheapest signal that a page was built rather than assembled. */
::selection      { background: var(--blue); color: var(--white); }
:root            { caret-color: var(--blue); accent-color: var(--blue); }
:focus-visible   { outline: 2px solid var(--blue); outline-offset: 3px; }
a                { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tabular, time, dd { font-variant-numeric: tabular-nums; }
@supports (scrollbar-color: auto) {
  html { scrollbar-color: var(--navy) var(--paper); scrollbar-width: thin; }
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: 24px; }
.muted { color: var(--muted); }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.1; font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 12px; }
.intro { color: var(--muted); max-width: 60ch; margin: 0 0 32px; }

/* ── Emergency bar ────────────────────────────────────────────────────── */
.alert { background: var(--red); color: var(--white); font-weight: 700; font-size: 15px; }
.alert .wrap { padding-block: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.alert a { color: var(--white); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--white); }

/* ── Masthead ─────────────────────────────────────────────────────────── */
.mast { background: var(--navy); border-bottom: 1px solid var(--rule-d); }
.mast .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center;
  justify-content: space-between; padding-block: 16px; }
.mark { margin: 0; color: var(--white); font-size: 20px; font-weight: 700; line-height: 1.2; }
.mark b { display: inline-block; background: var(--blue); color: var(--white); font-weight: 900;
  letter-spacing: 0.02em; padding: 2px 10px; border-radius: 999px; margin-right: 6px; }
.mark span { display: block; font-size: 14px; font-weight: 500; color: var(--mutedD); margin-top: 4px; }
.mast .tel { color: var(--white); font-weight: 700; text-decoration: none; white-space: nowrap;
  border: 1.5px solid var(--blueL); border-radius: var(--r); padding: 9px 16px; }
.mast .tel:hover { background: var(--white); color: var(--navy); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { background: var(--navy); color: var(--white); padding-block: clamp(48px, 7vw, 92px); }
.hero .wrap { display: grid; grid-template-columns: 1fr 360px; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); margin: 0 0 22px; }
.hero h1 em { font-style: normal; color: var(--blueL); }
.lede { font-size: 19px; max-width: 46ch; margin: 0 0 28px; color: var(--white); }
.calls { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; background: var(--red); color: var(--white); font-weight: 800;
  font-size: 19px; text-decoration: none; border-radius: var(--r); padding: 12px 22px; line-height: 1.25; }
.btn small { display: block; font-size: 13px; font-weight: 600; }
.btn:hover { background: #A0021F; }
.btn.ghost { background: transparent; border: 1.5px solid var(--blueL); }
.btn.ghost:hover { background: var(--white); color: var(--navy); }
.hero-pair .ba { display: grid; gap: 6px; }
.hero-pair img { width: 100%; max-width: 360px; border-radius: 4px; }
.hero-pair figcaption { margin-top: 10px; font-size: 14px; color: var(--mutedD); }

/* ── Before / after grid ──────────────────────────────────────────────── */
.job { padding-block: var(--sect); background: var(--paper); }
.pairs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .pairs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pairs { grid-template-columns: 1fr 1fr; gap: 12px; } .pair { padding: 6px; } .pair figcaption { font-size: 14px; } }
.pair { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); padding: 10px; }
.pair .ba { display: grid; gap: 4px; }
.pair img { width: 100%; max-width: 320px; margin-inline: auto; border-radius: 3px; }
.pair figcaption { padding: 10px 4px 2px; font-size: 15px; }

/* ── Services ─────────────────────────────────────────────────────────── */
.services { padding-block: var(--sect); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 40px; }
.svc-grid h3 { margin: 0 0 12px; font-size: 22px; padding-bottom: 10px; border-bottom: 3px solid var(--blue); }
.svc-grid ul { margin: 0; padding: 0; list-style: none; }
.svc-grid li { padding: 8px 0; border-bottom: 1px solid var(--rule); }

/* ── Reviews ──────────────────────────────────────────────────────────── */
.reviews { padding-block: var(--sect); background: var(--paper); }
.rev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.review { background: var(--white); border-radius: var(--r); padding: 26px; border-top: 4px solid var(--blue); }
.review blockquote { margin: 0; }
.review p { margin: 0; }
.review figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; }
.review figcaption b { color: var(--ink); }

/* ── License ──────────────────────────────────────────────────────────── */
.license { padding-block: var(--sect); }
.license .wrap { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(28px, 5vw, 72px); }
.lic-head img { width: 150px; border-radius: var(--r); margin-bottom: 22px; }
.record { margin: 0; border-top: 3px solid var(--navy); }
.record div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.record dt { color: var(--muted); font-size: 15px; }
.record dd { margin: 0; }
.record .hi dd { font-weight: 800; font-size: 21px; color: var(--blue); }
.record dd.sub { color: var(--muted); font-size: 15px; }

/* ── Reach ────────────────────────────────────────────────────────────── */
.reach { background: var(--navy); color: var(--white); padding-block: clamp(52px, 7vw, 84px); }
.reach .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.reach h2 { margin-bottom: 6px; }
.reach .muted { color: var(--mutedD); margin: 0; }
.reach-calls { display: flex; flex-wrap: wrap; gap: 18px 40px; }
.reach-calls p { margin: 0; }
.reach-calls span { display: block; font-size: 14px; color: var(--mutedD); }
.reach-calls a { color: var(--white); font-size: clamp(26px, 3vw, 34px); font-weight: 800; text-decoration: none; }

/* ── Letter ───────────────────────────────────────────────────────────── */
.letter { padding-block: var(--sect); }
.letter .wrap { max-width: 700px; }
.letter p { font-size: 18px; margin: 0 0 18px; }
.sign { margin-top: 26px !important; font-weight: 700; }

/* ── Footer ───────────────────────────────────────────────────────────── */
footer { background: var(--ink); color: var(--white); padding-block: 56px 96px; }
footer .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
footer h4 { margin: 0 0 8px; font-size: 17px; }
footer p { margin: 0 0 4px; color: var(--mutedD); font-size: 15px; }
footer a { color: var(--blueL); }
footer .legal { grid-column: 1 / -1; margin-top: 18px; padding-top: 18px; border-top: 1px solid #2A2C4A; font-size: 13px; line-height: 1.6; }

.callbar { display: none; }

@media (max-width: 900px) {
  .hero .wrap, .license .wrap { grid-template-columns: 1fr; }
  .hero-pair { max-width: 360px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .svc-grid, .rev-grid, footer .wrap { grid-template-columns: 1fr; }
  .record div { grid-template-columns: 1fr; gap: 2px; }
  .mast .tel { display: none; }
  .callbar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--navy);
  }
  .callbar a { display: block; text-align: center; background: var(--red); color: var(--white);
    font-weight: 800; text-decoration: none; border-radius: var(--r); padding: 14px; }
}
