/* Tucson Commercial Roofing Contractor: site styles.
   Signature H5-S3-P4-B5-R4-F6-M6-C3-I5-E3. Palette derived from the supplied logo. */
:root {
  --brand-dark: #161B1F;
  --deep: #0E1114;
  --accent: #F5B800;
  --accent-ink: #7A5A00;
  --page-bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-alt: #F3F3F1;
  --surface-tint: #FBF3D9;
  --text: #161B1F;
  --text-muted: #555B61;
  --border: #868C92;
  --line: #D9DBDC;
  --cta-bg: #F5B800;
  --cta-text: #161B1F;
  --cta-hover: #FFC933;
  --focus-on-light: #7A5A00;
  --focus-on-dark: #F5B800;
  --head: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 6px;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--page-bg); color: var(--text); font: 400 17px/1.65 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--focus-on-light); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible, .callbar :focus-visible { outline-color: var(--focus-on-dark); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.3rem); }
h2 { font-size: clamp(1.65rem, 1.3rem + 1.3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.45rem); font-weight: 500; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.wrap { width: min(100% - 36px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 22px; border-radius: var(--radius);
  font: 600 1.02rem/1.2 var(--head); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; border: 2px solid var(--brand-dark); cursor: pointer; transition: background-color .15s, color .15s; }
.btn-primary { background: var(--cta-bg); color: var(--cta-text); }
.btn-primary:hover { background: var(--cta-hover); color: var(--cta-text); }
.btn-secondary { background: #fff; color: var(--text); }
.btn-secondary:hover { background: var(--surface-alt); color: var(--text); }
.on-dark .btn-primary { border-color: var(--cta-bg); }
.on-dark .btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.on-dark .btn-secondary:hover { background: #fff; color: var(--text); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-pair { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
.btn-single { display: flex; justify-content: center; margin-top: 28px; }
@media (max-width: 600px) { .btn-pair { flex-direction: column; align-items: stretch; } .btn-pair .btn { width: 100%; } }

/* Header and navigation */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.head-row { display: flex; align-items: center; gap: 18px; min-height: 84px; }
.logo { display: block; flex: none; }
.logo img { height: 64px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav a.top { display: inline-block; padding: 10px 9px; color: var(--text); text-decoration: none; font: 500 .98rem var(--head); letter-spacing: .05em; text-transform: uppercase; }
.nav a.top:hover, .nav a.top[aria-current=page] { color: var(--accent-ink); }
.has-sub { display: flex; align-items: center; }
.sub-toggle { background: none; border: 0; padding: 8px 4px; cursor: pointer; color: var(--text); display: inline-flex; min-height: 40px; align-items: center; }
.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 { display: none; position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); box-shadow: 0 10px 24px rgba(0,0,0,.12); list-style: none; padding: 8px 0; margin: 0; z-index: 60; }
.submenu.cols { columns: 2; min-width: 460px; }
.submenu a { display: block; padding: 8px 16px; color: var(--text); text-decoration: none; font-size: .95rem; break-inside: avoid; }
.submenu a:hover { background: var(--surface-tint); }
.submenu.open { display: block; }
@media (hover: hover) and (min-width: 1181px) { .has-sub:hover > .submenu { display: block; } .submenu.cols { columns: 2; } }
.nav-ctas { display: flex; gap: 8px; margin-left: 8px; }
.nav-ctas .btn { min-height: 44px; padding: 9px 14px; font-size: .92rem; }
.burger { display: none; margin-left: auto; margin-right: -6px; width: 48px; height: 48px; border: 2px solid var(--brand-dark); border-radius: var(--radius); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.burger svg { width: 24px; height: 24px; stroke: var(--brand-dark); stroke-width: 2.4; fill: none; stroke-linecap: round; }
.mobile-panel { display: none; }
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .head-row { min-height: 70px; }
  .logo img { height: 50px; }
  .mobile-panel.open { display: block; position: fixed; inset: 70px 0 0 0; background: #fff; overflow-y: auto; z-index: 70; padding: 12px 0 40px; border-top: 1px solid var(--line); }
  .mobile-panel ul { list-style: none; margin: 0; padding: 0; }
  .mobile-panel .m-row { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .mobile-panel .m-row a { flex: 1; padding: 14px 0; color: var(--text); text-decoration: none; font: 500 1.1rem var(--head); text-transform: uppercase; letter-spacing: .05em; }
  .mobile-panel .m-row button { width: 48px; height: 48px; background: none; border: 0; cursor: pointer; }
  .mobile-panel .m-row button svg { width: 16px; height: 16px; fill: none; stroke: var(--text); stroke-width: 2.4; }
  .mobile-panel .m-sub { display: none; padding: 4px 0 10px 12px; }
  .mobile-panel .m-sub.open { display: block; }
  .mobile-panel .m-sub a { display: block; padding: 10px 0; color: var(--text); text-decoration: none; }
  .m-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
  .m-ctas .btn { width: 100%; }
}
@media (max-width: 420px) { .m-ctas { grid-template-columns: 1fr; } .logo img { height: 48px; } }
body.menu-open { overflow: hidden; }

.crumbs { font-size: .85rem; color: var(--text-muted); padding: 10px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border); }
.crumbs a { color: var(--text-muted); }

/* Sections and headings (E3) */
.sec { padding: clamp(44px, 6vw, 84px) 0; }
.bg-page { background: var(--page-bg); }
.bg-alt { background: var(--surface-alt); }
.bg-tint { background: var(--surface-tint); }
.bg-dark { background: var(--brand-dark); color: #fff; }
.bg-deep { background: var(--deep); color: #fff; }
.bg-band { background: var(--accent); }
.sec-head { text-align: center; max-width: 780px; margin: 0 auto 36px; }
.sec-head h2 { text-transform: uppercase; letter-spacing: .03em; }
.sec-head h2::after { content: ""; display: block; width: 52px; height: 4px; background: var(--accent); margin: 14px auto 0; }
.sec-head .intro { color: var(--text-muted); font-size: 1.06rem; margin: 0; }
.on-dark .sec-head .intro { color: #D5D8DB; }
.bg-tint .sec-head h2::after { background: var(--brand-dark); }

/* Hero H5 */
.hero { padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 5vw, 64px); background: var(--page-bg); }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.hero h1 { text-align: center; text-transform: uppercase; letter-spacing: .02em; }
.hero .lead { font-size: 1.12rem; text-align: center; max-width: 640px; margin: 0 auto 18px; }
.hero-bullets { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 10px; max-width: 620px; }
.hero-bullets li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; background: var(--surface-alt); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
.hero-bullets svg.icon { width: 26px; height: 26px; margin-top: 2px; }
.qf { border: 2px solid var(--brand-dark); border-radius: var(--radius); background: #fff; }
.qf h2 { font-size: 1.15rem; margin: 0; padding: 12px 18px; background: var(--brand-dark); color: #fff; text-transform: uppercase; letter-spacing: .08em; text-align: left; }
.qf dl { margin: 0; padding: 4px 18px 10px; }
.qf div { display: grid; grid-template-columns: 116px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.qf div:last-child { border-bottom: 0; }
.qf dt { font: 500 .78rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); }
.qf dd { margin: 0; font-size: .97rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Fact strip with photo band */
.photo-band { height: clamp(220px, 32vw, 420px); overflow: hidden; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 26px 0; }
.facts-row li { display: flex; gap: 12px; align-items: center; padding: 6px 18px; border-left: 1px solid rgba(255,255,255,.18); font: 500 1.02rem/1.35 var(--head); letter-spacing: .03em; text-transform: uppercase; }
.facts-row li:first-child { border-left: 0; }
.facts-row { list-style: none; margin: 0; }
@media (max-width: 900px) { .facts-row { grid-template-columns: 1fr 1fr; row-gap: 14px; } .facts-row li:nth-child(3) { border-left: 0; } }
@media (max-width: 480px) { .facts-row { grid-template-columns: 1fr; } .facts-row li { border-left: 0; } }

/* Compare */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.col-card { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--brand-dark); border-radius: var(--radius); padding: 24px; }
.col-card.warn { border-top-color: var(--accent); }
.col-card h3 { display: flex; gap: 10px; align-items: center; text-transform: uppercase; letter-spacing: .03em; }
.col-card ul { list-style: none; padding: 0; margin: 0; }
.col-card li { padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); position: relative; }
.col-card li:last-child { border-bottom: 0; }
.col-card li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 10px; height: 10px; background: var(--accent); border: 2px solid var(--brand-dark); border-radius: 50%; }
@media (max-width: 760px) { .compare-grid { grid-template-columns: 1fr; } }

/* Process P4 */
.p4 { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.p4 ol { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 14px; }
.p4 li.step { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.p4 .num { width: 46px; height: 46px; display: grid; place-items: center; background: var(--brand-dark); color: var(--accent); font: 600 1.25rem var(--head); border-radius: 50%; }
.p4 .tag { display: inline-block; font: 600 .74rem/1 var(--mono); letter-spacing: .1em; background: var(--surface-tint); color: var(--accent-ink); border: 1px solid var(--accent-ink); padding: 4px 7px; border-radius: 3px; margin-bottom: 6px; }
.p4 h3 { margin: 0 0 6px; }
.p4 p { margin: 0; }
.p4-photos { position: sticky; top: 100px; display: grid; gap: 14px; }
.p4-photos figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.p4-photos img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
@media (max-width: 900px) { .p4 { grid-template-columns: 1fr; } .p4-photos { position: static; grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .p4-photos { grid-template-columns: 1fr; } }

/* Spec table S3 and option tables */
.spec { width: 100%; border-collapse: collapse; background: #fff; border: 2px solid var(--brand-dark); font-size: .97rem; }
.spec caption { text-align: left; font-size: .85rem; color: var(--text-muted); padding: 8px 0; caption-side: bottom; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.spec thead th { background: var(--brand-dark); color: #fff; font: 500 .82rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.spec tbody th { font: 600 1.08rem/1.3 var(--head); text-transform: uppercase; letter-spacing: .03em; width: 19%; }
.spec tbody th a { color: var(--text); }
.spec tbody th svg.icon { display: block; margin-bottom: 6px; }
.spec tbody tr:nth-child(even) { background: var(--surface-alt); }
@media (max-width: 860px) {
  .spec, .spec tbody, .spec tr, .spec th, .spec td { display: block; width: 100%; }
  .spec { border: 0; background: transparent; }
  .spec thead { position: absolute; left: -9999px; }
  .spec caption { display: block; width: 100%; caption-side: bottom; padding-top: 0; }
  .spec tbody tr { background: #fff !important; border: 2px solid var(--brand-dark); border-radius: var(--radius); margin-bottom: 16px; }
  .spec tbody th { background: var(--surface-tint); width: 100%; }
  .spec td::before { content: attr(data-label); display: block; font: 500 .74rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); margin-bottom: 2px; }
}

/* C3 band */
.band-card { background: #fff; border: 2px solid var(--brand-dark); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; max-width: 1040px; margin: 0 auto; box-shadow: 8px 8px 0 var(--brand-dark); }
.band-card h2 { text-transform: uppercase; letter-spacing: .03em; }
.band-card .ready { background: var(--surface-alt); border-radius: var(--radius); padding: 16px 18px; }
.band-card .ready h3 { font-size: 1rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); margin-bottom: 8px; }
.band-card .ready ul { list-style: none; padding: 0; margin: 0; }
.band-card .ready li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.band-card .ready svg.icon { width: 22px; height: 22px; margin-top: 3px; }
.band-card .btn-single { justify-content: flex-start; margin-top: 16px; }
.band-card .band-photo { border-radius: var(--radius); overflow: hidden; }
@media (max-width: 820px) { .band-card { grid-template-columns: 1fr; box-shadow: 5px 5px 0 var(--brand-dark); } .band-card .btn-single { justify-content: center; } }

/* B5 failure mode rows */
.b5 { display: grid; gap: 14px; max-width: 1060px; margin: 0 auto; }
.b5-row { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.b5-fail, .b5-fix { padding: 18px 20px; }
.b5-fail { border-left: 5px solid var(--border); }
.b5-fix { background: var(--surface-tint); }
.b5-row .lbl { display: block; font: 600 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.b5-fix .lbl { color: var(--accent-ink); }
.b5-row h3 { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.b5-row p { margin: 0; }
.b5-arrow { display: grid; place-items: center; background: var(--brand-dark); }
.b5-arrow svg { width: 22px; height: 22px; stroke: var(--accent); stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .b5-row { grid-template-columns: 1fr; } .b5-arrow { height: 30px; } .b5-arrow svg { transform: rotate(90deg); } }

/* R4 checklist with severity chips */
.r4 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.r4.n4 { grid-template-columns: repeat(2, 1fr); }
.r4.n5 { grid-template-columns: repeat(6, 1fr); }
.r4.n5 > li { grid-column: span 2; }
.r4.n5 > li:nth-child(4) { grid-column: 2 / span 2; }
.r4 > li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; grid-template-columns: 34px 1fr; gap: 6px 12px; align-content: start; }
.chip { display: inline-block; font: 600 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 99px; border: 2px solid; }
.r4 .chip { grid-column: 2; justify-self: start; }
.chip.watch { color: var(--text-muted); border-color: var(--border); background: #fff; }
.chip.repair { color: var(--accent-ink); border-color: var(--accent-ink); background: var(--surface-tint); }
.chip.call { color: #fff; border-color: var(--brand-dark); background: var(--brand-dark); }
.r4 h3, .r4 p { grid-column: 2; margin: 0; }
.r4 svg.icon { grid-row: 1 / span 2; }
.chip-key { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; margin: -14px 0 26px; font-size: .9rem; color: var(--text-muted); list-style: none; padding: 0; }
.chip-key li { display: flex; gap: 8px; align-items: center; }
@media (max-width: 960px) { .r4, .r4.n5 { grid-template-columns: 1fr 1fr; } .r4.n5 > li, .r4.n5 > li:nth-child(4) { grid-column: auto; } .r4.n5 > li:last-child { grid-column: 1 / -1; } }
@media (max-width: 620px) { .r4, .r4.n4, .r4.n5 { grid-template-columns: 1fr; } .r4.n5 > li:last-child { grid-column: auto; } }

/* Map M6 */
.m6 { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(22px, 4vw, 44px); align-items: start; }
.m6 svg[data-map] { width: 100%; height: auto; background: #fff; border: 2px solid var(--brand-dark); border-radius: var(--radius); }
.towns { display: grid; gap: 14px; }
.town-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.town-group h3 { font-size: 1rem; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 6px; }
.town-group ul { list-style: none; padding: 0; margin: 0; }
.town-group li { padding: 6px 0; border-top: 1px dashed var(--line); }
.town-group li:first-child { border-top: 0; }
.town-group a { font-weight: 700; }
@media (max-width: 900px) { .m6 { grid-template-columns: 1fr; } }

/* F6 tabs */
.tabs { max-width: 940px; margin: 0 auto; }
.tablist { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }
.tablist [role=tab] { font: 500 .95rem var(--head); letter-spacing: .06em; text-transform: uppercase; padding: 10px 16px; min-height: 44px; border: 2px solid var(--brand-dark); background: #fff; color: var(--text); border-radius: 99px; cursor: pointer; }
.tablist [role=tab][aria-selected=true] { background: var(--brand-dark); color: #fff; }
.js .tabpanel:not(.active) { display: none; }
.tabpanel { display: grid; gap: 12px; }
.qa { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; }
.qa h3 { font-size: 1.15rem; margin-bottom: 6px; }
.qa p:last-child { margin: 0; }

/* svc cards */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.cards.n3 { grid-template-columns: repeat(3, 1fr); }
.cards.n5 { grid-template-columns: repeat(6, 1fr); }
.cards.n5 > * { grid-column: span 2; }
.cards.n5 > :nth-child(4) { grid-column: 2 / span 2; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card .card-img img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card .card-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.card h3 { display: flex; gap: 10px; align-items: center; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; padding-top: 10px; font-size: .94rem; }
.fit div { background: var(--surface-alt); padding: 10px 12px; border-radius: 4px; }
.fit strong { display: block; font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent-ink); }
.card .more { margin-top: 12px; font-weight: 700; }
@media (max-width: 960px) { .cards.n3, .cards.n5 { grid-template-columns: 1fr 1fr; } .cards.n5 > *, .cards.n5 > :nth-child(4) { grid-column: auto; } .cards.n5 > :last-child, .cards.n3 > :last-child:nth-child(3) { grid-column: 1 / -1; } }
@media (max-width: 640px) { .cards, .cards.n3, .cards.n5 { grid-template-columns: 1fr; } .fit { grid-template-columns: 1fr; } }
.icard { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand-dark); border-radius: var(--radius); padding: 20px 22px; }
.icard h3 { display: flex; gap: 10px; align-items: center; }
.icard p:last-child { margin: 0; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 4vw, 48px); align-items: center; }
.split figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.split ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.split li { display: flex; gap: 10px; align-items: flex-start; }
.split li svg.icon { width: 24px; height: 24px; margin-top: 2px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

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

/* Links grid */
.links-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.links-wrap svg[data-inset] { width: 100%; height: auto; background: #fff; border: 2px solid var(--brand-dark); border-radius: var(--radius); }
.link-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; list-style: none; padding: 0; margin: 0; }
.link-grid li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; }
.link-grid a { font: 600 1.08rem var(--head); text-transform: uppercase; letter-spacing: .03em; }
.link-grid p { margin: 4px 0 0; font-size: .95rem; }
@media (max-width: 860px) { .links-wrap { grid-template-columns: 1fr; } .links-wrap svg[data-inset] { max-width: 340px; margin: 0 auto; } }
@media (max-width: 560px) { .link-grid { grid-template-columns: 1fr; } }

/* Text hero (FAQ, utility) */
.hero-text { padding: clamp(30px, 5vw, 64px) 0; text-align: center; background: var(--page-bg); }
.hero-text h1 { text-transform: uppercase; }
.hero-text .lead { max-width: 720px; margin: 0 auto; font-size: 1.1rem; }

/* FAQ page */
.jump { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; list-style: none; padding: 0; margin: 0 0 34px; }
.jump a { display: inline-block; padding: 8px 14px; border: 2px solid var(--brand-dark); border-radius: 99px; text-decoration: none; color: var(--text); font: 500 .92rem var(--head); text-transform: uppercase; letter-spacing: .05em; }
.jump a:hover { background: var(--surface-tint); }
.faq-cat { max-width: 900px; margin: 0 auto 40px; scroll-margin-top: 110px; }
.faq-cat > h2 { text-transform: uppercase; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); border-bottom: 3px solid var(--accent); padding-bottom: 8px; display: flex; gap: 12px; align-items: center; }
.faq-cat .qa { margin-bottom: 12px; }
.qa table { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: .95rem; }
.qa th, .qa td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.qa thead th { background: var(--surface-alt); font: 600 .78rem var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.qa ul, .qa ol { margin: 4px 0 12px; }
.sources { max-width: 900px; margin: 0 auto; font-size: .92rem; color: var(--text-muted); }

/* Closing */
.closing { text-align: center; }
.closing h2 { text-transform: uppercase; }
.closing p { max-width: 640px; margin: 0 auto; color: #D5D8DB; }

/* Utility pages */
.utility { padding: 20px 0 60px; }
.utility-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 860px) { .utility-grid { grid-template-columns: 1fr; } }
.form-card { background: #fff; border: 2px solid var(--brand-dark); border-radius: var(--radius); padding: clamp(20px, 4vw, 34px); }
.form-card .field { margin-bottom: 16px; display: grid; gap: 6px; }
.form-card label { font-weight: 700; }
.form-card label .opt { font-weight: 400; color: var(--text-muted); }
.form-card input, .form-card textarea { width: 100%; font: inherit; border: 2px solid var(--border); border-radius: var(--radius); padding: 12px 14px; min-height: 48px; background: #fff; color: var(--text); }
.form-card input[aria-invalid=true], .form-card textarea[aria-invalid=true] { border-color: #A3261B; }
.field-error { color: #A3261B; font-size: .92rem; font-weight: 600; }
.form-status { padding: 12px 14px; border-radius: var(--radius); font-weight: 600; margin-top: 12px; }
.form-status.ok { background: #E6F2EA; color: #1D5B33; border-left: 5px solid #1D5B33; }
.form-status.err { background: #FBECEB; color: #8E1A11; border-left: 5px solid #8E1A11; }
.form-status.busy { background: var(--surface-alt); color: var(--text); border-left: 5px solid var(--text-muted); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.side-card { background: var(--surface-alt); border-radius: var(--radius); padding: 22px; }
.side-card figure { margin: 0 0 14px; border-radius: var(--radius); overflow: hidden; }
.side-card .phone { font: 600 1.5rem var(--head); }
.legal { max-width: 820px; }
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal-intro { color: var(--text-muted); }
.page-head { text-align: center; padding: 24px 0 18px; }
.page-head h1 { text-transform: uppercase; }
.page-head p { max-width: 640px; margin: 0 auto; color: var(--text-muted); }

/* Footer */
.site-footer { background: var(--deep); color: #D5D8DB; padding: 52px 0 28px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.foot-logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px; }
.foot-logo img { height: 56px; width: auto; }
.site-footer h2 { font-size: 1rem; color: #fff; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--accent); }
.foot-legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.foot-legal ul { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 1180px) {
  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--brand-dark); padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); justify-content: center; }
  .callbar a { width: 100%; max-width: 480px; }
  body.has-callbar { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  body.menu-open .callbar, body.hide-callbar .callbar { display: none; }
}

/* Callback prompt */
.cb-backdrop { position: fixed; inset: 0; background: rgba(14,17,20,.55); z-index: 90; display: grid; place-items: center; padding: 16px; }
.cb-backdrop[hidden] { display: none; }
.cb-dialog { background: #fff; border: 2px solid var(--brand-dark); border-radius: var(--radius); width: min(100%, 440px); padding: 26px; position: relative; max-height: calc(100vh - 32px); overflow-y: auto; }
.cb-dialog h2 { font-size: 1.5rem; text-transform: uppercase; padding-right: 36px; }
.cb-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.cb-close svg { width: 20px; height: 20px; stroke: var(--text); stroke-width: 2.4; }
.cb-dialog .form-card { border: 0; padding: 0; }
.cb-dialog .call-line { margin-top: 12px; font-size: .95rem; }

/* Calculator kit restyle (behavior and wording locked; look is per site) */
.roof-calc {
  --calc-font-head: var(--head);
  --calc-font-body: var(--body);
  --calc-text: #161B1F;
  --calc-muted: #555B61;
  --calc-surface: #FFFFFF;
  --calc-surface-alt: #FBF3D9;
  --calc-border: #868C92;
  --calc-accent: #161B1F;
  --calc-accent-text: #FFFFFF;
  --calc-accent-hover: #000000;
  --calc-track: #E3E4E2;
  --calc-focus: #7A5A00;
  --calc-radius: 6px;
}
.roof-calc .calc-card { border: 2px solid var(--brand-dark); box-shadow: 8px 8px 0 var(--accent); }
.roof-calc .calc-btn-primary { background: var(--cta-bg); color: var(--cta-text); border-color: var(--brand-dark); text-transform: uppercase; letter-spacing: .04em; }
.roof-calc .calc-btn-primary:hover { background: var(--cta-hover); color: var(--cta-text); border-color: var(--brand-dark); }
.roof-calc .question-step h2 { text-transform: uppercase; letter-spacing: .02em; }
.roof-calc .step-index { font-family: var(--mono); color: var(--accent-ink); }
.roof-calc .choice-card:has(input:checked) { border-color: var(--brand-dark); background: var(--surface-tint); }
.roof-calc .choice-icon svg { stroke: var(--brand-dark); stroke-width: 2.2; }
.roof-calc #form-progress::-webkit-progress-value { background: var(--accent); }
.roof-calc #form-progress::-moz-progress-bar { background: var(--accent); }
.roof-calc .area-slider::-webkit-slider-thumb { background: var(--brand-dark); }
.calc-wrap { padding: 8px 0 64px; }
.calc-note { max-width: 760px; margin: 28px auto 0; display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: center; color: var(--text-muted); font-size: .95rem; }
.calc-note img { border-radius: var(--radius); }
@media (max-width: 600px) { .calc-note { grid-template-columns: 1fr; } }

/* Hero H10: photo with a framed inset panel anchored lower-left */
.hero10 { position: relative; background: var(--brand-dark); }
.h10-photo img { width: 100%; height: clamp(520px, 68vh, 700px); object-fit: cover; }
.h10-wrap { position: absolute; left: 0; right: 0; bottom: 0; }
.h10-panel { width: min(640px, 100%); background: var(--brand-dark); color: #fff; padding: 30px 36px 32px; border-top: 6px solid var(--accent); box-shadow: 0 -2px 0 rgba(0,0,0,.05); }
.h10-panel h1 { text-transform: uppercase; letter-spacing: .02em; text-align: center; font-size: clamp(1.9rem, 1.4rem + 1.9vw, 2.9rem); margin-bottom: 12px; }
.h10-panel .lead { color: #E3E5E7; text-align: center; font-size: 1.08rem; margin: 0; }
.h10-panel .btn-pair { margin-top: 20px; }
@media (max-width: 860px) {
  .hero10 { display: flex; flex-direction: column; }
  .h10-wrap { position: static; order: 1; width: 100%; margin: 0; }
  .h10-photo { order: 2; }
  .h10-photo img { height: 260px; }
  .h10-panel { width: 100%; margin: 0; padding: 26px 18px 28px; }
}
.facts-strip { background: var(--page-bg); border-bottom: 1px solid var(--line); }
.facts-strip .facts-row li { border-left-color: var(--line); color: var(--text); }
.facts-strip .facts-row li:first-child { border-left: 0; }
