:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Layout: a Midnight hero under one wide roof chevron (the wordmark's roof, drawn in on load),
   then white and bone sections with left-aligned text; Burgundy marks actions; Midnight closes every page.
   Colors and typeface from the Maverick logo sheet (Oct 2026); wordmark tagline per the contract logo. */
:root {
  --burgundy: #6b1f2a;
  --burgundy-hover: #5a1923;
  --midnight: #0f1e33;
  --silver: #b9bcc2;
  --white: #ffffff;
  --bone: #f1efea;

  --surface: #ffffff;
  --surface-alt: #f1efea;
  --ink: #0f1e33;
  --muted: #4b5568;
  --line: #dcdee2;
  --accent-text: #6b1f2a;
  --btn-bg: #6b1f2a;
  --btn-bg-hover: #5a1923;
  --on-dark: #ffffff;
  --on-dark-muted: #c9ccd2;
  --dark-line: #2a3a52;
  --field: #ffffff;
  --field-border: #7a8293;
  --focus: #6b1f2a;
  --error: #a3221f;

  --font: "PT Sans", "Helvetica Neue", Arial, sans-serif;
  --display: Montserrat, "Helvetica Neue", Arial, sans-serif;
  --brand-font: Bitter, Rockwell, Georgia, serif;
  --space-1: 4px; --space-2: 8px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-12: 48px;
  --radius: 3px;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #0b1626; --surface-alt: #13223a; --ink: #eef0f3; --muted: #b9bcc2; --line: #26364d;
    --accent-text: #e7aab3; --btn-bg: #8a2b38; --btn-bg-hover: #9b3442;
    --field: #0b1626; --field-border: #7a8293; --focus: #e7aab3; --error: #ffb4ab;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface: #0b1626; --surface-alt: #13223a; --ink: #eef0f3; --muted: #b9bcc2; --line: #26364d;
  --accent-text: #e7aab3; --btn-bg: #8a2b38; --btn-bg-hover: #9b3442;
  --field: #0b1626; --field-border: #7a8293; --focus: #e7aab3; --error: #ffb4ab;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--surface);
}
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; text-wrap: balance; line-height: 1.2; }
p { margin: 0; }
a { color: var(--accent-text); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
/* The wordmark's spaced capitals ("ROOFING & RESTORATION") used as the section label */
.label {
  font-family: var(--display); font-size: 13px; line-height: 1.4; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent-text);
}
.lede { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 56ch; }
.small { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Wordmark (vector rebuild of the logo sheet's wordmark) */
/* Colors reach the shared <symbol> through inherited custom properties */
.wm-roof, .wm-name { fill: var(--wm-ink, #0f1e33); }
.wm-rule, .wm-tag { fill: var(--wm-accent, #6b1f2a); }
.wm-name, .wm-tag { font-family: var(--brand-font); font-weight: 700; }
.wordmark { display: block; height: auto; --wm-ink: var(--midnight); --wm-accent: var(--burgundy); }
.wordmark.reversed { --wm-ink: var(--white); --wm-accent: var(--white); }
:root[data-theme="dark"] .site-header .wordmark { --wm-ink: var(--white); --wm-accent: var(--white); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-header .wordmark { --wm-ink: var(--white); --wm-accent: var(--white); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding-inline: 22px;
  font: 700 15px/1 var(--display); text-decoration: none; cursor: pointer;
  border-radius: var(--radius); border: 2px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--btn-bg); color: var(--white); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--silver); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--white); }
.btn-light { background: var(--white); color: var(--burgundy); }
.btn-light:hover { background: var(--bone); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: 84px; flex-wrap: wrap; padding-block: var(--space-2);
}
.brand { display: block; line-height: 0; }
.brand .wordmark { width: 150px; }
.nav { display: flex; align-items: center; gap: var(--space-1); flex-wrap: wrap; }
.nav a {
  color: var(--muted); text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 14px;
  padding: 10px 12px;
}
.nav a:hover { color: var(--accent-text); }
.nav a[aria-current="page"] { color: var(--accent-text); box-shadow: inset 0 -2px 0 currentColor; }
.nav .btn { margin-left: var(--space-2); min-height: 44px; padding-inline: 18px; color: var(--white); }
.menu-btn {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding-inline: 14px;
  font: 700 15px/1 var(--display); color: var(--ink); background: transparent; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius);
}
.menu-btn svg { width: 20px; height: 20px; }
.nav .btn:hover { color: var(--white); }

.view[hidden] { display: none !important; }

/* Welcome: full-width photo hero with centered headline */
.welcome { position: relative; background: var(--midnight); color: var(--white); overflow: hidden; isolation: isolate; }
.welcome .photo { position: absolute; inset: 0; z-index: -2; }
.welcome::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15, 30, 51, .35) 0%, rgba(15, 30, 51, .55) 60%, rgba(15, 30, 51, .8) 100%);
}
.welcome .wrap {
  padding-block: clamp(96px, 14vw, 168px) clamp(80px, 11vw, 136px);
  display: grid; justify-items: center; text-align: center; gap: var(--space-4);
}
.welcome h1 {
  font-size: clamp(36px, 6vw, 64px); font-weight: 800; line-height: 1.08; letter-spacing: -0.01em;
  max-width: 18ch; text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.welcome .subline {
  font-family: var(--display); font-style: italic; font-weight: 600;
  font-size: clamp(17px, 2vw, 22px); line-height: 1.45; max-width: 46ch; color: var(--white);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
}
.welcome .subline a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.welcome .hero-actions { justify-content: center; margin-top: var(--space-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-8); }

/* Photos (stock house photos for now; swap in Maverick job photos later) */
.photo { position: relative; background: #1b2d47; overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }

/* Residential / Commercial tiles */
.tiles { padding-block: var(--space-8) var(--space-12); }
.tiles .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.tile {
  display: grid; text-decoration: none; color: var(--ink); background: var(--surface-alt);
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
}
.tile .photo { aspect-ratio: 16 / 10; max-width: 100%; }
.tile .photo img { transition: transform .4s ease; }
.tile:hover .photo img { transform: scale(1.03); }
.tile-body { display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-6); text-align: center; }
.tile-name {
  font: 700 14px/1 var(--display); letter-spacing: .14em; text-transform: uppercase;
  border: 1.5px solid var(--ink); padding: 12px 22px; border-radius: var(--radius);
  transition: background-color .15s, color .15s;
}
.tile:hover .tile-name { background: var(--ink); color: var(--surface); }
.tile-body p { color: var(--muted); font-size: 16px; max-width: 40ch; }
@media (prefers-reduced-motion: reduce) { .tile .photo img { transition: none; } }

/* Seal strip (where the inspiration shows award badges) */
.seals { position: relative; background: var(--midnight); color: var(--white); overflow: hidden; isolation: isolate; }
.seals .photo { position: absolute; inset: 0; z-index: -1; opacity: .5; }
.seals .wrap {
  padding-block: 56px; display: flex; justify-content: center; align-items: center;
  gap: clamp(16px, 5vw, 64px); flex-wrap: wrap;
}
.seal {
  width: 168px; aspect-ratio: 1; max-width: 100%; border-radius: 50%;
  background: var(--white); color: var(--midnight);
  box-shadow: 0 0 0 5px var(--burgundy), 0 0 0 8px var(--white), 0 10px 30px rgba(0, 0, 0, .35);
  display: grid; place-content: center; text-align: center; gap: 2px; padding: 20px;
}
.seal .big { font: 800 34px/1 var(--display); color: var(--burgundy); }
.seal .what { font: 700 13px/1.25 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.seal .note { font-size: 12px; line-height: 1.3; color: #4b5568; }
.seal.lead { width: 212px; }
.seal.lead .big { font-size: 46px; }
/* The 48-hour seal is drawn as a clock: ticks and hands up top, dial text below the pivot */
.seal.clock { position: relative; place-content: end center; padding: 0 16px 30px; gap: 1px; }
.seal.clock > span { position: relative; }
.seal.lead.clock .big { font-size: 34px; }
.clock-face { position: absolute; inset: 0; width: 100%; height: 100%; }
.clock-face line { stroke-linecap: butt; }
.clock-face .tm { stroke: #b9bcc2; stroke-width: .6; }
.clock-face .th { stroke: var(--midnight); stroke-width: 1.4; }
.clock-face .tq { stroke: var(--burgundy); stroke-width: 2.4; }
.clock-face .hand { stroke: var(--midnight); stroke-linecap: round; }
.clock-face .hour { stroke-width: 3.2; }
.clock-face .minute { stroke-width: 2.2; }
.clock-face .pivot { fill: var(--burgundy); stroke: var(--white); stroke-width: 1; }
.clock-face .minute { transform-box: view-box; transform-origin: 50px 50px; animation: sweep 1.6s cubic-bezier(.3, .7, .2, 1) .3s both; }
@keyframes sweep { from { transform: rotate(-300deg); } to { transform: rotate(60deg); } }
@media (prefers-reduced-motion: reduce) { .clock-face .minute { animation: none; } }

/* Short about on the welcome page */
.welcome-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-12); align-items: center; }
.welcome-about h2 { font-size: clamp(28px, 3.6vw, 38px); margin-top: var(--space-2); }
.welcome-about .copy { display: grid; gap: var(--space-4); }
.welcome-about .copy p { color: var(--muted); }
.quick-links { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.quick-links a {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding-block: var(--space-6); border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font: 700 20px/1.3 var(--display);
}
.quick-links a span { font: 400 16px/1.4 var(--font); color: var(--muted); text-align: right; }
.quick-links a:hover { color: var(--accent-text); }

/* Fixed Call / Contact tabs */
.side-tabs {
  position: fixed; z-index: 30; right: env(safe-area-inset-right, 0px); top: 50%; transform: translateY(-50%);
  display: grid; gap: 2px;
}
.side-tabs a {
  width: 76px; display: grid; justify-items: center; gap: 4px; padding: 12px 6px;
  background: var(--burgundy); color: var(--white); text-decoration: none; text-align: center;
  font: 700 12px/1.2 var(--display); border-radius: var(--radius) 0 0 var(--radius);
}
.side-tabs a + a { background: var(--midnight); }
.side-tabs a:hover { filter: brightness(1.15); }
.side-tabs svg { width: 20px; height: 20px; }

/* Promise strip */
.promises { padding-block: var(--space-12); border-bottom: 1px solid var(--line); }
.promises ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8);
}
.promises li { display: grid; gap: var(--space-1); min-width: 0; align-content: start; }
.promises strong { font-size: 19px; line-height: 1.35; }
.promises span { color: var(--muted); font-size: 16px; }

/* Sections */
.section { padding-block: 80px; }
.section.alt { background: var(--surface-alt); }
.section-head { display: grid; gap: var(--space-2); margin-bottom: var(--space-12); max-width: 680px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 38px); }
.section-head p { color: var(--muted); }

/* Services overview: a ruled two-column list */
.service-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-12);
}
.service-list li {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--space-4);
  padding-block: var(--space-6); border-top: 1px solid var(--line);
}
.service-list h3 { font-size: 21px; margin-bottom: var(--space-1); }
.service-list p { color: var(--muted); font-size: 16px; }
.glyph { width: 36px; height: 36px; color: var(--accent-text); }
.glyph svg { width: 36px; height: 36px; display: block; }
.more { margin-top: var(--space-8); font-weight: 700; }

/* Process: a real sequence, so it is numbered */
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-6);
}
.steps li { counter-increment: step; display: grid; gap: var(--space-2); align-content: start; min-width: 0; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 46px; height: 46px; display: grid; place-items: center;
  font-weight: 800; font-size: 20px; background: var(--midnight); color: var(--white);
  border-radius: 50%; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--silver);
}
.steps li::after {
  content: ""; position: absolute; top: 22px; left: 60px; right: calc(var(--space-6) * -1 + 10px);
  height: 2px; background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 18px; }
.steps p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Burgundy callout band */
.band { background: var(--burgundy); color: var(--white); }
.band .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-8); align-items: center;
  padding-block: 56px;
}
.band h2 { font-size: clamp(26px, 3.2vw, 32px); }
.band p { margin-top: var(--space-2); max-width: 62ch; color: #f1dfe2; }

/* Inner page headers */
.page-head { background: var(--surface-alt); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: 64px 56px; display: grid; gap: var(--space-2); }
.page-head h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; }
.page-head p { max-width: 60ch; color: var(--muted); margin-top: var(--space-2); }

/* Services page */
.svc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--space-12);
  padding-block: var(--space-12); border-top: 1px solid var(--line);
}
.svc:first-child { border-top: 0; padding-top: 0; }
.svc h2 { font-size: 28px; }
.svc .intro { color: var(--muted); margin-top: var(--space-2); }
.svc .meta { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  font-size: 14px; line-height: 1.4; font-weight: 500; padding: 4px 10px;
  border: 1px solid var(--line); color: var(--ink); border-radius: var(--radius); background: var(--surface);
}
.checks-title { font-weight: 700; margin-bottom: var(--space-2); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--space-2); }
.checks li::before {
  content: ""; width: 13px; height: 8px; margin-top: 8px;
  border-left: 2.5px solid var(--accent-text); border-bottom: 2.5px solid var(--accent-text); transform: rotate(-45deg);
}

/* Roof systems table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-variant-numeric: tabular-nums; font-size: 16px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--midnight); color: var(--white); font-weight: 500; font-size: 14px; letter-spacing: .04em; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td { color: var(--muted); }
.table-note { margin-top: var(--space-4); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-12); align-items: start; }
.prose { display: grid; gap: var(--space-4); max-width: 62ch; }
.prose p { font-size: 18px; line-height: 1.7; }
.promise-panel {
  background: var(--midnight); color: var(--white); padding: var(--space-8);
  border-radius: var(--radius); display: grid; gap: var(--space-6);
}
.promise-panel h2 { font-size: 22px; }
.promise-panel dl { margin: 0; display: grid; gap: var(--space-4); }
.promise-panel dt { font-weight: 700; }
.promise-panel dd { margin: 0; color: var(--on-dark-muted); font-size: 16px; }
.promise-panel div { border-top: 1px solid var(--dark-line); padding-top: var(--space-4); }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
.values > div { display: grid; gap: var(--space-2); align-content: start; border-top: 3px solid var(--burgundy); padding-top: var(--space-4); }
.values h3 { font-size: 21px; }
.values p { color: var(--muted); font-size: 16px; }

/* Financing page */
#fin-estimate, #pres-products { scroll-margin-top: 84px; }
.fin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-12); align-items: center; }
.fin-copy { display: grid; gap: var(--space-4); min-width: 0; }
.fin-copy h2 { font-size: clamp(28px, 3.6vw, 38px); }
.fin-copy > p:not(.label):not(.small) { color: var(--muted); }
.money-input {
  display: flex; align-items: center; gap: var(--space-2); padding-inline: 14px;
  background: var(--field); border: 1.5px solid var(--field-border); border-radius: var(--radius);
  font: 700 26px/1.2 var(--display);
}
.money-input:focus-within { outline: 3px solid var(--focus); border-color: var(--focus); }
.money-input input { font: inherit; border: 0; padding: 12px 0; background: transparent; outline: none; font-variant-numeric: tabular-nums; }
#fin-range { padding: 0; border: 0; background: transparent; accent-color: var(--burgundy); min-height: 28px; cursor: pointer; }
.fin-result {
  background: var(--midnight); color: var(--white); padding: var(--space-8);
  border-radius: var(--radius); display: grid; gap: var(--space-4); min-width: 0;
}
.fin-result-label { color: var(--on-dark-muted); font-weight: 700; }
.fin-monthly { font: 800 clamp(44px, 7vw, 64px)/1 var(--display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fin-monthly small { font-size: 18px; font-weight: 600; margin-left: 6px; color: var(--on-dark-muted); }
.fin-bar { display: grid; grid-template-columns: repeat(18, 1fr); gap: 3px; }
.fin-bar span { height: 12px; background: var(--white); }
.fin-bar span:nth-child(6n) { margin-right: 3px; }
.fin-result dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); border-top: 1px solid var(--dark-line); padding-top: var(--space-4); }
.fin-result dt { font-size: 14px; color: var(--on-dark-muted); }
.fin-result dd { margin: 0; font: 700 18px/1.3 var(--display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fin-note { font-size: 14px; line-height: 1.5; color: var(--on-dark-muted); }
@media (max-width: 760px) {
  .fin-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .fin-result { padding: var(--space-6); }
  .fin-result dd { font-size: 16px; }
}

/* Service route (About) */
.route { background: var(--midnight); color: var(--white); }
.route .wrap { padding-block: 72px; display: grid; gap: var(--space-12); }
.route .label { color: var(--silver); }
.route-head { display: grid; gap: var(--space-2); max-width: 640px; }
.route-head h2 { font-size: clamp(28px, 3.6vw, 38px); }
.route-head p { color: var(--on-dark-muted); }
.stops {
  list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
}
.stops::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 11px; height: 4px;
  background: repeating-linear-gradient(90deg, var(--silver) 0 18px, transparent 18px 30px);
}
.stops li { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; min-width: 0; }
.stops .dot {
  width: 26px; height: 26px; border-radius: 50%; background: var(--midnight);
  border: 4px solid var(--silver); margin-bottom: var(--space-2);
}
.stops strong { font-family: var(--display); font-size: 18px; line-height: 1.3; }
.stops li > span:last-child { color: var(--on-dark-muted); font-size: 15px; line-height: 1.4; }
.stops .hq .dot { background: var(--burgundy); border-color: var(--white); box-shadow: 0 0 0 5px rgba(255, 255, 255, .16); }
.stops .hq strong { color: var(--white); }
.stops .hq > span:last-child {
  font: 700 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase;
  color: var(--white); background: var(--burgundy); padding: 5px 8px; border-radius: var(--radius); margin-top: 2px;
}
.route-note { color: var(--on-dark-muted); font-style: italic; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-12); align-items: start; }
.contact-info { display: grid; gap: var(--space-6); }
.contact-info .item { display: grid; gap: var(--space-1); }
.contact-info .item-label { font-weight: 700; }
.contact-info .value { font-size: 21px; line-height: 1.4; font-weight: 500; user-select: all; overflow-wrap: anywhere; }
.copy-row { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.copy-btn {
  font: 500 14px/1 var(--font); padding: 8px 10px; cursor: pointer; color: var(--accent-text);
  background: transparent; border: 1px solid var(--field-border); border-radius: var(--radius);
}
.copy-btn:hover { background: var(--surface-alt); }
.hours { display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: var(--space-6); row-gap: var(--space-1); margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.hours dt { color: var(--ink); }
.hours dd { margin: 0; }

form { display: grid; gap: var(--space-4); background: var(--surface-alt); padding: var(--space-8); border-radius: var(--radius); border: 1px solid var(--line); }
form h2 { font-size: 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button[disabled] { opacity: .65; cursor: wait; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.field { display: grid; gap: 6px; min-width: 0; }
label, legend { font-weight: 500; font-size: 16px; }
.opt { color: var(--muted); font-weight: 400; }
input, select, textarea {
  font: 400 16px/1.5 var(--font); color: var(--ink); background: var(--field);
  border: 1.5px solid var(--field-border); border-radius: var(--radius);
  padding: 10px 12px; width: 100%; min-width: 0;
}
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.radios { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.radios label { display: flex; align-items: center; gap: var(--space-2); font-weight: 400; min-height: 44px; }
.radios input { width: 18px; height: 18px; accent-color: var(--burgundy); }
.error { color: var(--error); font-size: 15px; line-height: 1.4; }
.confirm {
  display: grid; gap: var(--space-2); padding: var(--space-6);
  background: var(--surface-alt); border-radius: var(--radius); border: 1px solid var(--line); border-top: 4px solid var(--burgundy);
}
.confirm h2 { font-size: 22px; }
.confirm .btn { background: var(--midnight); color: var(--white); }
:root[data-theme="dark"] .confirm .btn { background: var(--white); color: var(--midnight); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .confirm .btn { background: var(--white); color: var(--midnight); } }

/* CTA + footer */
.cta { background: var(--midnight); color: var(--white); }
.cta .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-8);
  padding-block: 64px;
}
.cta h2 { font-size: clamp(26px, 3.2vw, 34px); }
.cta p { color: var(--on-dark-muted); margin-top: var(--space-2); }
.cta .btn-primary { background: var(--burgundy); }
.cta .btn-primary:hover { background: #7d2533; }
.site-footer { background: var(--midnight); color: var(--on-dark-muted); border-top: 1px solid var(--dark-line); font-size: 16px; }
.site-footer p { max-width: 52ch; }
.site-footer .wrap {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: var(--space-8);
  padding-block: var(--space-12) calc(var(--space-12) + env(safe-area-inset-bottom, 0px));
}
.site-footer .wordmark { width: 210px; }
.site-footer h3 { color: var(--white); font-size: 16px; margin-bottom: var(--space-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
@media (max-width: 1100px) { .site-footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.site-footer li { overflow-wrap: anywhere; }
.site-footer .fine {
  grid-column: 1 / -1; border-top: 1px solid var(--dark-line); padding-top: var(--space-6); font-size: 14px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6);
}
.site-footer .fine .wordmark { width: 170px; }
.site-footer .fine p { text-align: right; }

/* Roof preservation page */
.pres-head { background: var(--midnight); color: var(--white); }
.pres-head .wrap { padding-block: 64px 56px; display: grid; gap: var(--space-2); }
.pres-head .label { color: var(--silver); }
.pres-head h1 { font-size: clamp(36px, 5.4vw, 56px); font-weight: 800; max-width: 16ch; line-height: 1.08; margin-top: var(--space-2); }
.pres-head .lede { color: var(--on-dark-muted); margin-top: var(--space-4); }
.pres-head .hero-actions { margin-top: var(--space-6); }
.pres-checks {
  list-style: none; margin: var(--space-8) 0 0; padding: var(--space-6) 0 0;
  border-top: 1px solid var(--dark-line);
  display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8);
}
.pres-checks li { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 500; font-size: 16px; }
.pres-checks li::before {
  content: ""; width: 12px; height: 7px; flex: none; margin-top: -3px;
  border-left: 2.5px solid var(--silver); border-bottom: 2.5px solid var(--silver); transform: rotate(-45deg);
}

.intro-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--space-12); align-items: start; }
.intro-grid h2 { font-size: clamp(28px, 3.6vw, 38px); margin-top: var(--space-2); }
.intro-grid .copy { display: grid; gap: var(--space-4); }
.intro-grid .copy p { color: var(--muted); }
.decide { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.decide li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--space-6); padding-block: var(--space-6); border-bottom: 1px solid var(--line); }
.decide .verdict { font-weight: 800; font-size: 20px; line-height: 1.3; }
.decide li:first-child .verdict { color: var(--accent-text); }
.decide p { color: var(--muted); font-size: 16px; }

.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
.product {
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--midnight);
  border-radius: var(--radius); padding: var(--space-8); display: grid; gap: var(--space-4); align-content: start;
}
.product:nth-child(2) { border-top-color: var(--burgundy); }
.product .label { color: var(--muted); }
.product h3 { font-size: 30px; font-weight: 800; }
.product > p { color: var(--muted); }
.product dl { margin: 0; display: grid; gap: var(--space-4); border-top: 1px solid var(--line); padding-top: var(--space-4); }
.product dt { font-weight: 700; font-size: 15px; }
.product dd { margin: 2px 0 0; color: var(--muted); font-size: 16px; }

.science { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
.element { display: grid; gap: var(--space-2); align-content: start; min-width: 0; }
.element .symbol {
  font-size: 64px; line-height: 1; font-weight: 800; color: var(--ink); letter-spacing: -0.02em;
  padding-bottom: var(--space-4); border-bottom: 2px solid var(--line); margin-bottom: var(--space-2);
}
.element .symbol sub { font-size: .45em; vertical-align: baseline; position: relative; top: .18em; }
.element .when { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text); }
.element h3 { font-size: 21px; }
.element p { color: var(--muted); font-size: 16px; }
.cycle { margin-top: var(--space-12); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cycle div { padding: var(--space-6); display: grid; gap: var(--space-1); }
.cycle .day { background: var(--bone); color: var(--midnight); }
.cycle .day p { color: #4b5568; }
.cycle .night { background: var(--midnight); color: var(--white); }
.cycle .night p { color: var(--on-dark-muted); }
.cycle strong { font-size: 18px; }
.cycle p { color: var(--muted); font-size: 16px; }
.fine-note { margin-top: var(--space-6); max-width: 70ch; }

.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }

.faq { display: grid; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--space-6) 40px var(--space-6) 0; position: relative;
  font-weight: 700; font-size: 19px; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--accent-text); border-bottom: 2.5px solid var(--accent-text); transform: rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding-bottom: var(--space-6); color: var(--muted); max-width: 66ch; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Responsive */
@media (max-width: 960px) {
  .intro-grid, .products { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .science { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-8); }
  .steps li::after { display: none; }
  .svc, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .values { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .tiles .wrap, .welcome-about { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .seal { width: 140px; padding: 14px; }
  .seal.lead { width: 170px; }
  .seal .big { font-size: 28px; }
  .seal.lead .big { font-size: 38px; }
  .seal.lead.clock .big { font-size: 26px; }
  .seal.clock { padding-bottom: 22px; }
  /* Route turns vertical on phones */
  .route .wrap { padding-block: 56px; gap: var(--space-8); }
  .stops { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .stops::before {
    left: 11px; right: auto; top: 13px; bottom: 13px; width: 4px; height: auto;
    background: repeating-linear-gradient(180deg, var(--silver) 0 14px, transparent 14px 24px);
  }
  .stops li { grid-template-columns: 26px minmax(0, 1fr); justify-items: start; text-align: left; column-gap: var(--space-4); row-gap: 0; }
  .stops .dot { grid-row: span 2; margin-bottom: 0; }
  .stops .hq > span:last-child { justify-self: start; }
  .seal.clock .what, .seal.clock .note { font-size: 12px; }
  .site-footer .fine p { text-align: left; }
  /* The side tabs become a bottom bar on phones */
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  /* Netlify adds a "Powered by Netlify" badge on the free plan; keep it above the bottom bar instead of over Contact Us */
  #nl-badge-frame { bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important; }
  /* Hold the hero height steady while web fonts load, so the tiles below do not jump */
  .welcome .wrap { min-height: 580px; align-content: center; }
  .side-tabs {
    top: auto; bottom: 0; left: 0; right: 0; transform: none;
    grid-template-columns: 1fr 1fr; gap: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--midnight);
  }
  .side-tabs a {
    width: auto; border-radius: 0; grid-auto-flow: column; justify-content: center; align-items: center;
    gap: 8px; padding: 0 12px; min-height: 56px; font-size: 15px;
  }
  .promises ul, .service-list { grid-template-columns: minmax(0, 1fr); }
  .promises ul { gap: var(--space-6); }
  .band .wrap, .cta .wrap { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: minmax(0, 1fr); }
  .steps.three, .cycle { grid-template-columns: minmax(0, 1fr); }
  .decide li { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
  .product { padding: var(--space-6); }
  form { padding: var(--space-6); }
  .section { padding-block: 56px; }
  .site-header .wrap { min-height: 68px; }
  .brand .wordmark { width: 104px; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: var(--space-4); }
  .site-header.open .nav { display: flex; }
  .nav a { padding: 14px 4px; font-size: 17px; color: var(--ink); border-top: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin: var(--space-4) 0 0; border-top: 0; color: var(--white); }
  .quick-links a { flex-direction: column; align-items: flex-start; gap: var(--space-1); }
  .quick-links a span { text-align: left; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}

/* Service areas */
.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8) var(--space-12); }
.area-group { display: grid; gap: var(--space-2); align-content: start; border-top: 3px solid var(--burgundy); padding-top: var(--space-4); min-width: 0; }
.area-group h3 { font-size: 21px; }
.towns { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; }
.towns li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding-block: 10px; border-bottom: 1px solid var(--line); }
.towns strong { font-family: var(--display); font-size: 17px; }
.towns span { color: var(--muted); font-size: 15px; text-align: right; }
.towns .hq strong { color: var(--accent-text); }
.route-note a { color: var(--white); }
@media (max-width: 760px) {
  .areas { grid-template-columns: minmax(0, 1fr); }
}

/* Roofing FAQ (always open) and About quick facts */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.faq-open { border-top: 1px solid var(--line); }
.faq-item { padding-block: var(--space-6); border-bottom: 1px solid var(--line); display: grid; gap: var(--space-2); }
.faq-item h3 { font-size: 20px; }
.faq-item p { color: var(--muted); max-width: 68ch; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6) var(--space-8); }
.facts div { border-top: 1px solid var(--line); padding-top: var(--space-4); min-width: 0; }
.facts dt { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.facts dd { margin: 4px 0 0; overflow-wrap: anywhere; }
@media (max-width: 960px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .facts { grid-template-columns: minmax(0, 1fr); } }
