/* ==========================================================================
   Miller Roofing Company — design system
   Palette: asphalt ink, warm paper, deep signal red (brand), copper flashing
   Type: Big Shoulders Display / Barlow / IBM Plex Mono
   Signature: the 6/12 pitch — every angled cut on this site is rise 1 : run 2
   ========================================================================== */

/* ---------- fonts ---------- */
@font-face { font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/bigshouldersdisplay-500.woff2') format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/bigshouldersdisplay-600.woff2') format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/bigshouldersdisplay-700.woff2') format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/bigshouldersdisplay-800.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/barlow-400i.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/barlow-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/barlow-700.woff2') format('woff2'); }
/* IBM Plex Mono retired 2026-09-14 per Lorrie (meeting 2): no typewriter type.
   Label styling now runs on bold Barlow via --mono. */

/* ---------- tokens ---------- */
:root {
  --ink: #201d1b;
  --char: #2b2725;
  --char-soft: #37322f;
  --paper: #faf8f4;
  --stone: #f0ebe2;
  --line: #ddd5c8;
  --line-dark: #453f3b;
  --body: #46413c;
  --mute: #71695f;
  --mute-dark: #a99f93;
  --red: #b02a20;
  --red-deep: #8a1f17;
  --red-bright: #d3372c;
  --copper: #b06f2e;
  --white: #ffffff;

  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --sans: 'Barlow', 'Segoe UI', sans-serif;
  --mono: 'Barlow', 'Segoe UI', Arial, sans-serif; /* label face — bold sans, not typewriter */

  /* the 6/12 pitch: rise 1, run 2 (26.57deg) */
  --cut: polygon(0 0, calc(100% - 22px) 0, 100% 11px, 100% 100%, 0 100%);
  --cut-sm: polygon(0 0, calc(100% - 14px) 0, 100% 7px, 100% 100%, 0 100%);

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 118px; } /* clear the sticky header when jumping to anchors (96px header + the 22px .reveal offset) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
/* clipped elements can't show an outer outline — paint the ring inside the clip */
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 6px var(--red); }
.btn--ghost:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 5px var(--paper), inset 0 0 0 8px var(--red); }
.on-dark .btn--ghost:focus-visible, .btn--ghost.on-dark:focus-visible { box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 5px var(--ink), inset 0 0 0 8px var(--red); }
.masonry figure:focus-visible { outline: none; }
.masonry figure:focus-visible::after { content: ''; position: absolute; inset: 0; border: 3px solid var(--red); pointer-events: none; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--white); padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { left: 0; }

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  color: var(--ink);
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: .005em;
}
h1 { font-weight: 800; font-size: clamp(3rem, 7.5vw, 5.75rem); }
h2 { font-weight: 800; font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h3 { font-weight: 700; font-size: clamp(1.35rem, 2.2vw, 1.7rem); letter-spacing: .015em; }
.lede { font-size: clamp(1.125rem, 1.8vw, 1.3rem); line-height: 1.55; color: var(--body); max-width: 34em; }
.eyebrow {
  font-family: var(--mono); font-size: .95rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--red);
  display: inline-flex; align-items: center; gap: .65em; margin-bottom: 1.1rem;
}
.eyebrow::before { content: ''; width: 26px; height: 13px; flex: none;
  background: linear-gradient(to top right, transparent 49.5%, currentColor 49.5%, currentColor 60%, transparent 60%); }
.on-dark h2, .on-dark h3 { color: var(--paper); }
.on-dark .eyebrow { color: var(--copper); }
.on-dark p { color: var(--mute-dark); }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--tight { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--stone { background: var(--stone); }
.section--dark { background: var(--ink); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.grid-2 > * { min-width: 0; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

/* ridge divider: elevation-drawing roofline at 6/12 */
.ridge { display: block; width: 100%; height: 46px; color: var(--line); }
.section--dark .ridge, .ridge.on-dark { color: var(--line-dark); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--display); font-weight: 700; font-size: 1.18rem;
  letter-spacing: .05em; text-transform: uppercase;
  padding: .85em 1.7em; border: 0; cursor: pointer;
  clip-path: var(--cut-sm);
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-deep); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.on-dark .btn--ghost, .btn--ghost.on-dark { color: var(--paper); box-shadow: inset 0 0 0 2px var(--paper); }
.on-dark .btn--ghost:hover, .btn--ghost.on-dark:hover { background: var(--paper); color: var(--ink); }
.btn--lg { font-size: 1.35rem; padding: .95em 2em; }

/* ---------- header ---------- */
.topbar {
  background: var(--ink); color: var(--mute-dark);
  font-family: var(--mono); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 1rem; }
.topbar a { color: var(--paper); }
.topbar a:hover { color: var(--copper); }
.topbar-right { display: flex; gap: 1.6rem; }
@media (max-width: 700px) { .topbar-left span.hide-sm { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 244, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { flex: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.65rem; text-transform: uppercase; line-height: .85; letter-spacing: .02em; }
.brand-sub { font-family: var(--mono); font-size: .58rem; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); display: block; margin-top: .25em; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav a {
  font-family: var(--sans); font-weight: 600; font-size: .95rem; color: var(--ink);
  padding: .35em 0; position: relative;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { font-size: 1.02rem; padding: .6em 1.3em; }
.nav .btn::after { display: none; }

/* nav dropdowns (Services, Construction) — parent link still navigates */
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: .38em; }
.nav-item .caret { flex: none; color: var(--mute); transition: transform .18s ease; }
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(180deg); color: var(--red); }
.nav .drop {
  position: absolute; top: 100%; left: -1.15rem; min-width: 14.5rem; z-index: 30;
  background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--red);
  padding: .5rem 0 1.05rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 22px) 100%, 0 100%);
  filter: drop-shadow(0 16px 22px rgba(32, 29, 27, .16));
  opacity: 0; visibility: hidden; transform: translateY(10px); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.nav-item:hover .drop, .nav-item:focus-within .drop {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s;
}
.nav .drop a { display: block; padding: .52em 1.2em; font-size: .92rem; }
.nav .drop a::after { display: none; }
.nav .drop a:hover, .nav .drop a:focus-visible { color: var(--red); background: var(--stone); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle svg { display: block; }

@media (max-width: 1020px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.25rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8em 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 1rem; justify-content: center; }
  .nav-toggle { display: block; }
  /* dropdowns become always-visible indented groups in the mobile panel */
  .nav-item .caret { display: none; }
  .nav-item > a { display: block; }
  .nav .drop {
    position: static; opacity: 1; visibility: visible; transform: none; pointer-events: auto;
    border: 0; padding: 0 0 .2rem 1.1rem; min-width: 0; clip-path: none; filter: none;
    background: transparent; transition: none;
  }
  .nav .drop a { font-size: .98rem; color: var(--body); padding: .62em 0; }
  .nav .drop a:hover, .nav .drop a:focus-visible { background: transparent; }
}

/* ---------- hero (home) ---------- */
.hero { position: relative; background: var(--paper); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 46%) 1fr; min-height: min(82vh, 780px); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 6vw, 5rem) var(--gutter) clamp(3rem, 6vw, 5rem) max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.hero-copy h1 { margin: 0 0 1.2rem; }
.hero-copy h1 .accent { color: var(--red); }
.hero-copy .lede { margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-photo { position: relative; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.hero-photo img, .hero-photo video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  clip-path: polygon(22% 0, calc(22% + 12px) 0, 12px 100%, 0 100%);
  background: var(--red);
}
.hero-strip { border-top: 1px solid var(--line); background: var(--paper); }
.hero-strip .wrap {
  display: flex; flex-wrap: wrap; gap: .4rem 2.4rem; justify-content: space-between;
  padding-top: 1rem; padding-bottom: 1rem;
  font-family: var(--mono); font-size: .88rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--body);
}
.hero-strip strong { color: var(--ink); font-weight: 700; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; height: 46vh; min-height: 300px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11vw), 0 100%); }
  .hero-photo::before { display: none; }
  .hero-copy { padding-top: 1.5rem; }
}

/* page hero (interior pages) */
.page-hero { background: var(--ink); position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 2; padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.page-hero h1 { color: var(--paper); margin: 0; }
.page-hero .eyebrow { color: var(--copper); }
.page-hero .lede { color: var(--mute-dark); margin-top: 1.3rem; }
.page-hero-img { position: absolute; inset: 0; z-index: 1; }
/* brighter page heroes (Lorrie, meeting 2): photo in full color, ink panel angled
   behind the text only, so the home shows through on the right */
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-img::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(97deg, rgba(32,29,27,.94) 18%, rgba(32,29,27,.82) 38%, rgba(32,29,27,.38) 66%, rgba(32,29,27,.06) 92%); }
@media (max-width: 700px) {
  .page-hero-img::after { background: linear-gradient(180deg, rgba(32,29,27,.9) 0%, rgba(32,29,27,.78) 100%); }
}
.crumbs { font-family: var(--mono); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.4rem; }
.crumbs a { color: var(--mute-dark); }
.crumbs a:hover { color: var(--copper); }
.crumbs span { color: var(--copper); }

/* ---------- service cards: staggered like shingle courses ---------- */
.courses { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.courses .card:nth-child(even) { transform: translateY(clamp(1.5rem, 3vw, 2.75rem)); }
@media (max-width: 700px) { .courses { grid-template-columns: 1fr; } .courses .card:nth-child(even) { transform: none; } }

.card { background: var(--white); clip-path: var(--cut); box-shadow: 0 1px 0 var(--line), 0 14px 40px -18px rgba(32, 29, 27, .28); display: flex; flex-direction: column; }
.card-img { aspect-ratio: 16 / 9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.045); }
.card-body { padding: 1.6rem 1.7rem 1.8rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.card-num { font-family: var(--mono); font-size: .82rem; font-weight: 700; letter-spacing: .18em; color: var(--copper); text-transform: uppercase; }
.card-body p { flex: 1; }
.card-link { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.05rem; letter-spacing: .06em; color: var(--red); display: inline-flex; align-items: center; gap: .5em; }
.card-link::after { content: '\2192'; transition: transform .2s ease; }
.card:hover .card-link::after { transform: translateX(4px); }
.section--dark .card { background: var(--char); box-shadow: none; }
.section--dark .card h3 { color: var(--paper); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.stat { background: var(--ink); padding: 2.4rem 1.5rem 2.1rem; text-align: center; }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; color: var(--paper); }
.stat b .plus { color: var(--red-bright); }
.stat > span { font-family: var(--mono); font-size: .84rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mute-dark); display: block; margin-top: .6rem; }
.stat b span { font: inherit; color: inherit; display: inline; letter-spacing: inherit; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- badges / proof ---------- */
.badge-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.8rem, 4vw, 3.2rem); }
/* full color by default (Lorrie, meeting 2); gray only on hover, as discussed */
.badge-row img { height: 56px; width: auto; transition: filter .25s ease, opacity .25s ease; }
.badge-row img:hover { filter: grayscale(1) contrast(.9); opacity: .8; }
.badge-row img.badge-tall { height: 84px; }

/* FORTIFIED centre stage, everything else supporting it (Lorrie, meeting 3) */
.badge-hero-block { display: flex; flex-direction: column; align-items: center; gap: .85rem; text-align: center; }
.badge-hero-block .badge-hero { height: clamp(76px, 8.5vw, 112px); width: auto; transition: filter .25s ease, opacity .25s ease; }
.badge-hero-block .badge-hero:hover { filter: grayscale(1) contrast(.9); opacity: .8; }
.badge-hero-note { font-size: .95rem; color: var(--mute); max-width: 46ch; }
.badge-hero-note b { color: var(--ink); }
/* The supporting row under FORTIFIED. Every badge PNG here is trimmed to its own ink
   (no baked-in canvas padding), so a max-width/max-height box gives them a matched
   optical size and centres the row on the marks themselves, not on padded boxes. */
.badge-row--supporting { gap: clamp(1.4rem, 3vw, 2.6rem); }
.badge-row--supporting img,
.badge-row--supporting img.badge-tall {
  width: auto; height: auto;
  max-width: 120px; max-height: 44px;
}

/* ---------- general-contractor callout (Lorrie, meeting 3: don't let it get lost) ---------- */
.gc-kicker {
  display: block; color: var(--copper);
  font-size: clamp(1.45rem, 2.7vw, 2.15rem); font-weight: 700;
  letter-spacing: .015em; margin-bottom: .16em;
}
.cred-row { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.7rem; }
.cred {
  font-family: var(--mono); font-size: .78rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  padding: .6em 1.05em; clip-path: var(--cut-sm);
  background: var(--stone); color: var(--ink);
}
.on-dark .cred { background: var(--char); color: var(--paper); box-shadow: inset 0 0 0 1px var(--line-dark); }

/* ---------- reserved photo slots (mock only — a real photo is on its way) ---------- */
.photo-pending {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; text-align: center; width: 100%; aspect-ratio: 4 / 3;
  background: var(--white); border: 2px dashed var(--line); color: var(--mute);
}
.card-img .photo-pending { aspect-ratio: 16 / 9; height: 100%; border-width: 0 0 2px; }
.photo-pending-mark { color: var(--line); }
.photo-pending figcaption {
  font-family: var(--mono); font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; line-height: 1.7;
}
.photo-pending figcaption b { color: var(--ink); font-weight: 700; }

/* ---------- award badge (rebuilt in-house so the year count stays current) ---------- */
.award-badge { width: 100%; max-width: 320px; height: auto; display: inline-block; }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.2rem); }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }
.quote { background: var(--white); clip-path: var(--cut); padding: 1.9rem 1.9rem 1.7rem; display: flex; flex-direction: column; gap: 1rem; box-shadow: 0 1px 0 var(--line), 0 14px 40px -18px rgba(32, 29, 27, .22); }
.quote .stars { color: var(--copper); letter-spacing: .2em; font-size: .85rem; }
.quote p { font-style: italic; flex: 1; }
.quote cite { font-style: normal; font-family: var(--mono); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.quote cite::before { content: '— '; color: var(--red); }

/* ---------- checklist ---------- */
.checks { list-style: none; display: grid; gap: .85rem; }
.checks li { padding-left: 2.1rem; position: relative; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: .48em; width: 18px; height: 9px;
  background: linear-gradient(to top right, transparent 48%, var(--red) 48%, var(--red) 62%, transparent 62%);
}
.on-dark .checks li::before { background: linear-gradient(to top right, transparent 48%, var(--copper) 48%, var(--copper) 62%, transparent 62%); }
.checks b { color: var(--ink); font-weight: 600; }
.on-dark .checks b { color: var(--paper); }
.on-dark .checks li { color: var(--mute-dark); }
.on-dark .spec-list { color: var(--mute-dark); }
.on-dark .spec-list b { color: var(--paper); }

/* ---------- steps (numbered process — real sequence) ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.4rem, 3vw, 2rem); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; border-top: 3px solid var(--red); background: var(--white); padding: 1.4rem 1.4rem 1.6rem; box-shadow: 0 1px 0 var(--line); }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: .85rem; font-weight: 700; letter-spacing: .14em; color: var(--copper); }
.step h3 { font-size: 1.2rem; margin: .5rem 0 .5rem; }
.step p { font-size: .95rem; }
.section--dark .step { background: var(--char); box-shadow: none; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps--3 { grid-template-columns: 1fr; } }
.steps--plain .step::before { display: none; }
.steps--plain .step h3 { margin-top: 0; }

/* ---------- gallery ---------- */
.masonry { columns: 3; column-gap: 1.2rem; }
@media (max-width: 900px) { .masonry { columns: 2; } }
@media (max-width: 560px) { .masonry { columns: 1; } }
.masonry figure { break-inside: avoid; margin: 0 0 1.2rem; clip-path: var(--cut-sm); position: relative; cursor: zoom-in; }
.masonry img { width: 100%; transition: transform .45s ease; }
.masonry figure:hover img { transform: scale(1.03); }
.masonry figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem 1rem .7rem;
  background: linear-gradient(transparent, rgba(32, 29, 27, .82));
  color: var(--paper); font-family: var(--mono); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  opacity: 0; transition: opacity .3s ease;
}
.masonry figure:hover figcaption { opacity: 1; }
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(24, 22, 20, .93);
  display: none; align-items: center; justify-content: center; padding: 4vmin;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; width: auto; height: auto; }
.lightbox button { position: absolute; top: 1rem; right: 1rem; background: none; border: 2px solid var(--paper); color: var(--paper); font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; padding: .5em .9em; cursor: pointer; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.3rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-family: var(--mono); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: .45rem; }
input, select, textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); padding: .8em .95em;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(176, 42, 32, .14); }
fieldset { border: 0; }
fieldset legend { display: block; font-family: var(--mono); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: .55rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.choice span {
  display: inline-block; font-size: .95rem; font-weight: 500; color: var(--body);
  border: 1px solid var(--line); background: var(--white); padding: .5em 1.1em; cursor: pointer;
  transition: all .15s ease;
}
.choice input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.form-note { font-size: .85rem; color: var(--mute); }
.form-success { display: none; background: var(--stone); border-left: 3px solid var(--red); padding: 1.4rem 1.6rem; }
.form-success.show { display: block; }

/* ---------- big CTA band ---------- */
.cta-band { background: var(--red); position: relative; overflow: hidden; }
.cta-band::after {
  content: ''; position: absolute; right: -6%; top: 0; bottom: 0; width: 44%;
  background: linear-gradient(to top right, transparent 49.6%, rgba(255, 255, 255, .07) 49.6%);
  pointer-events: none;
}
.cta-band .wrap { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem; padding-top: clamp(2.8rem, 6vw, 4.2rem); padding-bottom: clamp(2.8rem, 6vw, 4.2rem); }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: rgba(255, 255, 255, .82); margin-top: .5rem; max-width: 32em; }
.cta-band p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cta-band p a:hover { color: var(--stone); }
.cta-band .btn--red { background: var(--ink); }
.cta-band .btn--red:hover { background: #000; }
.cta-band .phone-big { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: #fff; letter-spacing: .03em; white-space: nowrap; }
.cta-band .phone-big:hover { color: var(--stone); }
.cta-actions { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--mute-dark); }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: clamp(2rem, 4vw, 3.5rem); padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }
@media (max-width: 960px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--mono); font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--copper); margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; display: grid; gap: .55rem; }
.site-footer a { color: var(--mute-dark); }
.site-footer a:hover { color: var(--paper); }
.footer-brand .brand-name { color: var(--paper); }
.footer-brand .brand-sub { color: var(--mute-dark); }
.footer-pledge { font-style: italic; margin-top: 1.2rem; max-width: 30em; font-size: .95rem; }
.footer-contact li { padding-left: 0; }
.footer-contact b { color: var(--paper); font-weight: 600; }
.footer-social { display: flex; gap: 1rem; margin-top: 1.3rem; }
.footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-dark); color: var(--mute-dark); transition: all .18s ease; }
.footer-social a:hover { border-color: var(--copper); color: var(--copper); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 1.3rem 0; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-family: var(--mono); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- utility ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }
.max-prose { max-width: 62ch; }
.img-cut { clip-path: var(--cut); }
.spec-list { font-family: var(--mono); font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); display: grid; gap: .5rem; }
.spec-list b { color: var(--ink); font-weight: 500; }

/* ---- Meeting 4 (2026-10-15) ---- */
/* the real Miller Roofing logo, from their own site files */
.brand-logo { display: block; height: 46px; width: auto; }
.footer-brand .brand-logo { height: 76px; }
@media (max-width: 420px) { .site-header .brand-logo { height: 38px; } }
/* gallery: jump links under the hero, small tiles for the construction thumbnails */
.gallery-jump { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.gallery-jump .btn { font-size: .98rem; padding: .55em 1.25em; }
.gallery-note { max-width: 52ch; margin-inline: auto; }
.masonry--tiles { columns: 5; }
@media (max-width: 900px) { .masonry--tiles { columns: 3; } }
@media (max-width: 560px) { .masonry--tiles { columns: 2; } }
/* a portrait photo inside a two-column row */
.portrait { max-width: 400px; margin-inline: auto; }
.portrait img { display: block; width: 100%; height: auto; }
/* the menu's link color was overriding the estimate button's white text */
.nav a.btn--red, .nav a.btn--red:hover { color: #fff; }
