/* Safford Commercial Roofing Contractor
   Signature H21-S16-P5-B10-R7-F7-M18-C8-I6-E1 · palette: steel gray + orange, forest green (Option A)
   Heading: Hanken Grotesk · Body: Source Sans 3 */
:root {
  --brand-dark: #4A5560;   /* steel gray (shade of supplied #56636D) */
  --deep: #183D35;         /* supplied forest green */
  --ink: #183D35;          /* eyebrows, links, icon stroke */
  --accent: #E87524;       /* supplied orange: band surface, map primary, rules */
  --cta-bg: #E87524;
  --cta-text: #202624;
  --cta-hover: #F5913F;
  --page-bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-alt: #F2F3F0;  /* supplied neutral */
  --surface-tint: #FBEBDD; /* orange tint */
  --hex-fill: #FDF3EA;
  --text: #202624;         /* supplied neutral dark */
  --text-muted: #56636D;   /* supplied steel gray */
  --border: #868C92;
  --line: #D6D9D3;
  --focus-light: #183D35;
  --focus-dark: #F5913F;
  --footer: #202624;
  --radius: 10px;
  --font-head: "Hanken Grotesk", "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--page-bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 2px; }
a:hover { color: #0f2a24; }
:focus-visible { outline: 3px solid var(--focus-light); outline-offset: 2px; }
.bg-dark :focus-visible, .bg-deep :focus-visible, .site-footer :focus-visible, .callbar :focus-visible { outline-color: var(--focus-dark); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.18; margin: 0 0 .5em; color: inherit; overflow-wrap: normal; word-break: normal; hyphens: manual; }
h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.005em; }
h3 { font-size: clamp(19px, 1.7vw, 22px); font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: var(--text); padding: 10px 14px; z-index: 200; border-radius: 6px; }
.skip:focus { left: 12px; }
main:focus { outline: none; }

/* backgrounds */
.sec { padding: 76px 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-accent { background: var(--accent); color: var(--text); }

/* E1 headings */
.sec-head { text-align: center; max-width: 780px; margin: 0 auto 40px; }
.eyebrow { font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 0 0 10px; }
.bg-dark .eyebrow, .bg-deep .eyebrow { color: #FBD3B5; }
.bg-accent .eyebrow { color: var(--text); }
.sec-head .intro { color: var(--text-muted); font-size: 18px; margin: 0; }
.bg-dark .sec-head .intro, .bg-deep .sec-head .intro { color: #EEF0EE; }
.h2-icon { width: 40px; height: 40px; vertical-align: middle; margin-right: 10px; }

/* I6 icons */
svg.icon { width: 48px; height: 48px; flex: none; }
svg.icon .hex { fill: var(--hex-fill); stroke: var(--accent); stroke-width: 1.5; }
svg.icon .glyph { fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
svg.icon.on-dark .hex { fill: var(--text); stroke: var(--text); }
svg.icon.on-dark .glyph { stroke: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s; cursor: pointer; }
.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: var(--cta-text); }
.btn-secondary { background: #fff; color: var(--deep); border-color: var(--deep); }
.btn-secondary:hover { background: var(--deep); color: #fff; }
.bg-dark .btn-primary, .bg-deep .btn-primary { border-color: #fff; }
.bg-dark .btn-secondary, .bg-deep .btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.bg-dark .btn-secondary:hover, .bg-deep .btn-secondary:hover { background: #fff; color: var(--deep); }
.btn-dark { background: var(--text); color: #fff; border-color: var(--text); }
.btn-dark:hover { background: #000; color: #fff; }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 16px; }
.btn-pair { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.center-action { text-align: center; margin-top: 40px; }
.ui-phone { flex: none; }
.text-link { font-weight: 700; color: var(--ink); }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 20px; }
.logo img { height: 60px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 18px; }
.nav-list { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; align-items: center; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list > li > a { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--text); text-decoration: none; padding: 10px 8px; }
.nav-list > li > a:hover { color: var(--deep); text-decoration: underline; }
.dd-toggle { background: none; border: 0; padding: 8px 4px; cursor: pointer; color: var(--text); min-height: 44px; display: flex; align-items: center; }
.dd { 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(32,38,36,.14); list-style: none; margin: 0; padding: 8px 0; display: none; border-radius: 0 0 8px 8px; }
.dd a { display: block; padding: 10px 18px; color: var(--text); text-decoration: none; font-weight: 600; }
.dd a:hover, .dd a:focus { background: var(--surface-alt); color: var(--deep); }
.has-dd:hover > .dd, .has-dd:focus-within > .dd, .has-dd.open > .dd { display: block; }
.has-dd.closed > .dd { display: none; }
.nav-actions { display: flex; gap: 10px; }
.burger { display: none; width: 48px; height: 48px; border: 2px solid var(--deep); border-radius: 8px; background: #fff; padding: 11px 10px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 3px; background: var(--deep); border-radius: 2px; }
.mobile-panel { border-top: 1px solid var(--line); background: #fff; max-height: calc(100vh - 72px); overflow-y: auto; }
.mobile-panel[hidden] { display: none; }
.m-list { list-style: none; margin: 0; padding: 8px 20px; }
.m-list > li { border-bottom: 1px solid var(--line); }
.m-list a { display: block; padding: 13px 0; font-family: var(--font-head); font-weight: 700; color: var(--text); text-decoration: none; }
.m-row { display: flex; align-items: center; justify-content: space-between; }
.m-row a { flex: 1; }
.m-toggle { width: 48px; height: 48px; background: none; border: 0; cursor: pointer; color: var(--text); display: flex; align-items: center; justify-content: center; }
.m-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.m-sub { list-style: none; margin: 0 0 8px; padding: 0 0 0 14px; }
.m-sub a { font-weight: 600; padding: 10px 0; }
.m-actions { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 16px 20px 22px; }
.m-actions .btn { width: 100%; }
@media (max-width: 1239px) {
  .main-nav { display: none; }
  .burger { display: flex; margin-left: auto; margin-right: -4px; }
  .header-inner { min-height: 72px; }
  .logo img { height: 50px; }
}
@media (min-width: 1240px) { .mobile-panel { display: none !important; } }

/* H21 hero */
.hero-h21 { padding: 0; background: var(--brand-dark); }
.h21-band { padding: 56px 0 48px; text-align: center; }
.h21-band h1 { max-width: 900px; margin: 0 auto 16px; color: #fff; }
.h21-intro { max-width: 700px; margin: 0 auto 26px; font-size: 19px; color: #F1F2EF; }
.chip { display: inline-block; font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.55); color: #fff; padding: 5px 14px; border-radius: 999px; margin: 0 0 16px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 0 0 18px; font-size: 14px; color: #E3E6E3; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #C9CFCB; }
.crumbs a { color: #fff; }
.util .crumbs ol { justify-content: flex-start; color: var(--text-muted); }
.util .crumbs a { color: var(--ink); }
.util .crumbs li + li::before { color: var(--text-muted); }
.h21-photo { position: relative; border-top: 3px solid var(--accent); background: var(--surface-alt); }
.h21-img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; object-position: center 40%; }
.h21-photo.has-shortcuts { padding-bottom: 0; }
.h21-sc-wrap { position: relative; }
.h21-shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 10px 10px 0 0; margin-top: -58px; position: relative;
  box-shadow: 0 -6px 18px rgba(32,38,36,.12); overflow: hidden; }
.h21-short { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-family: var(--font-head); font-weight: 700; color: var(--text); text-decoration: none; border-right: 1px solid var(--line); min-height: 58px; }
.h21-short:last-child { border-right: 0; }
.h21-short:hover { background: var(--surface-alt); color: var(--deep); }
.h21-short svg.icon { width: 40px; height: 40px; }
@media (max-width: 800px) {
  .h21-band { padding: 36px 0 32px; }
  .h21-img { aspect-ratio: 16 / 9; }
  .h21-shortcuts { grid-template-columns: 1fr 1fr; margin-top: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); }
  .h21-short { border-bottom: 1px solid var(--line); padding: 12px; font-size: 15px; }
  .h21-short:nth-child(2n) { border-right: 0; }
  .h21-sc-wrap { padding: 0; }
  .btn-pair { flex-direction: column; align-items: stretch; max-width: 420px; margin: 0 auto; }
  .btn-pair .btn { width: 100%; }
}

/* fact strip */
.facts { padding: 34px 0; }
.fact-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fact { display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; align-items: center; }
.fact svg.icon { grid-row: span 2; }
.fact-label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.fact-value { font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.3; }
@media (max-width: 900px) { .fact-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .fact-list { grid-template-columns: 1fr; } }

/* R7 zone columns */
.zones { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 4px solid var(--brand-dark); }
.zone-card { padding: 26px 18px 10px; border-right: 1px solid var(--line); background: var(--surface); position: relative; }
.zone-card:last-child { border-right: 0; }
.zone-card::before { content: ""; position: absolute; top: -4px; left: 0; width: 46px; height: 4px; background: var(--accent); }
.zone-card h3 { margin-top: 14px; font-size: 19px; }
.zone-card p { font-size: 16px; }
.bg-alt .zone-card { background: #fff; }
@media (max-width: 1100px) { .zones { grid-template-columns: repeat(6, 1fr); border-top: 0; gap: 16px; }
  .zone-card { grid-column: span 2; border: 1px solid var(--line); border-top: 4px solid var(--brand-dark); border-radius: 0 0 8px 8px; }
  .zone-card:nth-child(4) { grid-column: 2 / span 2; } .zone-card:nth-child(5) { grid-column: 4 / span 2; } .zone-card:last-child { border-right: 1px solid var(--line); } }
@media (max-width: 700px) { .zones { grid-template-columns: 1fr; } .zone-card, .zone-card:nth-child(4), .zone-card:nth-child(5) { grid-column: auto; } }

/* S16 */
.svc-photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 44px; }
.svc-photo-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.svc-photo-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.svc-photo-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.svc-photo-body p { font-size: 16px; flex: 1; }
.matrix-wrap { overflow-x: auto; }
.fit-matrix { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; font-size: 16px; }
.fit-matrix caption, .data-table caption, .m18-table caption { caption-side: top; text-align: left; font-family: var(--font-head); font-weight: 700; font-size: 18px; padding: 0 0 12px; }
.fit-matrix th, .fit-matrix td { padding: 14px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.fit-matrix thead th { background: var(--brand-dark); color: #fff; font-family: var(--font-head); }
.fit-matrix tbody th { font-family: var(--font-head); font-weight: 700; width: 22%; }
.fit-matrix td.fit-yes { display: table-cell; }
.fit-matrix .cell { display: flex; align-items: center; gap: 8px; }
.fit-matrix td svg.icon { width: 32px; height: 32px; }
.fit-matrix td.fit-no { color: var(--text-muted); }
@media (max-width: 1000px) { .svc-photo-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .svc-photo-grid { grid-template-columns: 1fr; }
  .fit-matrix thead { position: absolute; left: -9999px; }
  .fit-matrix, .fit-matrix tbody, .fit-matrix tr, .fit-matrix th, .fit-matrix td { display: block; width: 100%; }
  .fit-matrix tr { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; overflow: hidden; }
  .fit-matrix tbody th { background: var(--brand-dark); color: #fff; width: 100%; }
  .fit-matrix td { display: flex !important; align-items: center; gap: 8px; }
  .fit-matrix td::before { content: attr(data-label); font-weight: 700; min-width: 42%; flex: none; }
  .fit-matrix td.fit-no { display: none !important; }
}

/* C8 band */
.band-c8 { padding: 56px 0; }
.c8-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; max-width: 1040px; }
.c8-icon svg.icon { width: 76px; height: 76px; }
.c8-copy h2 { margin-bottom: 8px; font-size: clamp(25px, 2.6vw, 32px); }
.c8-copy p { margin: 0; font-size: 18px; }
.c8-copy .eyebrow { margin-bottom: 6px; }
@media (max-width: 760px) { .c8-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; } .c8-action, .c8-action .btn { width: 100%; max-width: 420px; } }

/* compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-col { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 24px 26px; }
.compare-col.fits { border-top: 5px solid var(--deep); }
.compare-col.other { border-top: 5px solid var(--accent); }
.compare-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.compare-head h3 { margin: 0; }
.compare ul { margin: 0; padding-left: 20px; }
.compare li { margin-bottom: 9px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* B10 season cards */
.seasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.season-card { background: #fff; border: 1px solid #EBCFB6; border-radius: var(--radius); padding: 24px 20px; }
.season-chip { display: inline-block; margin: 14px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--deep); color: #fff; padding: 3px 10px; border-radius: 999px; }
.season-card p { font-size: 16px; margin: 0; }
@media (max-width: 1000px) { .seasons { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .seasons { grid-template-columns: 1fr; } }

/* P5 */
.p5-grid { display: grid; grid-template-columns: 360px 1fr; gap: 36px; align-items: start; }
.inspect-card { background: var(--brand-dark); color: #fff; border-radius: var(--radius); padding: 28px 24px; position: sticky; top: 20px; }
.inspect-card > svg.icon .hex { fill: #fff; }
.inspect-card h3 { margin: 14px 0 12px; }
.covers { list-style: none; margin: 0; padding: 0; }
.covers li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.22); font-size: 16px; }
.covers svg.icon { width: 36px; height: 36px; }
.covers svg.icon .hex { fill: #fff; stroke: #fff; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.step-item { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 0 0 26px; position: relative; }
.step-item:not(:last-child)::before { content: ""; position: absolute; left: 25px; top: 52px; bottom: 0; width: 2px; background: var(--line); }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--deep); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 22px; }
.step-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.bg-alt .step-body { background: #fff; }
.step-body h3 { margin-bottom: 6px; }
.step-body p { margin: 0; }
.step-body.has-photo { display: grid; grid-template-columns: 1fr 240px; gap: 18px; align-items: center; }
.step-photo img { border-radius: 8px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
@media (max-width: 640px) { .step-body.has-photo { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .p5-grid { grid-template-columns: 1fr; } .inspect-card { position: static; } }
@media (max-width: 480px) { .step-item { grid-template-columns: 40px 1fr; gap: 12px; } .step-num { width: 40px; height: 40px; font-size: 18px; } .step-item:not(:last-child)::before { left: 19px; top: 40px; } }

/* M18 */
.m18-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 32px; align-items: start; }
.m18-map { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.map-bg { fill: #F7F6F1; }
.hatch-line { stroke: #E3E1D8; stroke-width: 2; }
.map-county { font-family: var(--font-head); font-size: 13px; letter-spacing: .2em; fill: var(--text-muted); font-weight: 700; }
.river { fill: none; stroke: #7FA7B5; stroke-width: 5; stroke-linecap: round; }
.river-label { fill: #3F6977; font-style: italic; }
.map-label { font-family: var(--font-body); font-size: 16px; }
.hwy { fill: none; stroke: #8E979E; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.hwy.minor { stroke-width: 4; stroke-dasharray: 10 6; }
.shield rect { fill: #fff; stroke: var(--text); stroke-width: 1.5; }
.shield text { font-family: var(--font-head); font-size: 13px; font-weight: 800; text-anchor: middle; fill: var(--text); }
.town text { font-family: var(--font-head); font-size: 17px; font-weight: 800; text-anchor: middle; }
.town.uninc text[text-anchor="start"] { text-anchor: start; }
.town.inc rect { fill: var(--brand-dark); stroke: #fff; stroke-width: 2; }
.town.inc text { fill: #fff; }
.town.inc.is-primary rect { fill: var(--accent); }
.town.inc.is-primary text { fill: var(--text); }
.town.uninc circle { fill: #fff; stroke: var(--brand-dark); stroke-width: 3; }
.town.uninc .pin-core { fill: var(--brand-dark); stroke: none; }
.town.uninc text { fill: var(--text); paint-order: stroke; stroke: #F7F6F1; stroke-width: 4px; }
.town.is-highlight rect { fill: var(--deep); }
.town.is-highlight circle { stroke: var(--deep); stroke-width: 5; }
.town.is-highlight text { fill: var(--deep); }
.town.inc.is-highlight text { fill: #fff; }
.compass path { fill: var(--text); } .compass text { font-family: var(--font-head); font-size: 13px; font-weight: 800; text-anchor: middle; fill: var(--text); }
.legend-bg { fill: #fff; stroke: var(--line); }
.legend text { font-family: var(--font-body); font-size: 15px; fill: var(--text); }
.legend .legend-note { font-style: italic; fill: var(--text-muted); }
.legend-inc { fill: var(--brand-dark); } .legend-uninc { fill: #fff; stroke: var(--brand-dark); stroke-width: 3; }
.m18-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; font-size: 16px; }
.m18-table th, .m18-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.m18-table thead th { background: var(--deep); color: #fff; font-family: var(--font-head); font-size: 15px; }
.m18-table tbody th { font-family: var(--font-head); white-space: nowrap; }
@media (max-width: 1000px) { .m18-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .m18-table thead { position: absolute; left: -9999px; }
  .m18-table, .m18-table tbody, .m18-table tr, .m18-table th, .m18-table td { display: block; width: 100%; }
  .m18-table tr { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; overflow: hidden; background: #fff; }
  .m18-table tbody th { background: var(--surface-alt); }
  .m18-table td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
}

/* F7 ledger */
.ledger { list-style: none; padding: 0; border-top: 2px solid var(--brand-dark); max-width: 1060px; margin: 0 auto; }
.ledger-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 2fr); gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.ledger-num { font-family: var(--font-head); font-weight: 800; color: var(--accent); font-size: 20px; line-height: 1.3; background: var(--text); color: #fff; border-radius: 6px; text-align: center; height: 34px; line-height: 34px; font-size: 16px; }
.ledger-row h3 { font-size: 19px; margin: 0; }
.ledger-answer p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .ledger-row { grid-template-columns: 40px 1fr; gap: 10px 14px; } .ledger-answer { grid-column: 1 / -1; } }

/* svc-cards */
.svc-cards { display: grid; gap: 22px; }
.svc-cards.n4 { grid-template-columns: repeat(4, 1fr); }
.svc-cards.n3 { grid-template-columns: repeat(3, 1fr); }
.svc-cards.n2 { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.svc-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.svc-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.svc-card-body p { font-size: 16px; }
.fitpair { margin: 0 0 14px; font-size: 15px; }
.fitpair div { padding: 8px 0; border-top: 1px solid var(--line); }
.fitpair dt { font-weight: 700; color: var(--ink); text-transform: uppercase; font-size: 12px; letter-spacing: .1em; }
.fitpair dd { margin: 2px 0 0; }
.svc-card .text-link { margin-top: auto; }
@media (max-width: 1100px) { .svc-cards.n4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .svc-cards.n3 { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
@media (max-width: 700px) { .svc-cards.n4, .svc-cards.n2 { grid-template-columns: 1fr; } }

/* data tables */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; font-size: 16px; }
.data-table th, .data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table thead th { background: var(--brand-dark); color: #fff; font-family: var(--font-head); }
.data-table tbody th { font-family: var(--font-head); font-weight: 700; }
.row-head { display: flex; align-items: center; gap: 10px; }
.row-head svg.icon { width: 38px; height: 38px; }
@media (max-width: 760px) {
  .data-table thead { position: absolute; left: -9999px; }
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; width: 100%; }
  .data-table tr { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; overflow: hidden; }
  .data-table tbody th { background: var(--surface-alt); }
  .data-table td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
}

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

/* info cards */
.info-cards { display: grid; gap: 20px; grid-template-columns: repeat(6, 1fr); }
.info-card { grid-column: span 2; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 22px; }
.info-cards.n5 .info-card:nth-child(4) { grid-column: 2 / span 2; }
.info-cards.n4 .info-card { grid-column: span 3; }
.info-card h3 { margin-top: 12px; }
.info-card p { font-size: 16px; margin: 0; }
@media (max-width: 900px) { .info-cards { grid-template-columns: 1fr; } .info-card, .info-cards.n5 .info-card:nth-child(4), .info-cards.n4 .info-card { grid-column: auto; } }

/* checklist */
.checklist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.checklist svg.icon { width: 40px; height: 40px; }
.checklist-photo img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .checklist-grid { grid-template-columns: 1fr; } }

/* links + inset */
.links-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; }
.m18-map.inset { max-width: 520px; }
.town-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.town-link { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; align-items: flex-start; }
.town-link a { font-family: var(--font-head); font-weight: 800; font-size: 19px; }
.town-link p { margin: 4px 0 0; font-size: 16px; }
@media (max-width: 900px) { .links-grid { grid-template-columns: 1fr; } }

/* closing */
.closing { text-align: center; }
.closing .sec-head { margin-bottom: 28px; }
.closing h2 { color: #fff; }

/* FAQ page */
.faq-band-inner { display: flex; gap: 24px; align-items: flex-start; max-width: 980px; }
.faq-band-inner svg.icon { width: 64px; height: 64px; }
.faq-band-inner h2 { text-align: left; }
.jump-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.jump-list a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 18px 12px; background: var(--surface-alt);
  border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--font-head); font-weight: 700; color: var(--text); text-decoration: none; height: 100%; }
.jump-list a:hover { border-color: var(--deep); color: var(--deep); }
.faq-cat { scroll-margin-top: 16px; padding-bottom: 20px; }
.faq-cat + .faq-cat { margin-top: 44px; padding-top: 44px; border-top: 2px solid var(--line); }
.faq-cat .sec-head h2 { display: flex; align-items: center; justify-content: center; }
.faq-list { max-width: 900px; margin: 0 auto; display: grid; gap: 18px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--deep); border-radius: var(--radius); padding: 22px 26px; }
.faq-item h3 { margin-bottom: 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { padding-left: 22px; margin: 0 0 1em; }
.faq-answer table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 16px; }
.faq-answer th, .faq-answer td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.faq-answer thead th { background: var(--brand-dark); color: #fff; }
.faq-answer .tbl-wrap { overflow-x: auto; }
.back-top { text-align: center; margin: 22px 0 0; font-size: 15px; }
@media (max-width: 900px) { .jump-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .faq-band-inner { flex-direction: column; }
  .faq-answer table, .faq-answer thead, .faq-answer tbody, .faq-answer tr, .faq-answer th, .faq-answer td { display: block; width: 100%; }
  .faq-answer thead { position: absolute; left: -9999px; }
  .faq-answer tr { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 10px; }
  .faq-answer td { border: 0; border-bottom: 1px solid var(--line); }
  .faq-answer td::before { content: attr(data-label); display: block; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
}

/* utility pages */
.util-head { padding: 44px 0 10px; }
.util-head h1 { font-size: clamp(30px, 4vw, 44px); }
.util-head .lede { font-size: 18px; color: var(--text-muted); max-width: 720px; }
.util-body { padding: 10px 0 70px; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: start; }
.contact-aside { background: var(--surface-alt); border-radius: var(--radius); padding: 26px; border-top: 5px solid var(--accent); }
.contact-aside .big-phone { font-family: var(--font-head); font-weight: 800; font-size: 26px; }
form .field { margin-bottom: 18px; }
form label { display: block; font-weight: 700; margin-bottom: 6px; }
form input, form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 2px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); min-height: 48px; }
form input:focus, form textarea:focus { border-color: var(--deep); outline: 3px solid rgba(24,61,53,.25); outline-offset: 1px; }
form .field-error { color: #9B2C10; font-size: 15px; margin: 6px 0 0; }
form [aria-invalid="true"] { border-color: #9B2C10; }
.form-submit { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; background: var(--deep); color: #fff; border: 2px solid var(--deep);
  border-radius: 8px; font-family: var(--font-head); font-weight: 700; font-size: 17px; cursor: pointer; }
.form-submit:hover { background: #0f2a24; }
.form-submit[disabled] { opacity: .7; cursor: progress; }
.form-status { font-weight: 600; min-height: 1.5em; }
.form-status.is-error { color: #9B2C10; }
.form-status.is-ok { color: var(--deep); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.legal { max-width: 860px; }
.legal h2 { font-size: 26px; margin-top: 1.6em; }
.legal ul { padding-left: 22px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* footer */
.site-footer { background: var(--footer); color: #E9ECEA; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 8px; }
.footer-logo img { height: 48px; width: auto; }
.site-footer p { font-size: 16px; }
.footer-h { font-family: var(--font-head); font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: 14px; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer a { color: #fff; display: inline-block; padding: 5px 0; }
.footer-phone a { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: 18px; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255,255,255,.2); margin-top: 36px; padding-top: 18px; }
.footer-legal ul { display: flex; gap: 22px; }
.footer-legal p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* mobile call bar */
.callbar { display: none; }
@media (max-width: 800px) {
  .callbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--deep); padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 14px rgba(0,0,0,.18); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; color: #fff; font-family: var(--font-head); font-weight: 800; text-decoration: none; font-size: 17px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  body.menu-open .callbar, body.cb-open .callbar, body.form-active .callbar { display: none; }
}

/* callback dialog */
.cb-backdrop { position: fixed; inset: 0; background: rgba(32,38,36,.5); z-index: 90; }
.callback { position: fixed; z-index: 100; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fff; border-radius: 12px; padding: 28px 26px 22px; border-top: 6px solid var(--accent); box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.callback[hidden], .cb-backdrop[hidden] { display: none; }
.callback h2 { font-size: 26px; text-align: left; }
.cb-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--text); }
.cb-direct { font-size: 16px; margin: 12px 0 0; }

@media (max-width: 600px) { .sec { padding: 52px 0; } .sec-head { margin-bottom: 28px; } .container { padding: 0 18px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.m18-photo { margin-top: 20px; }
.m18-photo img { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* calculator kit: restyled through its --calc-* variables (behavior and wording untouched) */
.roof-calc {
  --calc-font-head: var(--font-head); --calc-font-body: var(--font-body);
  --calc-text: #202624; --calc-muted: #56636D; --calc-surface: #FFFFFF; --calc-surface-alt: #F2F3F0;
  --calc-border: #868C92; --calc-accent: #183D35; --calc-accent-text: #FFFFFF; --calc-accent-hover: #0F2A24;
  --calc-track: #D6D9D3; --calc-focus: #183D35;
  --calc-success-bg: #E4F0EA; --calc-success-text: #183D35; --calc-pending-bg: #F2F3F0; --calc-pending-text: #2E3438;
  --calc-error-bg: #FBEBDD; --calc-error-text: #8A2E0C; --calc-radius: 10px;
}
.calc-wrap { max-width: 860px; }
.roof-calc .calc-card { border-top: 5px solid var(--accent); }
.form-note { font-size: 15px; color: var(--text-muted); }
.contact-aside svg.icon { width: 56px; height: 56px; }
.contact-aside h2 { font-size: 26px; margin-top: 10px; }
.faq-sources { max-width: 900px; margin: 40px auto 0; padding: 22px 26px; background: var(--surface-alt); border-radius: var(--radius); }
.faq-sources h3 { margin-bottom: 8px; }
.faq-sources ul { margin: 0; padding-left: 20px; }

/* mobile table captions and header fit */
@media (max-width: 760px) { .fit-matrix caption, .data-table caption, .m18-table caption { display: block; width: 100%; } }
@media (max-width: 800px) { .h21-photo.has-shortcuts { background: #fff; } }
.nav-list > li > a, .nav-actions .btn, .dd-toggle { white-space: nowrap; }
.site-header .container { max-width: 1400px; }
@media (min-width: 1240px) and (max-width: 1360px) { .nav-list > li > a { padding: 10px 6px; font-size: 15px; } .logo img { height: 52px; } .nav-actions .btn { padding: 8px 12px; font-size: 15px; } }
.sec.hero-h21 { padding: 0; }
@media (max-width: 760px) { .fit-matrix td::before { min-width: 48%; } .fit-matrix td .cell { flex: 1; } }
