/* Casa Grande Commercial Roofing Contractor | signature H8-S9-P2-B6-R6-F3-M5-C1-I2-E4 */
:root {
  --brand-dark: #302923; --deep: #221D19; --accent: #A34F32; --accent-on-dark: #E0A188;
  --cta-bg: #A34F32; --cta-text: #FFFFFF; --cta-hover: #87402A;
  --page-bg: #F7F2EA; --surface: #FFFFFF; --surface-alt: #EFE6D8; --surface-tint: #F5E4DA;
  --text: #302923; --text-muted: #5E544B; --border: #8C8076; --hairline: #DDD1C1;
  --focus-on-light: #A34F32; --focus-on-dark: #E0A188;
  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Work Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 10px; --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; 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); text-underline-offset: 3px; }
a:hover { color: var(--cta-hover); }
:focus-visible { outline: 3px solid var(--focus-on-light); outline-offset: 2px; }
.bg-dark :focus-visible, .bg-deep :focus-visible, .bg-rust :focus-visible, .site-footer :focus-visible, .hero-photo :focus-visible { outline-color: var(--focus-on-dark); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; color: inherit; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
h3 { font-size: clamp(19px, 2vw, 22px); font-weight: 700; }
h2 em, h1 em { font-style: italic; color: var(--accent); }
.bg-dark h2 em, .bg-deep h2 em, .bg-rust h2 em { color: inherit; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--accent-on-dark); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--surface); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 8px;
  font: 700 16px/1.2 var(--head); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; text-align: center; }
.btn-primary { background: var(--cta-bg); color: var(--cta-text); border-color: var(--cta-bg); }
.btn-primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); color: #fff; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--brand-dark); }
.btn-secondary:hover { background: var(--brand-dark); color: #fff; }
.bg-dark .btn-primary, .bg-deep .btn-primary, .hero-photo .btn-primary { border-color: var(--page-bg); }
.bg-dark .btn-secondary, .bg-deep .btn-secondary, .hero-photo .btn-secondary { color: #fff; border-color: var(--page-bg); }
.bg-dark .btn-secondary:hover, .bg-deep .btn-secondary:hover, .hero-photo .btn-secondary:hover { background: var(--page-bg); color: var(--text); }
.btn-light { background: var(--page-bg); color: var(--text); border-color: var(--page-bg); }
.btn-light:hover { background: #fff; color: var(--text); border-color: #fff; }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 26px; }
.actions.single { margin-top: 30px; }
@media (max-width: 640px) { .actions:not(.single) { flex-direction: column; align-items: stretch; } .actions:not(.single) .btn { width: 100%; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--page-bg); border-bottom: 1px solid var(--hairline); }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; }
.logo { display: block; flex: none; }
.logo img { height: 64px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; align-items: center; gap: 2px; }
.nav > ul > li { position: relative; display: flex; align-items: center; }
.nav a.nl { display: block; padding: 10px 10px; color: var(--text); text-decoration: none; font: 600 15.5px/1.2 var(--head); border-radius: 6px; }
.nav a.nl:hover, .nav a.nl[aria-current] { color: var(--accent); }
.dd-toggle { background: none; border: 0; padding: 10px 6px 10px 0; margin-left: -6px; cursor: pointer; color: var(--text); min-width: 28px; min-height: 40px; }
.dd-toggle svg { width: 14px; height: 14px; fill: currentColor; transition: transform .15s; }
.dd-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 290px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(48,41,35,.14); padding: 8px; list-style: none; margin: 0; display: none; }
.dropdown.open, .has-dd:hover .dropdown, .has-dd:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: 10px 12px; color: var(--text); text-decoration: none; border-radius: 6px; font-size: 15px; }
.dropdown a:hover, .dropdown a:focus { background: var(--surface-tint); color: var(--text); }
.hdr-cta { display: flex; gap: 10px; margin-left: 10px; }
.hdr-cta .btn { min-height: 44px; padding: 10px 16px; font-size: 15px; }
.burger { display: none; background: none; border: 2px solid var(--brand-dark); border-radius: 8px; width: 48px; height: 48px; padding: 0; cursor: pointer; color: var(--text); margin-right: 0; }
.burger svg { width: 24px; height: 24px; fill: currentColor; }
.mpanel { display: none; }
@media (max-width: 1199px) {
  .nav, .hdr-cta { display: none; }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .hdr { min-height: 68px; }
  .logo img { height: 50px; }
  .mpanel { position: fixed; inset: 68px 0 0 0; background: var(--page-bg); overflow-y: auto; padding: 12px 20px 40px; border-top: 1px solid var(--hairline); z-index: 49; }
  .mpanel.open { display: block; }
  .mpanel ul { list-style: none; margin: 0; padding: 0; }
  .mpanel > ul > li { border-bottom: 1px solid var(--hairline); }
  .mrow { display: flex; align-items: center; justify-content: space-between; }
  .mpanel a.ml { display: block; padding: 14px 0; color: var(--text); text-decoration: none; font: 600 18px/1.2 var(--head); flex: 1; }
  .msub-toggle { background: none; border: 0; width: 48px; height: 48px; color: var(--text); cursor: pointer; }
  .msub-toggle svg { width: 16px; height: 16px; fill: currentColor; }
  .msub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .msub { display: none; padding: 0 0 10px 14px !important; }
  .msub.open { display: block; }
  .msub a { display: block; padding: 10px 0; color: var(--text); text-decoration: none; }
  .mcta { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
  .mcta .btn { width: 100%; }
}
body.menu-open { overflow: hidden; }

/* Sections and backgrounds */
.sec { padding: 80px 0; }
@media (max-width: 760px) { .sec { padding: 52px 0; } }
.bg-page { background: var(--page-bg); }
.bg-white { background: var(--surface); }
.bg-alt { background: var(--surface-alt); }
.bg-tint { background: var(--surface-tint); }
.bg-rust { background: var(--accent); color: #fff; }
.bg-dark { background: var(--brand-dark); color: #fff; }
.bg-deep { background: var(--deep); color: #fff; }
.bg-dark a:not(.btn), .bg-deep a:not(.btn) { color: var(--accent-on-dark); }
.sh { text-align: center; max-width: 780px; margin: 0 auto 40px; }
.sh p { color: var(--text-muted); font-size: 18px; max-width: 660px; margin: 0 auto; }
.bg-dark .sh p, .bg-deep .sh p, .bg-rust .sh p { color: #F3E9DE; }
.crumbs { font-size: 14px; color: var(--text-muted); margin: 0 0 14px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .7; }
.crumbs a { color: inherit; }

/* Icons (I2) */
.icon { width: 48px; height: 48px; flex: none; }
.icon .ib { fill: var(--brand-dark); }
.icon .ig { fill: var(--page-bg); }
.icon.sm { width: 34px; height: 34px; }
.icon.lg { width: 60px; height: 60px; }
.bg-dark .icon .ib, .bg-deep .icon .ib { fill: var(--accent-on-dark); }
.bg-dark .icon .ig, .bg-deep .icon .ig { fill: var(--brand-dark); }
.icon.rust .ib { fill: var(--accent); }

/* H8 hero */
.hero-photo { position: relative; color: #fff; background: var(--brand-dark); }
.hero-photo .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(34,29,25,.55) 0%, rgba(34,29,25,.78) 100%); }
.hero-photo .wrap { position: relative; z-index: 1; text-align: center; padding-top: 110px; padding-bottom: 110px; max-width: 900px; }
.hero-photo h1 { color: #fff; margin-bottom: 16px; }
.hero-photo .lede { font-size: 19px; max-width: 640px; margin: 0 auto; color: #F7F2EA; }
.hero-photo .crumbs { color: #EADFD2; }
@media (max-width: 760px) {
  .hero-photo { background: var(--page-bg); color: var(--text); display: flex; flex-direction: column; }
  .hero-photo .hero-img { order: 2; }
  .hero-photo::after { display: none; }
  .hero-photo .wrap { padding-top: 40px; padding-bottom: 28px; }
  .hero-photo h1 { color: var(--text); }
  .hero-photo .lede { color: var(--text-muted); font-size: 17.5px; }
  .hero-photo .crumbs { color: var(--text-muted); }
  .hero-photo .hero-img { position: static; height: 240px; }
  .hero-photo .btn-secondary { color: var(--text); border-color: var(--brand-dark); }
  .hero-photo .btn-primary { border-color: var(--cta-bg); }
  .hero-photo :focus-visible { outline-color: var(--focus-on-light); }
}

/* facts (H8 band of 3 process facts) */
.facts .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fact { display: flex; align-items: center; gap: 14px; justify-content: center; }
.fact p { margin: 0; font: 600 17px/1.35 var(--head); }
.facts.sec { padding: 30px 0; }
@media (max-width: 760px) { .facts .wrap { grid-template-columns: 1fr; gap: 14px; } .fact { justify-content: flex-start; } }

/* R6 inside / on the roof */
.r6-cell .tag { display: none; font: 700 12px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.r6-head { display: grid; grid-template-columns: 1fr 40px 1fr; gap: 16px; margin-bottom: 14px; text-align: center; }
.r6-head span { font: 800 14px/1.2 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.r6 { display: grid; gap: 14px; }
.r6-row { display: grid; grid-template-columns: 1fr 40px 1fr; gap: 16px; align-items: stretch; }
.r6-cell { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start; }
.r6-cell.roof { border-left: 5px solid var(--accent); }
.r6-cell h3 { font-size: 19px; margin-bottom: 6px; }
.r6-cell p { margin: 0; color: var(--text-muted); font-size: 16px; }
.r6-arrow { display: flex; align-items: center; justify-content: center; }
.r6-arrow svg { width: 28px; height: 28px; fill: var(--accent); }
@media (max-width: 860px) {
  .r6-head { display: none; }
  .r6-row { grid-template-columns: 1fr; gap: 0; }
  .r6-arrow { padding: 4px 0; } .r6-arrow svg { transform: rotate(90deg); }
  .r6-cell .tag { display: inline-block; }
}

/* S9 roof-type selector */
.selector { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 34px; }
.selector a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px; background: var(--surface); border: 2px solid var(--hairline);
  border-radius: var(--radius); color: var(--text); text-decoration: none; font: 700 17px/1.2 var(--head); text-align: center; }
.selector a:hover { border-color: var(--accent); color: var(--text); }
.sys-panels { display: grid; gap: 22px; }
.sys { display: grid; grid-template-columns: 5fr 7fr; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 100px; }
.sys:nth-child(even) { grid-template-columns: 7fr 5fr; }
.sys:nth-child(even) .sys-img { order: 2; }
.sys-img img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.sys-body { padding: 26px 30px; }
.sys-body .kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.sys-body .kicker h3 { margin: 0; }
.fitlists { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 6px 0 14px; }
.fitlists h4 { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; color: var(--text-muted); }
.fitlists ul { margin: 0; padding-left: 18px; font-size: 15.5px; }
.fitlists li { margin-bottom: 4px; }
.textlink { font: 700 16px/1.3 var(--head); }
@media (max-width: 860px) {
  .selector { grid-template-columns: repeat(2, 1fr); }
  .sys, .sys:nth-child(even) { grid-template-columns: 1fr; }
  .sys:nth-child(even) .sys-img { order: 0; }
  .sys-img img { min-height: 0; height: 220px; }
  .fitlists { grid-template-columns: 1fr; }
  .sys-body { padding: 22px 20px; }
}

/* compare */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ccol { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--hairline); padding: 26px 28px; border-top: 6px solid var(--brand-dark); }
.ccol.caution { border-top-color: var(--accent); }
.ccol .kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ccol .kicker h3 { margin: 0; }
.ccol ul { list-style: none; margin: 0; padding: 0; }
.ccol li { position: relative; padding: 9px 0 9px 30px; border-bottom: 1px solid var(--hairline); }
.ccol li:last-child { border-bottom: 0; }
.ccol li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-dark); }
.ccol.caution li::before { background: var(--accent); border-radius: 2px; transform: rotate(45deg); }
@media (max-width: 760px) { .compare-grid { grid-template-columns: 1fr; } .ccol { padding: 22px 20px; } }

/* C1 band */
.band { text-align: center; }
.band .wrap { max-width: 820px; }
.band h2 { color: #fff; margin-bottom: 12px; }
.band p { font-size: 18.5px; color: #FBF4EC; margin: 0 auto; max-width: 680px; }
.band .icon { margin: 0 auto 14px; display: block; }
.band .icon .ib { fill: var(--page-bg); } .band .icon .ig { fill: var(--accent); }
.band.sec { padding: 64px 0; }

/* B6 icon tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 24px 22px; }
.tile .icon { margin-bottom: 14px; }
.tile h3 { font-size: 19px; margin-bottom: 6px; }
.tile p { margin: 0; color: var(--text-muted); font-size: 16px; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* P2 horizontal process strip */
.p2-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 34px; }
.p2-photos img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.p2-photos figure { margin: 0; position: relative; }
.p2-photos .pin { position: absolute; left: 14px; top: 14px; background: var(--accent); color: #fff; font: 800 15px/1 var(--head); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; counter-reset: step; }
.strip::before { content: ""; position: absolute; top: 22px; left: 10%; right: 10%; height: 3px; background: var(--accent); opacity: .55; }
.step { position: relative; text-align: center; }
.step .num { width: 46px; height: 46px; border-radius: 50%; background: var(--brand-dark); color: #fff; font: 800 18px/46px var(--head); margin: 0 auto 14px; position: relative; z-index: 1; border: 3px solid var(--page-bg); box-sizing: content-box; }
.bg-alt .step .num { border-color: var(--surface-alt); } .bg-tint .step .num { border-color: var(--surface-tint); } .bg-white .step .num { border-color: #fff; }
.step h3 { font-size: 18.5px; margin-bottom: 6px; }
.step p { font-size: 15.5px; color: var(--text-muted); margin: 0; }
@media (max-width: 960px) {
  .strip { grid-template-columns: 1fr; gap: 0; }
  .strip::before { top: 10px; bottom: 10px; left: 24px; right: auto; width: 3px; height: auto; }
  .step { text-align: left; display: grid; grid-template-columns: 52px 1fr; gap: 0 16px; padding-bottom: 22px; }
  .step .num { margin: 0; grid-row: span 2; }
  .p2-photos { grid-template-columns: 1fr; }
}

/* M5 map */
.mapgrid { display: grid; grid-template-columns: 6fr 5fr; gap: 36px; align-items: center; }
.mapbox { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 12px; }
.mapbox svg { width: 100%; height: auto; display: block; }
.townlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.townlist li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 8px; padding: 14px 16px; }
.townlist h3 { font-size: 18px; margin: 0 0 4px; }
.townlist h3 a { color: var(--text); text-decoration-color: var(--accent); }
.townlist p { margin: 0; font-size: 15.5px; color: var(--text-muted); }
@media (max-width: 900px) { .mapgrid { grid-template-columns: 1fr; } }
.m-ring { fill: none; stroke: var(--border); stroke-width: 1.5; stroke-dasharray: 6 7; }
.m-hwy { fill: none; stroke: #D7C6B2; stroke-width: 14; stroke-linecap: round; }
.m-hwy-c { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 10 10; }
.m-hlabel { font: 700 13px var(--head); fill: var(--brand-dark); }
.m-town { fill: var(--brand-dark); }
.m-town.on { fill: var(--accent); }
.m-city { fill: var(--accent); }
.m-label { font: 700 15px var(--head); fill: var(--text); }
.m-city-label { font: 800 17px var(--head); fill: var(--accent); }
.m-note { font: 600 12px var(--body); fill: var(--text-muted); }
.m-spoke { stroke: var(--brand-dark); stroke-width: 1.2; stroke-dasharray: 3 5; opacity: .55; }

/* F3 narrow accordion */
.acc { max-width: 780px; margin: 0 auto; }
.acc details { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); margin-bottom: 12px; }
.acc summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font: 700 18px/1.35 var(--head); position: relative; min-height: 48px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; border-right: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.acc details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.acc .ans { padding: 0 22px 18px; }
.acc .ans p:last-child, .acc .ans ul:last-child { margin-bottom: 0; }

/* closing */
.closing { text-align: center; }
.closing .wrap { max-width: 760px; }
.closing h2 { color: #fff; }
.closing p { color: #EADFD2; font-size: 18px; }

/* service cards */
.cards-grid { display: grid; gap: 22px; }
.cards-grid.n4 { grid-template-columns: repeat(4, 1fr); }
.cards-grid.n3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid.n2 { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }
.cards-grid.n6 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .cards-grid.n4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .cards-grid.n3, .cards-grid.n6 { grid-template-columns: repeat(2, 1fr); } .cards-grid.n3 > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 640px) { .cards-grid.n4, .cards-grid.n3, .cards-grid.n2, .cards-grid.n6 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card .cb { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card .cb > .textlink { margin-top: auto; }
.card h3 { font-size: 20px; }
.card .fit { font-size: 14.5px; margin: 0 0 14px; }
.card .fit div { margin-bottom: 6px; }
.card .fit b { font-family: var(--head); }
.icard { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 24px; border-top: 5px solid var(--accent); }
.icard .icon { margin-bottom: 12px; }
.icard p { margin: 0; color: var(--text-muted); font-size: 16px; }

/* tables */
.tbl-wrap { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
table.spec { width: 100%; border-collapse: collapse; font-size: 16px; }
table.spec th, table.spec td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hairline); }
table.spec thead th { background: var(--brand-dark); color: #fff; font: 700 15px/1.3 var(--head); }
table.spec tbody th { font-family: var(--head); font-weight: 700; width: 24%; }
table.spec tr:last-child td, table.spec tr:last-child th { border-bottom: 0; }
table.spec tbody tr:nth-child(even) { background: #FBF8F3; }
.tbl-wrap .icon { width: 30px; height: 30px; vertical-align: middle; margin-right: 8px; }
@media (max-width: 760px) {
  table.spec thead { display: none; }
  table.spec, table.spec tbody, table.spec tr, table.spec th, table.spec td { display: block; width: 100%; }
  table.spec tr { padding: 14px 16px; border-bottom: 1px solid var(--hairline); }
  table.spec tbody th { width: 100%; padding: 0 0 8px; border: 0; font-size: 18px; }
  table.spec td { padding: 4px 0; border: 0; }
  table.spec td::before { content: attr(data-label) ": "; font-weight: 700; font-family: var(--head); }
}

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split ul { padding-left: 0; list-style: none; margin: 0; }
.split li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.split li .icon { width: 30px; height: 30px; margin-top: 2px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }

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

/* links grid (nearby towns) */
.nearby { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: center; }
.nearby .inset { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 10px; }
.nearby .inset svg { width: 100%; height: auto; }
.linkcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.linkcards .lc { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 18px 20px; border-left: 5px solid var(--brand-dark); }
.linkcards h3 { font-size: 18px; margin-bottom: 6px; }
.linkcards h3 a { color: var(--text); }
.linkcards p { margin: 0; font-size: 15.5px; color: var(--text-muted); }
@media (max-width: 960px) { .nearby { grid-template-columns: 1fr; } .nearby .inset { max-width: 360px; margin: 0 auto; width: 100%; } }
@media (max-width: 760px) { .linkcards { grid-template-columns: 1fr; } }
.jump { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.jump a { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 16px 10px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); color: var(--text); text-decoration: none; font: 700 16px/1.25 var(--head); }
.jump a:hover { border-color: var(--accent); }
@media (max-width: 900px) { .jump { grid-template-columns: 1fr 1fr; } .jump a:last-child { grid-column: 1 / -1; } }

/* FAQ page answers */
.jump { margin-bottom: 46px; } .faqcat { margin-bottom: 46px; scroll-margin-top: 100px; }
.faqcat:last-child { margin-bottom: 0; }
.faqcat > .cathead { display: flex; align-items: center; gap: 14px; justify-content: center; margin-bottom: 18px; }
.faqcat > .cathead h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); }
.qa { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 24px 26px; margin: 0 auto 16px; max-width: 860px; }
.qa h3 { font-size: 20px; }
.qa ul { padding-left: 20px; }
.qa li { margin-bottom: 6px; }
.qa table.spec { margin: 6px 0 14px; font-size: 15px; }
.qa .tbl-wrap { margin-bottom: 14px; }
.sources { max-width: 860px; margin: 26px auto 0; font-size: 14.5px; color: var(--text-muted); } .sources h3 { font-size: 17px; } .sources ul { padding-left: 18px; margin: 0; }

/* forms */
.formcard { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 30px; max-width: 640px; margin: 0 auto; }
.fld { margin-bottom: 18px; }
.fld label { display: block; font: 700 16px/1.3 var(--head); margin-bottom: 6px; }
.fld input, .fld textarea { width: 100%; font: 400 17px/1.4 var(--body); padding: 12px 14px; border: 2px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); min-height: 48px; }
.fld input:focus, .fld textarea:focus { outline: 3px solid var(--focus-on-light); outline-offset: 1px; }
.fld .hint { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.fld [aria-invalid="true"] { border-color: #8E1A11; }
.ferr { color: #8E1A11; font-weight: 600; font-size: 15px; margin-top: 4px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.fstatus { margin-top: 16px; padding: 14px 16px; border-radius: 8px; font-weight: 600; }
.fstatus.ok { background: #E6F2EA; color: #1D5B33; }
.fstatus.err { background: #FBECEB; color: #8E1A11; }
.fstatus.busy { background: var(--surface-alt); color: var(--text); }
.formcard .btn { width: 100%; }
.direct { text-align: center; margin-top: 14px; font-size: 15.5px; }

/* legal + utility */
.legal .wrap { max-width: 820px; } .legal p, .legal li { overflow-wrap: anywhere; }
main { flex: 1 0 auto; }
.legal h2 { font-size: 26px; margin-top: 34px; }
.legal li { margin-bottom: 6px; }
.utilhead { padding: 52px 0 30px; text-align: center; background: var(--surface-tint); }
.utilhead p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

/* calculator restyle (site tokens on the kit's variables) */
.roof-calc { --calc-font-head: var(--head); --calc-font-body: var(--body); --calc-text: #302923; --calc-muted: #5E544B; --calc-surface: #FFFFFF;
  --calc-surface-alt: #EFE6D8; --calc-border: #8C8076; --calc-accent: #A34F32; --calc-accent-text: #FFFFFF; --calc-accent-hover: #87402A;
  --calc-track: #DDD1C1; --calc-focus: #A34F32; --calc-radius: 10px; max-width: 760px; margin: 0 auto; }
.roof-calc .calc-card { border-top: 6px solid var(--brand-dark); }
.roof-calc .choice-card { border-width: 2px; }
.roof-calc .choice-icon svg { stroke: var(--accent); }
.calc-sec { padding: 30px 0 80px; }

/* footer */
.site-footer { background: var(--deep); color: #EADFD2; padding: 60px 0 30px; font-size: 15.5px; }
.fgrid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; }
.fplate { background: var(--page-bg); border-radius: 8px; padding: 12px 14px; display: inline-block; }
.fplate img { height: 64px; width: auto; }
.site-footer h2 { font-size: 16px; letter-spacing: .06em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #F3E9DE; }
.site-footer a:hover { color: #fff; }
.fbase { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; }
@media (max-width: 900px) { .fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } }

/* mobile call bar */
.callbar { display: none; }
@media (max-width: 760px) {
  .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)); }
  .callbar a { flex: 1; min-height: 48px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  html { scroll-padding-bottom: 90px; }
  body.menu-open .callbar, body.dialog-open .callbar, body.typing .callbar { display: none; }
}

/* callback dialog */
.cb-wrap[hidden] { display: none; }
.cb-wrap { position: fixed; inset: 0; z-index: 80; background: rgba(34,29,25,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cb-box { background: var(--page-bg); border-radius: 12px; max-width: 440px; width: 100%; padding: 28px; position: relative; border-top: 6px solid var(--accent); max-height: calc(100vh - 32px); overflow-y: auto; }
.cb-box h2 { font-size: 24px; padding-right: 36px; }
.cb-close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 28px; line-height: 1; color: var(--text); }

.mt0 { margin-top: 0; } .center { text-align: center; }

/* S4 decision fork */
.forkgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fork { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 24px; border-top: 6px solid var(--brand-dark); display: flex; flex-direction: column; }
.fork:nth-child(2) { border-top-color: var(--accent); } .fork:nth-child(3) { border-top-color: #6B5E52; }
.fork .kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; } .fork .kicker h3 { margin: 0; font-size: 22px; }
.fork > p { color: var(--text-muted); font-size: 16px; }
.fork h4 { font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); margin: 6px 0 8px; }
.fork ul { margin: 0 0 14px; padding-left: 18px; font-size: 15.5px; } .fork li { margin-bottom: 5px; }
.fork .fsys { margin-top: auto; } .fork ul.flinks { list-style: none; padding: 0; margin-bottom: 0; } .fork ul.flinks a { font: 700 15.5px/1.35 var(--head); }
@media (max-width: 960px) { .forkgrid { grid-template-columns: 1fr; } }

/* P9 tabbed stages */
.p9 { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.tablist { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--hairline); background: #FBF8F3; }
.tablist [role=tab] { display: flex; align-items: center; gap: 10px; padding: 16px 14px; border: 0; border-bottom: 4px solid transparent; background: none; cursor: pointer; font: 700 15px/1.25 var(--head); color: var(--text); text-align: left; min-height: 64px; }
.tablist [role=tab] .tn { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-dark); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.tablist [role=tab][aria-selected=true] { border-bottom-color: var(--accent); background: var(--surface); }
.tablist [role=tab][aria-selected=true] .tn { background: var(--accent); }
.tpanel { display: grid; grid-template-columns: 1fr; gap: 26px; padding: 30px; align-items: center; }
.tpanel.haspic { grid-template-columns: 1fr 1fr; }
.tpanel + .tpanel { border-top: 1px solid var(--hairline); }
.p9.js .tpanel + .tpanel { border-top: 0; }
.p9.js .tpanel.off { display: none; }
.tpanel .pnum { display: block; font: 700 13px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.tpanel h3 { font-size: 24px; } .tpanel p { font-size: 17.5px; color: var(--text-muted); margin: 0; }
.tpanel .pp img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 960px) {
  .tablist { grid-template-columns: 1fr; }
  .tablist [role=tab] { border-bottom: 1px solid var(--hairline); border-left: 4px solid transparent; }
  .tablist [role=tab][aria-selected=true] { border-left-color: var(--accent); border-bottom-color: var(--hairline); }
  .tpanel, .tpanel.haspic { grid-template-columns: 1fr; padding: 22px 20px; }
}

/* F5 featured question + accordion */
.f5 { max-width: 860px; margin: 0 auto; }
.feat { display: flex; gap: 18px; align-items: flex-start; background: var(--brand-dark); color: #fff; border-radius: var(--radius); padding: 28px 30px; margin-bottom: 18px; }
.feat h3 { color: #fff; font-size: 22px; } .feat p { color: #F3E9DE; } .feat p:last-child { margin-bottom: 0; }
.feat .icon .ib { fill: var(--accent-on-dark); } .feat .icon .ig { fill: var(--brand-dark); }
.feat a { color: var(--accent-on-dark); }
.f5 .acc { max-width: none; }
@media (max-width: 640px) { .feat { flex-direction: column; padding: 22px 20px; } }

/* M4 town tiles with locator mini-maps */
.ttiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ttile { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.tpic { position: relative; }
.tpic > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mini { position: absolute; right: 10px; bottom: 10px; width: 132px; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 14px rgba(34,29,25,.35); border: 2px solid #fff; }
.mini svg { display: block; width: 100%; height: auto; }
.ttile .tb { padding: 18px 20px 20px; } .ttile h3 { font-size: 20px; margin-bottom: 6px; } .ttile h3 a { color: var(--text); text-decoration-color: var(--accent); }
.ttile p { margin: 0; color: var(--text-muted); font-size: 15.5px; }
@media (max-width: 960px) { .ttiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ttiles { grid-template-columns: 1fr; } }
.locator .l-bg { fill: #F3EBDF; } .locator .l-dot { fill: #B9AB9B; }
.locator .l-label { font: 800 30px var(--head); fill: var(--text); } .locator .l-label.cg { fill: var(--accent); }
.locator .m-hwy { stroke: #D7C6B2; stroke-width: 16; }
.locator .m-town.on { fill: var(--brand-dark); }

/* H12 framed window hero */
.hero-frame { text-align: center; padding: 56px 0 56px; }
.hero-frame .wrap { max-width: var(--wrap); }
.hero-frame h1 { max-width: 900px; margin: 0 auto 14px; }
.hero-frame .lede { font-size: 19px; color: var(--text-muted); max-width: 680px; margin: 0 auto; }
.hero-frame .frame { margin-top: 38px; border: 14px solid var(--brand-dark); border-radius: 16px; overflow: hidden; background: var(--brand-dark); box-shadow: inset 0 0 0 2px var(--accent); }
.hero-frame .frame img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; display: block; }
.hero-frame + .facts { margin-top: -1px; }
@media (max-width: 760px) { .hero-frame { padding: 36px 0 32px; } .hero-frame .frame { border-width: 8px; margin-top: 26px; } .hero-frame .frame img { aspect-ratio: 3 / 2; } .hero-frame .lede { font-size: 17.5px; } }

/* M8 compass sectors */
.compass .c-face { fill: #FBF6EF; stroke: var(--hairline); stroke-width: 2; }
.compass .c-wedge { fill: #F3EBDF; stroke: #fff; stroke-width: 3; }
.compass .c-wedge.on { fill: var(--surface-tint); }
.compass .c-dir { font: 800 20px var(--head); fill: var(--text-muted); }
.compass .c-hwy { fill: none; stroke: #D7C6B2; stroke-width: 13; stroke-linecap: round; }
.compass .c-hl { font: 700 14px var(--head); fill: var(--brand-dark); }
.compass .c-town { fill: var(--brand-dark); } .compass .c-town.dim { fill: #C3B5A5; }
.compass .c-lab { font: 700 17px var(--head); fill: var(--text); } .compass .c-lab.big { font-size: 30px; }
.compass .c-cg { font: 800 18px var(--head); fill: var(--accent); } .compass .c-cg.big { font-size: 28px; }
.townlist .bear { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand-dark); color: #fff; font: 800 13px/1 var(--head); }
.townlist li { grid-template-columns: 40px 1fr; }

/* H13 ribbon hero */
.hero-ribbon { position: relative; background: var(--brand-dark); overflow: hidden; }
.hero-ribbon .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-ribbon .ribbon { position: relative; z-index: 1; margin: 300px 0 64px; background: var(--brand-dark); color: #fff; text-align: center; padding: 34px 0 36px; border-top: 4px solid var(--accent); border-bottom: 4px solid var(--accent); }
.hero-ribbon h1 { color: #fff; margin: 0 auto 12px; max-width: 980px; }
.hero-ribbon .lede { color: #F3E9DE; font-size: 18.5px; max-width: 700px; margin: 0 auto; }
.hero-ribbon .crumbs { color: #EADFD2; }
.hero-ribbon .btn-primary { border-color: var(--page-bg); }
.hero-ribbon .btn-secondary { color: #fff; border-color: var(--page-bg); }
.hero-ribbon .btn-secondary:hover { background: var(--page-bg); color: var(--text); }
.hero-ribbon :focus-visible { outline-color: var(--focus-on-dark); }
.hero-ribbon .actions { margin-top: 22px; }
@media (max-width: 1000px) { .hero-ribbon .ribbon { margin-top: 220px; margin-bottom: 48px; } }
@media (max-width: 760px) {
  .hero-ribbon { display: flex; flex-direction: column; }
  .hero-ribbon .ribbon { margin: 0; order: 1; padding: 30px 0 28px; border-top: 0; }
  .hero-ribbon .hero-img { position: static; order: 2; height: 230px; }
}

/* R4 severity checklist */
.sev-legend { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: -18px 0 22px; }
.sevlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sev-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: start; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 20px 22px; }
.sev-item h3 { font-size: 19px; margin-bottom: 6px; }
.sev-body p { margin: 0 0 8px; color: var(--text-muted); font-size: 16px; }
.sev-body p.cause { margin: 0; font-size: 15.5px; color: var(--text); }
.chip { display: inline-block; font: 800 12px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; white-space: nowrap; border: 2px solid; }
.sev-watch { color: #4E463F; border-color: #8C8076; background: #F3EEE6; }
.sev-repair { color: #7A3A24; border-color: var(--accent); background: #FBEDE6; }
.sev-call { color: #fff; border-color: var(--brand-dark); background: var(--brand-dark); }
@media (max-width: 900px) { .sevlist { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .sev-item { grid-template-columns: 40px 1fr; } .sev-item .icon { width: 40px; height: 40px; } .sev-item .chip { grid-column: 2; justify-self: start; } }

/* S10 label-bar photo tiles */
.lbtiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lbtile { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; text-decoration: none; background: var(--brand-dark); border: 1px solid var(--hairline); }
.lbtile img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.lbar { display: block; background: var(--brand-dark); color: #fff; padding: 16px 18px 18px; border-top: 4px solid var(--accent); flex: 1; }
.lname { display: block; font: 800 19px/1.25 var(--head); margin-bottom: 6px; }
.lfit { display: block; font-size: 15px; line-height: 1.5; color: #F3E9DE; }
.lbtile:hover .lname, .lbtile:focus-visible .lname { text-decoration: underline; text-decoration-color: var(--accent-on-dark); }
@media (max-width: 1000px) { .lbtiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lbtiles { grid-template-columns: 1fr; } .lbtile img { aspect-ratio: 3 / 2; } }

/* M9 county-line map */
.mapgrid.wide { grid-template-columns: 7fr 5fr; }
@media (max-width: 900px) { .mapgrid.wide { grid-template-columns: 1fr; } }
.county .k-out { fill: #EFE8DD; }
.county .k-pinal { fill: #FBF7F1; stroke: var(--brand-dark); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 10 5; }
.county .k-cname { font: 800 15px var(--head); letter-spacing: .08em; fill: #8C8076; }
.county .k-pname { font: 800 22px var(--head); letter-spacing: .1em; fill: #C9BBAA; }
.county .k-hwy { fill: none; stroke: #D7C6B2; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.county .k-hl { font: 700 13px var(--head); fill: var(--brand-dark); }
.county .k-town { fill: var(--brand-dark); } .county .k-town.dim { fill: #C3B5A5; }
.county .k-lab { font: 700 19px var(--head); fill: var(--text); } .county .k-lab.big { font-size: 26px; }
.county .k-cg { font: 800 20px var(--head); fill: var(--accent); } .county .k-cg.big { font-size: 24px; }
@media (max-width: 760px) { .county .k-lab { font-size: 19px; } .county .k-cg { font-size: 19px; } .county .k-cname { font-size: 18px; } }
.sevlist .sev-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
