/* Bullhead City Commercial Roofing Contractor: site styles. Signature H4-S2-P3-B3-R6-F3-M5-C4-I2-E4 */
:root {
  --brand-dark: #6B3A20;
  --deep: #4E2A17;
  --charcoal: #252B2D;
  --accent: #245B70;
  --accent-hover: #1C4A5C;
  --cta-bg: #245B70;
  --cta-text: #FFFFFF;
  --cta-hover: #1C4A5C;
  --page-bg: #FFFFFF;
  --surface-alt: #F4F5F2;
  --surface-tint: #F3E9E1;
  --text: #252B2D;
  --text-muted: #5A6366;
  --border: #8B9497;
  --line: #D8DCDA;
  --focus-light: #245B70;
  --focus-dark: #9FD0E0;
  --head: "Roboto Slab", Rockwell, "Rockwell Nova", Georgia, "Times New Roman", serif;
  --body: "Work Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --radius: 10px;
  --wrap: 1180px;
}
*, *::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-bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus-light); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible, .band :focus-visible, .closing :focus-visible { outline-color: var(--focus-dark); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; color: var(--charcoal); margin: 0 0 .5em; overflow-wrap: normal; word-break: normal; hyphens: manual; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.4rem); font-weight: 600; }
h1 em, h2 em { font-style: italic; color: var(--brand-dark); font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: var(--charcoal); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; 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(--body); font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; text-align: center; }
.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-secondary { background: #fff; color: var(--charcoal); border-color: var(--charcoal); }
.btn-secondary:hover { background: var(--surface-alt); color: var(--charcoal); }
.on-dark .btn-primary { border-color: #fff; }
.on-dark .btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.on-dark .btn-secondary:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-pair { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.btn-single { display: flex; justify-content: center; margin-top: 26px; }
@media (max-width: 599px) { .btn-pair { flex-direction: column; align-items: stretch; } .btn-pair .btn { width: 100%; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo-link { display: inline-flex; flex: none; }
.logo-link 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; }
.main-nav > ul > li { position: relative; display: flex; align-items: center; }
.main-nav a.nav-link { display: inline-block; padding: 10px 9px; color: var(--charcoal); text-decoration: none; font-weight: 600; font-size: .95rem; }
.main-nav a.nav-link:hover, .main-nav a.nav-link[aria-current=page] { color: var(--accent); }
.dd-toggle { background: none; border: 0; padding: 10px 4px; margin-left: -6px; cursor: pointer; color: var(--charcoal); 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-radius: 8px; box-shadow: 0 12px 28px rgba(37,43,45,.14); padding: 8px; list-style: none; display: none; }
.dropdown.open, li:hover > .dropdown, li:focus-within > .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 12px; color: var(--charcoal); text-decoration: none; border-radius: 6px; font-size: .95rem; }
.dropdown a:hover { background: var(--surface-tint); color: var(--brand-dark); }
.nav-ctas { display: flex; gap: 8px; margin-left: 10px; }
.nav-ctas .btn { min-height: 44px; padding: 10px 16px; font-size: .95rem; }
.burger { display: none; background: none; border: 2px solid var(--charcoal); border-radius: 6px; width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; color: var(--charcoal); }
.burger svg { width: 24px; height: 24px; }
.mobile-panel { display: none; }
@media (max-width: 1239px) {
  .main-nav { display: none; }
  .burger { display: inline-flex; margin-right: -4px; }
  .logo-link img { height: 50px; }
  .header-inner { min-height: 68px; }
  .mobile-panel { position: fixed; inset: 69px 0 0 0; background: #fff; overflow-y: auto; padding: 12px 20px 40px; border-top: 1px solid var(--line); z-index: 60; }
  .mobile-panel.open { display: block; }
  .mobile-panel ul { list-style: none; }
  .mobile-panel > ul > li { border-bottom: 1px solid var(--line); }
  .m-row { display: flex; align-items: center; justify-content: space-between; }
  .mobile-panel a.m-link { display: block; padding: 14px 4px; color: var(--charcoal); text-decoration: none; font-weight: 600; flex: 1; }
  .m-sub-toggle { background: none; border: 0; width: 48px; height: 48px; cursor: pointer; color: var(--charcoal); }
  .m-sub-toggle svg { width: 16px; height: 16px; }
  .m-sub-toggle[aria-expanded=true] svg { transform: rotate(180deg); }
  .m-sub { display: none; padding: 0 0 10px 12px; }
  .m-sub.open { display: block; }
  .m-sub a { display: block; padding: 10px 4px; color: var(--accent); text-decoration: none; }
  .m-ctas { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
  .m-ctas .btn { width: 100%; }
}
@media (max-width: 380px) { .logo-link img { height: 44px; } }

/* Mobile call bar */
.call-bar { display: none; }
@media (max-width: 1239px) {
  .call-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--charcoal); padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); justify-content: center; }
  .call-bar a { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 480px; min-height: 48px; background: var(--cta-bg); color: #fff; text-decoration: none; font-weight: 600; border-radius: 6px; border: 2px solid #fff; }
  .call-bar a svg { width: 18px; height: 18px; }
  body.has-callbar { padding-bottom: 76px; }
  body.menu-open .call-bar, body.field-focus .call-bar { display: none; }
}

/* Sections and headings (E4: H2 with one italic accent phrase) */
main > section { padding: clamp(48px, 7vw, 84px) 0; }
.bg-page { background: var(--page-bg); }
.bg-alt { background: var(--surface-alt); }
.bg-tint { background: var(--surface-tint); }
.sec-head { text-align: center; max-width: 780px; margin: 0 auto 34px; }
.sec-head h2 { margin-bottom: 12px; }
.sec-head p { color: var(--text-muted); margin: 0; }
.crumbs { font-size: .85rem; margin-bottom: 14px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .7; }
.crumbs a { color: inherit; }

/* Icons (I2: glyph inside a filled teal circle) */
svg.icon { width: 46px; height: 46px; flex: none; }
svg.icon .ic-bg { fill: var(--accent); }
svg.icon .ic-g { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.icon .ic-f { fill: #fff; stroke: none; }
svg.icon.sm { width: 34px; height: 34px; }

/* H4 hero */
.hero { padding: 0 !important; position: relative; background: var(--brand-dark); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(37,43,45,.50) 0%, rgba(37,43,45,.62) 55%, rgba(78,42,23,.80) 100%); }
.hero-body { position: relative; z-index: 1; color: #fff; text-align: center; padding: clamp(70px, 9vw, 120px) 20px 40px; max-width: 900px; margin: 0 auto; }
.hero-body h1 { color: #fff; margin-bottom: 14px; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.hero-body h1 em { color: #F6D9C4; }
.hero-body .eyebrow { display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; color: #fff; }
.hero-body .intro { font-size: 1.12rem; max-width: 680px; margin: 0 auto; color: #fff; }
.hero-body .crumbs a, .hero-body .crumbs { color: #fff; }
.facts { position: relative; z-index: 1; background: rgba(37,43,45,.92); color: #fff; }
.facts ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--wrap); margin: 0 auto; }
.facts li { display: flex; gap: 12px; align-items: center; padding: 18px 20px; border-left: 1px solid rgba(255,255,255,.18); }
.facts li:first-child { border-left: 0; }
.facts .lbl { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #CFE5EC; }
.facts .val { display: block; font-weight: 600; font-size: .98rem; }
.facts svg.icon { width: 38px; height: 38px; }
@media (max-width: 899px) {
  .hero { background: var(--brand-dark); }
  .hero-media { position: relative; inset: auto; order: 2; }
  .hero-media::after { display: none; }
  .hero-media img { aspect-ratio: 3 / 2; height: auto; }
  .hero-inner { display: flex; flex-direction: column; }
  .hero-body { order: 1; padding: 36px 20px 32px; }
  .hero-body h1 { text-shadow: none; }
  .facts { order: 3; background: var(--charcoal); }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li { border-left: 0; border-top: 1px solid rgba(255,255,255,.15); padding: 14px 16px; }
}
@media (max-width: 479px) { .facts ul { grid-template-columns: 1fr; } }
.hero-text { background: var(--brand-dark); color: #fff; text-align: center; }
.hero-text h1 { color: #fff; }
.hero-text h1 em { color: #F6D9C4; }
.hero-text .intro { max-width: 700px; margin: 0 auto; }

/* R6 inside / on the roof pairs */
.pairs { list-style: none; display: grid; gap: 16px; max-width: 1040px; margin: 0 auto; }
.pair { display: grid; grid-template-columns: 1fr 42px 1fr; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pair-in, .pair-out { padding: 20px 22px; }
.pair-in { display: grid; grid-template-columns: auto 1fr; gap: 0 14px; align-content: start; }
.pair-in svg.icon { grid-row: span 3; }
.pair-out { background: var(--surface-tint); }
.bg-tint .pair-out { background: var(--surface-alt); }
.pair .lbl { display: block; font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.pair-out .lbl { color: var(--brand-dark); }
.pair h3 { font-size: 1.12rem; margin-bottom: 6px; }
.pair p { margin: 0; font-size: .98rem; }
.pair-arrow { display: flex; align-items: center; justify-content: center; background: var(--surface-alt); color: var(--brand-dark); }
.pair-arrow svg { width: 22px; height: 22px; }
.pairs-head { display: grid; grid-template-columns: 1fr 42px 1fr; max-width: 1040px; margin: 0 auto 10px; font-family: var(--head); font-weight: 600; color: var(--charcoal); }
.pairs-head span:last-child { grid-column: 3; }
@media (max-width: 799px) {
  .pair { grid-template-columns: 1fr; }
  .pair-arrow { padding: 4px 0; }
  .pair-arrow svg { transform: rotate(90deg); }
  .pairs-head { display: none; }
}

/* S2 tile grid */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tile .tile-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.tile .fit { font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); margin-bottom: 6px; }
.tile p { margin-bottom: 14px; }
.tile .more { margin-top: auto; font-weight: 600; }
.tile.featured { grid-column: span 3; display: grid; grid-template-columns: 1.2fr 1fr; }
.tile.featured img { height: 100%; aspect-ratio: 16 / 10; }
.tile.featured .tile-body { padding: 30px 32px; justify-content: center; }
@media (max-width: 899px) { .tiles { grid-template-columns: 1fr 1fr; } .tile.featured { grid-column: span 2; grid-template-columns: 1fr; } .tile.featured img { min-height: 0; aspect-ratio: 3 / 2; } .tiles .tile:last-child:nth-child(even) { grid-column: span 2; } }
@media (max-width: 599px) { .tiles { grid-template-columns: 1fr; } .tile.featured, .tiles .tile:last-child:nth-child(even) { grid-column: auto; } }

/* Comparison columns */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 1040px; margin: 0 auto; }
.col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 22px; border-top: 5px solid var(--accent); }
.col.caution { border-top-color: var(--brand-dark); }
.col h3 { display: flex; gap: 10px; align-items: center; }
.col h3 .badge { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; background: var(--accent); color: #fff; flex: none; }
.col.caution h3 .badge { background: var(--brand-dark); }
.col h3 .badge svg { width: 16px; height: 16px; }
.col ul { list-style: none; }
.col li { padding: 9px 0 9px 22px; border-top: 1px solid var(--line); position: relative; font-size: .98rem; }
.col li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.col.caution li::before { background: var(--brand-dark); }
@media (max-width: 799px) { .compare { grid-template-columns: 1fr; } }

/* B3 split photo + checklist */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.split > figure { margin: 0; }
.split > figure img, .split-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.checks { list-style: none; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.checks li strong { display: block; font-family: var(--head); font-size: 1.05rem; color: var(--charcoal); margin-bottom: 2px; }
.checks li p { margin: 0; font-size: .97rem; }
.split-text p { margin-bottom: 12px; }
.split-text ul.dots { list-style: none; margin: 8px 0 0; }
.split-text ul.dots li { padding: 6px 0 6px 22px; position: relative; }
.split-text ul.dots li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 8px; height: 8px; background: var(--brand-dark); border-radius: 2px; }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } }

/* P3 process: photo row + 4 columns */
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 30px; }
.photo-row img { border-radius: 8px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; position: relative; }
.bg-page .step { background: var(--surface-alt); border-color: transparent; }
.step .num { display: inline-block; font-family: var(--head); font-weight: 700; font-size: .95rem; color: var(--accent); border-bottom: 2px solid var(--brand-dark); margin-bottom: 10px; }
.step h3 { font-size: 1.12rem; }
.step p { margin: 0; font-size: .97rem; }
@media (max-width: 999px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .steps { grid-template-columns: 1fr; } .photo-row { grid-template-columns: 1fr 1fr; } .photo-row img:nth-child(3) { display: none; } }

/* C4 rule band */
.band { background: var(--brand-dark); color: #fff; text-align: center; }
.band .rule-box { border-top: 1px solid rgba(255,255,255,.55); border-bottom: 1px solid rgba(255,255,255,.55); padding: 34px 10px; max-width: 860px; margin: 0 auto; }
.band h2 { color: #fff; }
.band h2 em { color: #F6D9C4; }
.band p { max-width: 640px; margin: 0 auto 6px; }
.band .big-phone { display: inline-block; font-family: var(--head); font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); font-weight: 700; color: #fff; text-decoration: none; margin: 10px 0 2px; letter-spacing: .02em; }
.band .big-phone:hover { color: #F6D9C4; }

/* Table */
.table-wrap { max-width: 1040px; margin: 0 auto; overflow-x: auto; }
table.spec { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .97rem; }
table.spec caption { caption-side: top; text-align: left; font-weight: 600; padding: 0 0 8px; color: var(--text-muted); }
table.spec th, table.spec td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec thead th { background: var(--charcoal); color: #fff; font-family: var(--head); font-weight: 600; }
table.spec tbody th { font-family: var(--head); color: var(--brand-dark); font-weight: 600; width: 24%; }
table.spec tr:last-child td, table.spec tr:last-child th { border-bottom: 0; }
.table-with-photo { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; max-width: 1180px; margin: 0 auto; }
.table-with-photo img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
@media (max-width: 999px) { .table-with-photo { grid-template-columns: 1fr; } .table-with-photo img { aspect-ratio: 3 / 2; } }
@media (max-width: 699px) {
  table.spec thead { display: none; }
  table.spec, table.spec tbody, table.spec tr, table.spec td, table.spec th { display: block; width: 100%; }
  table.spec tr { border-bottom: 1px solid var(--line); padding: 12px 14px; }
  table.spec tr:last-child { border-bottom: 0; }
  table.spec td, table.spec th { border: 0; padding: 3px 0; }
  table.spec td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--charcoal); }
}

/* Service cards, generic cards, links grid */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card .card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card .card-body > svg.icon { margin-bottom: 12px; }
.card .more { margin-top: auto; font-weight: 600; }
.card dl { margin: 6px 0 14px; font-size: .95rem; }
.card dt { font-weight: 600; color: var(--brand-dark); }
.card dd { margin: 0 0 8px; }
@media (max-width: 899px) { .cards.three { grid-template-columns: 1fr 1fr; } .cards.three > .card:last-child:nth-child(odd) { grid-column: span 2; } }
@media (max-width: 649px) { .cards, .cards.three { grid-template-columns: 1fr; } .cards.three > .card:last-child:nth-child(odd) { grid-column: auto; } }
.links-grid { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; max-width: 1040px; margin: 0 auto; }
.links-grid ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.links-grid li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 14px 16px; }
.links-grid li a { font-weight: 600; display: inline-block; margin-bottom: 4px; }
.links-grid li p { margin: 0; font-size: .95rem; }
.map-inset { width: 100%; height: auto; }
@media (max-width: 799px) { .links-grid { grid-template-columns: 1fr; } .links-grid .map-inset { max-width: 300px; margin: 0 auto; } }
@media (max-width: 549px) { .links-grid ul { grid-template-columns: 1fr; } }

/* M5 map */
.map-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px; align-items: center; }
.map-wrap svg[data-map] { width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.town-list { list-style: none; display: grid; gap: 12px; }
.town-list li { display: grid; grid-template-columns: auto 1fr; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.town-list .pin { width: 14px; height: 14px; border-radius: 50%; background: var(--brand-dark); margin-top: 7px; }
.town-list a { font-weight: 600; }
.town-list p { margin: 2px 0 0; font-size: .96rem; }
@media (max-width: 899px) { .map-wrap { grid-template-columns: 1fr; } }

/* F3 accordion */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 18px; font-family: var(--head); font-weight: 600; font-size: 1.06rem; color: var(--charcoal); position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--accent); font-family: var(--body); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 18px 16px; }
.faq .answer 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 30px; max-width: 900px; }
.jump a { display: inline-block; padding: 8px 14px; border: 1px solid var(--accent); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; min-height: 44px; line-height: 26px; }
.jump a:hover { background: var(--accent); color: #fff; }
.faq-cat { max-width: 820px; margin: 0 auto 40px; scroll-margin-top: 100px; }
.faq-cat > h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
.faq-item { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 20px 22px; margin-bottom: 14px; }
.faq-item h3 { margin-bottom: 8px; }
.faq-item p:last-child { margin-bottom: 0; }
.faq-item ul, .faq-item ol { margin: 0 0 12px 22px; }
.faq-item li { margin-bottom: 4px; }
.faq-item table.spec { margin: 6px 0 12px; font-size: .93rem; }
.sources { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px 24px; }
.sources ul { margin-left: 20px; }
.sources li { margin-bottom: 6px; font-size: .95rem; }

/* Closing CTA */
.closing { background: var(--deep); color: #fff; text-align: center; }
.closing h2 { color: #fff; }
.closing h2 em { color: #F6D9C4; }
.closing p { max-width: 640px; margin: 0 auto; }

/* Utility pages */
.utility-head { background: var(--surface-alt); padding: 44px 0 30px !important; text-align: center; }
.utility-head .intro { max-width: 660px; margin: 0 auto; color: var(--text-muted); }
.form-card { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); }
.form-card .field { margin-bottom: 18px; }
.form-card label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-card label .opt { font-weight: 400; color: var(--text-muted); }
.form-card input, .form-card textarea { width: 100%; font: inherit; color: var(--text); border: 2px solid var(--border); border-radius: 6px; padding: 12px 14px; min-height: 48px; background: #fff; }
.form-card input[aria-invalid=true], .form-card textarea[aria-invalid=true] { border-color: #A1261A; }
.form-card .err { color: #A1261A; font-size: .92rem; margin-top: 4px; }
.form-status { margin: 14px 0 0; padding: 12px 14px; border-radius: 6px; font-weight: 600; }
.form-status.ok { background: #E3F0EA; color: #1D5B33; }
.form-status.bad { background: #FBECEB; color: #8E1A11; }
.form-status.wait { background: var(--surface-alt); color: var(--charcoal); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; max-width: 1040px; margin: 0 auto; align-items: start; }
.contact-side { background: var(--surface-tint); border-radius: var(--radius); padding: 24px; }
.contact-side img { border-radius: 8px; margin-bottom: 16px; aspect-ratio: 3 / 2; object-fit: cover; }
.contact-side .btn { width: 100%; margin-top: 8px; }
@media (max-width: 849px) { .contact-grid { grid-template-columns: 1fr; } }
.legal-body { max-width: 780px; margin: 0 auto; }
.legal-body h2 { font-size: 1.4rem; margin-top: 1.6em; }
.legal-body ul { margin: 0 0 1em 22px; }

/* Calculator restyle (kit variables mapped to site tokens) */
.roof-calc { --calc-font-head: var(--head); --calc-font-body: var(--body); --calc-text: var(--text); --calc-muted: var(--text-muted); --calc-surface: #fff; --calc-surface-alt: var(--surface-alt); --calc-border: var(--border); --calc-accent: var(--accent); --calc-accent-text: #fff; --calc-accent-hover: var(--accent-hover); --calc-track: #DCD4CC; --calc-focus: var(--accent); --calc-radius: 12px; }
.roof-calc .calc-card { border-top: 6px solid var(--brand-dark); box-shadow: 0 10px 30px rgba(37,43,45,.08); }
.roof-calc .choice-card:has(input:checked) { border-color: var(--accent); background: #EAF2F5; }
.calc-section { background: var(--surface-tint); }

/* Footer */
.site-footer { background: var(--charcoal); color: #E9ECEB; padding: 52px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.foot-logo { background: #fff; display: inline-block; padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; }
.foot-logo img { height: 52px; width: auto; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 7px; }
.site-footer li a { display: inline-block; padding: 3px 0; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.18); margin-top: 30px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; }
@media (max-width: 899px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 549px) { .foot-grid { grid-template-columns: 1fr; } }

/* Callback prompt */
.callback { position: fixed; inset: 0; background: rgba(37,43,45,.55); display: none; align-items: center; justify-content: center; z-index: 80; padding: 16px; }
.callback.open { display: flex; }
.callback .cb-box { background: #fff; border-radius: 12px; max-width: 420px; width: 100%; padding: 26px 24px 22px; position: relative; border-top: 6px solid var(--brand-dark); }
.callback h2 { font-size: 1.4rem; margin-bottom: 6px; }
.callback .cb-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 1.6rem; cursor: pointer; color: var(--charcoal); }
.callback .field { margin-bottom: 14px; }
.callback label { display: block; font-weight: 600; margin-bottom: 4px; }
.callback input { width: 100%; font: inherit; border: 2px solid var(--border); border-radius: 6px; padding: 11px 12px; min-height: 48px; }
.callback .btn { width: 100%; }
.callback .cb-call { display: block; text-align: center; margin-top: 12px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.faq-item .lead-in { font-weight: 600; margin: 0 0 6px; }
.roof-calc .choice-card { position: relative; }
.roof-calc .choice-card input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
/* Calculator: two-column questions on desktop so each step fits one screen */
.calc-head { padding: 22px 0 16px !important; }
.calc-head .crumbs { display: none; }
.calc-head h1 { margin-bottom: 4px; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); }
.calc-head .intro { margin: 0 auto; }
.calc-section { padding-top: 24px !important; }
.roof-calc [hidden] { display: none !important; }
@media (min-width: 900px) {
  .roof-calc .calc-card { max-width: 980px; padding: 24px 34px; }
  .roof-calc .question-step:not([hidden]) { display: flow-root; }
  .roof-calc .question-step > .step-index, .roof-calc .question-step > h2, .roof-calc .question-step > .question-help { float: left; clear: left; width: 44%; }
  .roof-calc .question-step > :not(.step-index):not(h2):not(.question-help) { margin-left: 50%; width: 50% !important; }
  .roof-calc .progress-row { margin-bottom: 6px; }
  .roof-calc #form-progress { margin-bottom: 18px; }
  .roof-calc .choice-card { min-height: 54px; padding: 8px 14px; }
  .roof-calc .choice-list, .roof-calc .choice-grid { gap: 10px; }
  .roof-calc .privacy-note { margin-top: 14px; }
}
/* ---- Signature update: H8 hero, M4 town tiles, E2 headings ---- */
.facts.three ul { grid-template-columns: repeat(3, 1fr); max-width: 980px; }
@media (max-width: 899px) { .facts.three ul { grid-template-columns: 1fr; } }
h1 em, h2 em, .hero-body h1 em, .band h2 em, .closing h2 em { font-style: normal; color: inherit; font-weight: inherit; }
.sec-head h2::before, .band h2::before, .closing h2::before, .faq-cat-rule { content: ""; display: block; width: 40px; height: 4px; background: var(--brand-dark); margin: 0 auto 14px; border-radius: 2px; }
.band h2::before, .closing h2::before { background: #F6D9C4; }
.town-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.town-tile { grid-column: span 2; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.town-tile:nth-child(4) { grid-column: 2 / span 2; }
.tt-media { position: relative; }
.tt-media > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tt-mini { position: absolute; right: 10px; bottom: 10px; width: 92px; background: #fff; border-radius: 8px; padding: 3px; box-shadow: 0 4px 14px rgba(37,43,45,.25); }
.tt-mini svg { width: 100%; height: auto; display: block; border-radius: 6px; }
.tt-body { padding: 16px 20px 20px; }
.tt-body h3 { margin-bottom: 6px; }
.tt-body h3 a { color: var(--charcoal); text-decoration-color: var(--accent); }
.tt-body p { margin: 0; font-size: .97rem; }
@media (max-width: 999px) { .town-tiles { grid-template-columns: repeat(2, 1fr); } .town-tile, .town-tile:nth-child(4) { grid-column: auto; } .town-tile:last-child { grid-column: span 2; } }
@media (max-width: 599px) { .town-tiles { grid-template-columns: 1fr; } .town-tile:last-child { grid-column: auto; } }
