/* Copper Summit Electric Inc - Templeton - spec build #54
   ---------------------------------------------------------------------------
   PALETTE SAMPLED OFF THEIR BADGE (the logo printed on the owner's shirt,
   p01): median of the saturated light pixels = copper #CF884F, hue ~27, on
   black. The badge is an OCTAGON with a mountain and sun rays; the license
   block borrows the octagon.
   ⚠ #48 Coastal Ridge was also orange-on-black (#CD6A4A, hue 15). The brand
   wins; this one is separated by hue (copper, not red-orange) and by using
   copper as a GROUND with black type on it, on a mostly light page, where
   #48 was a black page with orange type.

   Structure: a split hero, copper panel left ("Ask for Marty.") and a tall
   kitchen photo bleeding off the right edge; one before/after wall pair; an
   asymmetric lighting grid; two panel photos with text; four reviews; an
   octagon C-10 badge beside the license record. No eyebrows.

   ⚠ EVERY RATIO BELOW WAS COMPUTED, NOT ESTIMATED.
     #161412 black on copper 6.38 | copper on black 6.38
     #F7F1E8 cream on black 16.36 | black on cream 16.36 | black on sand 14.62
     #8A4E1F copperD on cream 5.86 | on white 6.58 | on sand 5.24 | white on it 6.58
     #5C554E muted on cream 6.53 | on sand 5.83
     #B9AFA4 mutedD on black 8.51                     DARK GROUNDS ONLY
     #CF884F copper on cream 2.57                     NEVER AS TEXT ON LIGHT
   --------------------------------------------------------------------------- */

:root {
  --black:  #161412;
  --cream:  #F7F1E8;
  --sand:   #EFE4D3;
  --white:  #FFFFFF;
  --copper: #CF884F;
  --copperD:#8A4E1F;
  --muted:  #5C554E;
  --mutedD: #B9AFA4;   /* DARK GROUNDS ONLY */
  --rule:   #E0D5C4;
  --wide: 1180px;
  --sect: clamp(64px, 9vw, 108px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--black);
  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(--copper); color: var(--black); }
:root            { caret-color: var(--copperD); accent-color: var(--copperD); }
:focus-visible   { outline: 2px solid var(--copperD); outline-offset: 3px; }
a                { color: var(--copperD); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tabular, time, dd { font-variant-numeric: tabular-nums; }
@supports (scrollbar-color: auto) {
  html { scrollbar-color: var(--copperD) var(--sand); 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.03em; line-height: 1.05; font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 0 0 14px; }
.intro { color: var(--muted); max-width: 60ch; margin: 0 0 30px; }

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

/* ── Masthead ─────────────────────────────────────────────────────────── */
.mast { background: var(--black); color: var(--cream); }
.mast .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center;
  justify-content: space-between; padding-block: 12px; }
.mark { margin: 0; display: flex; align-items: center; gap: 14px; }
.mark img { width: 52px; height: auto; border-radius: 4px; }
.mark span { font-size: 14px; color: var(--mutedD); line-height: 1.3; }
.mark b { display: block; font-size: 20px; color: var(--cream); letter-spacing: -0.02em; }
.mast .tel { color: var(--copper); font-weight: 700; font-size: 18px; text-decoration: none; }

/* ── Hero: copper panel and a photo off the edge ──────────────────────── */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.hero-copy { background: var(--copper); color: var(--black); display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px) clamp(40px, 6vw, 80px) max(24px, calc((100vw - var(--wide)) / 2 + 24px)); }
.hero h1 { font-size: clamp(48px, 7vw, 92px); margin: 0 0 22px; }
.lede { font-size: 19px; max-width: 34ch; margin: 0 0 28px; }
.hours { margin: 14px 0 0; font-size: 15px; font-weight: 600; }
.hero-photo { position: relative; overflow: hidden; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }

/* ── Wall before/after ────────────────────────────────────────────────── */
.wall { padding-block: var(--sect); }
.wall .wrap { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.wall-text p { font-size: 18px; max-width: 40ch; margin: 0; }
.wall-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wall-pair img { border-radius: 4px; }
.wall-pair figcaption { margin-top: 8px; font-weight: 700; font-size: 15px; color: var(--copperD); }

/* ── Lighting grid ────────────────────────────────────────────────────── */
.light { background: var(--sand); padding-block: var(--sect); }
.light-grid { display: grid; grid-template-columns: 5fr 3fr 3fr; grid-template-rows: auto auto; gap: 16px; }
.light-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.light-grid figure { display: flex; flex-direction: column; }
.light-grid figure img { flex: 1; min-height: 0; }
.light-grid figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.l-bar { grid-column: 1; grid-row: 1 / span 2; }
.l-stairs { grid-column: 2; grid-row: 1 / span 2; }
.l-bath { grid-column: 3; grid-row: 1; }
.l-dining { grid-column: 3; grid-row: 2; }
.l-bath img, .l-dining img { aspect-ratio: 1; }

/* ── Panels ───────────────────────────────────────────────────────────── */
.panels { padding-block: var(--sect); }
.panels .wrap { display: grid; grid-template-columns: 3fr 3fr 4fr; gap: 16px 28px; align-items: end; }
.panels img { border-radius: 4px; }
.panels-text { align-self: center; padding-left: clamp(0px, 2vw, 24px); }
.panels-text p { font-size: 18px; margin: 0; max-width: 32ch; }

/* ── Reviews ──────────────────────────────────────────────────────────── */
.reviews { background: var(--black); color: var(--cream); padding-block: var(--sect); }
.rev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.review { border: 1px solid #3A342E; border-radius: 4px; padding: 26px; }
.review blockquote { margin: 0; }
.review p { margin: 0; font-size: 18px; }
.review figcaption { margin-top: 14px; color: var(--mutedD); font-size: 15px; }
.review figcaption b { color: var(--copper); }

/* ── License with the octagon ─────────────────────────────────────────── */
.license { padding-block: var(--sect); }
.license .wrap { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.oct { width: 200px; aspect-ratio: 1; background: var(--copper); display: grid; place-items: center;
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.oct span { font-size: 54px; font-weight: 900; letter-spacing: -0.03em; }
.record { margin: 0; border-top: 3px solid var(--black); }
.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(--copperD); }

/* ── Reach ────────────────────────────────────────────────────────────── */
.reach { background: var(--copper); 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(--black); margin: 0; }
.big { margin: 0; font-size: clamp(30px, 4vw, 46px); font-weight: 900; letter-spacing: -0.02em; }
.big a { color: var(--black); 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(--black); color: var(--cream); 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(--copper); }
footer .legal { grid-column: 1 / -1; margin-top: 18px; padding-top: 18px; border-top: 1px solid #3A342E; font-size: 13px; line-height: 1.6; }

.callbar { display: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 44px 24px; }
  .hero-photo { height: 420px; }
  .wall .wrap, .license .wrap { grid-template-columns: 1fr; }
  .panels .wrap { grid-template-columns: 1fr 1fr; }
  .panels-text { grid-column: 1 / -1; grid-row: 1; padding-left: 0; }
  .light-grid { grid-template-columns: 1fr 1fr; }
  .l-bar { grid-column: 1 / -1; grid-row: auto; }
  .l-stairs, .l-bath, .l-dining { grid-column: auto; grid-row: auto; }
  .l-stairs img { aspect-ratio: 1; }
  .l-dining { grid-column: 1 / -1; } .l-dining img { aspect-ratio: 16 / 10; object-position: 50% 45%; }
  .oct { width: 140px; } .oct span { font-size: 38px; }
}
@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(--black);
  }
  .callbar a { display: block; text-align: center; background: var(--copper); color: var(--black);
    font-weight: 800; text-decoration: none; border-radius: 4px; padding: 14px; }
}
