/* Deer Valley Commercial Roofing Contractor
   Signature H11-S8-P5-B7-R3-F4-M7-C2-I1-E5 · Rubik / Lato · dark bronze + gold, signal red */
:root {
  --bronze: #5A4615;
  --bronze-2: #4A3A11;
  --gold: #D4A000;
  --gold-soft: #E9C24A;
  --red: #C73421;
  --red-hover: #A82B1A;
  --page: #FFFFFF;
  --alt: #F4F4F1;
  --tint: #FAF3DC;
  --deep: #20262A;
  --text: #20262A;
  --muted: #5C5A55;
  --border: #8A8780;
  --line: #DAD7CE;
  --focus: #20262A;
  --focus-dark: #E9C24A;
  --head: 'Rubik', 'Segoe UI', Arial, sans-serif;
  --body: 'Lato', 'Segoe UI', Arial, sans-serif;
  --wrap: 1180px;
  --r: 10px;
}
*, *::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(--text); background: var(--page); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bronze); text-underline-offset: 3px; }
a:hover { color: var(--red-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.bg-band :focus-visible, .bg-dark :focus-visible, .bg-deep :focus-visible, .site-footer :focus-visible, .hero-card :focus-visible { outline-color: var(--focus-dark); }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(31px, 2.2vw + 22px, 52px); font-weight: 800; }
h2 { font-size: clamp(26px, 1.2vw + 20px, 38px); font-weight: 800; }
h3 { font-size: clamp(19px, .4vw + 17px, 22px); font-weight: 700; }
p { margin: 0 0 .9em; }
ul, ol { margin: 0; padding: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 10px 14px; }
.skip:focus { left: 12px; }
[hidden] { display: none !important; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 8px;
  font-family: var(--head); font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; line-height: 1.1; cursor: pointer; transition: background-color .15s, color .15s; }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-hover); border-color: var(--red-hover); color: #fff; }
.btn-secondary { background: #fff; color: var(--bronze); border-color: var(--bronze); }
.btn-secondary:hover { background: var(--tint); color: var(--bronze-2); }
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-ico { width: 18px; height: 18px; flex: none; }
.bg-band .btn-primary, .bg-dark .btn-primary, .bg-deep .btn-primary, .hero-card .btn-primary { border-color: #fff; }
.bg-band .btn-secondary, .bg-deep .btn-secondary, .hero-card .btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.bg-band .btn-secondary:hover, .bg-deep .btn-secondary:hover, .hero-card .btn-secondary:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-pair { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.center-btn { text-align: center; margin-top: 32px; }
.text-link { font-weight: 700; }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.hdr { max-width: 1320px; margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; gap: 16px; }
.logo img { height: 62px; width: auto; }
.desk-nav { display: none; margin-left: auto; align-items: center; gap: 18px; }
.nav-list { list-style: none; display: flex; gap: 2px; align-items: center; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list a { display: block; padding: 10px 9px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 15.5px; }
.nav-list a:hover, .nav-list a[aria-current] { color: var(--red-hover); }
.sub-toggle { background: none; border: 0; padding: 6px 4px; cursor: pointer; color: var(--text); min-width: 24px; min-height: 32px; }
.sub-toggle svg { width: 12px; height: 12px; }
.dropdown { list-style: none; position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: 0 0 8px 8px; box-shadow: 0 10px 24px rgba(32,38,42,.14); padding: 6px; display: none; z-index: 50; }
.has-sub.open .dropdown, .has-sub:hover .dropdown, .has-sub:focus-within .dropdown { display: block; }
.dropdown a { padding: 10px 12px; border-radius: 6px; font-weight: 400; }
.dropdown a:hover { background: var(--alt); }
.nav-cta { display: flex; gap: 8px; }
.burger { margin-left: auto; width: 48px; height: 48px; border: 2px solid var(--bronze); border-radius: 8px; background: #fff; display: inline-flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px; cursor: pointer; margin-right: -4px; }
.burger span { width: 22px; height: 2.5px; background: var(--bronze); border-radius: 2px; transition: transform .15s, opacity .15s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.m-panel { border-top: 1px solid var(--line); background: #fff; max-height: calc(100vh - 78px); overflow-y: auto; padding: 8px 20px 20px; }
.m-list { list-style: none; }
.m-list > li { border-bottom: 1px solid var(--line); }
.m-row { display: flex; align-items: center; justify-content: space-between; }
.m-row a { flex: 1; padding: 13px 0; font-weight: 700; color: var(--text); text-decoration: none; }
.m-sub-toggle { width: 48px; height: 48px; border: 0; background: none; color: var(--text); }
.m-sub-toggle svg { width: 14px; height: 14px; transition: transform .15s; }
.m-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.m-sub { list-style: none; padding: 0 0 10px 14px; }
.m-sub a { display: block; padding: 10px 0; color: var(--text); }
.m-cta { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
.m-cta .btn { width: 100%; }
@media (min-width: 1200px) {
  .desk-nav { display: flex; }
  .burger, .m-panel { display: none !important; }
}

/* sections and heading system (E5) */
.sec { padding: 48px 0; }
@media (min-width: 900px) { .sec { padding: 76px 0; } }
.bg-page { background: var(--page); }
.bg-alt { background: var(--alt); }
.bg-tint { background: var(--tint); }
.bg-dark { background: var(--bronze); color: #fff; }
.bg-band { background: var(--bronze); color: #fff; }
.bg-deep { background: var(--deep); color: #fff; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 34px; }
.chip { display: inline-block; background: var(--gold); color: var(--deep); font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin: 0 0 14px; }
.sec-intro { color: var(--muted); font-size: 18px; margin: 0; }
.bg-band .sec-intro, .bg-deep .sec-intro, .bg-dark .sec-intro { color: #EFEAE0; }
.mini { width: 18px; height: 18px; flex: none; }
.icon { width: 28px; height: 28px; color: var(--red); flex: none; }
.bg-dark .icon, .bg-band .icon, .bg-deep .icon { color: var(--gold-soft); }

/* H11 Bridge Card hero */
.hero { position: relative; background: var(--alt); }
.crumbs { position: relative; z-index: 2; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; padding: 10px 20px; max-width: var(--wrap); margin: 0 auto; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--text); }
.hero-photo img { width: 100%; height: clamp(260px, 42vw, 560px); object-fit: cover; }
.hero-bridge { padding: 0 20px 48px; }
.hero-card { background: var(--bronze); color: #fff; border-radius: 12px; padding: 28px 22px; text-align: center; max-width: 860px; margin: 0 auto;
  border-top: 5px solid var(--gold); box-shadow: 0 16px 40px rgba(32,38,42,.22); }
.hero-card h1 { color: #fff; margin-bottom: 12px; }
.hero-intro { font-size: 18px; color: #F3EEE2; max-width: 640px; margin: 0 auto 20px; }
.hero-card .chip { margin-bottom: 12px; }
@media (max-width: 899px) {
  .hero { display: flex; flex-direction: column; }
  .hero .crumbs { order: 0; }
  .hero-bridge { order: 1; padding: 16px 16px 0; }
  .hero-photo { order: 2; padding: 16px 16px 32px; }
  .hero-photo img { border-radius: 10px; height: 240px; }
  .hero-card .btn-pair { flex-direction: column; }
  .hero-card .btn { width: 100%; }
}
@media (min-width: 900px) {
  .hero-bridge { margin-top: -120px; position: relative; z-index: 2; padding-bottom: 64px; }
  .hero-card { padding: 34px 48px 36px; }
}

/* facts strip */
.sec-facts { padding: 26px 0; }
.facts { list-style: none; display: grid; grid-template-columns: 1fr; gap: 16px; }
.facts li { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center; }
.facts .icon { grid-row: span 2; width: 32px; height: 32px; }
.f-label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; }
.f-value { font-family: var(--head); font-weight: 700; font-size: 18px; color: #fff; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); } }

/* S8 carousel */
.carousel { position: relative; }
.car-track { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 14px; scrollbar-width: thin; }
.car-track:focus-visible { outline-offset: 2px; }
@media (min-width: 700px) { .car-track { grid-auto-columns: calc((100% - 18px) / 2); } }
@media (min-width: 1100px) { .car-track { grid-auto-columns: calc((100% - 36px) / 3); } }
.car-card { scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.car-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.car-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.car-body .text-link { margin-top: auto; }
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 4px 0 16px; font-size: 15px; }
.fit ul { list-style: none; }
.fit li { padding: 3px 0; border-bottom: 1px dashed var(--line); }
.fit-h { display: flex; gap: 6px; align-items: center; font-weight: 700; margin: 0 0 4px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
.fit-h .mini { color: var(--red); }
.car-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.car-btn { min-height: 44px; min-width: 96px; border: 2px solid var(--bronze); background: #fff; color: var(--bronze); border-radius: 8px; font-weight: 700; font-family: var(--head); cursor: pointer; }
.car-btn:hover { background: var(--tint); }
.car-btn:disabled { opacity: .45; cursor: default; }
.car-status { font-size: 15px; color: var(--muted); min-width: 64px; text-align: center; }

/* tables */
.table-wrap { overflow-x: auto; }
table.spec { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 16px; }
.spec th, .spec td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec thead th { background: var(--bronze); color: #fff; font-family: var(--head); font-size: 15px; }
.spec tbody th { font-family: var(--head); font-weight: 700; }
.spec tbody tr:last-child > * { border-bottom: 0; }
.table-note { text-align: center; color: var(--muted); margin: 18px auto 0; max-width: 720px; }
@media (max-width: 759px) {
  .spec thead { display: none; }
  .spec, .spec tbody, .spec tr, .spec th, .spec td { display: block; width: 100%; }
  .spec { border: 0; background: none; }
  .spec tr { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 14px; overflow: hidden; }
  .spec tbody th { background: var(--bronze); color: #fff; }
  .spec td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
}

/* compare */
.cmp { display: grid; gap: 20px; }
@media (min-width: 800px) { .cmp { grid-template-columns: 1fr 1fr; } }
.cmp-col { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; border-top: 5px solid var(--gold); }
.cmp-no { border-top-color: var(--red); }
.cmp-col ul { list-style: none; }
.cmp-col li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.cmp-col li:last-child { border-bottom: 0; }
.cmp-yes .mini { color: var(--bronze); margin-top: 3px; }
.cmp-no .mini { color: var(--red); margin-top: 3px; }

/* P5 */
.p5 { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .p5 { grid-template-columns: 340px 1fr; } .insp-card { position: sticky; top: 100px; } }
.insp-card { background: #fff; border: 2px solid var(--bronze); border-radius: var(--r); padding: 22px; }
.insp-title { display: flex; gap: 10px; align-items: center; font-family: var(--head); font-weight: 700; font-size: 20px; margin-bottom: 12px; }
.insp-card ul { list-style: none; }
.insp-card li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 16px; }
.insp-card .mini { color: var(--red); margin-top: 3px; }
.visit { list-style: none; position: relative; }
.visit::before { content: ''; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 0 0 22px; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--bronze); color: #fff; display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 18px; position: relative; z-index: 1; border: 3px solid var(--gold); }
.step-body { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.step-body p { margin: 0; }
.step-photo { grid-column: 2; }
.step-photo img { border-radius: var(--r); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
@media (min-width: 700px) {
  .step.has-photo { grid-template-columns: 44px 1fr 220px; }
  .step.has-photo .step-photo { grid-column: 3; }
}
.bg-alt .step-body, .bg-tint .step-body { background: #fff; }

/* C2 band */
.sec-band { padding: 0; }
.sec-band .wrap { padding: 0; max-width: none; }
.band { display: grid; }
.band-img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.band-text { padding: 48px 24px; max-width: 620px; }
.band-text h2 { color: #fff; }
.band-text p { color: #F3EEE2; font-size: 18px; }
.band-action { margin-top: 18px; text-align: center; }
@media (min-width: 900px) {
  .band { grid-template-columns: 1fr 1fr; min-height: 360px; }
  .band-text { padding: 64px 56px; align-self: center; text-align: center; }
}
@media (max-width: 899px) { .band-text { text-align: center; margin: 0 auto; } .band-img { max-height: 260px; } }

/* R3 roof plan */
.r3 { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .r3 { grid-template-columns: 1.05fr 1fr; } .r3-plan { position: sticky; top: 100px; } }
.r3-plan { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.roof-plan { width: 100%; height: auto; }
.callouts { list-style: none; display: grid; gap: 12px; }
.callouts li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 8px; padding: 14px 16px; }
.co-num { width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; display: grid; place-items: center; font-family: var(--head); }
.co-body h3 { display: flex; gap: 8px; align-items: center; font-size: 19px; margin-bottom: 4px; }
.co-ico { width: 22px; height: 22px; }
.co-body p { margin: 0; font-size: 16px; }

/* B7 */
.b7 { display: grid; gap: 22px; }
@media (min-width: 800px) { .b7 { grid-template-columns: 1fr 1fr; } }
.b7-col { border-radius: var(--r); padding: 24px; border: 1px solid var(--line); background: #fff; }
.b7-col h3 { text-align: center; padding-bottom: 12px; border-bottom: 3px solid var(--red); }
.b7-after h3 { border-bottom-color: var(--gold); }
.b7-col ul { list-style: none; }
.b7-col li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.b7-col li:last-child { border-bottom: 0; }
.b7-ico { width: 24px; height: 24px; margin-top: 2px; }
.b7-after .b7-ico { color: var(--bronze); }
.b7-t { font-weight: 700; margin: 0 0 2px; }
.b7-col li p:last-child { margin: 0; font-size: 16px; }

/* M7 grid map */
.m7 { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .m7 { grid-template-columns: 1fr 1fr; } }
.m7-map, .links-map { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.grid-map { width: 100%; height: auto; }
.grid-map .m-grid { font: 700 14px var(--body); fill: var(--muted); }
.grid-map .m-town { font: 15px var(--body); fill: var(--deep); }
.grid-map .m-road { font: 700 12px var(--body); fill: #fff; }
.grid-map .m-note { font: italic 12px var(--body); fill: var(--muted); }
.grid-map-sm .m-town { font-size: 19px; }
.town-list { list-style: none; display: grid; gap: 10px; }
.town-list li { display: grid; grid-template-columns: 46px 1fr; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.cell { display: grid; place-items: center; height: 40px; border-radius: 6px; background: var(--tint); border: 2px solid var(--gold); font-family: var(--head); font-weight: 800; color: var(--bronze); }
.town-list h3 { font-size: 18px; margin: 0 0 2px; }
.town-list p { margin: 0; font-size: 16px; }

/* F4 */
.f4 { display: grid; gap: 18px; }
@media (min-width: 860px) { .f4 { grid-template-columns: 1fr 1fr; } }
.faq-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; border-top: 4px solid var(--gold); }
.faq-card h3 { font-size: 19px; }
.faq-card p:last-child { margin-bottom: 0; }
.bg-alt .faq-card, .bg-tint .faq-card { background: #fff; }

/* closing */
.closing { text-align: center; max-width: 760px; margin: 0 auto; }
.closing h2 { color: #fff; }
.closing p { color: #E8E4DA; font-size: 18px; margin-bottom: 22px; }
@media (max-width: 599px) { .closing .btn-pair, .band-action { flex-direction: column; } .closing .btn, .band-action .btn { width: 100%; } }

/* svc cards */
.svc-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .svc-grid.n2, .svc-grid.n4 { grid-template-columns: 1fr 1fr; } .svc-grid.n3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .svc-grid.n3 { grid-template-columns: repeat(3, 1fr); } .svc-grid.n4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) and (max-width: 999px) { .svc-grid.n3 > :last-child { grid-column: 1 / -1; } }
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.svc-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.svc-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.svc-body .text-link { margin-top: auto; }

/* split */
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split-img img { border-radius: var(--r); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.split-list { list-style: none; }
.split-list li { display: flex; gap: 10px; padding: 6px 0; }
.split-list .mini { color: var(--red); margin-top: 4px; }

/* links */
.links-wrap { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .links-wrap { grid-template-columns: 300px 1fr; } }
.link-grid { list-style: none; display: grid; gap: 14px; }
@media (min-width: 700px) { .link-grid { grid-template-columns: 1fr 1fr; } }
.link-card { display: block; height: 100%; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; padding: 16px; text-decoration: none; color: var(--text); }
.link-card:hover { border-color: var(--bronze); }
.lc-name { display: block; font-family: var(--head); font-weight: 700; color: var(--bronze); font-size: 18px; margin-bottom: 4px; }
.lc-text { font-size: 16px; }

/* icon cards */
.i-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .i-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .i-grid.n6, .i-grid.n3 { grid-template-columns: repeat(3, 1fr); } }
.i-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.i-card .icon { margin-bottom: 10px; width: 32px; height: 32px; }
.i-card p { margin: 0; font-size: 16px; }

/* checklist */
.cl { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .cl.cl-photo { grid-template-columns: 1.1fr 1fr; } }
.cl-list { list-style: none; display: grid; gap: 10px; }
@media (min-width: 700px) { .cl:not(.cl-photo) .cl-list { grid-template-columns: 1fr 1fr; } }
.cl-list li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.cl-list .icon { width: 24px; height: 24px; }
.cl-img img { border-radius: var(--r); aspect-ratio: 3 / 2; object-fit: cover; }

/* text hero (FAQ, utility) */
.sec-texthero { text-align: center; padding: 36px 0 52px; }
.sec-texthero .crumbs-plain ol { justify-content: center; padding: 0 0 18px; }
.sec-texthero .sec-intro { max-width: 760px; margin: 0 auto; }

/* FAQ page */
.jump { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 auto 36px; list-style: none; }
.jump a { display: inline-block; padding: 10px 16px; min-height: 44px; border: 2px solid var(--bronze); border-radius: 999px; text-decoration: none; font-weight: 700; background: #fff; }
.faq-cat { margin-bottom: 44px; scroll-margin-top: 100px; }
.faq-cat > h2 { text-align: center; }
.faq-item { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; padding: 22px 24px; margin-bottom: 16px; }
.faq-item h3 { font-size: 20px; }
.faq-item ul, .faq-item ol { padding-left: 22px; margin: 0 0 1em; }
.faq-item li { margin-bottom: 6px; }
.faq-item table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 15.5px; }
.faq-item th, .faq-item td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.faq-item thead th { background: var(--alt); }
.faq-item .note { background: var(--tint); border-radius: 6px; padding: 10px 14px; }
.faq-item > :last-child { margin-bottom: 0; }
.ans-table { overflow-x: auto; }
.sources { font-size: 15px; color: var(--muted); }
.sources ul { columns: 2 280px; padding-left: 18px; }

/* forms (contact, callback) */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; max-width: 640px; margin: 0 auto; }
.form-card label, .cb-form label { display: block; font-weight: 700; margin: 14px 0 6px; }
.form-card input, .form-card textarea, .cb-form input { width: 100%; font: inherit; padding: 12px 14px; min-height: 48px; border: 2px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); }
.form-card input[aria-invalid="true"], .form-card textarea[aria-invalid="true"], .cb-form input[aria-invalid="true"] { border-color: var(--red); }
.form-card .btn { margin-top: 18px; }
.form-msg { margin: 12px 0 0; font-weight: 700; }
.form-msg.err { color: #9B2414; }
.form-msg.ok { color: #2D5A1F; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-grid { display: grid; gap: 26px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr 1fr; } }
.contact-side { background: var(--alt); border-radius: var(--r); padding: 24px; }
.contact-side img { border-radius: 8px; margin-bottom: 16px; }

/* legal */
.legal { max-width: 800px; margin: 0 auto; }
.legal h2 { font-size: 24px; margin-top: 1.6em; }
.legal ul { padding-left: 22px; margin-bottom: 1em; }

/* calculator page */
.calc-head { text-align: center; max-width: 760px; margin: 0 auto 26px; }
.roof-calc {
  --calc-font-head: var(--head); --calc-font-body: var(--body); --calc-text: var(--text); --calc-muted: var(--muted);
  --calc-surface: #fff; --calc-surface-alt: var(--alt); --calc-border: var(--border); --calc-accent: var(--red); --calc-accent-text: #fff;
  --calc-accent-hover: var(--red-hover); --calc-track: #E3DFD3; --calc-focus: var(--deep); --calc-radius: 12px;
}
.roof-calc .calc-card { border-top: 5px solid var(--gold); }
.roof-calc .choice-card { border-radius: 10px; }
.roof-calc .choice-card:has(input:checked) { border-color: var(--bronze); background: var(--tint); }
.roof-calc .choice-icon svg { stroke: var(--bronze); }
.roof-calc .step-index { color: var(--bronze); font-weight: 700; }

/* footer */
.site-footer { background: var(--deep); color: #E8E4DA; padding: 52px 0 96px; }
@media (min-width: 800px) { .site-footer { padding-bottom: 28px; } }
.ft { display: grid; gap: 30px; }
@media (min-width: 800px) { .ft { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.ft-plate { display: inline-block; background: #fff; border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; }
.ft-plate img { height: 56px; width: auto; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 5px 0; }
.ft-h { font-family: var(--head); font-weight: 700; color: var(--gold-soft); text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.ft-phone a { font-family: var(--head); font-weight: 700; font-size: 20px; text-decoration: none; }
.ft-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid #3A4146; margin-top: 30px; padding-top: 18px; font-size: 14px; }
.ft-base p { margin: 0; }

/* fixed mobile call bar */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: var(--bronze); border-top: 3px solid var(--gold); }
.callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; color: #fff; font-family: var(--head); font-weight: 700; text-decoration: none; font-size: 17px; }
body.menu-open .callbar, body.no-callbar .callbar { display: none; }
@media (min-width: 800px) { .callbar { display: none; } }

/* callback dialog */
.cb { position: fixed; inset: 0; z-index: 60; background: rgba(32,38,42,.6); display: grid; place-items: center; padding: 16px; }
.cb-box { background: #fff; border-radius: 12px; max-width: 420px; width: 100%; padding: 26px; position: relative; border-top: 5px solid var(--gold); }
.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; font-size: 28px; cursor: pointer; color: var(--text); }
.cb-form .btn { margin-top: 16px; }

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

/* balanced grids: an odd last card spans the row instead of leaving an empty slot */
@media (min-width: 860px) { .f4 > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 700px) { .link-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 700px) and (max-width: 999px) { .i-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .i-grid.n4 { grid-template-columns: repeat(2, 1fr); } .i-grid.n5 > :last-child { grid-column: span 1; } }
