/* Tolleson Commercial Roofing Contractor: site styles. Signature H24-S12-P2-B2-R2-F4-M13-C3-I7-E5. */
:root {
  --brand: #1F5AA6;          /* cobalt: H24 door, fact strip on dark, closing */
  --brand-deep: #174684;     /* cobalt shade for hover and rules on dark */
  --deep: #191D21;           /* header, footer, call bar */
  --steel: #3C444C;          /* secondary */
  --cta: #FFB900;            /* buttons only */
  --cta-hover: #E5A600;
  --cta-text: #191D21;
  --page: #FFFFFF;
  --alt: #F4F5F5;
  --tint: #E8EEF7;
  --text: #191D21;
  --muted: #565E66;
  --border: #8A939B;
  --hair: #D5D9DD;
  --focus-light: #191D21;
  --focus-dark: #FFB900;
  --head: "Kanit", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1200px;
  --radius: 8px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; background: var(--page); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--focus-light); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; color: inherit; font-weight: 600; letter-spacing: .01em; }
h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.2vw, 38px); }
h3 { font-size: clamp(19px, 1.8vw, 23px); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--cta); color: var(--cta-text); padding: 10px 16px; z-index: 200; font-weight: 700; }
.skip:focus { left: 12px; }
.sr { 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 22px; border-radius: 6px; font-family: var(--head); font-weight: 600; font-size: 17px; letter-spacing: .02em; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; line-height: 1.1; text-align: center; }
.btn-primary { background: var(--cta); color: var(--cta-text); border-color: var(--cta-text); }
.btn-primary:hover { background: var(--cta-hover); color: var(--cta-text); }
.on-dark .btn-primary, .btn-primary.on-dark { border-color: var(--cta); }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--deep); }
.btn-outline { background: #fff; color: var(--deep); border-color: var(--deep); }
.btn-outline:hover { background: var(--deep); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.pair { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.single { display: flex; justify-content: center; margin-top: 26px; }
.on-dark :focus-visible { outline-color: var(--focus-dark); }

/* Header */
.site-header { background: var(--deep); color: #fff; position: sticky; top: 0; z-index: 60; border-bottom: 3px solid var(--brand); }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 84px; }
.logo { display: block; flex: none; }
.logo img { height: 64px; 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 li { position: relative; }
.nav-link { color: #fff; text-decoration: none; font-family: var(--head); font-weight: 500; font-size: 16.5px; padding: 10px 9px; display: inline-flex; align-items: center; border-radius: 4px; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--cta); }
.has-sub { display: flex; align-items: center; }
.sub-toggle { background: none; border: 0; color: #fff; padding: 10px 6px 10px 0; cursor: pointer; display: inline-flex; min-height: 44px; align-items: center; }
.sub-toggle svg { width: 14px; height: 14px; transition: transform .15s; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.submenu { position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border-radius: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.25); list-style: none; margin: 0; padding: 8px 0; display: none; z-index: 70; border-top: 3px solid var(--cta); }
.submenu a { display: block; padding: 9px 18px; color: var(--text); text-decoration: none; font-size: 15.5px; }
.submenu a:hover { background: var(--tint); color: var(--brand); }
.has-sub:hover .submenu, .submenu.open { display: block; }
.nav-actions { display: flex; gap: 10px; margin-left: 10px; }
.nav-actions .btn { min-height: 46px; padding: 10px 16px; font-size: 16px; }
.burger { display: none; background: none; border: 2px solid #fff; color: #fff; width: 48px; height: 48px; border-radius: 6px; align-items: center; justify-content: center; cursor: pointer; margin-left: auto; }
.burger svg { width: 24px; height: 24px; }
.mobile-panel { display: none; }
@media (max-width: 1199px) {
  .main-nav { display: none; }
  .burger { display: inline-flex; }
  .hdr { min-height: 70px; }
  .logo img { height: 50px; }
  .mobile-panel { background: var(--deep); border-top: 1px solid #333a40; max-height: calc(100vh - 73px); overflow-y: auto; padding: 8px 0 22px; }
  .mobile-panel.open { display: block; }
  .mobile-panel ul { list-style: none; margin: 0; padding: 0; }
  .mobile-panel a { color: #fff; text-decoration: none; display: block; padding: 12px 0; font-family: var(--head); font-size: 18px; border-bottom: 1px solid #2c3238; }
  .mobile-panel .m-sub a { font-family: var(--body); font-size: 16px; padding-left: 16px; color: #dfe3e7; }
  .m-row { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #2c3238; }
  .m-row a { border-bottom: 0; flex: 1; }
  .m-row button { background: none; border: 0; color: #fff; width: 48px; height: 48px; cursor: pointer; }
  .m-row button svg { width: 18px; height: 18px; }
  .m-row button[aria-expanded="true"] svg { transform: rotate(180deg); }
  .m-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
  .m-actions .btn { width: 100%; }
}

/* Section scaffolding */
main > section { padding: clamp(44px, 6.5vw, 84px) 0; }
.bg-page { background: var(--page); }
.bg-alt { background: var(--alt); }
.bg-tint { background: var(--tint); }
.bg-brand { background: var(--brand); color: #fff; }
.bg-deep { background: var(--deep); color: #fff; }
.sec-head { text-align: center; max-width: 780px; margin: 0 auto 34px; }
.chip { display: inline-block; font-family: var(--head); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: #fff; border: 1.5px solid var(--brand); border-radius: 999px; padding: 4px 14px; margin-bottom: 14px; }
.bg-alt .chip, .bg-tint .chip { background: #fff; }
.bg-brand .chip, .bg-deep .chip, .door .chip { color: var(--deep); background: var(--cta); border-color: var(--cta); }
.intro { color: var(--muted); font-size: 18px; margin: 0 auto; max-width: 70ch; }
.bg-brand .intro, .bg-deep .intro { color: #e6ecf5; }

/* H24 Roll-up door hero */
.hero { padding: 0 !important; background: var(--deep); }
.door { background-color: var(--brand); background-image: repeating-linear-gradient(to bottom, transparent 0 15px, rgba(255,255,255,.13) 15px 16px); color: #fff; text-align: center; padding: clamp(38px, 6vw, 72px) 0 clamp(34px, 5vw, 58px); }
.door h1 { max-width: 20ch; margin: 0 auto 14px; }
.door .lede { max-width: 62ch; margin: 0 auto; font-size: 18.5px; color: #f1f5fb; }
.crumbs { font-size: 14px; margin-bottom: 18px; color: #dbe5f3; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .7; }
.crumbs a { color: #fff; }
.rail { height: 10px; background: var(--cta); position: relative; }
.rail::before, .rail::after { content: ""; position: absolute; top: -8px; width: 54px; height: 26px; background: var(--deep); border: 3px solid var(--cta); border-radius: 3px; }
.rail::before { left: 6%; }
.rail::after { right: 6%; }
.hero-photo img { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; }
@media (max-width: 760px) {
  .door { background-image: repeating-linear-gradient(to bottom, transparent 0 11px, rgba(255,255,255,.12) 11px 12px); }
  .rail::before, .rail::after { display: none; }
  .hero-photo img { aspect-ratio: 16 / 9; }
  .pair { flex-direction: column; align-items: stretch; }
  .pair .btn { width: 100%; }
}

/* Fact strip */
.facts { padding: 26px 0 !important; border-bottom: 1px solid var(--hair); }
.fact-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fact-list li { display: flex; align-items: center; gap: 12px; font-family: var(--head); font-weight: 500; font-size: 17px; line-height: 1.25; }
.fact-list .icon { width: 34px; height: 34px; flex: none; }
@media (max-width: 900px) { .fact-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .fact-list { grid-template-columns: 1fr; } }

/* I7 split-stroke icons */
.icon { width: 32px; height: 32px; fill: none; stroke: var(--steel); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon .hi { stroke: var(--brand); }
.bg-brand .icon, .bg-deep .icon { stroke: #d6dde5; }
.bg-brand .icon .hi, .bg-deep .icon .hi { stroke: var(--cta); }

/* R2 symptom rows */
.rows { display: grid; gap: 14px; }
.row-head, .r2-row { display: grid; grid-template-columns: 1.1fr 1.2fr 1.4fr; gap: 22px; }
.row-head { font-family: var(--head); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 22px; }
.r2-row { background: #fff; border: 1px solid var(--hair); border-left: 5px solid var(--brand); border-radius: var(--radius); padding: 20px 22px; align-items: start; }
.r2-row h3 { display: flex; gap: 12px; align-items: flex-start; font-size: 20px; margin: 0; }
.r2-row h3 .icon { width: 30px; height: 30px; flex: none; margin-top: -2px; }
.r2-row .lbl { display: none; font-family: var(--head); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.r2-row p { margin: 0; }
@media (max-width: 820px) {
  .row-head { display: none; }
  .r2-row { grid-template-columns: 1fr; gap: 12px; }
  .r2-row .lbl { display: block; }
}

/* P2 process strip */
.p2-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 34px; }
.p2-photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; counter-reset: none; }
.strip::before { content: ""; position: absolute; left: 10%; right: 10%; top: 25px; height: 3px; background: var(--brand); z-index: 0; }
.step { position: relative; z-index: 1; background: #fff; border: 1px solid var(--hair); border-radius: var(--radius); padding: 0 16px 18px; text-align: left; }
.bg-alt .step { background: #fff; }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--head); font-weight: 700; font-size: 22px; display: flex; align-items: center; justify-content: center; margin: -1px auto 14px; border: 4px solid #fff; box-shadow: 0 0 0 1px var(--hair); }
.step h3 { font-size: 19px; text-align: center; }
.step p { font-size: 15.5px; margin: 0; }
@media (max-width: 1000px) {
  .strip { grid-template-columns: 1fr; gap: 14px; }
  .strip::before { left: 26px; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
  .step { display: grid; grid-template-columns: 52px 1fr; gap: 0 16px; padding: 16px; }
  .step-num { margin: 0; grid-row: span 2; }
  .step h3 { text-align: left; margin-bottom: 4px; }
}
@media (max-width: 600px) { .p2-photos { grid-template-columns: 1fr; } }

/* S12 building-chip cards */
.s12 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.s12-card { background: #fff; border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.s12-photo { position: relative; }
.s12-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.seam-tag { position: absolute; top: 0; right: 0; background: var(--cta); color: var(--cta-text); font-family: var(--head); font-weight: 600; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; padding: 7px 14px; border-bottom-left-radius: var(--radius); }
.s12-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.chips { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13.5px; font-weight: 600; color: var(--steel); background: var(--alt); border: 1px solid var(--hair); border-radius: 999px; padding: 3px 11px; }
.fitcols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 4px 0 16px; }
.fitcols h4 { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.fitcols ul { padding-left: 1.1em; margin: 0; font-size: 15.5px; }
.more { margin-top: auto; font-weight: 700; }
@media (max-width: 760px) { .s12 { grid-template-columns: 1fr; } .fitcols { grid-template-columns: 1fr; } }

/* C3 band */
.c3 { background: var(--tint); }
.c3-card { background: #fff; border: 1px solid var(--hair); border-top: 5px solid var(--steel); border-radius: var(--radius); display: grid; grid-template-columns: 1.3fr 1fr; gap: 34px; padding: clamp(24px, 4vw, 40px); max-width: 1040px; margin: 0 auto; align-items: center; }
.c3-card h2 { font-size: clamp(24px, 2.6vw, 32px); }
.c3-card .line { color: var(--muted); }
.ready h3 { font-size: 17px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.ready ul { list-style: none; padding: 0; margin: 0 0 18px; }
.ready li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-bottom: 1px dashed var(--hair); font-size: 15.5px; }
.ready li .icon { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.ready .btn { width: 100%; }
@media (max-width: 820px) { .c3-card { grid-template-columns: 1fr; text-align: left; } }

/* Icon cards (suitability, local factors, service areas) */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.card { grid-column: span 2; background: #fff; border: 1px solid var(--hair); border-radius: var(--radius); padding: 24px; }
.cards.five .card:nth-child(4) { grid-column: 2 / span 2; }
.cards.five .card:nth-child(5) { grid-column: 4 / span 2; }
.cards.four .card, .cards.eight .card { grid-column: span 3; }
.cards.eight { grid-template-columns: repeat(12, 1fr); }
.cards.eight .card { grid-column: span 3; }
.card .icon { width: 38px; height: 38px; margin-bottom: 12px; }
.card h3 { font-size: 20px; }
.card .fit { font-family: var(--head); font-weight: 600; color: var(--brand); margin-bottom: 6px; font-size: 16px; }
.card p:last-child { margin-bottom: 0; }
.card .meta { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.cards-photo { margin: 0 auto 30px; max-width: 980px; }
.cards-photo img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 1000px) {
  .cards, .cards.eight { grid-template-columns: 1fr 1fr; }
  .card, .cards.five .card:nth-child(4), .cards.five .card:nth-child(5), .cards.four .card, .cards.eight .card { grid-column: auto; }
  .cards.five .card:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .cards, .cards.eight { grid-template-columns: 1fr; } .cards.five .card:nth-child(5) { grid-column: auto; } }

/* Image option cards */
.opt-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.opt-cards.three { grid-template-columns: repeat(3, 1fr); }
.opt-cards.two { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }
.opt { background: #fff; border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.opt img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.opt-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.opt h3 { font-size: 19px; }
.opt p { font-size: 15.5px; }
.opt .more { margin-top: auto; }
@media (max-width: 1000px) { .opt-cards, .opt-cards.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .opt-cards, .opt-cards.three, .opt-cards.two { grid-template-columns: 1fr; } }

/* B2 and other tables */
.tbl-wrap { max-width: 1040px; margin: 0 auto; }
table.cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; font-size: 16px; }
table.cmp caption { caption-side: top; text-align: left; font-size: 14px; color: var(--muted); padding-bottom: 8px; }
table.cmp th, table.cmp td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
table.cmp thead th { background: var(--steel); color: #fff; font-family: var(--head); font-weight: 600; font-size: 16px; letter-spacing: .03em; }
table.cmp tbody th { font-family: var(--head); font-weight: 600; width: 24%; background: var(--alt); }
table.cmp tbody tr:last-child th, table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td .icon { width: 20px; height: 20px; vertical-align: -4px; margin-right: 6px; }
@media (max-width: 760px) {
  table.cmp thead { display: none; }
  table.cmp, table.cmp tbody, table.cmp tr, table.cmp th, table.cmp td { display: block; width: 100%; }
  table.cmp tr { border-bottom: 2px solid var(--hair); }
  table.cmp tbody th { width: 100%; }
  table.cmp td::before { content: attr(data-col); display: block; font-family: var(--head); font-weight: 600; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); margin-bottom: 2px; }
}

/* M13 quadrant map */
.m13 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.m13 figure { margin: 0; background: #fff; border: 1px solid var(--hair); border-radius: var(--radius); padding: 14px; }
.m13 svg[data-map] { width: 100%; height: auto; display: block; }
.quad-list h3 { font-size: 17px; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); margin: 18px 0 8px; display: flex; gap: 8px; align-items: center; }
.quad-list h3:first-child { margin-top: 0; }
.quad-list ul { list-style: none; padding: 0; margin: 0; }
.quad-list li { background: #fff; border: 1px solid var(--hair); border-radius: 6px; padding: 12px 14px; margin-bottom: 10px; font-size: 15.5px; }
.quad-list li a { font-family: var(--head); font-weight: 600; font-size: 17px; display: inline-block; margin-bottom: 2px; }
.inset { width: 100%; max-width: 280px; margin: 0 auto 18px; }
.inset svg { display: block; width: 100%; height: auto; border: 1px solid var(--hair); border-radius: var(--radius); }
@media (max-width: 900px) { .m13 { grid-template-columns: 1fr; } }

/* F4 open answer cards */
.f4 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.qa { background: #fff; border: 1px solid var(--hair); border-top: 4px solid var(--brand); border-radius: var(--radius); padding: 22px 24px; }
.qa h3 { font-size: 19.5px; }
.qa p:last-child { margin-bottom: 0; }
@media (max-width: 800px) { .f4 { grid-template-columns: 1fr; } }

/* Compare (two-column fit) */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1040px; margin: 0 auto; }
.col { background: #fff; border: 1px solid var(--hair); border-radius: var(--radius); padding: 24px; }
.col h3 { display: flex; gap: 10px; align-items: center; }
.col.good { border-top: 5px solid var(--brand); }
.col.first { border-top: 5px solid var(--steel); }
.col ul { margin: 0; padding-left: 1.15em; }
.col li { margin-bottom: 8px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

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

/* Checklist */
.checklist { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; max-width: 1080px; margin: 0 auto; }
.checklist img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.checklist ol { list-style: none; padding: 0; margin: 0; counter-reset: c; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.checklist li .icon { width: 24px; height: 24px; flex: none; }
@media (max-width: 860px) { .checklist { grid-template-columns: 1fr; } }

/* Link grid */
.linkgrid { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: center; max-width: 1080px; margin: 0 auto; }
.linkgrid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.linkgrid li { background: #fff; border: 1px solid var(--hair); border-left: 5px solid var(--brand); border-radius: 6px; padding: 14px 16px; }
.linkgrid li a { font-family: var(--head); font-weight: 600; font-size: 18px; }
@media (max-width: 760px) { .linkgrid { grid-template-columns: 1fr; } }

/* Closing CTA */
.closing { text-align: center; }
.closing h2 { max-width: 30ch; margin-inline: auto; }
.closing p { max-width: 60ch; margin: 0 auto; color: #eef3fa; font-size: 18px; }

/* FAQ page */
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0 0 8px; }
.jump a { display: inline-block; padding: 8px 14px; background: #fff; border: 1.5px solid var(--brand); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; }
.faq-cat { max-width: 920px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--hair); border-left: 5px solid var(--brand); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 16px; }
.faq-item h3 { font-size: 21px; }
.faq-item table.cmp { margin: 8px 0 14px; font-size: 15px; }
.faq-item > div > :last-child { margin-bottom: 0; }
.cat-photo { margin: 0 0 22px; }
.cat-photo img { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; border-radius: var(--radius); }
.intro-band { text-align: center; }
.intro-band p { max-width: 70ch; margin: 0 auto 10px; font-size: 18px; color: #eef3fa; }
.sources ul { columns: 2; column-gap: 30px; font-size: 15px; }
.sources li { break-inside: avoid; margin-bottom: 6px; }
@media (max-width: 700px) { .sources ul { columns: 1; } }
.hero-text { padding: 0 !important; }

/* Utility pages */
.util-head { background: var(--brand); color: #fff; padding: 38px 0 30px; text-align: center; }
.util-head h1 { margin-bottom: 8px; }
.util-head p { margin: 0 auto; max-width: 62ch; color: #eef3fa; }
.util-body { padding: 44px 0 64px; }
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 26px; margin-top: 1.4em; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; max-width: 1040px; margin: 0 auto; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--hair); border-radius: var(--radius); padding: clamp(20px, 4vw, 34px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.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); }
.field input:focus, .field textarea:focus { outline: 3px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.field .hint { font-size: 14px; color: var(--muted); margin-top: 4px; display: block; }
.field [aria-invalid="true"] { border-color: #A3261C; }
.field .err { color: #A3261C; font-size: 14.5px; margin-top: 4px; display: block; }
.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: #E7F3EA; color: #1D5B33; border: 1px solid #1D5B33; }
.form-status.bad { background: #FBECEB; color: #8E1A11; border: 1px solid #8E1A11; }
.form-status.busy { background: var(--alt); color: var(--text); border: 1px solid var(--border); }
.side-card { background: var(--alt); border: 1px solid var(--hair); border-radius: var(--radius); padding: 24px; }
.side-card a.tel { font-family: var(--head); font-size: 26px; font-weight: 700; text-decoration: none; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--deep); color: #d3d9df; padding: 54px 0 30px; font-size: 15.5px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h2 { font-size: 18px; color: #fff; letter-spacing: .06em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #fff; }
.site-footer .logo img { height: 58px; margin-bottom: 14px; }
.foot-base { border-top: 1px solid #333a40; margin-top: 34px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 14px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 1199px) {
  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--deep); border-top: 2px solid var(--cta); padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); }
  .callbar .btn { width: 100%; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.menu-open .callbar { display: none; }
}

/* Callback dialog */
.cb[hidden] { display: none; }
.cb { position: fixed; inset: 0; z-index: 120; background: rgba(15,18,21,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cb-box { background: #fff; border-radius: 10px; max-width: 420px; width: 100%; padding: 26px 24px 22px; position: relative; border-top: 6px solid var(--brand); }
.cb-box h2 { font-size: 24px; padding-right: 30px; }
.cb-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 28px; line-height: 1; color: var(--text); }
.cb-box .btn { width: 100%; }
.cb-box .alt-call { text-align: center; margin: 12px 0 0; font-size: 15.5px; }

/* Calculator restyle (kit classes) */
.roof-calc {
  --calc-font-head: var(--head);
  --calc-font-body: var(--body);
  --calc-text: #191D21;
  --calc-muted: #565E66;
  --calc-surface: #FFFFFF;
  --calc-surface-alt: #F4F5F5;
  --calc-border: #8A939B;
  --calc-accent: #FFB900;
  --calc-accent-text: #191D21;
  --calc-accent-hover: #E5A600;
  --calc-track: #D5D9DD;
  --calc-focus: #1F5AA6;
  --calc-radius: 8px;
}
.roof-calc .calc-card { border-top: 6px solid var(--brand); }
.roof-calc .calc-btn-primary { border: 2px solid #191D21; }
.roof-calc .choice-card:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.roof-calc .choice-card { position: relative; }
.roof-calc .choice-card input { inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.roof-calc .step-index { color: var(--brand); font-family: var(--head); font-weight: 600; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.qgroup { background: var(--alt); border: 1px solid var(--hair); border-radius: var(--radius); padding: 14px 14px 4px; margin-bottom: 14px; }
.bg-alt .qgroup { background: #fff; }
.qgroup h3 { margin: 0 0 10px !important; }
.qgroup h3 .icon { width: 22px; height: 22px; }

/* Contact page and FAQ links (added at build) */
.submit-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; font: 700 17px/1.2 var(--body); background: var(--cta); color: #191D21; border: 2px solid #191D21; border-radius: 6px; cursor: pointer; }
.submit-btn:hover { background: #E5A600; }
.submit-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.submit-btn[disabled] { opacity: .7; cursor: progress; }
.contact-side h2 { font-size: 24px; margin-bottom: 8px; }
.contact-side p { margin-bottom: 22px; }
.see { margin-top: 10px; font-weight: 600; }
.see a::after { content: " \2192"; }

/* Calculator pages: header scrolls with the page so it never sits over a step */
.calc-page .site-header { position: static; }
.calc-page .util-head { padding: 18px 0 16px; }
.calc-page .util-head h1 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 4px; }
.calc-page .util-body { padding: 18px 0 40px; }
.calc-page .hdr { min-height: 64px; }
.calc-page .site-header .logo img { height: 52px; width: auto; }
@media (min-width: 900px) {
  .roof-calc .choice-list { grid-template-columns: repeat(3, 1fr); }
  .roof-calc .choice-list .choice-card { grid-template-columns: 1fr; justify-items: start; gap: 6px; }
}
/* Calculator pages: every step fits one 720px-tall desktop screen, so the kit's heading focus never scrolls */
.calc-page .util-head { padding: 10px 0 10px; }
.calc-page .util-head .crumbs { margin-bottom: 2px; }
.calc-page .util-head h1 { font-size: clamp(24px, 2.6vw, 30px); margin: 0 0 2px; }
.calc-page .util-head p { font-size: 15px; }
.calc-page .util-body { padding: 12px 0 32px; }
@media (min-width: 900px) {
  .calc-page .roof-calc .calc-card { padding: 18px 28px 20px; max-width: 860px; }
  .calc-page .roof-calc #form-progress { margin-bottom: 14px; }
  .calc-page .roof-calc h2 { margin-bottom: 4px; }
  .calc-page .roof-calc .choice-card { min-height: 0; padding: 10px 14px; }
}
@media (min-width: 900px) {
  .calc-page .roof-calc h2 { font-size: 24px; }
  .calc-page .roof-calc [data-step] p { margin: 0 0 8px; }
  .calc-page .roof-calc .field, .calc-page .roof-calc fieldset { margin-bottom: 10px; }
  .calc-page .util-head { padding: 8px 0; }
}
