/* ALTA Roofing & Exteriors — site styles
   Brand tokens extracted from altapropertyservices.com. Mobile-first. */

@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/poppins-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/open-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/open-sans-latin-600-normal.woff2') format('woff2'); }

:root {
  --red: #E3000C;
  --red-dark: #B80009;
  --blue: #2059A9;
  --blue-dark: #17407A;
  --navy: #0D1E38;
  --ink: #1A2433;
  --muted: #5A6577;
  --light-bg: #F4F7FB;
  --blue-tint: #E8F0FA;
  --border: #DCE4EF;
  --sky: #7EB8FF;
  --logo-gray: #808080;
  --white: #FFFFFF;
  --success: #1E7B4E;
  --font-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(13, 30, 56, .06), 0 8px 24px rgba(13, 30, 56, .08);
  --shadow-lg: 0 18px 48px rgba(13, 30, 56, .18);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --step--1: clamp(.83rem, .8rem + .15vw, .9rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + .35vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.2rem + .7vw, 1.75rem);
  --step-3: clamp(1.6rem, 1.35rem + 1.25vw, 2.35rem);
  --step-4: clamp(1.95rem, 1.5rem + 2.2vw, 3.2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.65; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; }
img { display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--blue-tint); }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }

[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 1000; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--white); }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
main { display: block; }
main:focus { outline: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.3em; border-radius: 999px; border: 2px solid transparent; font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); color: var(--white); }
.btn--secondary { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn--secondary:hover { background: var(--blue); color: var(--white); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--lg { min-height: 54px; padding: .85em 1.6em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Emergency bar */
.emergency-bar { background: var(--navy); color: var(--white); font-size: var(--step--1); }
.emergency-bar__inner { display: flex; align-items: center; gap: .6em; padding-top: .5em; padding-bottom: .5em; }
.emergency-bar p { margin: 0; flex: 1; }
.emergency-bar a { color: var(--sky); font-weight: 600; white-space: nowrap; }
.emergency-bar .icon { color: var(--sky); }
.emergency-bar__close { background: none; border: 0; color: var(--white); width: 36px; height: 36px; cursor: pointer; border-radius: 50%; }
.emergency-bar__close:hover { background: rgba(255, 255, 255, .12); }
.emergency-bar.is-dismissed { display: none; }

/* Header + nav */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; flex: none; }
.brand img { width: 130px; height: auto; }
.brand__sub { display: none; font-family: var(--font-head); font-weight: 600; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); line-height: 1.2; white-space: nowrap; border-left: 2px solid var(--border); padding-left: 10px; }
.brand__sub span { display: block; }
@media (min-width: 480px) { .brand__sub { display: block; } }
.header-phone { display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-head); font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--red-dark); }
.header-phone .icon { color: var(--red); }
.header-phone--compact { width: 44px; height: 44px; justify-content: center; border-radius: 50%; background: var(--blue-tint); }
.nav-toggle { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; padding: 0 .9em; border-radius: 999px; border: 1px solid var(--border); background: var(--white); color: var(--navy); font: 600 .95rem var(--font-head); text-decoration: none; cursor: pointer; }
.nav-toggle[hidden], .nav-toggle--fallback[hidden] { display: none; }
.site-nav { display: none; }
.site-nav:target, .site-nav.is-open { display: block; position: fixed; inset: 0; top: 0; z-index: 200; background: var(--white); padding: 76px var(--gutter) 32px; overflow-y: auto; }
.site-nav__list { list-style: none; margin: 0; padding: 0; }
.site-nav__list > li { border-bottom: 1px solid var(--border); }
.site-nav__list a { display: block; padding: .8em 0; color: var(--navy); font: 600 1.05rem var(--font-head); text-decoration: none; }
.site-nav__list a[aria-current="page"] { color: var(--red-dark); }
.submenu { list-style: none; margin: 0 0 .6em; padding: 0 0 0 1em; }
.submenu a { font: 400 .98rem var(--font-body); padding: .45em 0; color: var(--ink); }
.site-nav__cta { display: grid; gap: 12px; margin-top: 24px; }
.site-nav__cta .header-phone { justify-content: center; min-height: 48px; border: 1px solid var(--border); border-radius: 999px; }
.nav-close { position: absolute; top: 18px; right: var(--gutter); font: 600 .95rem var(--font-head); color: var(--navy); }

@media (min-width: 1180px) {
  .header-phone--compact, .nav-toggle, .nav-toggle--fallback, .nav-close { display: none !important; }
  .brand img { width: 162px; }
  .site-nav, .site-nav:target { display: flex; position: static; padding: 0; background: none; align-items: center; gap: 14px; overflow: visible; }
  .site-nav__list { display: flex; gap: 4px; }
  .site-nav__list > li { border: 0; position: relative; }
  .site-nav__list > li > a { padding: .6em .6em; font-size: .93rem; border-radius: var(--radius-sm); white-space: nowrap; }
  .site-nav__list > li > a:hover { background: var(--light-bg); }
  .has-menu > a::after { content: ''; display: inline-block; width: .45em; height: .45em; margin-left: .4em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); }
  .submenu { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; padding: 10px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
  .has-menu:hover > .submenu, .has-menu:focus-within > .submenu { display: block; }
  .submenu a { padding: .5em .7em; border-radius: var(--radius-sm); }
  .submenu a:hover { background: var(--light-bg); }
  .site-nav__cta { display: flex; align-items: center; gap: 14px; margin: 0; }
  .site-nav__cta .btn { white-space: nowrap; min-height: 44px; padding: .6em 1.1em; }
  .site-nav__cta .header-phone { border: 0; min-height: 0; }
}

@media (min-width: 1180px) and (max-width: 1339px) {
  .brand__sub { display: none; }
  .site-nav__list > li > a { padding: .6em .5em; }
}

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--tight { padding: clamp(32px, 4vw, 48px) 0; }
.section--alt { background: var(--light-bg); }
.section--navy { background: var(--navy); color: #d9e2ef; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section__head { max-width: 760px; margin-bottom: clamp(24px, 4vw, 40px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font: 600 .78rem var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--red-dark); margin-bottom: .6em; }
.section--navy .eyebrow, .hero .eyebrow { color: var(--sky); }
.lead { font-size: var(--step-1); color: var(--muted); }
.prose { max-width: 72ch; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: clamp(16px, 2.5vw, 28px); grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: clamp(28px, 5vw, 64px); }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); align-items: start; } .split--even { grid-template-columns: 1fr 1fr; } }
.sticky-aside { position: sticky; top: calc(var(--header-h) + 20px); }

/* Breadcrumbs */
.breadcrumbs { font-size: var(--step--1); color: var(--muted); margin-bottom: 1em; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3em; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: '/'; margin-right: .3em; color: var(--border); }
.breadcrumbs a { color: var(--muted); }
.hero .breadcrumbs, .hero .breadcrumbs a { color: #b9c7da; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy) 0%, #13305c 55%, var(--blue-dark) 100%); color: #d9e2ef; padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 88px); }
.hero h1 { color: var(--white); max-width: 18ch; }
.hero .lead { color: #c9d6e8; max-width: 52ch; }
.hero__grid { display: grid; gap: clamp(28px, 4vw, 56px); position: relative; z-index: 1; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(340px, .9fr); align-items: center; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0; }
.hero__art { position: absolute; right: -60px; bottom: -20px; width: min(560px, 60vw); opacity: .16; pointer-events: none; }
.hero--page { padding: clamp(28px, 4vw, 56px) 0; }
.hero--page h1 { max-width: 26ch; }
.hero__points { list-style: none; padding: 0; margin: 0; display: grid; gap: .5em; }
.hero__points li { display: flex; gap: .55em; align-items: flex-start; color: #e3eaf4; }
.hero__points .icon { color: var(--sky); margin-top: .2em; }

/* Cards */
.cards { list-style: none; margin: 0; padding: 0; }
.card { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card__icon { width: 34px; height: 34px; color: var(--red); margin-bottom: 12px; }
.card__title { font-size: var(--step-1); margin-bottom: .4em; }
.card__title a { color: var(--navy); text-decoration: none; }
.card__title a::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.card__title a:hover { color: var(--blue); }
.card__text { color: var(--muted); margin: 0; font-size: .97rem; }
.card__meta { margin: .6em 0 0; font-size: var(--step--1); color: var(--blue-dark); font-weight: 600; }
.panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow); }
.panel--tint { background: var(--blue-tint); border-color: transparent; box-shadow: none; }

/* Trust bar */
.trust-bar { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px 22px; grid-template-columns: 1fr; font-size: .95rem; }
@media (min-width: 640px) { .trust-bar { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .trust-bar--row { grid-template-columns: repeat(3, 1fr); } }
.trust-bar li { display: flex; gap: .55em; align-items: flex-start; }
.trust-bar .icon { color: var(--red); margin-top: .15em; }
.hero .trust-bar li, .section--navy .trust-bar li { color: #e3eaf4; }
.hero .trust-bar .icon, .section--navy .trust-bar .icon { color: var(--sky); }

/* Lists */
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 1.8em; margin-bottom: .55em; }
.check-list li::before { content: ''; position: absolute; left: .2em; top: .45em; width: .55em; height: .95em; border: solid var(--red); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 18px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 22px 22px 70px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--white); font: 700 1rem/36px var(--font-head); text-align: center; }
.steps h3 { margin-bottom: .3em; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: .96rem; }
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 1em; }
.pill-list li, .badge { display: inline-flex; align-items: center; gap: .35em; padding: .3em .8em; border-radius: 999px; background: var(--blue-tint); color: var(--blue-dark); font-size: .88rem; font-weight: 600; }
.pill-list a { color: inherit; text-decoration: none; }
.badge--red { background: #fde8e9; color: var(--red-dark); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--border); border-radius: var(--radius); }
.data-table { min-width: 520px; font-size: .95rem; }
.data-table caption { text-align: left; padding: 12px 16px; font-weight: 600; color: var(--navy); }
.data-table th, .data-table td { padding: 11px 16px; border-top: 1px solid var(--border); text-align: left; vertical-align: top; }
.data-table thead th { background: var(--light-bg); font-family: var(--font-head); font-weight: 600; color: var(--navy); border-top: 0; }
.data-table td.num, .data-table th.num { text-align: right; white-space: nowrap; }

/* FAQ */
.faq { margin-top: 2.2em; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--white); }
.faq__item summary { cursor: pointer; padding: 16px 48px 16px 18px; font: 600 1.02rem var(--font-head); color: var(--navy); list-style: none; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--red); }
.faq__item[open] summary::after { content: '–'; }
.faq__answer { padding: 0 18px 6px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--blue-dark)); color: #d9e2ef; padding: clamp(32px, 5vw, 56px) 0; }
.cta-band__inner { display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1fr auto; } }
.cta-band__title { font: 700 var(--step-2) var(--font-head); color: var(--white); margin: 0 0 .25em; }
.cta-band__text { margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Related */
.related { background: var(--light-bg); padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--border); }
.related__grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .related__grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.related__heading { font-size: 1.05rem; margin-bottom: .6em; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin-bottom: .45em; }
.explore__title { font-size: var(--step-1); margin-bottom: 1em; }
/* Google reviews of the parent company */
.google-reviews__score { font-size: var(--step--1); color: var(--muted); }
.google-reviews__stars, .review-card__stars { color: #e3a008; letter-spacing: .08em; }
.google-reviews__note { max-width: 72ch; color: var(--muted); font-size: var(--step--1); margin-bottom: 1.5em; }
.review-card__stars { margin: 0 0 .4em; }
.review-card__text { margin: 0 0 .75em; padding: 0; border: 0; font-style: normal; }
.review-card__text p { margin: 0; }
.google-reviews__more { margin-top: 1.25em; }
/* Before you hire any roofer */
.hire-checks { border-top: 1px solid var(--border); }
.hire-checks__title { font-size: var(--step-1); }
.hire-checks__intro { color: var(--muted); max-width: 72ch; }
.hire-checks__list { display: grid; gap: 20px; padding-left: 1.25em; margin: 1em 0 0; }
@media (min-width: 800px) { .hire-checks__list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; } }
.hire-checks__item-title { font-size: 1.05rem; margin: 0 0 .35em; }
.hire-checks__item p { margin: 0; font-size: var(--step--1); }
.hire-checks__source { display: block; margin-top: .4em; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 14px; }
.form__row { display: grid; gap: 14px; }
@media (min-width: 560px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font: 600 .92rem var(--font-head); color: var(--navy); }
.field .hint { font-size: .85rem; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .65em .85em; border: 1.5px solid #c5d1e2; border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font: 400 1rem var(--font-body); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(32, 89, 169, .25); outline-offset: 0; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--red-dark); }
fieldset.field, fieldset.form-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-step { display: grid; gap: 14px; }
.field input[type="radio"], .field input[type="checkbox"], .radio-row input { width: auto; min-height: 0; padding: 0; }
.field input[type="file"] { padding: .5em; font-size: .92rem; }
.steps--stack { grid-template-columns: 1fr !important; }
.field__error { color: var(--red-dark); font-size: .88rem; font-weight: 600; }
.field--check { display: flex; gap: .6em; align-items: flex-start; font-size: .9rem; }
.field--check input { width: 20px; height: 20px; min-height: 0; margin-top: .2em; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.radio-row label { display: inline-flex; align-items: center; gap: .4em; padding: .45em .9em; border: 1.5px solid #c5d1e2; border-radius: 999px; font: 600 .92rem var(--font-body); cursor: pointer; }
.radio-row input { accent-color: var(--blue); }
.form-card { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow-lg); }
.form-card h2, .form-card .form-card__title { font-size: var(--step-2); margin-bottom: .2em; color: var(--navy); }
.form-card__sub { color: var(--muted); font-size: .95rem; margin-bottom: 1em; }
.form-note { font-size: .82rem; color: var(--muted); margin: 0; }
.form-alert { padding: 12px 14px; border-radius: var(--radius-sm); background: #fde8e9; color: var(--red-dark); font-weight: 600; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-step[hidden] { display: none; }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr 1.4fr; background: var(--navy); box-shadow: 0 -6px 18px rgba(13, 30, 56, .25); padding-bottom: env(safe-area-inset-bottom); }
.sticky-cta__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; color: var(--white); text-decoration: none; font: 600 .82rem var(--font-head); border-right: 1px solid rgba(255, 255, 255, .12); }
.sticky-cta__item:hover { color: var(--sky); }
.sticky-cta__item--primary { background: var(--red); border-right: 0; font-size: .9rem; }
.sticky-cta__item--primary:hover { background: var(--red-dark); color: var(--white); }
@media (max-width: 899px) { .site-footer__bottom { padding-bottom: calc(76px + env(safe-area-inset-bottom)); } }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* Footer */
.site-footer { background: var(--navy); color: #b9c7da; font-size: .95rem; padding-top: clamp(40px, 6vw, 64px); }
.site-footer a { color: #dfe7f2; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__grid { display: grid; gap: 32px; padding-bottom: 32px; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .site-footer__grid { grid-template-columns: 1.3fr repeat(5, 1fr); } }
.site-footer__brand img { width: 130px; margin-bottom: 12px; background: var(--white); padding: 6px 8px; border-radius: 6px; box-sizing: content-box; }
.site-footer__tagline { color: #dfe7f2; }
.site-footer__heading { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-bottom: 1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5em; }
.site-footer address { margin-bottom: 1em; line-height: 1.7; }
.site-footer__hours { font-size: .9rem; }
.social-links { display: flex; gap: 10px; }
.social-links a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.social-links a:hover { background: var(--red); text-decoration: none; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: .85rem; }
.site-footer__bottom .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer__bottom p { margin: 0; }
.site-footer--landing { padding: 20px 0; }

/* Misc components */
.stat-row { display: flex; flex-wrap: wrap; gap: 10px; }
.callout { border-left: 4px solid var(--red); background: var(--light-bg); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.4em 0; }
.callout p:last-child { margin: 0; }
.toc { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; background: var(--light-bg); }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: .35em; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .sticky-cta, .emergency-bar, .cta-band, .related, .assistant, .no-print { display: none !important; }
  body { padding: 0; color: #000; }
  a { color: #000; }
}

/* Ratings, tiers, badges */
.tier { font-weight: 700; color: var(--success); letter-spacing: .05em; }
.tier__off { color: #c5d1e2; }
.rating { display: inline-flex; gap: 4px; vertical-align: middle; }
.rating__dot { width: 12px; height: 12px; border-radius: 50%; background: #dfe6f0; display: inline-block; }
.rating__dot.is-on { background: var(--blue); }
.cert-badge { display: inline-flex; align-items: center; gap: .4em; padding: .4em .9em; border-radius: 999px; background: var(--white); color: var(--navy); font-weight: 700; }
.compare-table__group th { background: var(--blue-tint); color: var(--blue-dark); font-family: var(--font-head); }
.compare-table td, .compare-table th { white-space: nowrap; }
.climate-table td:last-child { min-width: 260px; }
.pros-cons { margin-bottom: 1.5em; }
.pros-cons .panel h2 { margin-top: 0; }
.article-meta { color: #b9c7da; font-size: var(--step--1); margin: 0; }
.toc { margin: 1.5em 0; }
.toc__title { margin-bottom: .5em; }
.h3 { font-size: var(--step-1); }

/* Portfolio + before/after */
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 12px; }
.portfolio-filters .field { min-width: 180px; }
.portfolio-count { color: var(--muted); font-weight: 600; }
.portfolio__item img { border-radius: var(--radius-sm); margin-bottom: 12px; width: 100%; height: auto; }
.before-after { margin: 0 0 2em; }
.before-after__frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--light-bg); }
.before-after__frame img { width: 100%; height: 100%; object-fit: cover; }
.before-after__before { position: absolute; inset: 0; }
.before-after:not(.is-enhanced) .before-after__before { position: static; margin-top: 12px; }
.before-after:not(.is-enhanced) .before-after__range { display: none; }
.before-after__range { width: 100%; margin-top: 10px; accent-color: var(--red); }
.before-after figcaption { font-size: var(--step--1); color: var(--muted); }

/* Printable guide */
.checklist { break-inside: avoid; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 1.5em 0; }
.checklist h2 { margin-top: 0; font-size: var(--step-1); }
.checklist__items { list-style: none; padding: 0; margin: 0; }
.checklist__items li { display: flex; gap: .7em; margin-bottom: .5em; }
.checkbox { flex: none; width: 18px; height: 18px; border: 2px solid var(--navy); border-radius: 4px; margin-top: .25em; }
.narrow { max-width: 640px; margin: 0 auto; }
.booking-embed iframe { border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.contact-hours { list-style: none; padding: 0; margin: 0; }
.form-more-toggle { justify-self: start; background: none; border: 0; padding: 4px 0; color: var(--blue); font: 600 .95rem var(--font-head); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.form-more-toggle:hover { color: var(--blue-dark); }
.estimate-result__range { font: 700 clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem)/1.1 var(--font-head); color: var(--navy); margin: .1em 0 .2em; }
.estimate-result .data-table { min-width: 0; font-size: .9rem; }
.estimator__helper { border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 10px 14px; }
.estimator__helper summary { cursor: pointer; font-weight: 600; color: var(--blue); }
.estimator__helper[open] { display: grid; gap: 12px; }

/* Visualizer */
.visualizer { display: grid; gap: clamp(20px, 3vw, 36px); }
@media (min-width: 1000px) { .visualizer { grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); align-items: start; } .visualizer__stage { position: sticky; top: calc(var(--header-h) + 16px); } }
.house-svg { width: 100%; height: auto; background: linear-gradient(#eaf2fb, #f7fafd); border-radius: var(--radius); border: 1px solid var(--border); }
.swatch-group { border: 0; padding: 0; margin: 0 0 18px; }
.swatch-group legend { font: 600 .95rem var(--font-head); color: var(--navy); margin-bottom: 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch label { display: inline-flex; align-items: center; gap: .45em; padding: .4em .8em; border: 1.5px solid #c5d1e2; border-radius: 999px; font-size: .88rem; cursor: pointer; background: var(--white); }
.swatch input:checked + label { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); font-weight: 600; }
.swatch input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }
.swatch__chip { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); }
.visualizer__presets { margin-top: 12px; }
.area-map { height: clamp(320px, 50vw, 480px); border-radius: var(--radius); border: 1px solid var(--border); background: var(--blue-tint); display: grid; place-items: center; overflow: hidden; }
.area-map.is-live { display: block; }
.area-map__placeholder { color: var(--muted); text-align: center; padding: 16px; }
.zip-result { margin-top: 12px; }
.zip-result__ok { font-weight: 600; color: var(--success); }
.zip-result__ok a { font-weight: 600; }

/* Assistant */
.assistant__launch { position: fixed; right: 16px; bottom: 76px; z-index: 95; display: inline-flex; align-items: center; gap: .45em; padding: .7em 1.1em; border: 0; border-radius: 999px; background: var(--blue); color: var(--white); font: 600 .95rem var(--font-head); box-shadow: var(--shadow-lg); cursor: pointer; }
.assistant__launch:hover { background: var(--blue-dark); }
@media (min-width: 900px) { .assistant__launch { bottom: 24px; right: 24px; } }
.assistant__dialog { width: min(440px, calc(100vw - 24px)); max-height: min(640px, calc(100vh - 40px)); padding: 0; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.assistant__dialog[open] { display: grid; grid-template-rows: auto auto 1fr auto auto auto; }
.assistant__dialog::backdrop { background: rgba(13, 30, 56, .45); }
.assistant__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--navy); color: var(--white); }
.assistant__title { margin: 0; font: 600 1rem var(--font-head); }
.assistant__close { background: none; border: 0; color: var(--white); cursor: pointer; width: 36px; height: 36px; }
.assistant__disclosure { margin: 0; padding: 10px 16px; font-size: .8rem; color: var(--muted); background: var(--light-bg); }
.assistant__log { overflow-y: auto; padding: 12px 16px; display: grid; gap: 8px; align-content: start; min-height: 120px; }
.assistant__msg { margin: 0; padding: 9px 12px; border-radius: 12px; font-size: .95rem; max-width: 90%; }
.assistant__msg--user { justify-self: end; background: var(--blue); color: var(--white); }
.assistant__msg--assistant { justify-self: start; background: var(--light-bg); }
.assistant__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.assistant__quick button { border: 1.5px solid #c5d1e2; background: var(--white); border-radius: 999px; padding: .35em .8em; font-size: .85rem; cursor: pointer; }
.assistant__handoff { padding: 0 16px 8px; }
.assistant__handoff .btn { min-height: 40px; padding: .4em .9em; font-size: .88rem; margin: 2px 0; }
.assistant__form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }
.assistant__form input { flex: 1; min-height: 44px; padding: .5em .8em; border: 1.5px solid #c5d1e2; border-radius: var(--radius-sm); font: inherit; }
@media (max-width: 899px) {
  .assistant__launch { width: 52px; height: 52px; padding: 0; justify-content: center; border-radius: 50%; right: 12px; }
  .assistant__launch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .assistant__launch .icon { width: 24px; height: 24px; }
}

/* Sources: the trusted links behind a page's facts */
.sources { border-top: 1px solid var(--border); }
.sources__title { font-size: var(--step-1); margin: 0 0 .25rem; }
.sources__intro { color: var(--muted); font-size: var(--step--1); margin: 0 0 .75rem; max-width: 65ch; }
.sources__list { margin: 0; padding-left: 1.1rem; display: grid; gap: .45rem; font-size: var(--step--1); max-width: 80ch; }
.sources__list a { font-weight: 600; }
.sources__note { color: var(--muted); overflow-wrap: anywhere; }
