/* Scottsdale Commercial Roofing Contractor — site styles
   Signature H17-S20-P9-B1-R4-F1-M20-C2-I6-E6 · Sora / Karla */
:root {
  --ink: #20262B;
  --ink-2: #2B333A;
  --brand: #164A79;
  --brand-deep: #0F3A61;
  --steel: #57636C;
  --accent: #D66A24;
  --cta: #A9521B;
  --cta-hover: #8F4516;
  --page: #FFFFFF;
  --alt: #F2F2F0;
  --tint: #EAF0F5;
  --tint-warm: #FBEEE5;
  --text: #20262B;
  --muted: #57636C;
  --border: #8A939A;
  --hair: #D5D9DC;
  --radius: 8px;
  --container: 1200px;
  --gutter: 20px;
  --head-font: "Sora", "Segoe UI", Arial, sans-serif;
  --body-font: "Karla", "Helvetica Neue", Arial, sans-serif;
  --header-h: 88px;
  --callbar-h: 0px;
}
*, *::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); color: var(--text); font-family: var(--body-font); font-size: 17.5px; line-height: 1.62; padding-bottom: var(--callbar-h); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.on-dark :focus-visible, header :focus-visible, footer :focus-visible, .band :focus-visible, .closing :focus-visible, .facts :focus-visible, .callbar :focus-visible { outline-color: #F2F2F0; }
h1, h2, h3, h4 { font-family: var(--head-font); line-height: 1.22; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(31px, 4.2vw, 50px); font-weight: 700; }
h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
h3 { font-size: clamp(19px, 1.7vw, 22px); font-weight: 600; }
h4 { font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .4em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: var(--ink); padding: 10px 16px; z-index: 1000; border-radius: 4px; }
.skip:focus { left: 12px; }
.visually-hidden { 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: 6px; font-family: var(--head-font); font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; line-height: 1.2; text-align: center; }
.btn-primary { background: var(--cta); color: #fff; border-color: var(--cta); }
.btn-primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); color: #fff; }
.btn-secondary { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-secondary:hover { background: var(--tint); color: var(--brand-deep); }
.on-dark .btn-primary, header .btn-primary { border-color: #F2F2F0; }
.on-dark .btn-secondary, header .btn-secondary { background: transparent; color: #fff; border-color: #F2F2F0; }
.on-dark .btn-secondary:hover, header .btn-secondary:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-pair { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn-single { display: flex; justify-content: center; margin-top: 32px; }
@media (max-width: 640px) { .btn-pair { flex-direction: column; align-items: stretch; } .btn-pair .btn { width: 100%; } }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: #F2F2F0; position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--accent); }
.site-header .bar { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.logo { display: block; flex-shrink: 0; }
.logo img { height: 64px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav > ul > li { position: relative; display: flex; align-items: center; }
.nav a.top, .nav .parent > a { color: #F2F2F0; text-decoration: none; font-weight: 600; font-size: 16px; padding: 10px 10px; border-radius: 4px; display: inline-block; }
.nav a.top:hover, .nav .parent > a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.08); }
.nav .chev { background: none; border: 0; color: #F2F2F0; width: 32px; height: 44px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; margin-left: -6px; border-radius: 4px; }
.nav .chev svg { width: 14px; height: 14px; transition: transform .15s; }
.nav .chev[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav .sub { position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border-radius: 6px; box-shadow: 0 12px 28px rgba(0,0,0,.22); padding: 8px; list-style: none; display: none; z-index: 60; border-top: 3px solid var(--accent); }
.nav .sub a { display: block; color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 4px; font-weight: 500; }
.nav .sub a:hover, .nav .sub a:focus-visible { background: var(--tint); color: var(--brand-deep); }
.nav .parent.open .sub { display: block; }
@media (hover: hover) and (min-width: 1100px) { .nav .parent:hover .sub { display: block; } }
.nav-cta { display: flex; gap: 10px; margin-left: 10px; }
.nav-cta .btn { min-height: 46px; padding: 10px 16px; font-size: 15px; }
.burger { display: none; margin-left: auto; margin-right: -8px; background: none; border: 0; color: #fff; width: 48px; height: 48px; cursor: pointer; align-items: center; justify-content: center; border-radius: 4px; }
.burger svg { width: 28px; height: 28px; }
.mobile-panel { display: none; }
@media (max-width: 1099px) {
  :root { --header-h: 72px; }
  .logo img { height: 52px; }
  .nav { display: none; }
  .burger { display: inline-flex; }
  .mobile-panel { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--ink); overflow-y: auto; padding: 8px var(--gutter) 32px; border-top: 1px solid rgba(255,255,255,.12); }
  .mobile-panel.open { display: block; }
  .mobile-panel ul { list-style: none; }
  .mobile-panel li { border-bottom: 1px solid rgba(255,255,255,.1); }
  .mobile-panel .row { display: flex; align-items: center; justify-content: space-between; }
  .mobile-panel a { color: #F2F2F0; text-decoration: none; display: block; padding: 14px 4px; font-weight: 600; font-size: 18px; flex: 1; }
  .mobile-panel .msub { display: none; padding: 0 0 10px 14px; }
  .mobile-panel .msub a { font-weight: 500; font-size: 16px; padding: 10px 4px; color: #DDE2E6; }
  .mobile-panel .open > .msub { display: block; }
  .mobile-panel .mchev { background: none; border: 0; color: #fff; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
  .mobile-panel .mchev svg { width: 16px; height: 16px; transition: transform .15s; }
  .mobile-panel .mchev[aria-expanded="true"] svg { transform: rotate(180deg); }
  .mobile-panel .m-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
  .mobile-panel .m-actions .btn { width: 100%; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Sections & headings (E6 flanked rule) ---------- */
.section { padding: 80px 0; }
.bg-page { background: var(--page); }
.bg-alt { background: var(--alt); }
.bg-tint { background: var(--tint); }
.bg-ink { background: var(--ink); color: #F2F2F0; }
.bg-brand { background: var(--brand); color: #fff; }
.bg-deep { background: var(--brand-deep); color: #fff; }
@media (max-width: 760px) { .section { padding: 52px 0; } }
.sec-head { text-align: center; max-width: 820px; margin: 0 auto 40px; }
.sec-head h2, .flank { display: flex; justify-content: center; align-items: flex-start; gap: 16px; }
.sec-head h2::before, .sec-head h2::after, .flank::before, .flank::after { content: ""; flex: 0 0 40px; height: 2px; background: var(--accent); margin-top: .62em; }
.sec-head h2 > span, .flank > span { flex: 0 1 auto; }
@media (max-width: 640px) { .sec-head h2::before, .sec-head h2::after, .flank::before, .flank::after { flex-basis: 20px; } .sec-head h2, .flank { gap: 10px; } }
.sec-head .intro { color: var(--muted); font-size: 18px; margin: 0 auto; max-width: 720px; }
.bg-ink .sec-head .intro, .bg-brand .sec-head .intro, .bg-deep .sec-head .intro { color: #DDE4EA; }

/* ---------- Icons (I6 hex line icons) ---------- */
svg.icon { width: 48px; height: 48px; flex-shrink: 0; }
svg.icon .hex { fill: var(--tint); stroke: var(--accent); stroke-width: 1.5; }
svg.icon .ln { fill: none; stroke: var(--brand); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
svg.icon.sm { width: 40px; height: 40px; }

/* ---------- H17 hanging plate hero ---------- */
.hero { position: relative; background: var(--ink); padding: 0; }
.hero-media { position: relative; width: 100%; aspect-ratio: 21 / 9; min-height: 520px; max-height: 640px; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.plate { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(760px, calc(100% - 40px)); background: #fff; border-radius: 0 0 var(--radius) var(--radius); border-bottom: 3px solid var(--accent); padding: 26px 40px 34px; text-align: center; box-shadow: 0 14px 30px rgba(15, 25, 35, .22); }
.plate h1 { margin: 10px 0 12px; }
.plate .lede { color: var(--muted); font-size: 18.5px; margin: 0 auto 22px; max-width: 600px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--tint); color: var(--brand-deep); border: 1px solid #C6D4E1; border-radius: 999px; padding: 4px 14px; font-size: 14px; font-weight: 700; letter-spacing: .03em; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border); }
.crumbs a { color: var(--muted); }
@media (max-width: 899px) {
  .hero { background: #fff; }
  .plate { position: static; transform: none; width: 100%; border-radius: 0; box-shadow: none; padding: 26px var(--gutter) 30px; }
  .hero { display: flex; flex-direction: column; } .hero .plate { order: -1; }
  .hero-media { aspect-ratio: 16 / 9; min-height: 0; }
}

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

/* ---------- Table ---------- */
.table-wrap { max-width: 1040px; margin: 0 auto; }
table.spec { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--hair); }
table.spec th, table.spec td { text-align: left; padding: 16px 18px; vertical-align: top; border-bottom: 1px solid var(--hair); }
table.spec thead th { background: var(--ink); color: #fff; font-family: var(--head-font); font-size: 15px; font-weight: 600; }
table.spec tbody th { font-family: var(--head-font); font-weight: 600; font-size: 16.5px; color: var(--brand-deep); width: 28%; }
table.spec tbody tr:last-child th, table.spec tbody tr:last-child td { border-bottom: 0; }
.table-photo { margin: 0 auto 28px; max-width: 1040px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 1; }
.table-photo img { width: 100%; height: 100%; object-fit: cover; }
@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 { border-bottom: 2px solid var(--hair); padding: 8px 0; }
  table.spec tbody th { width: 100%; border-bottom: 0; padding-bottom: 4px; }
  table.spec td { border-bottom: 0; padding-top: 4px; }
  table.spec td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  .table-photo { aspect-ratio: 2.4 / 1; }
}

/* ---------- R4 severity checklist ---------- */
.signs { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 22px; max-width: 1080px; margin: 0 auto; }
.signs li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; background: #fff; border: 1px solid var(--hair); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 16px 18px; align-items: start; }
.bg-page .signs li { background: var(--page); }
.signs .sign-body p { margin: 0; }
.signs .sign-body strong { font-family: var(--head-font); display: block; margin-bottom: 2px; }
.sev { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; border-radius: 999px; padding: 3px 12px; }
.sev-watch { background: var(--alt); color: var(--ink); border: 1px solid var(--border); }
.sev-repair { background: var(--tint-warm); color: #7A3912; border: 1px solid #E3A57C; }
.sev-call { background: var(--brand); color: #fff; border: 1px solid var(--brand); }
.signs li.s-call { border-left-color: var(--brand-deep); }
.signs li.s-repair { border-left-color: var(--accent); }
.signs li.s-watch { border-left-color: var(--steel); }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin: -18px 0 26px; font-size: 15px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend .sev { margin: 0; }
@media (max-width: 760px) { .signs { grid-template-columns: 1fr; } }

/* ---------- S20 banner rows ---------- */
.svc-rows { display: grid; gap: 34px; max-width: 1120px; margin: 0 auto; }
.svc-row { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--hair); }
.svc-row figure { margin: 0; position: relative; aspect-ratio: 4 / 1; }
.svc-row figure img { width: 100%; height: 100%; object-fit: cover; }
.svc-row .tab { position: absolute; left: 0; bottom: 0; background: var(--ink); color: #fff; padding: 12px 22px 10px; border-top-right-radius: var(--radius); border-top: 3px solid var(--accent); }
.svc-row .tab h3 { margin: 0; font-size: 21px; }
.svc-row .tab h3 a { color: #fff; text-decoration: none; }
.svc-row .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; padding: 24px 26px 26px; }
.svc-row .cols p { margin: 0; }
.svc-row ul { list-style: none; display: grid; gap: 8px; }
.svc-row li { position: relative; padding-left: 22px; }
.svc-row li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 2px; background: var(--brand); }
.svc-row .watch li::before { background: var(--accent); transform: rotate(45deg); }
.svc-row .more { display: inline-block; margin-top: 12px; font-weight: 700; }
@media (max-width: 900px) { .svc-row .cols { grid-template-columns: 1fr; gap: 16px; } .svc-row figure { aspect-ratio: 2.4 / 1; } }

/* ---------- compare ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1040px; margin: 0 auto; }
.compare .col { background: #fff; border-radius: var(--radius); border: 1px solid var(--hair); border-top: 4px solid var(--brand); padding: 24px 26px; }
.compare .col.caution { border-top-color: var(--accent); }
.compare .col-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.compare .col-head h3 { margin: 0; }
.compare ul { list-style: none; display: grid; gap: 10px; }
.compare li { padding-left: 26px; position: relative; }
.compare li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.compare .caution li::before { width: 10px; height: 10px; border: 0; background: var(--accent); border-radius: 50%; transform: none; top: .45em; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* ---------- B1 check cards ---------- */
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 1040px; margin: 0 auto; }
.checks .card { background: #fff; border-radius: var(--radius); border: 1px solid var(--hair); padding: 24px 26px; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.checks .card h3 { margin-bottom: 6px; }
.checks .card p { margin: 0; }
@media (max-width: 760px) { .checks { grid-template-columns: 1fr; } }

/* ---------- C2 split band ---------- */
.band { padding: 0; }
.band .split-band { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.band .band-photo { min-height: 320px; }
.band .band-photo img { width: 100%; height: 100%; object-fit: cover; }
.band .band-body { padding: 56px clamp(24px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; text-align: center; }
.band .band-body h2 { color: #fff; }
.band .band-body p { color: #E2E9F0; font-size: 18px; max-width: 520px; margin: 0 auto 24px; }
.band .flank::before, .band .flank::after { background: #F2B58A; }
@media (max-width: 760px) { .band .split-band { grid-template-columns: 1fr; } .band .band-photo { min-height: 0; aspect-ratio: 16 / 9; } .band .band-body { padding: 44px var(--gutter); } }

/* ---------- P9 tabbed stages ---------- */
.stages { max-width: 1120px; margin: 0 auto; }
.stage-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 22px; }
.stage-tabs [role=tab] { font-family: var(--head-font); font-weight: 600; font-size: 15px; border: 2px solid var(--brand); background: #fff; color: var(--brand); border-radius: 999px; padding: 10px 18px; min-height: 46px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.stage-tabs [role=tab] .n { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: var(--tint); color: var(--brand-deep); align-items: center; justify-content: center; font-size: 13px; }
.stage-tabs [role=tab][aria-selected="true"] { background: var(--brand); color: #fff; }
.stage-tabs [role=tab][aria-selected="true"] .n { background: #fff; color: var(--brand); }
.stage { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: #fff; border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.js .stage { margin-bottom: 0; }
.stage .stage-photo { min-height: 300px; }
.stage .stage-photo img { width: 100%; height: 100%; object-fit: cover; }
.stage .stage-body { padding: 32px 34px; display: flex; flex-direction: column; justify-content: center; }
.stage .num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--head-font); font-weight: 700; font-size: 19px; margin-bottom: 14px; }
.stage .stage-body p { margin: 0; }
.stage .stage-body ul { list-style: none; margin-top: 14px; display: grid; gap: 6px; font-size: 16px; color: var(--muted); }
.stage .stage-body ul li::before { content: "·"; color: var(--accent); font-weight: 700; margin-right: 8px; }
.stage-tabs-wrap { overflow-x: auto; }
@media (max-width: 760px) { .stage { grid-template-columns: 1fr; } .stage .stage-photo { min-height: 0; aspect-ratio: 16 / 10; } .stage .stage-body { padding: 24px 22px; } .stage-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; } .stage-tabs [role=tab] { flex: 0 0 auto; } }

/* ---------- M20 contour map ---------- */
.map-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; max-width: 1160px; margin: 0 auto; }
.map-figure { background: #fff; border: 1px solid var(--hair); border-radius: var(--radius); padding: 14px; }
.map-figure svg { width: 100%; height: auto; display: block; }
.map-figure .map-note { font-size: 13px; color: var(--muted); text-align: center; margin: 8px 0 0; }
.town-list { list-style: none; display: grid; gap: 14px; }
.town-list li { background: #fff; border: 1px solid var(--hair); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 14px 18px; }
.town-list li.primary { border-left-color: var(--accent); }
.town-list h3 { margin: 0 0 2px; font-size: 19px; }
.town-list .dir { display: block; font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: .02em; margin-bottom: 4px; }
.town-list p { margin: 0; }
@media (max-width: 900px) { .map-grid { grid-template-columns: 1fr; } }

/* ---------- F1 grouped accordion ---------- */
.faq-groups { max-width: 900px; margin: 0 auto; display: grid; gap: 34px; }
.faq-group h3.subhead { text-align: center; font-size: 17px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-bottom: 14px; }
.faq-group details { background: #fff; border: 1px solid var(--hair); border-radius: var(--radius); margin-bottom: 10px; }
.faq-group summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font-family: var(--head-font); font-weight: 600; font-size: 18px; position: relative; min-height: 48px; }
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq-group details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-group .ans { padding: 0 22px 18px; }
.faq-group .ans p:last-child { margin-bottom: 0; }

/* ---------- Service cards / link grid / cards ---------- */
.cards-grid { display: grid; gap: 22px; max-width: 1120px; margin: 0 auto; }
.cards-grid.c2 { grid-template-columns: repeat(2, 1fr); max-width: 900px; }
.cards-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid.c4 { grid-template-columns: repeat(4, 1fr); }
.cards-grid.c5 { grid-template-columns: repeat(6, 1fr); }
.cards-grid.c5 > * { grid-column: span 2; }
.cards-grid.c5 > *:nth-child(4) { grid-column: 2 / span 2; }
.card { background: #fff; border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card .card-img { aspect-ratio: 3 / 2; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.card .card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card .card-body p { margin: 0 0 12px; }
.card .card-body ul { list-style: none; display: grid; gap: 6px; margin-bottom: 12px; font-size: 16px; }
.card .card-body li { padding-left: 18px; position: relative; }
.card .card-body li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; background: var(--brand); border-radius: 2px; }
.card .card-body li.no::before { background: var(--accent); border-radius: 50%; }
.card .card-body .more { margin-top: auto; font-weight: 700; }
.card.icon-card .card-body { padding-top: 22px; }
.card.icon-card svg.icon { margin-bottom: 10px; }
@media (max-width: 1000px) { .cards-grid.c4 { grid-template-columns: repeat(2, 1fr); } .cards-grid.c3, .cards-grid.c5 { grid-template-columns: repeat(2, 1fr); } .cards-grid.c5 > *, .cards-grid.c5 > *:nth-child(4) { grid-column: auto; } .cards-grid.c5 > *:last-child { grid-column: 1 / -1; } .cards-grid.c3 > *:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 640px) { .cards-grid.c2, .cards-grid.c3, .cards-grid.c4, .cards-grid.c5 { grid-template-columns: 1fr; } }
.links-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; max-width: 1120px; margin: 0 auto; }
.links-wrap .inset { background: #fff; border: 1px solid var(--hair); border-radius: var(--radius); padding: 10px; }
.link-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.link-grid li { background: #fff; border: 1px solid var(--hair); border-radius: var(--radius); padding: 16px 18px; display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.link-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.link-grid h3 { font-size: 18px; margin: 0 0 4px; }
.link-grid p { margin: 0; font-size: 16.5px; }
@media (max-width: 900px) { .links-wrap { grid-template-columns: 1fr; } .links-wrap .inset { max-width: 360px; margin: 0 auto; } }
@media (max-width: 640px) { .link-grid { grid-template-columns: 1fr; } }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; max-width: 1120px; margin: 0 auto; }
.split .split-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.split .split-photo img { width: 100%; height: 100%; object-fit: cover; }
.split .split-body ul { list-style: none; display: grid; gap: 10px; margin-top: 6px; }
.split .split-body li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.split .split-body li p { margin: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- checklist (About) ---------- */
.checklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; max-width: 980px; margin: 0 auto; }
.checklist li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--hair); border-radius: var(--radius); padding: 14px 16px; }
.checklist li p { margin: 0; }
@media (max-width: 760px) { .checklist { grid-template-columns: 1fr; } }

/* ---------- closing ---------- */
.closing { text-align: center; }
.closing h2 { color: #fff; }
.closing p { color: #DDE4EA; max-width: 640px; margin: 0 auto 26px; font-size: 18px; }
.closing .flank::before, .closing .flank::after { background: #F2B58A; }

/* ---------- FAQ page ---------- */
.hero-text { padding: 56px 0 48px; text-align: center; background: var(--alt); border-bottom: 1px solid var(--hair); }
.hero-text .lede { color: var(--muted); font-size: 18.5px; max-width: 680px; margin: 0 auto 24px; }
.intro-band { padding: 44px 0; }
.intro-band .owner-intro { max-width: 860px; margin: 0 auto 22px; font-size: 18.5px; color: #F2F2F0; text-align: center; }
.jump { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 2px solid #F2F2F0; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 700; }
.jump a:hover { background: rgba(255,255,255,.12); }
.faq-cat { max-width: 920px; margin: 0 auto 56px; scroll-margin-top: 110px; }
.faq-cat:last-child { margin-bottom: 0; }
.qa { background: #fff; border: 1px solid var(--hair); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 16px; }
.qa h3 { margin-bottom: 10px; }
.qa ul, .qa ol { margin: 0 0 1em 1.2em; display: grid; gap: 6px; }
.qa ol { list-style: decimal; }
.qa ul { list-style: disc; }
.qa table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 16px; }
.qa th, .qa td { border: 1px solid var(--hair); padding: 9px 11px; text-align: left; vertical-align: top; }
.qa thead th { background: var(--tint); font-family: var(--head-font); font-size: 14.5px; }
.qa .ans > *:last-child { margin-bottom: 0; }
.sources { max-width: 920px; margin: 30px auto 0; font-size: 15.5px; }
.sources ul { list-style: disc; margin-left: 1.2em; display: grid; gap: 4px; }
@media (max-width: 640px) { .qa { padding: 18px 16px; } .qa table { font-size: 14.5px; } .qa th, .qa td { padding: 7px 8px; } }

/* ---------- Utility pages ---------- */
.utility { padding: 56px 0 72px; }
.utility h1 { text-align: center; }
.utility .lede { text-align: center; color: var(--muted); max-width: 680px; margin: 0 auto 30px; font-size: 18px; }
.form-card { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--hair); border-radius: var(--radius); padding: 30px; box-shadow: 0 8px 24px rgba(20,30,40,.06); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 6px; background: #fff; color: var(--text); min-height: 48px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.field .err { color: #A3261B; font-size: 15px; margin-top: 4px; display: block; }
.field [aria-invalid="true"] { border-color: #A3261B; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 6px; font-weight: 600; }
.form-status.ok { background: #E7F2EA; color: #1F5130; border: 1px solid #8FBF9D; }
.form-status.fail { background: #FBEDEA; color: #8A2318; border: 1px solid #E0A49B; }
.form-status.busy { background: var(--tint); color: var(--brand-deep); border: 1px solid #C6D4E1; }
.direct-call { text-align: center; margin-top: 18px; color: var(--muted); }
.legal-body { max-width: 820px; margin: 0 auto; }
.legal-body h2 { font-size: 24px; margin-top: 1.6em; }
.legal-body ul { list-style: disc; margin: 0 0 1em 1.3em; display: grid; gap: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #DDE2E6; padding: 56px 0 28px; border-top: 3px solid var(--accent); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 16px; color: #fff; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.site-footer a { color: #DDE2E6; text-decoration: none; display: inline-block; padding: 3px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .f-logo img { height: 64px; width: auto; margin-bottom: 12px; }
.site-footer .f-name { font-family: var(--head-font); font-weight: 700; color: #fff; margin-bottom: 6px; }
.site-footer .legal-row { border-top: 1px solid rgba(255,255,255,.14); margin-top: 36px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; font-size: 15px; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 1099px) {
  :root { --callbar-h: calc(64px + env(safe-area-inset-bottom)); }
  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--ink); border-top: 2px solid var(--accent); padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); gap: 10px; }
  .callbar .btn { flex: 1; min-height: 48px; }
  body.menu-open .callbar, body.dialog-open .callbar, body.typing .callbar { display: none; }
}

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

/* ---------- Calculator kit restyle (behavior and wording locked; look is per site) ---------- */
.roof-calc {
  --calc-font-head: var(--head-font);
  --calc-font-body: var(--body-font);
  --calc-text: #20262B;
  --calc-muted: #57636C;
  --calc-surface: #FFFFFF;
  --calc-surface-alt: #F2F2F0;
  --calc-border: #8A939A;
  --calc-accent: #164A79;
  --calc-accent-text: #FFFFFF;
  --calc-accent-hover: #0F3A61;
  --calc-track: #D5D9DC;
  --calc-focus: #164A79;
  --calc-radius: 8px;
}
.roof-calc .calc-card { border-top: 4px solid var(--accent); box-shadow: 0 10px 28px rgba(20, 30, 40, .07); }
.roof-calc .calc-btn-primary { background: var(--cta); border-color: var(--cta); color: #fff; }
.roof-calc .calc-btn-primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.form-note { font-size: 15px; color: var(--muted); margin: 14px 0 0; }
.ans-note { border-left: 3px solid var(--accent); background: var(--alt); padding: 12px 16px; border-radius: 0 6px 6px 0; margin-top: 4px; } .ans-note p:last-child { margin: 0; }
[hidden] { display: none !important; }
body.no-callbar { --callbar-h: 0px !important; padding-bottom: 0 !important; } body.no-callbar .callbar { display: none !important; }
