/* California Heating & Rain Gutters - Carpinteria - spec build #67
   ---------------------------------------------------------------------------
   ⚠⚠ THE PALETTE WAS CHOSEN, NOT SAMPLED. No logo, truck or sign exists in
   the photos, and three of the listing's seven images are stock and are not
   used. Chosen: dark steel #1F2A33 and a flame orange #C2410C.

   Structure: a split hero with the York furnace photo in a tall frame; a
   three-photo row of installs; all three reviews; the license with its four
   classes spelled out. No eyebrows.

   ⚠ EVERY RATIO BELOW WAS COMPUTED, NOT ESTIMATED.
     #1F2A33 steel on paper 13.39 | white on steel 14.61
     #C2410C flame on white 5.18 | on paper 4.74 | white on it 5.18
     #FDBA8C peach on steel 8.75 | #B7C0C8 mutedD on steel 7.92   DARK ONLY
     #55606B muted on paper 5.88
   --------------------------------------------------------------------------- */

:root {
  --steel:  #1F2A33;
  --flame:  #C2410C;
  --peach:  #FDBA8C;   /* DARK GROUNDS ONLY */
  --mutedD: #B7C0C8;   /* DARK GROUNDS ONLY */
  --paper:  #F4F5F6;
  --white:  #FFFFFF;
  --muted:  #55606B;
  --rule:   #DDE1E5;
  --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(--steel);
  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(--flame); color: var(--white); }
:root            { caret-color: var(--flame); accent-color: var(--flame); }
:focus-visible   { outline: 2px solid var(--flame); outline-offset: 3px; }
a                { color: var(--flame); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tabular, time, dd { font-variant-numeric: tabular-nums; }
@supports (scrollbar-color: auto) {
  html { scrollbar-color: var(--steel) 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.03em; line-height: 1.06; 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; }
figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }

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

.mast { background: var(--steel); color: var(--white); border-bottom: 4px solid var(--flame); }
.mast .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center;
  justify-content: space-between; padding-block: 16px; }
.mark { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.mark span { display: block; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--mutedD); }
.mast .tel { color: var(--peach); font-weight: 700; text-decoration: none; white-space: nowrap; }

.hero { background: var(--steel); color: var(--white); padding-block: clamp(48px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(34px, 4.8vw, 58px); margin: 0 0 22px; }
.hero h1 em { font-style: normal; color: var(--peach); }
.lede { font-size: 19px; max-width: 46ch; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }
.actions span { color: var(--mutedD); font-size: 15px; }
.hero-photo img { border-radius: 6px; max-height: 560px; width: auto; margin-inline: auto; }

.work { padding-block: var(--sect); }
.grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; align-items: stretch; }
.grid figure { display: flex; flex-direction: column; }
.grid img { width: 100%; height: 100%; object-fit: cover; flex: 1; min-height: 0; max-height: 520px; border-radius: 6px; }

.reviews { background: var(--white); padding-block: var(--sect); }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { margin: 0; border-top: 4px solid var(--flame); padding-top: 18px; }
.review blockquote { margin: 0; }
.review p { margin: 0 0 12px; font-size: 18px; }
.review figcaption b { color: var(--steel); }

.license { padding-block: var(--sect); }
.license .wrap { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(28px, 5vw, 72px); }
.record { margin: 0; border-top: 3px solid var(--steel); }
.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(--flame); }
.record dd.sub { color: var(--muted); font-size: 15px; }

.reach { background: var(--flame); 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(--steel); 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(--peach); }
footer .legal { grid-column: 1 / -1; margin-top: 18px; padding-top: 18px; border-top: 1px solid #36434E; font-size: 13px; line-height: 1.6; }

.callbar { display: none; }

@media (max-width: 900px) {
  .hero .wrap, .license .wrap, .rev-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 360px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .g-wide { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  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(--steel);
  }
  .callbar a { display: block; text-align: center; background: var(--flame); color: var(--white);
    font-weight: 700; text-decoration: none; border-radius: 4px; padding: 14px; }
}
