/* Louisville Metal Roof Coating · site styles
   Signature H47-S34-P4-B1-R8-F11-M16-C2-I4-E6 · K5 · T1
   Palette (supplied): asphalt #1E2226 · secondary #6E7780 · signal blue #1F6FD6 · neutrals #F3F4F4 / #121517 */

@font-face { font-family: "Barlow Semi Condensed"; src: url("/assets/fonts/barlow-semi-condensed-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("/assets/fonts/barlow-semi-condensed-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("/assets/fonts/libre-franklin-var.woff") format("woff"); font-weight: 300 800; font-style: normal; font-display: swap; }

:root {
  --brand-dark: #1E2226;
  --ink: #121517;
  --secondary: #6E7780;
  --accent: #1F6FD6;
  --accent-ink: #1A5FBA;
  --accent-on-dark: #6FA8F0;
  --page-bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-alt: #F3F4F4;
  --surface-tint: #EAF1FB;
  --text: #121517;
  --text-muted: #545C64;
  --border: #CDD2D7;
  --border-strong: #6E7780;
  --cta-bg: #1F6FD6;
  --cta-text: #FFFFFF;
  --cta-hover: #1A5FBA;
  --focus-on-light: #1A5FBA;
  --focus-on-dark: #6FA8F0;
  --dark-raise: #2A2F34;
  --head: "Barlow Semi Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --body: "Libre Franklin", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --container: 1200px;
  --gutter: 20px;
  --radius: 12px;
  --shadow: 0 10px 28px rgba(18, 21, 23, .10);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page-bg); color: var(--text); font-family: var(--body); font-size: 17.5px; line-height: 1.62; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: #144A92; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; margin: 0 0 .5em; color: inherit; letter-spacing: .005em; }
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.35rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.45rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 1.1rem + .45vw, 1.45rem); font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus-on-light); outline-offset: 3px; }
.dark :focus-visible, .site-footer :focus-visible { outline-color: var(--focus-on-dark); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--brand-dark); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 6px; }
.skip-link:focus { left: 12px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Surfaces */
.bg-page { background: var(--page-bg); }
.bg-alt { background: var(--surface-alt); }
.bg-tint { background: var(--surface-tint); }
.dark { background: var(--brand-dark); color: #fff; }
.dark a:not(.btn) { color: #fff; }
.section { padding: clamp(48px, 6vw, 84px) 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border-radius: 8px; font-family: var(--head); font-weight: 700; font-size: 1.12rem; letter-spacing: .02em; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease; line-height: 1.1; text-align: center; }
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--cta-bg); color: var(--cta-text); border-color: var(--cta-bg); }
.btn-primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); color: #fff; }
.btn-call { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-call:hover { background: var(--ink); color: #fff; }
.dark .btn-primary { border-color: #fff; }
.dark .btn-call { border-color: #fff; }
.dark .btn-call:hover { background: transparent; color: #fff; }
.btn-pair { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 8px; }
.btn-single { display: flex; justify-content: center; margin-top: 28px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 60px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; display: flex; align-items: center; }
.main-nav a.nav-link { display: block; padding: 10px 10px; font-weight: 600; font-size: .98rem; color: var(--ink); text-decoration: none; border-radius: 6px; }
.main-nav a.nav-link:hover, .main-nav a.nav-link[aria-current="page"] { color: var(--accent-ink); }
.dd-toggle { background: none; border: 0; padding: 8px 6px 8px 0; margin-left: -6px; cursor: pointer; color: var(--ink); min-height: 40px; border-radius: 6px; }
.dd-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform .15s ease; }
.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(--accent); border-radius: 0 0 10px 10px; box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0; display: none; }
.has-dd:hover .dropdown, .has-dd:focus-within .dropdown, .dropdown.open { display: block; }
.dropdown a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; border-radius: 6px; font-size: .96rem; }
.dropdown a:hover { background: var(--surface-tint); color: var(--accent-ink); }
.nav-actions { display: flex; gap: 10px; margin-left: 10px; }
.nav-actions .btn { min-height: 46px; padding: 10px 16px; font-size: 1.02rem; }
.burger { display: none; width: 48px; height: 48px; border-radius: 8px; border: 2px solid var(--ink); background: #fff; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; margin-right: -4px; }
.burger svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.mobile-panel { display: none; }

@media (max-width: 1239px) {
  .main-nav, .nav-actions-desktop { display: none; }
  .burger { display: inline-flex; }
  .brand img { height: 50px; }
  :root { --header-h: 72px; }
  .mobile-panel { position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; background: #fff; overflow-y: auto; padding: 12px var(--gutter) 32px; border-top: 1px solid var(--border); }
  .mobile-panel.open { display: block; }
  .mobile-panel ul { list-style: none; margin: 0; padding: 0; }
  .mobile-panel > ul > li { border-bottom: 1px solid var(--border); }
  .m-row { display: flex; align-items: center; justify-content: space-between; }
  .mobile-panel a.m-link { display: block; padding: 14px 4px; font-weight: 600; color: var(--ink); text-decoration: none; font-size: 1.08rem; flex: 1; }
  .m-sub-toggle { width: 48px; height: 48px; border: 0; background: var(--surface-alt); border-radius: 8px; cursor: pointer; color: var(--ink); }
  .m-sub-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; }
  .m-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .m-sub { display: none; padding: 0 0 10px 12px !important; }
  .m-sub.open { display: block; }
  .m-sub a { display: block; padding: 10px 4px; color: var(--text); text-decoration: none; }
  .m-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
  .m-actions .btn { width: 100%; }
}

/* Mobile call bar */
.call-bar { display: none; }
@media (max-width: 899px) {
  .call-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--brand-dark); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(0,0,0,.18); }
  .call-bar a { flex: 1; min-height: 48px; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  body.menu-open .call-bar, body.dialog-open .call-bar { display: none; }
}

/* Breadcrumb */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; font-size: .9rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: inherit; }
.dark .breadcrumb { color: #C9D0D6; }

/* Section heading system E6: flanked rule */
.sec-head { text-align: center; max-width: 820px; margin: 0 auto 36px; }
.sec-head h2 { display: flex; align-items: flex-start; justify-content: center; gap: 16px; margin-bottom: 12px; }
.sec-head h2::before, .sec-head h2::after { content: ""; flex: 0 0 40px; height: 2px; background: var(--accent); margin-top: .58em; }
.dark .sec-head h2::before, .dark .sec-head h2::after { background: var(--accent-on-dark); }
.sec-head h2 span { display: block; }
.sec-head p { color: var(--text-muted); margin: 0 auto; max-width: 680px; }
.dark .sec-head p { color: #D3D8DD; }
@media (max-width: 599px) { .sec-head h2 { gap: 10px; } .sec-head h2::before, .sec-head h2::after { flex-basis: 20px; } }

/* Icons I4: line icon on a rounded tint tile */
.icon { width: 48px; height: 48px; flex: none; }
.icon .tile { fill: var(--surface-tint); }
.icon .g { fill: none; stroke: var(--accent-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bg-tint .icon .tile { fill: #fff; }
.dark .icon .tile { fill: var(--dark-raise); }
.dark .icon .g { stroke: var(--accent-on-dark); }
.icon-sm { width: 36px; height: 36px; }

/* Hero H47: dark field with stacked photos */
.hero-h47 { background: var(--brand-dark); color: #fff; overflow: hidden; padding: clamp(36px, 5vw, 72px) 0 clamp(48px, 6vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 41%) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-text h1 { text-align: left; color: #fff; margin-bottom: 16px; }
.hero-text .hero-intro { color: #DCE1E5; font-size: 1.1rem; max-width: 520px; }
.hero-label { display: inline-block; font-family: var(--head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; color: var(--accent-on-dark); margin-bottom: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 4px 0 26px; padding: 0; }
.pills li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--dark-raise); border: 1px solid #3B4249; font-size: .93rem; font-weight: 600; color: #fff; }
.pills .icon { width: 30px; height: 30px; }
.hero-text .btn-pair { justify-content: flex-start; }
.hero-photos { position: relative; margin-right: calc(50% - 50vw); padding-bottom: 54px; }
.hero-photos .big { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 22px 0 0 22px; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.hero-photos .small { position: absolute; left: -46px; bottom: 0; width: 300px; height: 210px; object-fit: cover; border: 6px solid #fff; border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.4); }
@media (max-width: 959px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-photos { margin-right: calc(-1 * var(--gutter)); margin-left: 0; padding-bottom: 40px; }
  .hero-photos .big { border-radius: 16px 0 0 16px; }
  .hero-photos .small { left: 0; width: 45%; height: auto; aspect-ratio: 10 / 7; border-width: 4px; }
  .hero-text .btn-pair { flex-direction: column; align-items: stretch; }
  .hero-text .btn-pair .btn { width: 100%; }
}

/* Fact strip */
.facts { padding: 26px 0; }
.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: 600; font-size: .98rem; line-height: 1.3; }
@media (max-width: 899px) { .facts ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 479px) { .facts ul { grid-template-columns: 1fr; } }

/* R8 cause-chip condition cards */
.r8-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.r8-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; display: grid; grid-template-columns: 48px 1fr; gap: 6px 16px; align-content: start; }
.bg-page .r8-card { background: var(--surface-alt); border-color: transparent; }
.r8-card .icon { grid-row: span 2; }
.chip { display: inline-block; justify-self: start; font-family: var(--head); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; background: var(--surface-tint); color: var(--accent-ink); border: 1px solid #BFD3F2; }
.r8-card h3 { margin: 4px 0 6px; }
.r8-card dl { grid-column: 1 / -1; margin: 6px 0 0; display: grid; gap: 8px; }
.r8-card dt { font-family: var(--head); font-weight: 700; font-size: .88rem; text-transform: uppercase; letter-spacing: .07em; color: var(--accent-ink); }
.r8-card dd { margin: 0; }
@media (max-width: 767px) { .r8-grid { grid-template-columns: 1fr; } }

/* K5 fit matrix with dots */
.k5-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; list-style: none; padding: 0; margin: 0 0 22px; font-size: .95rem; }
.k5-legend li { display: inline-flex; align-items: center; gap: 8px; }
.dot { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--accent-ink); vertical-align: middle; }
.dot.full { background: var(--accent-ink); }
.dot.half { background: linear-gradient(90deg, var(--accent-ink) 50%, #fff 50%); }
.dot.none { background: #fff; border-color: var(--border-strong); }
.k5-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.k5 { width: 100%; border-collapse: collapse; }
.k5 th, .k5 td { padding: 16px 14px; border-bottom: 1px solid var(--border); text-align: center; vertical-align: middle; }
.k5 thead th { background: var(--brand-dark); color: #fff; font-family: var(--head); font-weight: 600; font-size: 1.02rem; letter-spacing: .03em; }
.k5 tbody th { text-align: left; font-weight: 600; width: 44%; }
.k5 tbody th .k5-cond { display: block; font-family: var(--head); font-size: 1.12rem; }
.k5 tbody th .k5-note { display: block; font-weight: 400; color: var(--text-muted); font-size: .95rem; margin-top: 4px; line-height: 1.45; }
.k5 tbody tr:last-child th, .k5 tbody tr:last-child td { border-bottom: 0; }
.k5 td .cell-label { display: none; }
.k5-foot { text-align: center; color: var(--text-muted); font-size: .95rem; margin: 16px auto 0; max-width: 760px; }
@media (max-width: 767px) {
  .k5, .k5 tbody, .k5 tr, .k5 th, .k5 td { display: block; width: 100% !important; }
  .k5 thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .k5 tbody tr { border-bottom: 6px solid var(--surface-alt); padding: 10px 0; }
  .k5 tbody th { border: 0; padding: 10px 16px 4px; }
  .k5 td { display: flex; align-items: center; justify-content: space-between; border: 0; padding: 6px 16px; text-align: left; }
  .k5 td .cell-label { display: inline; font-weight: 600; }
}

/* S34 coat-sequence rail cards */
.s34-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.s34-card { grid-column: span 2; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.s34-grid.five .s34-card:nth-child(4), .s34-grid.five .s34-card:nth-child(5) { grid-column: span 3; }
.s34-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.s34-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.s34-body h3 { margin-bottom: 8px; }
.rail-label { font-family: var(--head); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); margin: 6px 0 10px; }
.rail { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: relative; counter-reset: rail; }
.rail::before { content: ""; position: absolute; left: 13px; right: 13px; top: 13px; height: 2px; background: var(--accent); }
.rail li { position: relative; text-align: center; font-size: .86rem; line-height: 1.25; font-weight: 600; padding-top: 34px; counter-increment: rail; }
.rail li::before { content: counter(rail); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--accent-ink); color: #fff; font-family: var(--head); font-size: .95rem; display: grid; place-items: center; border: 3px solid #fff; }
.rail li:first-child { text-align: left; } .rail li:first-child::before { left: 0; transform: none; }
.rail li:last-child { text-align: right; } .rail li:last-child::before { left: auto; right: 0; transform: none; }
.card-link { margin-top: auto; font-weight: 700; }
@media (max-width: 999px) { .s34-grid { grid-template-columns: 1fr 1fr; } .s34-card, .s34-grid.five .s34-card:nth-child(4), .s34-grid.five .s34-card:nth-child(5) { grid-column: span 1; } .s34-grid.five .s34-card:nth-child(5) { grid-column: 1 / -1; } }
@media (max-width: 639px) {
  .s34-grid { grid-template-columns: 1fr; } .s34-grid.five .s34-card:nth-child(5) { grid-column: auto; }
  .rail { grid-auto-flow: row; grid-template-columns: 1fr 1fr; gap: 12px; } .rail::before { display: none; }
  .rail li, .rail li:first-child, .rail li:last-child { text-align: left; padding: 4px 0 0 36px; }
  .rail li::before, .rail li:first-child::before, .rail li:last-child::before { left: 0; right: auto; transform: none; top: 0; }
}

/* C2 split band */
.c2 { background: var(--brand-dark); color: #fff; padding: 0; }
.c2-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 320px; }
.c2-photo { position: relative; min-height: 260px; }
.c2-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c2-text { padding: clamp(36px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.c2-text h2 { color: #fff; }
.c2-text p { color: #DCE1E5; max-width: 520px; }
.c2-text .btn-single { justify-content: flex-start; margin-top: 10px; }
@media (max-width: 767px) { .c2-grid { grid-template-columns: 1fr; } .c2-photo { min-height: 220px; } .c2-text { align-items: center; text-align: center; padding: 36px var(--gutter) 44px; } .c2-text .btn-single { justify-content: center; } .c2-text .btn { width: 100%; } }

/* P4 numbered list with tags beside a sticky photo */
.p4-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.p4-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.p4-step { display: grid; grid-template-columns: 54px 1fr; gap: 4px 18px; background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 10px; padding: 20px 22px; }
.bg-page .p4-step { background: var(--surface-alt); border-color: transparent; border-left-color: var(--accent); }
.p4-num { grid-row: span 3; font-family: var(--head); font-weight: 700; font-size: 2.1rem; color: var(--accent-ink); line-height: 1; }
.p4-tag { justify-self: start; font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; color: #fff; background: var(--brand-dark); padding: 3px 8px; border-radius: 4px; }
.p4-step h3 { margin: 6px 0 6px; }
.p4-step p { margin: 0; }
.p4-photos { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.p4-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.p4-photos figcaption { display: none; }
@media (max-width: 899px) { .p4-grid { grid-template-columns: 1fr; } .p4-photos { position: static; grid-template-columns: 1fr 1fr; order: -1; } }
@media (max-width: 479px) { .p4-step { grid-template-columns: 1fr; } .p4-num { grid-row: auto; font-size: 1.7rem; } }

/* B1 check cards */
.b1-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.b1-card { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.bg-page .b1-card { background: var(--surface-alt); border-color: transparent; }
.check { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-ink); display: grid; place-items: center; grid-row: span 2; }
.check svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.b1-card h3 { margin: 6px 0 6px; }
.b1-card p { margin: 0; }
@media (max-width: 767px) { .b1-grid { grid-template-columns: 1fr; } }

/* M16 border fan map */
.m16-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.map-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.map-card svg { width: 100%; height: auto; display: block; }
.map-caption { font-size: .88rem; color: var(--text-muted); text-align: center; margin: 8px 0 0; }
.town-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.town-list li { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px 18px; }
.town-list .t-name { font-family: var(--head); font-weight: 700; font-size: 1.18rem; }
.town-list .t-meta { display: block; font-size: .86rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 600; margin: 2px 0 4px; }
.town-list p { margin: 0; font-size: .97rem; }
@media (max-width: 899px) { .m16-grid { grid-template-columns: 1fr; } }
svg[data-map] text { font-family: var(--body); }

/* F11 photo beside accordion */
.f11-grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 40px; align-items: start; }
.f11-side img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.call-card { background: var(--brand-dark); color: #fff; border-radius: var(--radius); padding: 22px; margin-top: 16px; text-align: center; }
.call-card p { margin: 0 0 14px; font-family: var(--head); font-weight: 600; font-size: 1.25rem; }
.call-card .btn { width: 100%; }
.acc { display: grid; gap: 12px; }
.acc details { background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.acc summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative; font-family: var(--head); font-weight: 600; font-size: 1.18rem; line-height: 1.25; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--accent-ink); border-bottom: 2.5px solid var(--accent-ink); transform: translateY(-70%) rotate(45deg); transition: transform .15s ease; }
.acc details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.acc details[open] summary { border-bottom: 3px solid var(--accent); margin-bottom: 0; }
.acc .ans { padding: 16px 20px 6px; }
@media (max-width: 999px) { .f11-grid { grid-template-columns: 1fr; } .f11-side { order: 2; } .f11-side img { aspect-ratio: 16 / 10; } }

/* Closing */
.closing { background: var(--brand-dark); color: #fff; text-align: center; }
.closing h2 { color: #fff; }
.closing p { color: #DCE1E5; max-width: 640px; margin: 0 auto 20px; }
@media (max-width: 599px) { .btn-pair { flex-direction: column; align-items: stretch; } .btn-pair .btn { width: 100%; } }

/* Generic cards (options, local factors) */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-grid.two { grid-template-columns: repeat(2, 1fr); }
.cards-grid.four { grid-template-columns: repeat(2, 1fr); }
.opt-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.bg-page .opt-card { background: var(--surface-alt); border-color: transparent; }
.opt-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.opt-body { padding: 20px 22px 22px; }
.opt-body h3 { margin-bottom: 8px; }
.opt-body p { margin: 0 0 10px; }
.opt-body .best { font-size: .95rem; color: var(--text-muted); margin: 0; }
.opt-body .best strong { color: var(--text); }
.factor-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; }
.factor-card .icon { grid-row: span 3; }
.factor-card h3 { margin: 4px 0 6px; }
.factor-card p { margin: 0 0 8px; }
.factor-card .t-meta { font-size: .86rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 600; margin: 0; }
@media (max-width: 999px) { .cards-grid { grid-template-columns: 1fr 1fr; } .cards-grid > .opt-card:nth-child(3):last-child { grid-column: 1 / -1; } }
@media (max-width: 639px) { .cards-grid, .cards-grid.two, .cards-grid.four { grid-template-columns: 1fr; } }

/* svc-cards (services hub + related) */
.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.svc-grid > * { grid-column: span 2; }
.svc-grid.five > *:nth-child(4), .svc-grid.five > *:nth-child(5) { grid-column: span 3; }
.svc-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.svc-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.svc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.svc-body .icon { margin-bottom: 10px; }
.svc-body p { margin: 0 0 12px; }
.svc-body .fit { font-size: .95rem; color: var(--text-muted); }
.svc-body .fit strong { color: var(--text); }
@media (max-width: 999px) { .svc-grid { grid-template-columns: 1fr 1fr; } .svc-grid > *, .svc-grid.five > *:nth-child(4) { grid-column: span 1; } .svc-grid.five > *:nth-child(5), .svc-grid.three > *:nth-child(3) { grid-column: 1 / -1; } }
@media (max-width: 639px) { .svc-grid { grid-template-columns: 1fr; } .svc-grid > *, .svc-grid.five > *:nth-child(5), .svc-grid.three > *:nth-child(3) { grid-column: auto; } }

/* Split */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.split-text h2 { text-align: left; }
.split-head { text-align: center; }
.ticks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.ticks .icon { width: 36px; height: 36px; }
@media (max-width: 899px) { .split-grid { grid-template-columns: 1fr; } }

/* Links grid (nearby towns) */
.links-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.near-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.near-list li { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.near-list .icon { width: 36px; height: 36px; }
.near-list a { font-family: var(--head); font-weight: 700; font-size: 1.15rem; }
.near-list p { margin: 2px 0 0; font-size: .97rem; }
@media (max-width: 899px) { .links-grid { grid-template-columns: 1fr; } }

/* Checklist */
.check-list { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; max-width: 980px; }
.check-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; background: #fff; border-radius: 10px; padding: 14px 16px; border: 1px solid var(--border); }
.check-list .icon { width: 40px; height: 40px; }
@media (max-width: 767px) { .check-list { grid-template-columns: 1fr; } }

/* FAQ page */
.faq-intro { text-align: center; }
.faq-intro .lead { max-width: 820px; margin: 0 auto 22px; font-size: 1.08rem; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.jump a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid #BFD3F2; text-decoration: none; font-weight: 600; font-size: .95rem; }
.jump a:hover { background: var(--accent-ink); color: #fff; }
.faq-cat { margin: 0 auto 44px; max-width: 900px; scroll-margin-top: 110px; }
.faq-cat:last-child { margin-bottom: 0; }
.faq-cat > h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); padding-bottom: 10px; border-bottom: 3px solid var(--accent); }
.faq-item { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--accent-ink); border-radius: 10px; padding: 20px 24px; margin-top: 14px; }
.bg-alt .faq-item { border-color: #D6DADE; border-left-color: var(--accent-ink); }
.faq-item h3 { margin-bottom: 8px; }
.faq-item ol, .faq-item ul { margin: 0 0 1em; padding-left: 1.3em; }
.faq-item li { margin-bottom: 4px; }
.faq-table-wrap { overflow-x: auto; margin: 0 0 1em; }
.faq-table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.faq-table th, .faq-table td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.faq-table th { background: var(--surface-alt); font-weight: 700; }
.sources { font-size: .93rem; }
.sources ul { columns: 2; padding-left: 1.2em; }
@media (max-width: 767px) { .sources ul { columns: 1; } .faq-table { min-width: 520px; } }

/* Contact / utility / legal */
.utility-head { padding: 40px 0 8px; }
.utility-head h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.site-form .field { display: grid; gap: 6px; margin-bottom: 16px; }
.site-form .field label { font-weight: 600; }
.site-form .field input, .site-form .field textarea { font: inherit; font-size: 1rem; padding: 12px 14px; min-height: 48px; border: 2px solid var(--border-strong); border-radius: 8px; background: #fff; color: var(--text); width: 100%; }
.site-form .field input[aria-invalid="true"], .site-form .field textarea[aria-invalid="true"] { border-color: #B3261E; }
.site-form .field .err { color: #A3201A; font-size: .92rem; min-height: 0; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; padding: 12px 14px; border-radius: 8px; font-weight: 600; }
.form-status.ok { background: #E6F2EA; color: #1D5B33; }
.form-status.bad { background: #FBECEB; color: #8E1A11; }
.form-status.busy { background: var(--surface-alt); color: var(--text); }
.aside-card { background: var(--surface-alt); border-radius: var(--radius); padding: 24px; }
.aside-card h2 { font-size: 1.5rem; }
.aside-card ul { padding-left: 1.2em; margin: 0 0 1em; }
.phone-big { font-family: var(--head); font-size: 1.9rem; font-weight: 700; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; } }
.legal-body { max-width: 820px; }
.legal-body h2 { font-size: 1.5rem; margin-top: 1.6em; }
.calc-wrap { padding: 8px 0 64px; }

/* Calculator restyle (kit variables mapped to site tokens) */
.roof-calc {
  --calc-font-head: var(--head);
  --calc-font-body: var(--body);
  --calc-text: #121517;
  --calc-muted: #545C64;
  --calc-surface: #FFFFFF;
  --calc-surface-alt: #EAF1FB;
  --calc-border: #8B939B;
  --calc-accent: #1F6FD6;
  --calc-accent-text: #FFFFFF;
  --calc-accent-hover: #1A5FBA;
  --calc-track: #D6DCE2;
  --calc-focus: #1A5FBA;
  --calc-radius: 12px;
}
.roof-calc .calc-card { border-top: 6px solid var(--brand-dark); box-shadow: var(--shadow); }
.roof-calc .calc-btn { font-family: var(--head); font-size: 1.1rem; letter-spacing: .02em; }
.roof-calc .question-step h2 { color: var(--brand-dark); }
.roof-calc .step-index { font-family: var(--mono); color: var(--accent-ink); }

/* Footer */
.site-footer { background: var(--ink); color: #D3D8DD; padding: 56px 0 28px; font-size: .97rem; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.foot-logo { background: #fff; display: inline-block; padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; }
.foot-logo img { height: 52px; width: auto; }
.site-footer h2 { color: #fff; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-legal { border-top: 1px solid #2E3439; margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: space-between; }
.foot-legal ul { display: flex; flex-wrap: wrap; gap: 18px; }
@media (max-width: 899px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) { .foot-grid { grid-template-columns: 1fr; } }

/* Callback dialog */
.cb-backdrop { position: fixed; inset: 0; background: rgba(18, 21, 23, .55); z-index: 300; display: none; align-items: center; justify-content: center; padding: 16px; }
.cb-backdrop.open { display: flex; }
.cb-dialog { background: #fff; border-radius: 14px; max-width: 440px; width: 100%; padding: 26px; position: relative; border-top: 6px solid var(--accent); max-height: calc(100vh - 32px); overflow-y: auto; }
.cb-dialog h2 { font-size: 1.6rem; padding-right: 36px; }
.cb-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; background: var(--surface-alt); border-radius: 8px; cursor: pointer; font-size: 1.4rem; line-height: 1; }
.cb-dialog .btn { width: 100%; }
.cb-direct { text-align: center; margin: 14px 0 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
.faq-note { background: var(--surface-tint); border-radius: 8px; padding: 10px 14px; margin: 0 0 1em; }
.faq-note p { margin: 0; }
/* Calculator pages: header scrolls away so it never sits over a form control */
.calc-page .site-header { position: relative; }
.roof-calc .choice-card { position: relative; }
/* The radio covers its whole choice card, so a click anywhere on the card selects it */
.roof-calc .choice-card input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
/* Calculator page shell: compact head so each question fits a short laptop screen without scrolling */
.calc-page .header-inner { min-height: 72px; }
.calc-page .brand img { height: 52px; }
.calc-page .utility-head { padding: 14px 0 2px; }
.calc-page .utility-head .breadcrumb ol { margin-bottom: 6px; }
.calc-page .utility-head h1 { margin-bottom: 4px; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }
.calc-page .utility-head p { margin-bottom: 12px; }
.calc-page .roof-calc .calc-card { padding: 22px 28px 24px; }
.calc-page .roof-calc #form-progress { margin-bottom: 16px; }
.calc-page .roof-calc .question-help { margin-bottom: 12px; }
.calc-page .roof-calc .choice-list { gap: 10px; }
.calc-page .roof-calc .choice-card { min-height: 58px; padding: 10px 16px; }
/* No fixed call bar over the calculator's buttons; the phone stays in the menu and footer */
@media (max-width: 899px) { body.calc-page { padding-bottom: 0; } .calc-page .call-bar { display: none; } }
