/* Elizabethtown Metal Roof Coating · site styles
   Signature H52-S30-P3-B4-R7-F7-M42-C6-I2-E1 · K2 · T1 · Archivo / Public Sans */
:root {
  --ink: #0F2342;
  --brand: #2A5B8C;
  --brand-deep: #1F4A75;
  --sec: #6C86A8;
  --cta: #E8621A;
  --cta-h: #F07B3C;
  --bg: #FFFFFF;
  --alt: #F1F4F8;
  --tint: #E8EEF6;
  --muted: #4E5D73;
  --line: #C9D4E3;
  --on-dark: #FFFFFF;
  --on-dark-muted: #9DB3CF;
  --focus-light: #0F2342;
  --focus-dark: #F5A06B;
  --head: "Saira Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --radius: 10px;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus-light); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible, .band :focus-visible { outline-color: var(--focus-dark); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: clamp(1.18rem, 1.05rem + .45vw, 1.4rem); font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); 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; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; 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: 8px; font-family: var(--head); font-weight: 700; font-size: 1rem; letter-spacing: .01em; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; text-align: center; }
.btn-primary { background: var(--cta); color: var(--ink); border-color: var(--cta); }
.btn-primary:hover { background: var(--cta-h); border-color: var(--cta-h); color: var(--ink); }
.btn-secondary { background: var(--bg); color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.on-dark .btn-secondary, .band .btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.on-dark .btn-secondary:hover, .band .btn-secondary:hover { background: #fff; color: var(--ink); }
.band .btn-primary { border-color: var(--ink); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-pair { display: flex; flex-wrap: wrap; gap: 12px; 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%; }
}

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 40; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; width: min(100% - 32px, 1340px); margin-inline: auto; }
.brand-link { display: block; flex: none; }
.brand-link img { height: 58px; width: auto; }
.nav-desktop { display: flex; align-items: center; gap: 4px; }
.nav-desktop > ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav-desktop > ul > li { position: relative; display: flex; align-items: center; }
.nav-desktop a.nav-link { display: block; padding: 10px 10px; font-weight: 600; font-size: .98rem; color: var(--ink); text-decoration: none; border-radius: 6px; }
.nav-desktop a.nav-link:hover, .nav-desktop a.nav-link[aria-current=page] { color: var(--brand); text-decoration: underline; text-decoration-thickness: 2px; }
.sub-toggle { background: none; border: 0; padding: 8px 6px 8px 0; margin-left: -6px; cursor: pointer; color: var(--ink); min-height: 40px; }
.sub-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform .15s; }
.sub-toggle[aria-expanded=true] svg { transform: rotate(180deg); }
.submenu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--cta); border-radius: 0 0 8px 8px; box-shadow: 0 14px 30px rgba(15,35,66,.14); display: none; z-index: 50; }
.submenu a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; border-radius: 6px; font-weight: 600; font-size: .95rem; }
.submenu a:hover, .submenu a:focus-visible { background: var(--tint); color: var(--brand); }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.open .submenu { display: block; }
.nav-cta { display: flex; gap: 10px; margin-left: 12px; }
.nav-cta .btn { min-height: 46px; padding: 10px 16px; font-size: .95rem; }
.burger { display: none; width: 48px; height: 48px; border: 2px solid var(--ink); background: #fff; border-radius: 8px; align-items: center; justify-content: center; cursor: pointer; padding: 0; margin-right: 0; }
.burger svg { width: 24px; height: 24px; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.mobile-panel { display: none; }
@media (max-width: 1179px) {
  .nav-desktop { display: none; }
  .burger { display: inline-flex; }
  .site-header .bar { min-height: 72px; }
  .brand-link img { height: 48px; }
  .mobile-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 3px solid var(--cta); box-shadow: 0 18px 30px rgba(15,35,66,.18); max-height: calc(100vh - 72px); overflow-y: auto; padding: 8px 16px 20px; }
  .mobile-panel.open { display: block; }
  .mobile-panel ul { list-style: none; margin: 0; padding: 0; }
  .mobile-panel > ul > li { border-bottom: 1px solid var(--line); }
  .m-row { display: flex; align-items: center; justify-content: space-between; }
  .mobile-panel a.m-link { display: block; padding: 14px 4px; color: var(--ink); font-weight: 700; text-decoration: none; flex: 1; }
  .m-toggle { width: 48px; height: 48px; background: none; border: 0; cursor: pointer; color: var(--ink); }
  .m-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; }
  .m-toggle[aria-expanded=true] svg { transform: rotate(180deg); }
  .m-sub { padding: 0 0 10px 12px !important; }
  .m-sub a { display: block; padding: 10px 4px; color: var(--brand); font-weight: 600; text-decoration: none; }
  .m-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
  .m-cta .btn { width: 100%; padding: 12px 8px; font-size: .95rem; }
}
@media (max-width: 380px) { .brand-link img { height: 42px; } }

/* Breadcrumbs */
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--sec); }
.crumbs a { color: var(--muted); }

/* Section scaffolding */
.sec { padding: 76px 0; }
.bg-w { background: var(--bg); }
.bg-a { background: var(--alt); }
.bg-t { background: var(--tint); }
.bg-b { background: var(--brand); color: #fff; }
.bg-d { background: var(--ink); color: #fff; }
.sec-head { text-align: center; max-width: 780px; margin: 0 auto 40px; }
.eyebrow { display: block; font-family: var(--body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.bg-d .eyebrow, .bg-b .eyebrow { color: #F5A06B; }
.sec-head h2 { margin-bottom: 12px; }
.sec-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.bg-d .sec-head p { color: var(--on-dark-muted); }
@media (max-width: 760px) { .sec { padding: 52px 0; } .sec-head { margin-bottom: 28px; } }

/* I2 icons: glyph in a filled circle */
svg.icon { width: 48px; height: 48px; flex: none; }
svg.icon .ib { fill: var(--brand); }
svg.icon .ig { fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
svg.icon .ig .fill { fill: #fff; stroke: none; }
.bg-d svg.icon .ib, .bg-b svg.icon .ib, .on-dark svg.icon .ib { fill: var(--cta); }
.bg-d svg.icon .ig, .bg-b svg.icon .ig, .on-dark svg.icon .ig { stroke: var(--ink); }
.bg-d svg.icon .ig .fill, .bg-b svg.icon .ig .fill { fill: var(--ink); }
svg.icon.sm { width: 36px; height: 36px; }

/* H52 hero: two-photo step pair */
.hero52 { background: linear-gradient(180deg, #fff 0%, #fff 70%, var(--tint) 100%); padding: 48px 0 64px; }
.hero52 .grid { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero52 .chip { display: inline-block; background: var(--tint); color: var(--brand-deep); border: 1px solid #BFD0E6; font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero52 h1 { text-align: left; margin-bottom: 16px; }
.hero52 .intro { font-size: 1.12rem; color: #24375A; max-width: 520px; margin-bottom: 26px; }
.hero52 .btn-pair { justify-content: flex-start; }
.hero52 .steps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; height: 540px; }
.hero52 figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px rgba(15,35,66,.18); height: 460px; background: var(--alt); }
.hero52 figure:nth-child(2) { align-self: end; }
.hero52 figure img { width: 100%; height: 100%; object-fit: cover; }
.hero52 .tag { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 8px 12px 8px 8px; border-radius: 6px; font-family: var(--head); font-weight: 700; font-size: .95rem; max-width: calc(100% - 24px); }
.hero52 .tag b { display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--cta); color: var(--ink); border-radius: 4px; flex: none; }
@media (max-width: 980px) {
  .hero52 { padding: 32px 0 44px; }
  .hero52 .grid { grid-template-columns: 1fr; gap: 28px; }
  .hero52 .intro { max-width: none; }
  .hero52 .steps { height: auto; gap: 12px; }
  .hero52 figure { height: 280px; }
  .hero52 figure:nth-child(2) { margin-top: 36px; }
  .hero52 .tag { font-size: .8rem; left: 8px; bottom: 8px; padding: 6px 8px 6px 6px; gap: 6px; }
  .hero52 .tag b { width: 22px; height: 22px; }
}
@media (max-width: 640px) { .hero52 .btn-pair { align-items: stretch; } .hero52 figure { height: 230px; } }

/* Fact strip */
.facts { padding: 26px 0; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.facts li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: .98rem; line-height: 1.3; }
@media (max-width: 900px) { .facts ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .facts ul { grid-template-columns: 1fr; } }

/* R7 roof zone columns */
.zones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 4px solid var(--ink); position: relative; }
.zones::before { content: ""; position: absolute; left: 0; right: 0; top: -4px; height: 4px; background: repeating-linear-gradient(90deg, var(--ink) 0 38px, var(--sec) 38px 42px); }
.zones li { padding: 26px 18px 8px; border-right: 1px solid var(--line); background: #fff; }
.bg-a .zones li, .bg-t .zones li { background: transparent; }
.zones li:last-child { border-right: 0; }
.zones .zone-label { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 12px 0 4px; }
.zones h3 { font-size: 1.12rem; }
.zones p { font-size: .97rem; margin: 0; }
@media (max-width: 1060px) { .zones { grid-template-columns: repeat(3, 1fr); } .zones li:nth-child(3) { border-right: 0; } .zones li:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 640px) { .zones { grid-template-columns: 1fr; } .zones li { border-right: 0; border-top: 1px solid var(--line); padding: 20px 4px; } }

/* S30 part-coverage cards */
.cov-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.cov-card { grid-column: span 2; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.cov-grid .cov-card:nth-child(4) { grid-column: 2 / span 2; }
.cov-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.cov-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.cov-body h3 { margin-bottom: 12px; }
.parts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 0 0 14px; }
.part { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border-radius: 6px; border: 1px solid transparent; font-size: .66rem; font-weight: 600; color: #8A97AB; text-align: center; line-height: 1.15; }
.part svg { width: 22px; height: 22px; fill: none; stroke: #A9B5C6; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.part.on { background: var(--tint); border-color: var(--brand); color: var(--ink); font-weight: 800; }
.part.on svg { stroke: var(--brand); }
.cov-body p { font-size: .98rem; }
.cov-body .more { margin-top: auto; font-weight: 700; }
@media (max-width: 1000px) { .cov-grid { grid-template-columns: 1fr 1fr; } .cov-card, .cov-grid .cov-card:nth-child(4) { grid-column: auto; } .cov-grid .cov-card:nth-child(5) { grid-column: 1 / -1; max-width: 560px; justify-self: center; } }
@media (max-width: 640px) { .cov-grid { grid-template-columns: 1fr; } .cov-grid .cov-card:nth-child(5) { max-width: none; } }

/* B4 building chips plus benefit lines */
.chips { list-style: none; margin: 0 auto 32px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--brand); color: var(--ink); border-radius: 999px; padding: 6px 14px 6px 8px; font-weight: 700; font-size: .92rem; }
.chips svg.icon { width: 28px; height: 28px; }
.ben-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ben { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--cta); border-radius: var(--radius); padding: 22px; }
.bg-w .ben { background: var(--alt); }
.ben h3 { margin-bottom: 6px; }
.ben p { margin: 0; font-size: .98rem; }
@media (max-width: 760px) { .ben-grid { grid-template-columns: 1fr; } }

/* C6 stub band */
.band { background: var(--brand); padding: 56px 0; }
.stub { display: grid; grid-template-columns: 1fr 300px; max-width: 980px; margin: 0 auto; background: #fff; color: var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 0 16px 34px rgba(5,20,45,.28); }
.stub-main { padding: 30px 34px; display: flex; gap: 18px; align-items: flex-start; }
.stub-main h2 { font-size: clamp(1.4rem, 1.15rem + .9vw, 1.9rem); margin-bottom: 8px; }
.stub-main p { margin: 0; color: #24375A; }
.stub-main svg.icon .ib { fill: var(--brand); }
.stub-main svg.icon .ig { stroke: #fff; }
.stub-tear { background: var(--tint); border-left: 3px dashed var(--sec); padding: 28px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; position: relative; }
.stub-tear::before, .stub-tear::after { content: ""; position: absolute; left: -14px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); }
.stub-tear::before { top: -12px; } .stub-tear::after { bottom: -12px; }
.stub-tear .btn { width: 100%; }
.stub-tear small { color: var(--muted); font-weight: 600; }
.stub-tear small a { color: var(--ink); }
@media (max-width: 760px) {
  .stub { grid-template-columns: 1fr; }
  .stub-main { padding: 24px 20px; flex-direction: column; }
  .stub-tear { border-left: 0; border-top: 3px dashed var(--sec); padding: 22px 20px; }
  .stub-tear::before, .stub-tear::after { top: -14px; bottom: auto; }
  .stub-tear::before { left: -12px; } .stub-tear::after { left: auto; right: -12px; }
}

/* K2 spec tables */
.spec { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .98rem; }
.spec caption { caption-side: bottom; text-align: left; color: var(--muted); font-size: .9rem; padding-top: 10px; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.spec thead th { background: var(--ink); color: #fff; font-family: var(--head); font-size: 1rem; }
.spec tbody th { font-weight: 700; background: var(--alt); width: 22%; }
.spec tbody tr:last-child th, .spec tbody tr:last-child td { border-bottom: 0; }
.spec .yes { font-weight: 700; color: var(--brand-deep); }
@media (max-width: 760px) {
  .spec, .spec tbody, .spec tr, .spec td, .spec tbody th { display: block; width: 100%; }
  .spec thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .spec { border: 0; background: transparent; }
  .spec tr { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
  .spec tbody th { background: var(--ink); color: #fff; }
  .spec td::before { content: attr(data-label); display: block; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
}

/* P3 four columns */
.p3-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }
.p3-photos img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); }
.p3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.p3 li { border-top: 4px solid var(--brand); padding-top: 16px; }
.p3 .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--head); font-weight: 800; margin-bottom: 12px; }
.p3 h3 { font-size: 1.15rem; }
.p3 p { font-size: .97rem; margin: 0; }
@media (max-width: 980px) { .p3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .p3, .p3-photos { grid-template-columns: 1fr; } .p3-photos img:nth-child(2) { display: none; } }

/* M42 town tabs */
.tabs { max-width: 1060px; margin: 0 auto; }
.tablist { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 0; }
.tablist [role=tab] { font: inherit; font-weight: 700; font-family: var(--head); background: #fff; border: 2px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; padding: 12px 22px; cursor: pointer; color: var(--ink); min-height: 48px; }
.tablist [role=tab][aria-selected=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabpanel { background: #fff; border: 2px solid var(--ink); border-radius: 12px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.tabpanel + .tabpanel { margin-top: 18px; }
.js .tabpanel + .tabpanel { margin-top: 0; }
.tabpanel img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.tp-body { padding: 28px 30px; }
.tp-body h3 { font-size: 1.5rem; margin-bottom: 6px; }
.tp-body .county { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.tp-body ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.tp-body li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; font-weight: 600; }
.tp-body .more { font-weight: 700; }
.area-aside { display: flex; justify-content: center; gap: 10px; align-items: center; margin-top: 18px; color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) {
  .tablist { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 2px; }
  .tablist [role=tab] { flex: none; padding: 10px 16px; }
  .tabpanel { grid-template-columns: 1fr; }
  .tabpanel img { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
  .tp-body { padding: 20px; }
}

/* F7 ledger rows */
.ledger { list-style: none; margin: 0 auto; padding: 0; max-width: 1080px; border-top: 2px solid var(--ink); counter-reset: q; }
.ledger > li { display: grid; grid-template-columns: 1fr 2fr; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); counter-increment: q; }
.ledger .q { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.ledger .q::before { content: counter(q, decimal-leading-zero); font-family: var(--head); font-weight: 800; color: var(--brand); font-size: .95rem; padding-top: 3px; }
.ledger h3 { font-size: 1.15rem; margin: 0; }
.ledger .a p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .ledger > li { grid-template-columns: 1fr; gap: 10px; } }

/* Generic cards (options, local factors) */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 980px; margin: 0 auto; }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.bg-w .card.plain { background: var(--alt); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body .icon { margin-bottom: 12px; }
.card-body p { font-size: .98rem; }
.card-body p:last-child { margin-bottom: 0; }
.card-body .more { margin-top: auto; font-weight: 700; }
.card .label { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; display: block; }
@media (max-width: 1000px) { .card-grid, .card-grid.four { grid-template-columns: 1fr 1fr; } .card-grid > .card:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 560px; justify-self: center; width: 100%; } }
@media (max-width: 640px) { .card-grid, .card-grid.two, .card-grid.four { grid-template-columns: 1fr; } .card-grid > .card:last-child:nth-child(odd) { max-width: none; } }
.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.svc-grid > .card { grid-column: span 2; }
.svc-grid.five > .card:nth-child(4) { grid-column: 2 / span 2; }
.svc-grid.three > .card { grid-column: span 2; }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: 1fr 1fr; } .svc-grid > .card, .svc-grid.five > .card:nth-child(4) { grid-column: auto; } .svc-grid > .card:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 560px; justify-self: center; width: 100%; } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } .svc-grid > .card:last-child:nth-child(odd) { max-width: none; } }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split .split-head { grid-column: 1 / -1; text-align: center; max-width: 780px; margin: 0 auto 4px; }
.split img { border-radius: 12px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }

/* Checklist */
.checklist { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.checklist li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-weight: 600; }
@media (max-width: 700px) { .checklist { grid-template-columns: 1fr; } }

/* FAQ page */
.jump { list-style: none; margin: 24px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 980px; }
.jump a { display: inline-block; background: #fff; border: 2px solid var(--brand); border-radius: 999px; padding: 8px 16px; font-weight: 700; text-decoration: none; color: var(--ink); }
.jump a:hover { background: var(--brand); color: #fff; }
.faq-intro { max-width: 820px; margin: 0 auto; text-align: center; font-size: 1.08rem; }
.faq-cat { max-width: 960px; margin: 0 auto 52px; scroll-margin-top: 20px; }
.faq-cat:last-child { margin-bottom: 0; }
.faq-cat > h2 { text-align: center; }
.faq-cat .cat-icon { display: flex; justify-content: center; margin-bottom: 8px; }
.qa { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: var(--radius); padding: 22px 26px; margin-top: 16px; }
.bg-a .qa { background: #fff; }
.qa h3 { margin-bottom: 10px; }
.qa ul { margin: 0 0 1em; padding-left: 1.2em; }
.qa li { margin-bottom: 4px; }
.qa .more p:last-child, .qa > *:last-child { margin-bottom: 0; }
.qa table { margin: 6px 0 14px; }
.sources { max-width: 960px; margin: 40px auto 0; font-size: .92rem; }
.sources ul { columns: 2; column-gap: 32px; padding-left: 1.1em; }
@media (max-width: 700px) { .sources ul { columns: 1; } .qa { padding: 18px; } }

/* Closing */
.closing { background: var(--ink); color: #fff; padding: 72px 0; text-align: center; }
.closing h2 { color: #fff; }
.closing p { color: var(--on-dark-muted); max-width: 640px; margin: 0 auto 26px; font-size: 1.08rem; }
.closing .btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.closing .btn-secondary:hover { background: #fff; color: var(--ink); }

/* Utility pages */
.util-head { background: var(--alt); padding: 40px 0 34px; border-bottom: 1px solid var(--line); }
.util-head h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem); margin-bottom: 8px; }
.util-head p { max-width: 720px; color: #24375A; margin: 0; }
.util-body { padding: 44px 0 72px; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.form-card .field, .cb .field { display: grid; gap: 6px; margin-bottom: 16px; }
.form-card .field label, .cb .field label { font-weight: 700; }
.field .opt { font-weight: 400; color: var(--muted); }
.form-card .field input, .form-card .field textarea, .cb .field input { font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 2px solid #8696AD; border-radius: 8px; padding: 12px 14px; min-height: 48px; width: 100%; }
.form-card .field input:focus, .form-card .field textarea:focus, .cb .field input:focus { border-color: var(--brand); outline: 3px solid var(--focus-light); outline-offset: 1px; }
.field [aria-invalid=true] { border-color: #B3261E; }
.field-err { color: #B3261E; font-size: .9rem; font-weight: 600; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 8px; font-weight: 600; }
.form-status.ok { background: #E3F1E7; color: #1D5B33; }
.form-status.err { background: #FBECEB; color: #8E1A11; }
.form-status.wait { background: var(--tint); color: var(--ink); }
.side-card { background: var(--tint); border-radius: 12px; padding: 26px; }
.side-card h2 { font-size: 1.4rem; }
.side-card .phone-big { font-family: var(--head); font-size: 1.7rem; font-weight: 800; color: var(--ink); text-decoration: none; display: inline-block; margin: 4px 0 14px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.legal { max-width: 820px; }
.legal h2 { font-size: 1.45rem; margin-top: 34px; }
.legal ul { padding-left: 1.2em; }

/* 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(--tint); --calc-border: #8696AD; --calc-accent: var(--brand);
  --calc-accent-text: #fff; --calc-accent-hover: var(--brand-deep); --calc-track: #D5DEEA; --calc-focus: var(--ink); --calc-radius: 12px;
}
.roof-calc .calc-card { border-top: 6px solid var(--cta); box-shadow: 0 16px 34px rgba(15,35,66,.10); }
.roof-calc .calc-btn-primary { background: var(--cta) !important; color: var(--ink) !important; border: 2px solid var(--cta) !important; font-family: var(--head); font-weight: 700; }
.roof-calc .calc-btn-primary:hover { background: var(--cta-h) !important; border-color: var(--cta-h) !important; }
.roof-calc .calc-btn-quiet { background: #fff !important; color: var(--ink) !important; border: 2px solid var(--ink) !important; font-family: var(--head); font-weight: 700; }
.roof-calc .choice-card:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.roof-calc .step-index { color: var(--brand); font-weight: 700; }
.roof-calc .cost-card { border-top: 4px solid var(--brand); }
.roof-calc .restart { background: var(--cta); color: var(--ink); border: 2px solid var(--cta); font-family: var(--head); font-weight: 700; }

/* Footer */
.site-footer { background: #0A1A33; color: #D5DEEA; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.foot-logo { background: #fff; border-radius: 8px; padding: 10px 14px; display: inline-block; margin-bottom: 14px; }
.foot-logo img { height: 46px; width: auto; }
.site-footer h2 { font-size: 1rem; color: #fff; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-base { border-top: 1px solid #22385B; margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* Fixed mobile call bar */
.callbar { display: none; }
@media (max-width: 1179px) {
  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ink); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 18px rgba(0,0,0,.18); }
  .callbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border-radius: 8px; background: var(--cta); color: var(--ink); font-family: var(--head); font-weight: 800; text-decoration: none; }
  .callbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.menu-open .callbar { display: none; }
}

/* Callback prompt */
.cb-wrap { position: fixed; inset: 0; z-index: 90; background: rgba(10,26,51,.55); display: none; align-items: center; justify-content: center; padding: 16px; }
.cb-wrap.open { display: flex; }
.cb { background: #fff; border-radius: 14px; max-width: 440px; width: 100%; padding: 26px; position: relative; border-top: 6px solid var(--cta); }
.cb h2 { font-size: 1.45rem; margin-right: 36px; }
.cb p { color: var(--muted); }
.cb-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; background: var(--alt); border-radius: 8px; cursor: pointer; font-size: 1.4rem; color: var(--ink); }
.cb .btn { width: 100%; }
.cb .direct { display: block; text-align: center; margin-top: 12px; font-weight: 700; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.roof-calc .choice-card { position: relative; }

/* H10 Framed Inset hero */
.hero10 { background: linear-gradient(180deg, var(--alt) 0%, var(--alt) 60%, #fff 100%); padding: 28px 0 56px; }
.hero10 .frame { position: relative; border: 10px solid #fff; border-radius: 18px; box-shadow: 0 20px 44px rgba(15,35,66,.18); background: #fff; }
.hero10 .photo { height: 620px; border-radius: 10px; overflow: hidden; background: var(--alt); }
.hero10 .photo img { width: 100%; height: 100%; object-fit: cover; }
.hero10 .panel { position: absolute; left: -10px; bottom: -10px; width: min(600px, 62%); background: var(--ink); color: #fff; padding: 34px 38px 36px; border-radius: 0 16px 0 16px; border-top: 4px solid var(--cta); }
.hero10 .chip { display: inline-block; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.hero10 h1 { text-align: left; color: #fff; margin-bottom: 14px; }
.hero10 .intro { font-size: 1.08rem; color: #DCE5F1; margin-bottom: 24px; }
.hero10 .btn-pair { justify-content: flex-start; }
.hero10 .crumbs, .hero10 .crumbs a { color: #C9D6E8; }
.hero10 .crumbs li + li::before { color: #8FA6C4; }
@media (max-width: 900px) {
  .hero10 { padding: 16px 0 36px; }
  .hero10 .frame { border-width: 6px; }
  .hero10 .photo { height: 260px; border-radius: 8px; }
  .hero10 .panel { position: relative; left: auto; bottom: auto; width: auto; margin: -36px 10px 0; padding: 24px 20px 26px; border-radius: 0 12px 12px 12px; }
}
@media (max-width: 640px) { .hero10 .btn-pair { align-items: stretch; } }

/* S2 image tile grid with featured tile */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.tile img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.tile.feat { grid-column: span 2; flex-direction: row; }
.tile.feat img { width: 56%; aspect-ratio: auto; height: 100%; min-height: 320px; }
.tile.feat .tile-body { justify-content: center; padding: 28px; }
.tile.feat h3 { font-size: 1.5rem; }
.tile-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; border-top: 4px solid var(--brand); }
.tile.feat .tile-body { border-top: 0; border-left: 4px solid var(--cta); }
.tile-body h3 { margin-bottom: 10px; }
.tile-body p { font-size: .98rem; }
.tile-body .more { margin-top: auto; padding-top: 10px; font-weight: 700; }
@media (max-width: 1000px) { .tile-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tile-grid { grid-template-columns: 1fr; } .tile.feat { grid-column: auto; flex-direction: column; } .tile.feat img { width: 100%; min-height: 0; aspect-ratio: 3 / 2; } .tile.feat .tile-body { border-left: 0; border-top: 4px solid var(--cta); padding: 20px; } }

/* Calculator pages: compact on desktop so a step change never scrolls the form */
@media (min-width: 900px) {
  [data-component="calc"] .util-head { padding: 18px 0 16px; }
  [data-component="calc"] .util-head .crumbs { margin-bottom: 6px; }
  [data-component="calc"] .util-head h1 { font-size: 2rem; margin-bottom: 4px; }
  [data-component="calc"] .util-head p { font-size: .98rem; }
  [data-component="calc"] .util-body { padding: 22px 0 56px; }
  .roof-calc .calc-card { max-width: 1040px; }
  .roof-calc .question-step:not([hidden]):not(:has(> .area-field)) { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-rows: auto auto auto 1fr; column-gap: 40px; align-items: start; }
  .roof-calc .question-step:not(:has(> .area-field)) > * { grid-column: 2; grid-row: 1 / span 4; }
  .roof-calc .question-step:not(:has(> .area-field)) > .step-index { grid-column: 1; grid-row: 1; }
  .roof-calc .question-step:not(:has(> .area-field)) > h2 { grid-column: 1; grid-row: 2; }
  .roof-calc .question-step:not(:has(> .area-field)) > .question-help { grid-column: 1; grid-row: 3; }
  .roof-calc .choice-list { gap: 10px; }
}
@media (min-width: 900px) {
  [data-component="calc"] .util-head .wrap { display: grid; grid-template-columns: auto 1fr; column-gap: 24px; align-items: baseline; }
  [data-component="calc"] .util-head .crumbs { grid-column: 1 / -1; }
  [data-component="calc"] .util-head h1 { font-size: 1.8rem; margin: 0; }
  [data-component="calc"] .util-head p { margin: 0; }
  [data-component="calc"] .util-body { padding-top: 16px; }
  .roof-calc .calc-card { padding: 22px 34px 24px; }
  .roof-calc #form-progress { margin-bottom: 18px; }
  .roof-calc .choice-list .choice-card { padding: 9px 14px; min-height: 56px; }
  .roof-calc .question-step:has(> .area-field) .question-help { margin-bottom: 12px; }
  .roof-calc .privacy-note { margin-top: 12px; }
  .roof-calc .form-actions { margin-top: 10px; }
}
.tile.feat .more { margin-top: 18px; }
