/* Primo Plumbing/Mechanical - Santa Barbara - spec build #64
   ---------------------------------------------------------------------------
   PALETTE SAMPLED OFF THE PRIMO LETTERING ON THEIR TRUCK DOOR (p08): median
   of the saturated blue pixels = #366995, used as sampled. The slate
   #1C2B3A is the diamond behind the lettering, darkened for a ground.

   Structure: split hero with the State Street office photo (the business
   has a real storefront, which no other build had); one review set large
   on slate; an uneven six-photo grid; four reviews in a grid; the license
   beside the truck-door logo ("the same number that's on the truck door").
   A diamond motif from the logo marks the brand. No eyebrows.

   ⚠ EVERY RATIO BELOW WAS COMPUTED, NOT ESTIMATED.
     #366995 blue on white 5.81 | on paper 5.27 | white on it 5.81
     #FFFFFF on slate 14.42 | #9EC3E6 blueL on slate 7.83 | #B4BFCA on slate 7.72
     #1C2B3A slate on paper 13.08 | #555D66 muted on paper 6.06
   --------------------------------------------------------------------------- */

:root {
  --blue:  #366995;
  --blueL: #9EC3E6;   /* DARK GROUNDS ONLY */
  --slate: #1C2B3A;
  --paper: #F2F4F6;
  --white: #FFFFFF;
  --ink:   #1C2B3A;
  --muted: #555D66;
  --mutedD:#B4BFCA;   /* DARK GROUNDS ONLY */
  --rule:  #DCE1E7;
  --wide: 1180px;
  --sect: clamp(64px, 9vw, 108px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); 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(--blue) 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 { letter-spacing: -0.025em; line-height: 1.08; font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 0 0 12px; }
.intro { color: var(--muted); max-width: 60ch; margin: 0 0 30px; }

.btn { display: inline-block; background: var(--blue); color: var(--white); font-weight: 700;
  text-decoration: none; padding: 15px 26px; border-radius: 4px; white-space: nowrap; }
.btn:hover { background: var(--slate); }

.mast { background: var(--white); border-bottom: 1px solid var(--rule); }
.mast .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center;
  justify-content: space-between; padding-block: 14px; }
.mark { margin: 0; display: flex; align-items: center; gap: 12px; }
.mark b { display: inline-grid; place-items: center; background: var(--slate); color: var(--white);
  font-size: 18px; font-weight: 900; letter-spacing: 0.04em; padding: 10px 18px;
  clip-path: polygon(8% 0, 92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%); }
.mark span { font-size: 14px; color: var(--muted); font-weight: 600; }
.mast .tel { color: var(--blue); font-weight: 800; font-size: 18px; text-decoration: none; white-space: nowrap; }

.hero { padding-block: clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); margin: 0 0 20px; }
.lede { font-size: 19px; max-width: 42ch; margin: 0 0 26px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }
.actions span { color: var(--muted); font-size: 15px; }
.hero-photo img { border-radius: 6px; }

.quote { background: var(--slate); color: var(--white); padding-block: var(--sect); }
.review { margin: 0; }
.review blockquote { margin: 0; }
.review.big p { font-size: clamp(26px, 3.4vw, 42px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; margin: 0; max-width: 30ch; }
.quote figcaption { margin-top: 18px; color: var(--mutedD); font-size: 15px; }
.quote figcaption b { color: var(--blueL); }

.work { padding-block: var(--sect); }
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.work-grid figure { display: flex; flex-direction: column; }
.work-grid img { width: 100%; height: 100%; object-fit: cover; flex: 1; min-height: 0; border-radius: 6px; }
.work-grid figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.w-heater { grid-column: 1 / 5; grid-row: span 2; }
.w-basin  { grid-column: 5 / 13; }
.w-basin img { aspect-ratio: 16 / 8; }
.w-sink   { grid-column: 5 / 9; }
.w-shower { grid-column: 9 / 13; }
.w-sink img, .w-shower img { aspect-ratio: 4 / 3; }
.w-mosaic { grid-column: 1 / 5; }
.w-mosaic img { aspect-ratio: 4 / 3; object-position: 50% 40%; }
.w-fire   { grid-column: 5 / 13; }
.w-fire img { aspect-ratio: 16 / 6; }

.reviews { background: var(--white); padding-block: var(--sect); }
.rev-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.rev-grid .review { border-left: 4px solid var(--blue); padding: 4px 0 4px 20px; }
.rev-grid .review p { margin: 0; font-size: 17px; }
.rev-grid figcaption { margin-top: 12px; color: var(--muted); font-size: 15px; }
.rev-grid figcaption b { color: var(--ink); }

.license { padding-block: var(--sect); }
.license .wrap { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(28px, 5vw, 72px); }
.lic-head img { width: 240px; border-radius: 6px; margin-bottom: 22px; }
.record { margin: 0; border-top: 3px solid var(--slate); }
.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 { background: var(--blue); color: var(--white); padding-block: clamp(48px, 7vw, 80px); }
.reach .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.reach h2 { margin-bottom: 6px; }
.reach .muted { color: var(--white); margin: 0; }
.big { margin: 0; font-size: clamp(30px, 4vw, 46px); font-weight: 900; letter-spacing: -0.02em; }
.big a { color: var(--white); text-decoration: none; }

.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 { background: var(--slate); 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 #33455A; font-size: 13px; line-height: 1.6; }

.callbar { display: none; }

@media (max-width: 900px) {
  .hero .wrap, .license .wrap { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .rev-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-grid figure { grid-column: auto !important; grid-row: auto !important; }
  .w-basin, .w-fire { grid-column: 1 / -1 !important; }
  .w-heater img, .w-mosaic img { aspect-ratio: 3 / 4; }
}
@media (max-width: 600px) {
  .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(--slate);
  }
  .callbar a { display: block; text-align: center; background: var(--blue); color: var(--white);
    font-weight: 800; text-decoration: none; border-radius: 4px; padding: 14px; }
}
