/* Somerset Metal Roof Coating · site styles
   Signature H11-S15-P4-B6-R6-F12-M46-C6-I5-E6 · T1 Standard · Hepta Slab / Atkinson Hyperlegible */
:root {
  --brand: #3B4651;
  --ink: #181C20;
  --accent: #C9252B;
  --accent-hover: #A81F24;
  --accent-on-dark: #F0A3A6;
  --secondary: #7A858E;
  --page: #FFFFFF;
  --alt: #F3F4F5;
  --tint: #E7EAED;
  --muted: #4E5964;
  --muted-on-dark: #C9D0D6;
  --border: #C9CED3;
  --head: "Hepta Slab", "Rockwell", "Roboto Slab", Georgia, serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: 20px;
  --radius: 8px;
  --shadow: 0 10px 28px rgba(24, 28, 32, .14);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--page); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible, .band :focus-visible, .h11-card :focus-visible { outline-color: #fff; }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; color: inherit; overflow-wrap: normal; }
h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; }
h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; }
h3 { font-size: clamp(19px, 1.7vw, 22px); font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 780px); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 6px;
  font-family: var(--body); font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; border: 2px solid transparent; cursor: pointer; text-align: center; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-call { background: #fff; color: var(--ink); border-color: var(--brand); }
.btn-call:hover { background: var(--tint); color: var(--ink); }
.on-dark .btn-primary, .band .btn-primary.on-band { border-color: #fff; }
.on-dark .btn-call { background: transparent; color: #fff; border-color: #fff; }
.on-dark .btn-call:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn svg.ui { width: 18px; height: 18px; flex: none; }
.btn-pair { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn-center { display: flex; justify-content: center; margin-top: 28px; }
@media (max-width: 640px) { .btn-pair { flex-direction: column; align-items: stretch; } .btn-pair .btn { width: 100%; } }

/* ---------- Icons (I5: 2.5px outline + accent dot) ---------- */
svg.icon { width: 30px; height: 30px; flex: none; color: var(--brand); stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
svg.icon .dot { fill: var(--accent); stroke: none; }
.on-dark svg.icon { color: #D9DEE3; }
.on-dark svg.icon .dot { fill: var(--accent-on-dark); }
svg.ui { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Headings (E6 flanked rule) ---------- */
.sec-head { text-align: center; margin: 0 auto 36px; max-width: 760px; }
.sec-head h2 { display: flex; align-items: flex-start; justify-content: center; gap: 16px; }
.sec-head h2::before, .sec-head h2::after { content: ""; flex: 0 0 40px; height: 2px; background: var(--accent); margin-top: .62em; }
.sec-head p { color: var(--muted); margin: 0 auto; max-width: 680px; }
.sec-head.left { text-align: left; margin-left: 0; }
.sec-head.left h2 { justify-content: flex-start; }
.sec-head.left h2::after { display: none; }
.sec-head.left p { margin-left: 0; }
.on-dark .sec-head p { color: var(--muted-on-dark); }
.on-dark .sec-head h2::before, .on-dark .sec-head h2::after { background: var(--accent-on-dark); }
@media (max-width: 640px) { .sec-head h2::before, .sec-head h2::after { flex-basis: 20px; } }
.sec-head p a, .lede a { font-weight: 700; }
.on-dark a:not(.btn) { color: #fff; }
.on-dark .f12-tile a:not(.btn), .on-dark .ticket a:not(.btn) { color: var(--brand); }

/* ---------- Sections and surfaces ---------- */
main > section { padding: 76px 0; }
@media (max-width: 760px) { main > section { padding: 48px 0; } }
.bg-w { background: var(--page); }
.bg-a { background: var(--alt); }
.bg-t { background: var(--tint); }
.bg-b { background: var(--brand); color: #fff; }
.bg-d { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--border); }
.hdr { display: flex; align-items: center; gap: 18px; min-height: 84px; }
.logo { display: block; flex: none; }
.logo img { height: 60px; width: auto; }
.nav-desk { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-desk > ul { display: flex; align-items: center; list-style: none; gap: 2px; }
.nav-desk li { position: relative; }
.nav-desk a.top { display: inline-block; padding: 10px 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 16px; border-radius: 6px; }
.nav-desk a.top:hover, .nav-desk a.top[aria-current] { color: var(--accent); }
.has-sub { display: flex; align-items: center; }
.sub-toggle { background: none; border: 0; padding: 8px 4px; margin-left: -6px; cursor: pointer; color: var(--ink); border-radius: 6px; min-width: 32px; min-height: 40px; }
.sub-toggle svg { width: 16px; height: 16px; transition: transform .15s; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.submenu { position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 0 0 8px 8px; box-shadow: var(--shadow); padding: 8px; list-style: none; display: none; z-index: 70; }
.submenu.open { display: block; }
.submenu a { display: block; padding: 9px 12px; text-decoration: none; color: var(--ink); border-radius: 6px; font-size: 15px; }
.submenu a:hover { background: var(--alt); color: var(--accent-hover); }
.submenu.cols { columns: 2; min-width: 420px; }
.submenu.cols li { break-inside: avoid; }
.nav-cta { display: flex; gap: 10px; margin-left: 10px; }
.nav-cta .btn { min-height: 46px; padding: 10px 16px; font-size: 15px; }
.burger { display: none; margin-left: auto; margin-right: -6px; background: none; border: 2px solid var(--brand); border-radius: 6px; width: 48px; height: 48px; cursor: pointer; color: var(--ink); align-items: center; justify-content: center; }
.burger svg { width: 26px; height: 26px; }
.mobile-panel { display: none; }
@media (max-width: 1199px) {
  .nav-desk { display: none; }
  .burger { display: inline-flex; }
  .hdr { min-height: 72px; }
  .logo img { height: 50px; }
  .mobile-panel.open { display: block; position: fixed; inset: 72px 0 0 0; background: #fff; overflow-y: auto; z-index: 80; border-top: 1px solid var(--border); padding: 12px 0 40px; }
  .mobile-panel ul { list-style: none; }
  .mobile-panel .mrow { display: flex; align-items: center; border-bottom: 1px solid var(--tint); }
  .mobile-panel .mrow > a { flex: 1; padding: 14px 4px; font-weight: 700; text-decoration: none; color: var(--ink); font-size: 18px; }
  .mobile-panel .sub-toggle { min-width: 48px; min-height: 48px; }
  .mobile-panel .msub { display: none; padding: 4px 0 10px 14px; }
  .mobile-panel .msub.open { display: block; }
  .mobile-panel .msub a { display: block; padding: 10px 4px; text-decoration: none; color: var(--brand); }
  .mobile-panel .mcta { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
  .mobile-panel .mcta .btn { width: 100%; }
}
@media (max-width: 420px) { .logo img { height: 44px; } }
body.menu-open { overflow: hidden; }

/* ---------- Fixed mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 799px) {
  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--ink); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); justify-content: center; }
  .callbar .btn { width: 100%; max-width: 520px; border-color: #fff; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.menu-open .callbar, body.dialog-open .callbar, body.typing .callbar { display: none; }
}

/* ---------- Hero H11 bridge card ---------- */
.h11 { padding: 0 0 56px !important; background: var(--page); }
.h11-photo { position: relative; height: clamp(320px, 42vw, 560px); overflow: hidden; background: var(--tint); }
.h11-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.h11-card { position: relative; z-index: 2; margin: -150px auto 0; max-width: 820px; background: var(--brand); color: #fff; border-radius: 10px; padding: 34px 40px 36px; text-align: center; box-shadow: var(--shadow); }
.h11-card h1 { color: #fff; margin-bottom: 14px; }
.h11-card .lede { color: #E4E8EC; max-width: 640px; margin: 0 auto 24px; font-size: 18px; }
.chip { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); margin-bottom: 14px; }
.crumbs { font-size: 14px; color: var(--muted-on-dark); margin-bottom: 12px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .7; }
.crumbs a { color: #fff; }
@media (max-width: 760px) {
  .h11 { display: flex; flex-direction: column; padding-bottom: 0 !important; }
  .h11 .wrap { order: 1; width: 100%; }
  .h11-card { margin: 0; border-radius: 0; padding: 28px 20px 30px; max-width: none; box-shadow: none; }
  .h11-photo { order: 2; height: auto; aspect-ratio: 3 / 2; }
}

/* ---------- Fact strip ---------- */
.facts { padding: 26px 0 !important; }
.facts ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.facts li { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 17px; justify-content: center; }
@media (max-width: 760px) { .facts ul { grid-template-columns: 1fr; } .facts li { justify-content: flex-start; } }

/* ---------- Split layouts (L2 / L3) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 36%) minmax(0, 1fr); gap: 48px; align-items: start; }
.split.right { grid-template-columns: minmax(0, 1fr) minmax(0, 36%); }
.split.right > .split-head { order: 2; }
.split.right > .split-body { order: 1; }
.split.half { grid-template-columns: minmax(0, 46%) minmax(0, 1fr); }
.split-head.sticky { position: sticky; top: 108px; }
@media (max-width: 900px) { .split, .split.right, .split.half { grid-template-columns: 1fr; gap: 28px; } .split.right > .split-head { order: 0; } .split-head.sticky { position: static; } }
.split-head .sec-head { margin-bottom: 20px; }
.rowhead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 48px; align-items: end; margin-bottom: 34px; }
.rowhead .sec-head { margin: 0; }
.rowhead > p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .rowhead { grid-template-columns: 1fr; } }

/* ---------- Angle split (location) ---------- */
.angle-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.angle-body p { max-width: 62ch; }
.ticks { list-style: none; display: grid; gap: 12px; margin-top: 8px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li svg.icon { width: 26px; height: 26px; margin-top: 1px; }

/* ---------- R6 inside / on the roof pairs ---------- */
.pairs-labels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.pairs { list-style: none; display: grid; gap: 14px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.pair > div { padding: 18px 20px; }
.pair > div + div { border-left: 2px dashed var(--secondary); background: var(--alt); }
.bg-a .pair > div + div { background: var(--tint); }
.pair h3 { font-size: 18px; display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.pair h3 svg.icon { width: 26px; height: 26px; }
.pair p { margin: 0; font-size: 16px; }
.pair .mlabel { display: none; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
@media (max-width: 640px) { .pairs-labels { display: none; } .pair { grid-template-columns: 1fr; } .pair > div + div { border-left: 0; border-top: 2px dashed var(--secondary); } .pair .mlabel { display: block; } }

/* ---------- K7 raised column table ---------- */
.k7 { display: grid; grid-template-columns: minmax(150px, .8fr) repeat(3, minmax(0, 1fr)); grid-template-rows: auto repeat(var(--rows), auto); column-gap: 14px; align-items: stretch; }
.k7-labels, .k7-col { grid-row: 1 / span calc(var(--rows) + 1); display: grid; grid-template-rows: subgrid; }
.k7-labels span { font-weight: 700; padding: 14px 6px; border-top: 1px solid var(--border); display: flex; align-items: center; font-size: 15px; color: var(--muted); }
.k7-labels span.k7-corner { border-top: 0; }
.k7-col { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 0 16px; }
.k7-col .k7-name { padding: 18px 0 14px; }
.k7-col h3 { margin: 0; font-size: 19px; }
.k7-col .k7-tag { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; color: var(--muted); font-weight: 700; }
.k7-col dl { display: contents; margin: 0; }
.k7-col dl > div { padding: 14px 0; border-top: 1px solid var(--border); }
.k7-col dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.k7-col dd { margin: 0; font-size: 15.5px; }
.k7-col.raised { background: var(--brand); color: #fff; border-color: var(--brand); border-top: 6px solid var(--accent); box-shadow: 0 18px 36px rgba(24,28,32,.28); margin: -14px 0; padding-bottom: 14px; }
.k7-col.raised .k7-tag { color: var(--accent-on-dark); }
.k7-col.raised dl > div { border-top-color: rgba(255,255,255,.22); }
@media (max-width: 860px) {
  .k7 { display: flex; flex-direction: column; gap: 16px; }
  .k7-labels { display: none; }
  .k7-col { display: block; padding: 0 18px 8px; }
  .k7-col.raised { margin: 0 0 8px; order: -1; }
  .k7-col dl { display: block; }
  .k7-col dl > div { display: grid; grid-template-columns: 42% 1fr; gap: 12px; padding: 11px 0; }
  .k7-col dt { position: static; width: auto; height: auto; clip: auto; font-weight: 700; font-size: 14px; color: var(--muted); }
  .k7-col.raised dt { color: var(--muted-on-dark); }
}
.k7-note { margin-top: 26px; text-align: center; color: var(--muted); }

/* ---------- P4 numbered list beside a sticky photo ---------- */
.p4-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.p4-steps { list-style: none; counter-reset: s; display: grid; gap: 16px; }
.p4-steps li { display: grid; grid-template-columns: 54px 1fr; gap: 6px 16px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.p4-num { grid-row: span 3; width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--head); font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.p4-steps h3 { margin: 0; font-size: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.p4-tag { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--accent); border: 1.5px solid var(--accent); border-radius: 4px; padding: 2px 7px; background: #fff; }
.p4-steps p { margin: 0; grid-column: 2; }
@media (max-width: 520px) { .p4-steps li { grid-template-columns: 1fr; } .p4-num { grid-row: auto; } .p4-steps p { grid-column: 1; } }

/* ---------- C6 stub band ---------- */
.band { padding: 64px 0 !important; }
.ticket { display: grid; grid-template-columns: 1fr 300px; background: #fff; color: var(--ink); border-radius: 12px; max-width: 980px; margin: 0 auto; overflow: hidden; box-shadow: 0 16px 34px rgba(0,0,0,.25); }
.ticket-main { padding: 30px 34px; }
.ticket-main h2 { font-size: clamp(24px, 2.6vw, 32px); display: flex; gap: 14px; align-items: flex-start; }
.ticket-main h2::before { content: ""; flex: 0 0 40px; height: 2px; background: var(--accent); margin-top: .62em; }
.ticket-main p { margin: 0; color: var(--muted); }
.ticket-stub { position: relative; padding: 30px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--alt); border-left: 3px dashed var(--secondary); text-align: center; }
.ticket-stub::before, .ticket-stub::after { content: ""; position: absolute; left: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); }
.ticket-stub::before { top: -14px; } .ticket-stub::after { bottom: -14px; }
.ticket-stub .btn { width: 100%; }
.ticket-stub small { font-size: 14px; color: var(--muted); }
.ticket-stub small a { color: var(--ink); font-weight: 700; }
@media (max-width: 760px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket-main { padding: 24px 22px; }
  .ticket-stub { border-left: 0; border-top: 3px dashed var(--secondary); padding: 24px 22px; }
  .ticket-stub::before, .ticket-stub::after { top: -15px; left: auto; }
  .ticket-stub::before { left: -14px; } .ticket-stub::after { right: -14px; bottom: auto; }
}

/* ---------- S15 spec-plate cards / service cards / option cards ---------- */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; list-style: none; }
.cards > li { grid-column: span 2; }
.cards.n5 > li:nth-child(4) { grid-column: 2 / span 2; }
.cards.n5 > li:nth-child(5) { grid-column: 4 / span 2; }
.cards.n4 > li { grid-column: span 3; }
.cards.n2 > li { grid-column: span 3; }
.cards.n3 > li { grid-column: span 2; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } .cards > li, .cards.n4 > li, .cards.n2 > li, .cards.n3 > li { grid-column: span 1 !important; } .cards.n5 > li:nth-child(5), .cards.n3 > li:nth-child(3) { grid-column: 1 / -1 !important; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .cards > li { grid-column: 1 / -1 !important; } }
.card { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-media.nophoto { aspect-ratio: 3 / 2; background: var(--tint); display: flex; align-items: center; justify-content: center; border-bottom: 4px solid var(--brand); }
.card-media.nophoto svg.icon { width: 76px; height: 76px; stroke-width: 2.1; }
@media (max-width: 1000px) and (min-width: 641px) { .cards.n5 > li:nth-child(5) .card-media img, .cards.n3 > li:nth-child(3) .card-media img, .cards.n5 > li:nth-child(5) .card-media.nophoto, .cards.n3 > li:nth-child(3) .card-media.nophoto { aspect-ratio: 3 / 1; } }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { font-size: 16px; }
.card-link { margin-top: auto; font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.card-link:hover { text-decoration: underline; }
.plate { background: var(--alt); border-radius: 6px; border-left: 4px solid var(--brand); margin: 0 0 14px; padding: 4px 14px; }
.bg-a .plate { background: var(--tint); }
.plate > div { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 15px; }
.plate > div:first-child { border-top: 0; }
.plate dt { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding-top: 2px; }
.plate dd { margin: 0; }
.bullets { list-style: none; display: grid; gap: 8px; margin: 0 0 16px; font-size: 15.5px; }
.bullets li { display: flex; gap: 10px; }
.bullets li svg.icon { width: 22px; height: 22px; margin-top: 1px; }

/* ---------- B6 icon tile grid ---------- */
.tiles { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tiles.two { grid-template-columns: repeat(2, 1fr); }
.tile { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; border-bottom: 4px solid var(--brand); }
.bg-w .tile { background: var(--alt); }
.tile svg.icon { width: 40px; height: 40px; margin-bottom: 12px; }
.tile h3 { font-size: 19px; margin-bottom: 6px; }
.tile p { margin: 0; font-size: 16px; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles, .tiles.two { grid-template-columns: 1fr; } }

/* ---------- M46 photo beside a ruled list ---------- */
.m46 { display: grid; grid-template-columns: minmax(0, 45%) minmax(0, 1fr); gap: 48px; align-items: start; }
.m46 figure { margin: 0; position: sticky; top: 108px; }
.m46 figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.m46 figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.ruled { list-style: none; border-top: 2px solid var(--ink); }
.ruled li { padding: 13px 0; border-bottom: 1px solid var(--secondary); display: grid; grid-template-columns: 160px 1fr; gap: 6px 18px; }
.ruled li a.town { font-weight: 700; font-family: var(--head); font-size: 18px; text-decoration: none; color: var(--ink); }
.ruled li a.town:hover { color: var(--accent-hover); text-decoration: underline; }
.ruled li p { margin: 0; font-size: 16px; }
.ruled li .home-base { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.ruled.long li { grid-template-columns: 1fr; }
@media (max-width: 900px) { .m46 { grid-template-columns: 1fr; gap: 26px; } .m46 figure { position: static; } .m46 figure img { aspect-ratio: 16 / 10; } }
@media (max-width: 560px) { .ruled li { grid-template-columns: 1fr; } }

/* ---------- F12 topic tiles ---------- */
.f12 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.f12-tile { background: #fff; color: var(--ink); border-radius: 10px; border-top: 6px solid var(--accent); padding: 24px 24px 22px; }
.f12-topic { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.f12-topic svg.icon { width: 32px; height: 32px; }
.f12-tile h3 { font-size: 18.5px; margin-bottom: 8px; }
.f12-tile p { font-size: 15.5px; }
.f12-tile hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
@media (max-width: 1000px) { .f12 { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; } }

/* ---------- Checklist (About) ---------- */
.checklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
@media (max-width: 700px) { .checklist { grid-template-columns: 1fr; } }

/* ---------- Closing ---------- */
.closing { text-align: center; }
.closing .sec-head { margin-bottom: 26px; }
.closing .sec-head p { color: var(--muted-on-dark); }

/* ---------- FAQ page ---------- */
.jump { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.jump a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--brand); text-decoration: none; font-weight: 700; font-size: 15px; color: var(--ink); }
.jump a:hover { background: var(--brand); color: #fff; }
.faq-intro p { text-align: center; }
.faq-cat { margin-bottom: 54px; scroll-margin-top: 110px; }
.faq-cat:last-child { margin-bottom: 0; }
.faq-cat .sec-head { margin-bottom: 22px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-left: 5px solid var(--brand); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 16px; }
.bg-w .faq-item { background: var(--alt); }
.faq-item h3 { font-size: 21px; }
.faq-item ul { list-style: none; display: grid; gap: 6px; margin: 0 0 1em; }
.faq-item ul li { padding-left: 22px; position: relative; }
.faq-item ul li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; }
.faq-item .callout { border-top: 1px dashed var(--secondary); padding-top: 12px; }
.tbl-wrap { overflow-x: auto; margin: 0 0 1em; }
.faq-item table, table.data { width: 100%; border-collapse: collapse; font-size: 15.5px; background: #fff; }
.faq-item th, .faq-item td { text-align: left; padding: 9px 12px; border: 1px solid var(--border); vertical-align: top; }
.faq-item thead th { background: var(--brand); color: #fff; font-family: var(--body); }
@media (max-width: 640px) {
  .faq-item table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .faq-item table.stack tr { display: block; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 10px; }
  .faq-item table.stack td { display: grid; grid-template-columns: 40% 1fr; gap: 8px; border: 0; border-top: 1px solid var(--tint); }
  .faq-item table.stack td::before { content: attr(data-label); font-weight: 700; color: var(--muted); }
  .faq-item table.stack td:first-child { background: var(--tint); font-weight: 700; }
}
.sources { list-style: none; display: grid; gap: 6px; font-size: 15px; }

/* ---------- Utility pages ---------- */
.utility { padding: 56px 0 80px !important; }
.utility h1 { font-size: clamp(30px, 3.6vw, 44px); }
.utility .lede { color: var(--muted); font-size: 18px; }
.utility .crumbs { color: var(--muted); }
.utility .crumbs ol { justify-content: flex-start; }
.utility .crumbs a { color: var(--brand); }
.legal h2 { font-size: 24px; margin-top: 34px; }
.legal p, .legal li { max-width: 72ch; }
.legal ul { padding-left: 22px; margin-bottom: 1em; }
.form-card { background: #fff; border: 1px solid var(--border); border-top: 6px solid var(--brand); border-radius: 10px; padding: 28px; box-shadow: var(--shadow); }
.fld { margin-bottom: 18px; }
.fld label { display: block; font-weight: 700; margin-bottom: 6px; }
.fld label span { font-weight: 400; color: var(--muted); }
.fld input, .fld textarea { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border: 2px solid var(--secondary); border-radius: 6px; background: #fff; color: var(--ink); min-height: 48px; }
.fld input:focus, .fld textarea:focus { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.fld [aria-invalid="true"] { border-color: var(--accent); }
.fld .err { color: #9B1C20; font-size: 15px; margin-top: 4px; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 6px; font-weight: 700; }
.form-status.ok { background: #E6F2EA; color: #1D5B33; }
.form-status.bad { background: #FBECEB; color: #8E1A11; }
.form-status.busy { background: var(--alt); color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; margin-top: 26px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside .big-phone { font-family: var(--head); font-size: 30px; font-weight: 700; color: var(--ink); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D6DBE0; padding: 56px 0 30px; font-size: 15.5px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.fgrid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 34px; }
.fplate { display: inline-block; background: #fff; border-radius: 8px; padding: 10px 14px; }
.fplate img { height: 46px; width: auto; }
.site-footer h2 { font-family: var(--body); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 0 0 12px; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.fbottom { border-top: 1px solid rgba(255,255,255,.18); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; }
.fbottom ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (max-width: 900px) { .fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } }

/* ---------- Callback dialog ---------- */
.cb-backdrop { position: fixed; inset: 0; background: rgba(24,28,32,.55); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cb-backdrop[hidden] { display: none; }
.cb { background: #fff; border-radius: 12px; border-top: 6px solid var(--accent); width: min(460px, 100%); padding: 26px 26px 22px; position: relative; box-shadow: var(--shadow); max-height: calc(100vh - 32px); overflow-y: auto; }
.cb h2 { font-size: 24px; margin-bottom: 6px; }
.cb p { color: var(--muted); }
.cb-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 6px; color: var(--ink); }
.cb .btn { width: 100%; }
.cb .direct { text-align: center; margin: 12px 0 0; }
body.dialog-open { overflow: hidden; }

/* ---------- Calculator restyle (kit classes, look only) ---------- */
.roof-calc {
  --calc-font-head: var(--head); --calc-font-body: var(--body); --calc-text: var(--ink); --calc-muted: var(--muted);
  --calc-surface: #fff; --calc-surface-alt: var(--alt); --calc-border: var(--secondary); --calc-accent: var(--accent);
  --calc-accent-text: #fff; --calc-accent-hover: var(--accent-hover); --calc-track: var(--tint); --calc-focus: var(--ink); --calc-radius: 10px;
}
.roof-calc .calc-card { border-top: 6px solid var(--brand); }
.calc-shell { max-width: 820px; margin: 0 auto; }
