/* Nogales Commercial Roofing Contractor: site styles. Signature H15-S19-P8-B3-R5-F3-M16-C4-I6-E2. */
:root {
  --brick: #943C32; --brick-deep: #7E3229; --char: #252C33; --ink: #191D21;
  --gold: #E4AE24; --gold-hover: #C9951A; --gold-tint: #FBF1D6;
  --page: #FFFFFF; --alt: #F1F0EC; --tint: #F6EFE6;
  --muted: #4F555B; --line: #D9D6CF; --border: #80868C;
  --focus-light: #943C32; --focus-dark: #E4AE24;
  --head: "Arvo", "Rockwell", "Roboto Slab", Georgia, serif;
  --body: "Lato", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --wrap: 1200px; --radius: 6px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--page); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brick); text-underline-offset: 3px; }
a:hover { color: var(--brick-deep); }
:focus-visible { outline: 3px solid var(--focus-light); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible, .callbar :focus-visible { outline-color: var(--focus-dark); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.22; margin: 0 0 .5em; overflow-wrap: normal; }
h1 { font-size: clamp(31px, 2.2vw + 22px, 50px); }
h2 { font-size: clamp(26px, 1.2vw + 20px, 36px); }
h3 { font-size: clamp(19px, .4vw + 17px, 22px); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--char); color: #fff; padding: 10px 14px; z-index: 200; }
.skip:focus { left: 8px; }
.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: var(--radius);
  font-family: var(--body); font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s; line-height: 1.2; text-align: center; }
.btn-primary { background: var(--gold); color: var(--ink); border-color: var(--ink); }
.btn-primary:hover { background: var(--gold-hover); color: var(--ink); }
.btn-call { background: var(--char); color: #fff; border-color: var(--char); }
.btn-call:hover { background: var(--ink); color: #fff; }
.on-dark .btn-call { background: transparent; color: #fff; border-color: #fff; }
.on-dark .btn-call:hover { background: #fff; color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-pair { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 8px; }
.btn-row { display: flex; justify-content: center; margin-top: 32px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 84px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 72px; width: auto; }
.mainnav { display: flex; align-items: center; gap: 4px; }
.mainnav > ul { display: flex; align-items: center; gap: 2px; list-style: none; }
.mainnav > ul > li { position: relative; display: flex; align-items: center; }
.mainnav a.top { color: var(--ink); font-weight: 700; text-decoration: none; padding: 10px 10px; font-size: 16px; }
.mainnav a.top:hover, .mainnav a.top[aria-current] { color: var(--brick); }
.dd-toggle { background: none; border: 0; padding: 10px 6px 10px 0; cursor: pointer; color: var(--ink); min-height: 44px; }
.dd-toggle svg { width: 14px; height: 14px; transition: transform .15s; }
.dd-toggle[aria-expanded=true] svg { transform: rotate(180deg); }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 300px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brick); box-shadow: 0 10px 24px rgba(25,29,33,.14);
  list-style: none; padding: 8px 0; display: none; }
.dropdown a { display: block; padding: 10px 18px; color: var(--ink); text-decoration: none; font-size: 15px; }
.dropdown a:hover { background: var(--alt); color: var(--brick); }
.has-dd:hover .dropdown, .has-dd:focus-within .dropdown, .dropdown.open { display: block; }
.nav-actions { display: flex; gap: 10px; margin-left: 10px; }
.nav-actions .btn { min-height: 46px; padding: 10px 16px; font-size: 15px; }
.burger { display: none; background: none; border: 2px solid var(--char); border-radius: var(--radius); width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; margin-right: -4px; }
.burger svg { width: 24px; height: 24px; }
.mobile-panel { display: none; }
@media (max-width: 1199px) {
  .mainnav { display: none; }
  .burger { display: inline-flex; }
  .hdr { min-height: 70px; }
  .brand img { height: 56px; }
  .mobile-panel { position: fixed; inset: 70px 0 0 0; background: #fff; overflow-y: auto; padding: 16px 20px 32px; z-index: 60; border-top: 1px solid var(--line); }
  .mobile-panel.open { display: block; }
  .mobile-panel ul { list-style: none; }
  .mobile-panel > ul > li { border-bottom: 1px solid var(--line); }
  .mobile-panel .row { display: flex; justify-content: space-between; align-items: center; }
  .mobile-panel a.m-top { display: block; padding: 14px 0; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 18px; flex: 1; }
  .mobile-panel .sub { display: none; padding: 0 0 10px 14px; }
  .mobile-panel .sub.open { display: block; }
  .mobile-panel .sub a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; }
  .m-toggle { background: none; border: 0; width: 48px; height: 48px; cursor: pointer; }
  .m-toggle svg { width: 18px; height: 18px; }
  .m-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
  .m-actions .btn { width: 100%; }
  body.menu-open { overflow: hidden; }
}

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 899px) {
  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--char); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .callbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; background: var(--gold); color: var(--ink); font-weight: 700; text-decoration: none; border-radius: var(--radius); border: 2px solid var(--gold); }
  .callbar svg { width: 20px; height: 20px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body.menu-open .callbar, body.dialog-open .callbar { display: none; }
}

/* Sections, heading system E2 */
main > section { padding: 76px 0; }
@media (max-width: 760px) { main > section { padding: 48px 0; } }
.bg-page { background: var(--page); } .bg-alt { background: var(--alt); } .bg-tint { background: var(--tint); }
.bg-brick { background: var(--brick); color: #fff; } .bg-char { background: var(--char); color: #fff; }
.sec-head { text-align: center; max-width: 820px; margin: 0 auto 38px; }
.sec-head::before { content: ""; display: block; width: 40px; height: 4px; background: var(--gold); margin: 0 auto 16px; }
.bg-page .sec-head::before, .bg-alt .sec-head::before, .bg-tint .sec-head::before { background: var(--brick); }
.sec-head p { color: var(--muted); font-size: 18px; margin: 0; }
.on-dark .sec-head p { color: #F3EDE9; }

/* I6 hex line icons */
.hex { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; flex: none; }
.hex > svg.hexframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.hex > svg.icon { position: relative; width: 26px; height: 26px; fill: none; stroke: var(--char); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.hexframe path { fill: var(--gold-tint); stroke: var(--gold); stroke-width: 1.5; }
.on-dark .hexframe path { fill: rgba(228,174,36,.16); stroke: var(--gold); }
.on-dark .hex > svg.icon { stroke: #fff; }
.hex.sm { width: 40px; height: 40px; } .hex.sm > svg.icon { width: 20px; height: 20px; }

/* H15 parapet window hero */
.hero { padding: 0 !important; background: var(--brick); color: #fff; overflow: hidden; }
.hero-band { text-align: center; padding: 34px 0 30px; }
.crumbs { font-size: 14px; color: #F3E3DF; margin-bottom: 14px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .8; }
.crumbs a { color: #fff; }
.chip { display: inline-block; background: rgba(0,0,0,.18); border: 1px solid var(--gold); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; margin-bottom: 16px; }
.hero h1 { max-width: 900px; margin: 0 auto 14px; color: #fff; }
.hero .intro { max-width: 700px; margin: 0 auto 22px; font-size: 19px; color: #FBF1EE; }
.window { position: relative; max-width: 1160px; margin: 8px auto 0; padding: 0 20px; }
.window-frame { position: relative; aspect-ratio: 21 / 8; clip-path: polygon(0 16%, 40% 16%, 40% 0, 100% 0, 100% 100%, 0 100%); background: var(--char); }
.window-frame img { width: 100%; height: 100%; object-fit: cover; }
.coping { position: absolute; left: 20px; right: 20px; top: 0; height: 100%; pointer-events: none; }
.coping svg { width: 100%; height: 100%; overflow: visible; }
.coping .cp-m { display: none; }
.coping polyline { fill: none; stroke: var(--gold); stroke-width: 5; vector-effect: non-scaling-stroke; stroke-linejoin: miter; }
@media (max-width: 760px) {
  .hero-band { padding: 24px 0 22px; }
  .hero .btn-pair { flex-direction: column; align-items: stretch; }
  .hero .btn-pair .btn { width: 100%; }
  .window { padding: 0; }
  .coping { left: 0; right: 0; }
  .coping .cp-d { display: none; } .coping .cp-m { display: inline; }
  .window-frame { aspect-ratio: 4 / 3; clip-path: polygon(0 9%, 46% 9%, 46% 0, 100% 0, 100% 100%, 0 100%); }
}

/* Fact strip */
.facts { padding: 28px 0 !important; }
.facts ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.facts li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; }
@media (max-width: 900px) { .facts ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .facts ul { grid-template-columns: 1fr; } }

/* Grids */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .g4, .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.g3.six { }

/* R5 photo condition cards */
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.pcard img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.pcard .lbl { display: flex; align-items: center; gap: 12px; padding: 16px 18px 6px; }
.pcard .lbl h3 { margin: 0; }
.pcard p { padding: 4px 18px 18px; margin: 0; color: var(--ink); }

/* S19 slope scale */
.gauge { max-width: 1100px; margin: 0 auto 34px; }
.gauge svg { width: 100%; height: auto; display: block; }
.gauge text { font-family: var(--body); }
.slope-cards .scard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.scard img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.scard .in { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.slope-chip { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--brick); border: 1px solid var(--brick); border-radius: 99px; padding: 3px 10px; margin-bottom: 10px; }
.scard ul, .svc ul, .fitlist { list-style: none; margin: 0 0 14px; }
.scard li, .svc li, .fitlist li { position: relative; padding-left: 20px; margin-bottom: 6px; font-size: 16px; }
.scard li::before, .svc li::before, .fitlist li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; background: var(--brick); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.scard .more, .svc .more { margin-top: auto; font-weight: 700; }
@media (max-width: 680px) { .gauge .full { display: none; } }
@media (min-width: 681px) { .gauge .compact { display: none; } }

/* P8 step cards */
.steps { display: grid; gap: 22px; grid-template-columns: repeat(6, 1fr); counter-reset: s; }
.steps .step { grid-column: span 2; }
.steps.five .step:nth-child(4), .steps.five .step:nth-child(5) { grid-column: span 3; }
.steps.four { grid-template-columns: repeat(4, 1fr); } .steps.four .step { grid-column: span 1; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.step img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.step .in { padding: 0 18px 20px; position: relative; }
.step .num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brick); color: #fff; font-family: var(--head); font-weight: 700; font-size: 19px; margin-top: -22px; border: 3px solid #fff; position: relative; }
.step h3 { margin: 10px 0 8px; }
.step p { margin: 0; }
@media (max-width: 1080px) { .steps, .steps.four { grid-template-columns: 1fr 1fr; } .steps .step, .steps.five .step:nth-child(4), .steps.five .step:nth-child(5), .steps.four .step { grid-column: span 1; } .steps.five .step:nth-child(5) { grid-column: span 2; } }
@media (max-width: 680px) { .steps, .steps.four { grid-template-columns: 1fr; } .steps.five .step:nth-child(5) { grid-column: span 1; } }

/* C4 rule band */
.band { text-align: center; }
.band .rules { border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); padding: 34px 10px; max-width: 900px; margin: 0 auto; }
.band h2 { color: #fff; margin-bottom: 10px; }
.band p { max-width: 640px; margin: 0 auto 10px; color: #FBF1EE; }
.band .bignum { display: block; font-family: var(--head); font-size: clamp(30px, 3vw + 16px, 48px); color: #fff; text-decoration: none; margin: 8px 0 18px; letter-spacing: .02em; }
.band .bignum:hover { color: var(--gold); }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1040px; margin: 0 auto; }
.ccol { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.ccol.good { border-top: 5px solid var(--brick); } .ccol.other { border-top: 5px solid var(--char); }
.ccol .chead { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ccol .chead h3 { margin: 0; }
.ccol ul { list-style: none; }
.ccol li { padding: 9px 0 9px 26px; border-top: 1px solid var(--line); position: relative; }
.ccol li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 10px; height: 10px; border: 2px solid var(--brick); transform: rotate(45deg); }
.ccol.other li::before { border-color: var(--char); border-radius: 50%; transform: none; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* B3 split checklist */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.checklist { list-style: none; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .hex { margin-top: -4px; }
.split .lead { font-size: 18px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 26px; } }

/* Tables */
.tbl-wrap { max-width: 1060px; margin: 0 auto; }
table.spec { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.spec th, .spec td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 16px; }
.spec thead th { background: var(--char); color: #fff; font-family: var(--head); font-weight: 700; }
.spec tbody th { font-weight: 700; color: var(--brick); width: 22%; }
@media (max-width: 760px) {
  .spec thead { display: none; }
  .spec, .spec tbody, .spec tr, .spec th, .spec td { display: block; width: 100%; }
  .spec tr { border-bottom: 3px solid var(--alt); padding: 8px 0; }
  .spec td { border: 0; padding: 4px 16px; }
  .spec td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--char); }
  .spec tbody th { border: 0; padding: 10px 16px 4px; width: 100%; }
}

/* Service cards */
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.svc img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.svc .in { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.svc .sub { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 6px 0 6px; }
.svc .sub.look { margin-top: 2px; }

/* Icon cards */
.icard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.icard .top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.icard .top h3 { margin: 0; }
.icard p { margin: 0; }
.icard img { border-radius: 4px; margin-bottom: 14px; aspect-ratio: 16/9; object-fit: cover; }

/* M16 border fan map */
.mapwrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: start; }
.mapwrap > .mapfig { position: sticky; top: 110px; }
.mapfig { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.mapfig svg { width: 100%; height: auto; display: block; }
.mapfig text { font-family: var(--body); }
.townlist { list-style: none; }
.townlist li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.townlist li:last-child { border-bottom: 0; }
.townlist .road { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.townlist a { font-weight: 700; font-family: var(--head); font-size: 19px; }
.townlist p { margin: 2px 0 0; }
@media (max-width: 900px) { .mapwrap { grid-template-columns: 1fr; } .mapwrap > .mapfig { position: static; } }

/* Nearby links with inset */
.links-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }
.links-wrap .mapfig { padding: 8px; }
.linkcards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lcard { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brick); border-radius: var(--radius); padding: 16px 18px; }
.lcard a { font-family: var(--head); font-weight: 700; font-size: 19px; }
.lcard p { margin: 6px 0 0; }
@media (max-width: 900px) { .links-wrap { grid-template-columns: 1fr; } .links-wrap .mapfig { max-width: 340px; margin: 0 auto; } }
@media (max-width: 600px) { .linkcards { grid-template-columns: 1fr; } }

/* Town angle split */
.angle { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.angle img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }
.angle ul { list-style: none; margin-top: 10px; }
.angle li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
@media (max-width: 860px) { .angle { grid-template-columns: 1fr; gap: 24px; } }

/* F3 narrow accordion */
.acc { max-width: 760px; margin: 0 auto; }
.acc details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; min-height: 48px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary h3 { margin: 0; font-size: 19px; }
.acc summary .pm { flex: none; width: 28px; height: 28px; border: 2px solid var(--brick); border-radius: 50%; position: relative; }
.acc summary .pm::before, .acc summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--brick); transform: translate(-50%, -50%); }
.acc summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .15s; }
.acc details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc .ans { padding: 0 20px 16px; }
.acc .ans p:last-child { margin-bottom: 0; }

/* FAQ page */
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0 auto 40px; max-width: 980px; }
.jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 2px solid var(--brick); border-radius: 99px; text-decoration: none; font-weight: 700; background: #fff; }
.faqcat { max-width: 860px; margin: 0 auto 48px; scroll-margin-top: 100px; }
.faqcat:last-child { margin-bottom: 0; }
.faqcat > .cathead { display: flex; align-items: center; gap: 14px; justify-content: center; margin-bottom: 18px; }
.faqcat > .cathead h2 { margin: 0; }
.qa { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--brick); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 14px; }
.qa h3 { margin: 0 0 10px; }
.qa ul { list-style: disc; padding-left: 22px; margin: 0 0 1em; }
.qa li { margin-bottom: 4px; }
.qa table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 15px; }
.qa th, .qa td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.qa thead th { background: var(--alt); }
.qa .tscroll { overflow-x: auto; }
.qa p:last-child { margin-bottom: 0; }
.intro-band .rules { max-width: 860px; margin: 0 auto; text-align: center; }
.intro-band p { font-size: 19px; margin: 0; color: #fff; }
.intro-band .hex { margin-bottom: 12px; }
.sources { max-width: 860px; margin: 30px auto 0; font-size: 15px; }
.sources ul { list-style: disc; padding-left: 22px; columns: 2; }
@media (max-width: 700px) { .sources ul { columns: 1; } }

/* Closing */
.closing { text-align: center; }
.closing h2 { color: #fff; }
.closing p { max-width: 640px; margin: 0 auto 16px; color: #E8EAEC; }
.closing .hex { margin-bottom: 12px; }

/* Forms (contact, callback) */
.formcard { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 38px); }
.fld { margin-bottom: 18px; }
.fld label { display: block; font-weight: 700; margin-bottom: 6px; }
.fld input, .fld textarea { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; min-height: 48px; border: 2px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--ink); }
.fld input[aria-invalid=true], .fld textarea[aria-invalid=true] { border-color: #A3261B; }
.fld .err { color: #A3261B; font-size: 15px; margin: 6px 0 0; }
.fld .opt { font-weight: 400; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 12px 14px; border-radius: var(--radius); margin: 0 0 16px; font-weight: 700; }
.form-status.ok { background: #E5F1E8; color: #1D5B33; border: 1px solid #1D5B33; }
.form-status.bad { background: #FBEBE9; color: #8E1A11; border: 1px solid #8E1A11; }
.form-status.busy { background: var(--alt); color: var(--ink); border: 1px solid var(--border); }
.form-note { font-size: 15px; color: var(--muted); }
.page-head { padding: 54px 0 20px !important; text-align: center; }
.page-head .crumbs { color: var(--muted); }
.page-head .crumbs a { color: var(--brick); }
.page-head p { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: 18px; }
.utility { padding: 20px 0 70px !important; }
.contact-side { max-width: 760px; margin: 24px auto 0; display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; }

/* Callback dialog */
.cb-backdrop { position: fixed; inset: 0; background: rgba(25,29,33,.55); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cb-backdrop[hidden] { display: none; }
.cb-box { background: #fff; border-radius: var(--radius); max-width: 440px; width: 100%; padding: 26px 24px 22px; position: relative; border-top: 6px solid var(--brick); max-height: 92vh; overflow-y: auto; }
.cb-box h2 { font-size: 24px; margin-bottom: 6px; }
.cb-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; font-size: 26px; line-height: 1; color: var(--ink); }
.cb-box .btn { width: 100%; }
.cb-call { text-align: center; margin: 12px 0 0; }

/* Legal */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 26px; margin-top: 1.4em; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }

/* Calculator restyle */
.roof-calc { --calc-font-head: var(--head); --calc-font-body: var(--body); --calc-text: var(--ink); --calc-muted: #4F555B; --calc-surface: #fff; --calc-surface-alt: var(--alt);
  --calc-border: var(--border); --calc-accent: var(--brick); --calc-accent-text: #fff; --calc-accent-hover: var(--brick-deep); --calc-track: #E6E1DA; --calc-focus: var(--brick); --calc-radius: 6px; }
.roof-calc .calc-card { border-top: 6px solid var(--brick); }
.roof-calc .calc-btn-primary { background: var(--gold); color: var(--ink); border: 2px solid var(--ink); }
.roof-calc .calc-btn-primary:hover { background: var(--gold-hover); color: var(--ink); }
.roof-calc .choice-card:has(input:checked) { border-color: var(--brick); box-shadow: inset 0 0 0 1px var(--brick); }

/* Footer */
.site-footer { background: var(--char); color: #E8EAEC; padding: 56px 0 26px; font-size: 16px; }
.site-footer a { color: #fff; }
.ft-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; }
.ft-brand .plate { background: #fff; display: inline-block; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px; }
.ft-brand .plate img { height: 92px; width: auto; }
.site-footer h2 { font-size: 18px; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.ft-bottom { border-top: 1px solid rgba(255,255,255,.18); margin-top: 34px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: space-between; font-size: 15px; }
.ft-bottom ul { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 900px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ft-grid { grid-template-columns: 1fr; } }

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

.wideimg { max-width: 1060px; margin: 0 auto 30px; }
.wideimg img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 760px) {
  .roof-calc .choice-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .roof-calc .choice-list .choice-card { grid-template-columns: 40px 1fr; }
  .roof-calc .choice-list .choice-card > b { display: none; }
  .roof-calc .calc-card { padding: 26px 32px; }
  .roof-calc .question-help { margin-bottom: 14px; }
}
.roof-calc .choice-card { position: relative; }
