/* Frankfort Metal Roof Coating: site styles. Signature H46-S19-P4-B1-R3-F5-M43-C5-I8-E1 · K5 · T1 */
:root {
  --brand: #1F4E9A;          /* cobalt (supplied primary) */
  --brand-deep: #183F7E;     /* shade for hover on cobalt links */
  --ink: #0F2342;            /* supplied dark neutral */
  --secondary: #6C86A8;      /* borders, rules, gauge lines only */
  --cta: #F26B1D;            /* supplied accent: buttons */
  --cta-hover: #F4834A;
  --cta-text: #0F2342;
  --page: #FFFFFF;
  --alt: #F1F4F8;            /* supplied light neutral */
  --tint: #E7EEF8;           /* tint of the cobalt */
  --orange-tint: #FDEFE6;
  --text: #0F2342;
  --muted: #4A5A72;
  --on-dark-muted: #B8C7DC;
  --border: #C9D3E1;
  --focus-light: #0F2342;
  --focus-dark: #F4A06A;
  --head: "Familjen Grotesk", "Arial Narrow", "Helvetica Neue", Arial, system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1180px;
  --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17.5px; line-height: 1.6; color: var(--text); background: var(--page); }
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(--focus-light); outline-offset: 3px; }
.on-dark :focus-visible, .band :focus-visible, .closing :focus-visible, footer :focus-visible { outline-color: var(--focus-dark); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.35rem); font-weight: 700; }
h3 { font-size: clamp(1.18rem, 1.08rem + .4vw, 1.42rem); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip:focus { left: 12px; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

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

/* Icons (I8: underline line icons) */
svg.icon { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.icon .bar { fill: var(--cta); stroke: none; }
.on-dark svg.icon, .band svg.icon { stroke: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--border); }
.no-sticky .site-header { position: relative; }
.head-row { display: flex; align-items: center; gap: 18px; min-height: 84px; }
.brand-link { display: inline-flex; align-items: center; flex: none; }
.brand-link img { height: 60px; width: auto; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; display: flex; align-items: center; }
.main-nav a.nav-link { display: inline-block; padding: 10px 10px; color: var(--ink); font-weight: 700; text-decoration: none; font-size: .98rem; }
.main-nav a.nav-link:hover, .main-nav a.nav-link[aria-current] { color: var(--brand); text-decoration: underline; text-decoration-color: var(--cta); text-decoration-thickness: 3px; }
.dd-toggle { background: none; border: 0; padding: 8px 4px; margin-left: -6px; cursor: pointer; color: var(--ink); min-width: 28px; min-height: 36px; }
.dd-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform .15s; }
.dd-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--cta); border-radius: 0 0 8px 8px; box-shadow: 0 12px 28px rgba(15,35,66,.14); list-style: none; padding: 8px 0; margin: 0; display: none; }
.dropdown.open { display: block; }
@media (hover: hover) and (min-width: 1181px) { .has-dd:hover > .dropdown { display: block; } }
.dropdown a { display: block; padding: 9px 18px; color: var(--ink); text-decoration: none; font-weight: 600; }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--tint); color: var(--brand); }
.nav-ctas { display: flex; gap: 10px; margin-left: 10px; }
.nav-ctas .btn { min-height: 46px; padding: 10px 16px; font-size: .95rem; }
.burger { display: none; margin-left: auto; margin-right: -6px; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; color: var(--ink); align-items: center; justify-content: center; }
.burger svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.mobile-panel { display: none; }
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .burger { display: inline-flex; }
  .brand-link img { height: 50px; }
  .head-row { min-height: 72px; }
  .mobile-panel.open { display: block; position: fixed; inset: 72px 0 0 0; background: #fff; overflow-y: auto; z-index: 60; border-top: 1px solid var(--border); padding: 12px 0 40px; }
  .mobile-panel ul { list-style: none; margin: 0; padding: 0; }
  .mobile-panel .m-row { display: flex; align-items: center; border-bottom: 1px solid var(--alt); }
  .mobile-panel .m-row a { flex: 1; padding: 14px 4px; color: var(--ink); font-weight: 700; text-decoration: none; font-size: 1.08rem; }
  .mobile-panel .m-row button { width: 48px; height: 48px; border: 0; background: none; color: var(--ink); }
  .mobile-panel .m-row button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; }
  .mobile-panel .m-sub { padding: 0 0 8px 14px; }
  .mobile-panel .m-sub a { display: block; padding: 10px 4px; color: var(--brand); text-decoration: none; font-weight: 600; }
  .mobile-panel .m-ctas { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
  .mobile-panel .m-ctas .btn { width: 100%; }
  body.menu-open { overflow: hidden; }
  body.menu-open .call-bar { display: none; }
}
@media (max-width: 380px) { .brand-link img { height: 44px; } }

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

/* Sections */
.sec { padding: clamp(48px, 6vw, 84px) 0; }
.bg-w { background: var(--page); }
.bg-a { background: var(--alt); }
.bg-t { background: var(--tint); }
.bg-b { background: var(--brand); color: #fff; }
.bg-d { background: var(--ink); color: #fff; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto clamp(26px, 3.5vw, 42px); }
.sec-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.eyebrow { display: block; font: 700 .8rem/1.2 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.bg-b .eyebrow, .bg-d .eyebrow { color: #FFD0B3; }
.bg-b h2, .bg-d h2, .bg-b h3, .bg-d h3 { color: #fff; }
.bg-b .sec-head p, .bg-d .sec-head p { color: var(--on-dark-muted); }

/* H46 Split Bleed hero */
.hero46 { position: relative; background: var(--alt); overflow: hidden; }
.hero46 .h-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 520px; }
.hero46 .h-text { padding: 54px 104px 64px 0; padding-left: max(16px, calc((100vw - var(--wrap)) / 2)); display: flex; flex-direction: column; justify-content: center; }
.hero46 .h-label { display: inline-block; align-self: flex-start; font: 700 .86rem/1.2 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); padding-bottom: 6px; border-bottom: 3px solid var(--cta); margin-bottom: 18px; }
.hero46 h1 { text-align: left; margin-bottom: 14px; }
.hero46 .h-intro { font-size: 1.12rem; color: #253650; max-width: 34em; margin-bottom: 26px; }
.hero46 .btn-pair { justify-content: flex-start; }
.hero46 .h-photo { position: relative; min-height: 100%; }
.hero46 .h-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero46 .h-grid { position: relative; }
.seal { position: absolute; z-index: 3; width: 160px; height: 160px; left: calc(50% - 80px); bottom: 56px; }
.seal svg { width: 100%; height: 100%; display: block; }
.seal-m { display: none; }
@media (max-width: 900px) {
  .hero46 .h-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero46 .h-text { padding: 34px 16px 70px; }
  .hero46 .h-photo { aspect-ratio: 4 / 3; min-height: 0; }
  .seal.desk { display: none; }
  .seal-m { display: block; position: absolute; top: -52px; right: 16px; width: 104px; height: 104px; left: auto; bottom: auto; }
}

/* Fact strip */
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.facts li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-family: var(--head); font-size: 1.04rem; line-height: 1.3; }
.facts.sec { padding: 30px 0; border-bottom: 1px solid var(--border); }
@media (max-width: 900px) { .facts ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .facts ul { grid-template-columns: 1fr; } }

/* S19 Slope scale */
.gauge { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px 18px; margin-bottom: 34px; }
.gauge-head, .gauge-row { display: grid; grid-template-columns: 190px repeat(3, 1fr); gap: 0; align-items: center; }
.gauge-head { border-bottom: 2px solid var(--secondary); padding-bottom: 10px; margin-bottom: 8px; }
.gauge-head span { text-align: center; font: 700 .95rem var(--head); color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gauge-head .pitch { width: 54px; height: 22px; fill: none; stroke: var(--secondary); stroke-width: 2.5; stroke-linecap: round; }
.gauge-row { min-height: 44px; border-bottom: 1px dashed var(--border); }
.gauge-row:last-child { border-bottom: 0; }
.gauge-row .g-name { font-weight: 700; font-size: .98rem; padding-right: 10px; }
.gauge-row .g-bar { height: 28px; border-radius: 99px; background: var(--brand); color: #fff; font-size: .86rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 6px; padding: 0 12px; white-space: nowrap; overflow: hidden; }
.gauge-row .g-bar.c1 { grid-column: 2 / 3; } .gauge-row .g-bar.c12 { grid-column: 2 / 4; } .gauge-row .g-bar.c23 { grid-column: 3 / 5; } .gauge-row .g-bar.c3 { grid-column: 4 / 5; } .gauge-row .g-bar.c123 { grid-column: 2 / 5; }
.gauge-note { font-size: .9rem; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 700px) {
  .gauge { padding: 16px 12px; }
  .gauge-head, .gauge-row { grid-template-columns: repeat(3, 1fr); }
  .gauge-head .g-sp { display: none; }
  .gauge-row .g-name { grid-column: 1 / -1; padding-top: 8px; }
  .gauge-row .g-bar.c1 { grid-column: 1 / 2; } .gauge-row .g-bar.c12 { grid-column: 1 / 3; } .gauge-row .g-bar.c23 { grid-column: 2 / 4; } .gauge-row .g-bar.c3 { grid-column: 3 / 4; } .gauge-row .g-bar.c123 { grid-column: 1 / 4; }
  .gauge-row { padding-bottom: 8px; }
  .gauge-row .g-bar { font-size: .78rem; padding: 4px 8px; height: auto; min-height: 28px; white-space: normal; text-align: center; line-height: 1.2; border-radius: 14px; }
}
.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.svc-grid > * { grid-column: span 2; }
.svc-grid.five > :nth-child(4) { grid-column: 2 / span 2; }
.svc-grid.five > :nth-child(5) { grid-column: 4 / span 2; }
.svc-grid.four > * { grid-column: span 3; }
.svc-grid.two > * { grid-column: span 3; }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: 1fr 1fr; } .svc-grid > *, .svc-grid.five > :nth-child(4), .svc-grid.five > :nth-child(5), .svc-grid.four > *, .svc-grid.two > * { grid-column: auto; } .svc-grid.five > :nth-child(5) { grid-column: 1 / -1; } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } .svc-grid.five > :nth-child(5) { grid-column: auto; } }
.svc-card { background: #fff; border: 1px solid var(--border); 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 .c-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.svc-card h3 { margin-bottom: 8px; }
.chip { display: inline-block; align-self: flex-start; font: 700 .78rem/1.2 var(--head); letter-spacing: .06em; text-transform: uppercase; background: var(--orange-tint); color: #8A3A0B; border: 1px solid #F3B48C; padding: 5px 10px; border-radius: 99px; margin-bottom: 10px; }
.svc-card ul { padding-left: 1.1em; margin-bottom: 14px; }
.svc-card li { margin-bottom: 4px; }
.svc-card .c-link { margin-top: auto; font-weight: 700; }

/* P4 numbered list beside sticky photos */
.p4 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.p4 ol { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.p4 li.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 0 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.p4 li.step:first-child { padding-top: 0; }
.p4 .num { width: 48px; height: 48px; border-radius: 8px; background: var(--brand); color: #fff; font: 700 1.3rem/48px var(--head); text-align: center; grid-row: span 3; }
.p4 .tag { font: 700 .76rem/1 var(--mono); letter-spacing: .08em; color: #8A3A0B; background: var(--orange-tint); border: 1px solid #F3B48C; padding: 5px 8px; border-radius: 4px; justify-self: start; margin-bottom: 8px; }
.p4 h3 { margin-bottom: 6px; }
.p4 li p { margin: 0; }
.p4 .p-photos { position: sticky; top: 108px; display: grid; gap: 16px; }
.p4 .p-photos img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 900px) { .p4 { grid-template-columns: 1fr; } .p4 .p-photos { position: static; grid-template-columns: 1fr 1fr; order: -1; } .p4 .p-photos img { aspect-ratio: 3 / 2; } }

/* B1 check cards */
.b1 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.b1 .chk { background: #fff; border: 1px solid var(--border); border-left: 5px solid var(--brand); border-radius: var(--radius); padding: 22px 24px; display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.b1 .badge { width: 44px; height: 44px; border-radius: 50%; background: var(--tint); display: flex; align-items: center; justify-content: center; }
.b1 .badge svg.icon { width: 26px; height: 26px; }
.b1 h3 { margin-bottom: 6px; }
.b1 p { margin: 0; }
@media (max-width: 760px) { .b1 { grid-template-columns: 1fr; } }

/* C5 two-choice band */
.band { background: var(--brand); color: #fff; }
.band .sec-head { margin-bottom: 26px; }
.band h2, .band h3 { color: #fff; }
.band .sec-head p { color: #DCE6F3; }
.band .eyebrow { color: #FFD0B3; }
.c5 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 0 auto; }
.c5 .choice { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.c5 .choice.urgent { background: var(--ink); border-color: var(--ink); }
.c5 .choice h3 { margin: 0; }
.c5 .choice p { margin: 0 0 6px; color: #E4EBF5; }
.c5 .choice .btn { margin-top: auto; }
@media (max-width: 760px) { .c5 { grid-template-columns: 1fr; } .c5 .choice .btn { width: 100%; } }

/* R3 annotated roof diagram */
.r3 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.r3 .plan { position: sticky; top: 108px; }
.r3 .plan { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.r3 .plan svg { width: 100%; height: auto; display: block; }
.r3 .plan .cap { font-size: .86rem; color: var(--muted); margin: 8px 4px 0; }
.r3 ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.r3 li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.r3 .n { width: 32px; height: 32px; border-radius: 50%; background: var(--cta); color: var(--ink); font: 700 1rem/32px var(--head); text-align: center; }
.r3 h3 { font-size: 1.1rem; margin-bottom: 4px; }
.r3 li p { margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .r3 { grid-template-columns: 1fr; } .r3 .plan { position: static; } }

/* K5 fit matrix */
.k5-legend { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-bottom: 16px; font-size: .94rem; }
.k5-legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--brand); vertical-align: middle; }
.dot.full { background: var(--brand); }
.dot.half { background: linear-gradient(90deg, var(--brand) 50%, #fff 50%); }
.dot.none { background: #fff; border-color: var(--secondary); }
.k5 { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.k5 th, .k5 td { padding: 13px 14px; border-bottom: 1px solid var(--border); text-align: center; }
.k5 thead th { background: var(--ink); color: #fff; font: 700 .95rem var(--head); }
.k5 tbody th { text-align: left; font-weight: 400; width: 44%; }
.k5 tbody tr:last-child th, .k5 tbody tr:last-child td { border-bottom: 0; }
.k5 .cell-l { display: none; }
.k5-note { text-align: center; font-size: .92rem; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 760px) {
  .k5, .k5 tbody, .k5 tr, .k5 th, .k5 td { display: block; width: 100%; }
  .k5 { border: 0; background: none; }
  .k5 thead { display: none; }
  .k5 tr { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; padding: 6px 0; }
  .k5 tbody th { font-weight: 700; border-bottom: 1px solid var(--border); width: 100%; }
  .k5 td { display: flex; justify-content: space-between; align-items: center; text-align: left; border-bottom: 0; padding: 8px 14px; }
  .k5 .cell-l { display: inline; }
}

/* M43 town accordion */
.m43 { max-width: 780px; margin: 0 auto; }
.m43 details { background: #fff; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; }
.m43 summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; font: 700 1.15rem var(--head); color: var(--ink); }
.m43 summary::-webkit-details-marker { display: none; }
.m43 summary .chev { margin-left: auto; width: 18px; height: 18px; fill: none; stroke: var(--brand); stroke-width: 2.4; transition: transform .15s; }
.m43 details[open] summary .chev { transform: rotate(180deg); }
.m43 details[open] summary { border-bottom: 1px solid var(--alt); }
.m43 .panel { padding: 14px 18px 18px; }
.m43 .panel p { margin-bottom: 10px; }
.m43 .panel a.t-link { font-weight: 700; }
.m43 .home-base { font: 700 .72rem var(--head); letter-spacing: .08em; text-transform: uppercase; background: var(--tint); color: var(--brand); padding: 4px 8px; border-radius: 4px; }

/* F5 featured question + accordion */
.f5 { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 30px; align-items: start; }
.f5 .featured { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 30px; border-top: 5px solid var(--cta); }
.f5 .featured .q-label { display: inline-flex; align-items: center; gap: 8px; font: 700 .8rem var(--head); letter-spacing: .12em; text-transform: uppercase; color: #FFD0B3; margin-bottom: 12px; }
.f5 .featured h3 { color: #fff; font-size: 1.45rem; }
.f5 .featured p { color: #E4EBF5; }
.f5 .featured p:last-child { margin-bottom: 0; }
.f5 .acc details { background: #fff; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; }
.f5 .acc summary { list-style: none; display: flex; gap: 12px; align-items: center; padding: 15px 18px; cursor: pointer; font: 700 1.06rem/1.3 var(--head); color: var(--ink); }
.f5 .acc summary::-webkit-details-marker { display: none; }
.f5 .acc summary .chev { margin-left: auto; flex: none; width: 18px; height: 18px; fill: none; stroke: var(--brand); stroke-width: 2.4; transition: transform .15s; }
.f5 .acc details[open] summary .chev { transform: rotate(180deg); }
.f5 .acc .ans { padding: 0 18px 16px; }
.f5 .acc .ans p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .f5 { grid-template-columns: 1fr; } }

/* Cards (options, local factors) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards.two, .cards.four { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card .c-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card .c-ico { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.card .c-ico h3 { margin: 0; }
.card p:last-child { margin-bottom: 0; }
.card .c-link { margin-top: auto; font-weight: 700; padding-top: 6px; }
@media (max-width: 1000px) { .cards { grid-template-columns: 1fr 1fr; } .cards.three-last > :last-child:nth-child(3) { grid-column: 1 / -1; } }
@media (max-width: 640px) { .cards, .cards.two, .cards.four { grid-template-columns: 1fr; } .cards.three-last > :last-child:nth-child(3) { grid-column: auto; } }

/* Split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.split .sp-head { grid-column: 1 / -1; text-align: center; max-width: 760px; margin: 0 auto 4px; }
.split .sp-head p { color: var(--muted); margin: 0; }
.split img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split ul.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.split ul.ticks li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.split ul.ticks svg.icon { width: 24px; height: 24px; margin-top: 2px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 24px; } }

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

/* FAQ page */
.faq-intro { max-width: 860px; margin: 0 auto; text-align: center; }
.faq-intro p { font-size: 1.08rem; }
.jump { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.jump a { display: inline-block; padding: 8px 14px; border: 1px solid var(--brand); border-radius: 99px; background: #fff; text-decoration: none; font-weight: 700; font-size: .92rem; }
.jump a:hover { background: var(--brand); color: #fff; }
.faq-cat { max-width: 900px; margin: 0 auto 44px; }
.faq-cat:last-child { margin-bottom: 0; }
.faq-cat .cat-h { display: flex; align-items: center; gap: 12px; border-bottom: 3px solid var(--brand); padding-bottom: 10px; margin-bottom: 18px; scroll-margin-top: 110px; }
.faq-cat .cat-h h2 { margin: 0; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); }
.qa-list > h3 { background: #fff; border: 1px solid var(--border); border-bottom: 0; border-left: 5px solid var(--cta); border-radius: 8px 8px 0 0; padding: 16px 20px 6px; margin: 0; font-size: 1.2rem; }
.qa-list > .ans { background: #fff; border: 1px solid var(--border); border-top: 0; border-left: 5px solid var(--cta); border-radius: 0 0 8px 8px; padding: 4px 20px 16px; margin-bottom: 14px; }
.qa-list .ans p:last-child, .qa-list .ans ul:last-child { margin-bottom: 0; }
.qa-list .ans-note { border-left: 3px solid var(--secondary); padding: 2px 0 2px 14px; margin: 0 0 1em; }
.qa-list .ans-note p { margin: 0; color: #253650; }
.sources { font-size: .92rem; }
.sources li { margin-bottom: 6px; }

/* Closing */
.closing { background: var(--ink); color: #fff; text-align: center; }
.closing h2 { color: #fff; }
.closing p { color: var(--on-dark-muted); max-width: 640px; margin: 0 auto 24px; font-size: 1.06rem; }

/* Utility pages */
.u-head { background: var(--alt); padding: 40px 0 34px; border-bottom: 1px solid var(--border); }
.u-head h1 { margin-bottom: 8px; }
.u-head p { margin: 0; color: var(--muted); max-width: 46em; }
.legal { max-width: 820px; }
.legal h2 { font-size: 1.45rem; margin-top: 1.6em; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.f-field { display: grid; gap: 6px; margin-bottom: 16px; }
.f-field label { font-weight: 700; }
.f-field label .opt { font-weight: 400; color: var(--muted); }
.f-field input, .f-field textarea { font: inherit; font-size: 1rem; color: var(--text); background: #fff; border: 2px solid #8A9AB3; border-radius: 8px; padding: 12px 14px; min-height: 48px; width: 100%; }
.f-field input[aria-invalid=true], .f-field textarea[aria-invalid=true] { border-color: #A3261B; }
.f-err { color: #A3261B; font-size: .92rem; font-weight: 700; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 8px; font-weight: 700; }
.form-status.ok { background: #E6F2EA; color: #1D5B33; border-left: 5px solid #1D5B33; }
.form-status.bad { background: #FBECEB; color: #8E1A11; border-left: 5px solid #8E1A11; }
.form-status.busy { background: var(--alt); color: var(--ink); border-left: 5px solid var(--ink); }
.aside-card { background: var(--alt); border-radius: var(--radius); padding: 24px; }
.aside-card ul { list-style: none; padding: 0; margin: 0 0 14px; }
.aside-card li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.aside-card svg.icon { width: 24px; height: 24px; }
.aside-card img { border-radius: 8px; margin-top: 14px; aspect-ratio: 3 / 2; object-fit: cover; }

/* Calculator restyle */
.roof-calc {
  --calc-font-head: var(--head); --calc-font-body: var(--body);
  --calc-text: #0F2342; --calc-muted: #4A5A72; --calc-surface: #fff; --calc-surface-alt: #E7EEF8;
  --calc-border: #8A9AB3; --calc-accent: #1F4E9A; --calc-accent-text: #fff; --calc-accent-hover: #183F7E;
  --calc-track: #D5DEEB; --calc-focus: #0F2342; --calc-radius: 10px;
}
.roof-calc .calc-card { border-top: 5px solid var(--cta); box-shadow: 0 8px 24px rgba(15,35,66,.08); }
.roof-calc .calc-btn-primary[type=submit] { background: var(--cta); border-color: var(--cta); color: var(--ink); }
.roof-calc .calc-btn-primary[type=submit]:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.roof-calc .step-index { font-family: var(--mono); color: #8A3A0B; }
.calc-page { padding: 36px 0 64px; background: var(--alt); }

/* Footer */
.site-footer { background: #0A1830; color: #D4DEEB; padding: 52px 0 28px; }
.site-footer a { color: #fff; }
.f-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; }
.f-grid h2 { font-size: 1.05rem; color: #fff; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.f-grid ul { list-style: none; margin: 0; padding: 0; }
.f-grid li { margin-bottom: 8px; }
.f-logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.f-logo img { height: 52px; width: auto; }
.f-legal { border-top: 1px solid rgba(255,255,255,.18); margin-top: 34px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; font-size: .92rem; }
@media (max-width: 900px) { .f-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .f-grid { grid-template-columns: 1fr; } }

/* Mobile call bar */
.call-bar { display: none; }
@media (max-width: 760px) {
  .call-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ink); box-shadow: 0 -4px 16px rgba(0,0,0,.18); }
  .call-bar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border-radius: 8px; background: var(--cta); color: var(--ink); font: 700 1.04rem var(--head); text-decoration: none; }
  .call-bar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .no-callbar .call-bar { display: none; }
  .no-callbar .site-footer { padding-bottom: 28px; }
}

/* Callback dialog */
.cb-wrap[hidden] { display: none; }
.cb-wrap { position: fixed; inset: 0; z-index: 90; background: rgba(15,35,66,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cb-box { background: #fff; border-radius: 12px; max-width: 440px; width: 100%; padding: 26px; border-top: 5px solid var(--cta); position: relative; }
.cb-box h2 { font-size: 1.5rem; margin-bottom: 6px; }
.cb-box .cb-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 1.6rem; color: var(--ink); }
.cb-box .cb-call { display: block; margin-top: 12px; text-align: center; font-weight: 700; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
