/* Big Bear Exteriors — roofing site styles */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-grotesque-latin.woff2') format('woff2');
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #427CB5;          /* main brand blue — large text, icons, borders */
  --blue-dark: #2F5F91;     /* small text, links, blue buttons (6.6:1 on white) */
  --blue-deeper: #234C77;   /* hover/pressed */
  --ivory: #FAF8F3;
  --pale: #EDF4FA;
  --pale-2: #DFEBF6;
  --yellow: #FFC619;
  --yellow-hover: #F0B400;
  --yellow-light: #FFE38A;
  --navy: #101840;
  --text: #101840;
  --muted: #4A5274;         /* 7.4:1 on ivory */
  --white: #FFFFFF;
  --line: #DCE3EC;
  --line-warm: #ECE6D9;
  --error: #B42318;
  --success: #1F6B3A;

  --font-display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 64, .06), 0 2px 8px rgba(16, 24, 64, .05);
  --shadow: 0 2px 4px rgba(16, 24, 64, .05), 0 12px 32px rgba(16, 24, 64, .08);
  --shadow-lg: 0 4px 10px rgba(16, 24, 64, .06), 0 24px 60px rgba(16, 24, 64, .12);
  --wrap: 1200px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--ivory);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--blue-deeper); }
:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

h1, h2, h3, h4, .h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.15rem, 4.4vw, 3.5rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3, .h3 { font-size: 1.3rem; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.small { font-size: .95rem; color: var(--muted); }
.muted { color: var(--muted); }
.center-text { text-align: center; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { max-width: 760px; }
.wrap--mid { max-width: 980px; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--navy); color: #fff; padding: .75rem 1rem; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 1rem; color: #fff; }

.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* ------------------------------------------------------------ buttons --- */
.btn {
  --bg: var(--white); --fg: var(--navy); --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.35em;
  font: 700 1rem/1.2 var(--font-body); letter-spacing: .005em;
  color: var(--fg); background: var(--bg); border: 2px solid var(--bd); border-radius: 999px;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { color: var(--fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-yellow { --bg: var(--yellow); --fg: var(--navy); box-shadow: 0 2px 0 #D9A400, 0 6px 16px rgba(255, 198, 25, .28); }
.btn-yellow:hover { --bg: var(--yellow-hover); }
.btn-blue { --bg: var(--blue-dark); --fg: #fff; }
.btn-blue:hover { --bg: var(--blue-deeper); }
.btn-outline { --bg: transparent; --fg: var(--blue-dark); --bd: var(--blue-dark); }
.btn-outline:hover { --bg: var(--pale); --fg: var(--blue-deeper); }
.btn-white { --bg: #fff; --fg: var(--navy); }
.btn-white:hover { --bg: var(--pale); }
.btn-sm { min-height: 44px; padding: .55em 1.1em; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: .85em 1.6em; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn-row.center { justify-content: center; }
.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ------------------------------------------------------------- header --- */
.area-strip { background: var(--yellow); color: var(--navy); font-size: .9rem; border-bottom: 1px solid var(--yellow-hover); }
.area-strip p { margin: 0; padding: .2rem 0; line-height: 1.35; text-align: center; }
.area-strip a { color: var(--navy); font-weight: 700; text-decoration: underline; white-space: nowrap; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); transition: box-shadow .25s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(16, 24, 64, .08); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { flex: none; display: block; }
.brand .logo { width: 112px; height: auto; }
.primary-nav { flex: 1; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: .1rem; }
.nav-link {
  display: inline-flex; align-items: center; gap: .25em; min-height: 44px; padding: .5rem .7rem;
  font: 600 .98rem/1.2 var(--font-body); color: var(--navy); text-decoration: none;
  background: none; border: 0; border-radius: 8px; cursor: pointer; white-space: nowrap;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--blue-dark); background: var(--pale); }
.nav-link[aria-current="page"], .nav-link.is-active { color: var(--blue-dark); box-shadow: inset 0 -3px 0 var(--yellow); }
.icon-chevron { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.nav-toggle[aria-expanded="true"] .icon-chevron { transform: rotate(180deg); }
.has-menu { position: relative; }
.submenu {
  list-style: none; margin: 0; padding: .5rem; position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.has-menu.is-open .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: .65rem .85rem; border-radius: 8px; color: var(--navy); text-decoration: none; font-weight: 600; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--pale); color: var(--blue-dark); }
.submenu li:last-child a { border-top: 1px solid var(--line); margin-top: .25rem; color: var(--blue-dark); }

/* Mega menu: full-width panel under the header on desktop. */
.has-mega { position: static; }
.has-mega .submenu { display: none; }
.mega {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin-inline: auto; width: min(100% - 2.5rem, calc(var(--wrap) + 4rem));
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 48px rgba(16, 24, 64, .14); max-height: calc(100vh - var(--nav-top, 110px) - 24px); overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner { display: grid; grid-template-columns: repeat(var(--mega-cols), minmax(0, 1fr)); gap: 2rem; padding: 2rem; }

.mega--feature .mega-inner { grid-template-columns: minmax(0, 1.35fr) repeat(var(--mega-cols), minmax(0, 1fr)); }
.mega-feature { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mega-feature img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mega-feature-body { padding: 1.25rem 1.4rem 1.4rem; }
.mega-feature-body p { margin: 0 0 1rem; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.mega-eyebrow { font-size: .76rem !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-dark) !important; margin-bottom: .5rem !important; }
.mega-feature-title { font: 700 1.35rem/1.18 var(--font-display) !important; color: var(--navy) !important; letter-spacing: -.01em; }
.mega-feature .btn { gap: .5em; }
.mega-feature .btn .icon { width: 1.1em; height: 1.1em; }
.mega-call { margin: .85rem 0 0 !important; }
.mega-call a { color: var(--navy); font-weight: 700; text-decoration: none; }
.mega-call a:hover { color: var(--blue-dark); }
.mega-img { display: block; border-radius: 10px; overflow: hidden; margin-bottom: 1rem; background: var(--pale); }
.mega-img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s var(--ease); }
.mega-col:hover .mega-img img { transform: scale(1.04); }
.mega-title { display: inline; font: 700 1.12rem/1.25 var(--font-display); color: var(--navy); text-decoration: none; }
.mega-title:hover, .mega-title[aria-current="page"] { color: var(--blue-dark); }
.mega-col > p { margin: .55rem 0 1rem; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.mega-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.mega-col li a { display: block; padding: .4rem 0; color: var(--navy); text-decoration: none; font-weight: 500; line-height: 1.35; }
.mega-col li a:hover, .mega-col li a[aria-current="page"] { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1400px) { .mega-inner { gap: 1.5rem; } .mega-feature-title { font-size: 1.2rem !important; } }
@media (prefers-reduced-motion: reduce) { .mega, .mega-img img { transition: none; } .mega-col:hover .mega-img img { transform: none; } }

.header-actions { display: flex; align-items: center; gap: .85rem; flex: none; }
.header-phone { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 1.02rem; line-height: 1.15; }
.header-phone .icon { width: 38px; height: 38px; padding: 9px; background: var(--pale); border-radius: 50%; fill: var(--blue-dark); }
.header-phone-label { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); }
.header-phone:hover { color: var(--blue-dark); }
.header-cta { min-height: 42px; padding: .55em 1.1em; font-size: .92rem; }
.menu-button { display: none; width: 48px; height: 48px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }
.menu-button .icon { width: 26px; height: 26px; }
.menu-close { display: none; }
.menu-button[aria-expanded="true"] .menu-open { display: none; }
.menu-button[aria-expanded="true"] .menu-close { display: inline; }
.nav-mobile-actions { display: none; }

@media (max-width: 1400px) {
  .header-phone-label { display: none; }
  .nav-link { padding: .5rem .5rem; font-size: .95rem; }
  .brand .logo { width: 100px; }
}
@media (max-width: 1280px) {
  .header-phone > span { display: none; }
  .header-phone .icon { width: 44px; height: 44px; padding: 11px; }
}
@media (max-width: 1180px) {
  :root { --header-h: 72px; }
  .menu-button { display: inline-flex; }
  .header-phone span { display: none; }
  .header-phone .icon { width: 44px; height: 44px; padding: 11px; }
  .header-inner { justify-content: space-between; }
  .primary-nav {
    position: fixed; inset: var(--nav-top, 110px) 0 0 0; background: #fff; overflow-y: auto; padding: 1rem 1.25rem 7rem;
    display: none; border-top: 1px solid var(--line);
  }
  .primary-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; min-height: 56px; font-size: 1.1rem; padding: .75rem .25rem; border-radius: 0; }
  .nav-link:hover { background: none; }
  .nav-link[aria-current="page"], .nav-link.is-active { box-shadow: inset 4px 0 0 var(--yellow); padding-left: .85rem; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .75rem .5rem; display: none; min-width: 0; }
  .has-menu.is-open .submenu { display: block; }
  .mega { display: none; }
  .submenu a { padding: .8rem .75rem; font-size: 1.02rem; }
  .nav-mobile-actions { display: grid; gap: .75rem; margin-top: 1.5rem; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
  .brand .logo { width: 90px; }
  .area-strip { font-size: .82rem; }
}

/* ----------------------------------------------------------- sections --- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--blue { background: var(--pale); }
.section--tight-top { padding-top: 1rem; }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-intro { color: var(--muted); font-size: 1.12rem; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 .85rem;
  font: 700 .82rem/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-dark);
}
.center-cta { text-align: center; margin-top: 2.5rem; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split--aside { grid-template-columns: 1.5fr 1fr; }
.split--form { grid-template-columns: .9fr 1.1fr; align-items: center; }
@media (max-width: 900px) { .split, .split--aside, .split--form { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.card > :last-child { margin-bottom: 0; }
.card--muted { background: var(--ivory); border-color: var(--line-warm); box-shadow: none; }
.section--blue .card--muted { background: #fff; }
.card-grid { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-inline: auto; }
@media (max-width: 640px) { .card-grid--2 { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid--3 { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- hero --- */
.hero { position: relative; padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory) 55%, var(--pale) 100%); overflow: hidden; }
.hero::after { /* shingle courses along the bottom edge */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 18px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 46px, #3A70A6 46px 48px);
  opacity: .9;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; position: relative; }
.hero-copy { padding-top: clamp(.5rem, 2vw, 2rem); }
.hero h1 { max-width: 14ch; }
.hero-sub { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: var(--blue-dark); margin: -.1em 0 .8em; letter-spacing: -.01em; }
.hero .lead { margin-bottom: 1.6rem; }
.hero-copy h1 { margin-bottom: .9em; }
.hero-btns .btn { min-height: 44px; padding: .55em 1.35em; }
.hero-phone { margin: 1rem 0 0; color: var(--muted); }
.hero-phone a { font-weight: 700; }
.hero-art { margin-top: clamp(1.5rem, 3vw, 2.5rem); max-width: 560px; }
.roof-art { width: 100%; height: auto; }
.hero-form { position: relative; z-index: 1; }

/* video background (home hero) */
.hero--video { background: var(--blue-deeper); color: #fff; }
.hero-media { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* three aerial photos take turns: each slowly zooms in, then fades to the next */
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; transform-origin: 55% 55%; animation: hero-photo-zoom 27s ease-in-out infinite; will-change: opacity, transform; }
.hero-photo:first-child { z-index: 1; } /* keeps the first photo on top at load */
.hero-photo:nth-child(2) { animation-delay: -18s; }
.hero-photo:nth-child(3) { animation-delay: -9s; }
@keyframes hero-photo-zoom {
  0% { opacity: 1; transform: scale(1); }
  33.3% { opacity: 1; transform: scale(1.16); }
  38% { opacity: 0; transform: scale(1.18); }
  95% { opacity: 0; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}
.hero--video::after { display: none; } /* no shingle band under the video */
.hero--video::before { /* dark navy shade over the photos, heaviest behind the text, so white copy stays readable */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(12, 22, 48, .82) 0%, rgba(12, 22, 48, .62) 45%, rgba(12, 22, 48, .3) 100%);
}
.hero--video .hero-grid { z-index: 2; }
.hero--video .hero-form { color: var(--text); }
.hero--video h1, .hero--video .eyebrow { color: #fff; }
.hero--video .hero-copy { text-shadow: 0 2px 16px rgba(8, 14, 34, .6), 0 1px 3px rgba(8, 14, 34, .55); } /* keeps white text crisp over the photos */
.hero--video .hero-copy .btn { text-shadow: none; } /* the copy shadow made button labels look blurry */
.hero--video .hero-sub { color: var(--yellow); }
.hero--video .lead, .hero--video .hero-phone { color: #fff; }
.hero--video .hero-phone a { color: #fff; }
.hero--video .btn-outline { --fg: #fff; --bd: rgba(255, 255, 255, .85); }
.hero--video .btn-outline:hover { --bg: rgba(255, 255, 255, .14); --fg: #fff; }
@media (prefers-reduced-motion: reduce) { .hero-photo { animation: none; opacity: 1; transform: none; } }
/* phones: one-line intro and tighter spacing so the estimate form's first question is on the first screen */
@media (max-width: 700px) {
  .hero.hero--video { padding-top: 1.5rem; }
  .hero--video .hero-grid { gap: 1.1rem; }
  .hero--video .hero-copy { padding-top: 0; }
  .hero--video .lead-extra { display: none; }
  .hero--video .hero-copy h1 { margin-bottom: .4em; }
  .hero--video .lead { margin-bottom: 0; }
  .estimate-banner { padding: 1.1rem 1.25rem; }
  .form-card--estimate .lead-form { padding-top: 1.1rem; }
  .form-card--estimate .estimate-progress { margin-bottom: 1rem; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .hero-art { display: none; }
  .hero--video::before { background: rgba(12, 22, 48, .7); } /* text spans the full width when stacked */
}

.trust-strip { background: #fff; border-bottom: 1px solid var(--line); }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; padding: 1.1rem 0; font-weight: 600; color: var(--muted); }
.partners-strip { padding: 1.4rem 0 1.6rem; }
.partners-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.25rem clamp(1.75rem, 4vw, 3.5rem); }
.partners-list li { display: flex; align-items: center; justify-content: center; height: 64px; }
.partners-list a { display: flex; align-items: center; transition: opacity .15s; }
.partners-list a:hover { opacity: .75; }
.partners-list img { height: calc(var(--h, 48) * 1px); width: auto; max-width: none; }
@media (max-width: 760px) {
  .partners-list { gap: 1rem 1.75rem; }
  .partners-list li { height: 50px; }
  .partners-list img { height: calc(var(--h, 48) * .75px); }
}

/* page hero (inner pages) */
.page-hero { background: linear-gradient(180deg, var(--ivory), var(--pale)); padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--pale-2); position: relative; }
.page-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 8px; background: repeating-linear-gradient(90deg, var(--blue) 0 46px, #3A70A6 46px 48px); opacity: .85; }
.page-hero-inner.has-aside { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.page-hero h1 { max-width: 22ch; }
.page-hero .lead { margin-bottom: 1.5rem; }
.hero-aside { padding-bottom: .5rem; }
.bear--hero { width: 150px; }
.logo-stacked--hero { width: 190px; }
@media (max-width: 760px) { .page-hero-inner.has-aside { grid-template-columns: 1fr; } .hero-aside { display: none; } }

.breadcrumbs ol { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .9rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: .35rem; color: #8C93AE; }
.breadcrumbs a { color: var(--blue-dark); }

/* --------------------------------------------------------------- forms --- */
.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: clamp(1.4rem, 3vw, 2.1rem); position: relative; }
.form-card::before { content: ''; position: absolute; left: 24px; right: 24px; top: 0; height: 5px; background: var(--yellow-light); border-radius: 0 0 6px 6px; }
.form-card-head { margin-bottom: 1.1rem; }
.form-title { font-size: clamp(1.35rem, 2.2vw, 1.65rem); margin-bottom: .3rem; }
.form-card-head p { color: var(--muted); font-size: .95rem; margin: 0; }
#estimate.form-card:not(.form-card--wide):not(.form-card--estimate) { max-width: 390px; width: 100%; }
.hero-form { justify-self: end; width: 100%; max-width: 390px; }
.split--form > .form-card { justify-self: end; }
@media (max-width: 980px) { .hero-form { justify-self: center; } }
@media (max-width: 900px) { .split--form > .form-card { justify-self: center; } }
#estimate:not(.form-card--wide) .form-card-head { text-align: center; }
.form-title--promo { text-transform: uppercase; letter-spacing: .01em; font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.1; white-space: nowrap; margin-bottom: 0; }
.form-card-head .form-promo { color: var(--navy); font-size: 1.02rem; }
.field-stack { display: grid; gap: .85rem; margin-bottom: 1.15rem; }
.field-stack .field input:not([type="checkbox"]), .field-stack .field select, .field-stack .field textarea { background-color: #fff; border-color: #C9CDD6; font-size: 1.05rem; }
.field-stack .field textarea { height: 64px; min-height: 48px; }
.field-stack ::placeholder { color: #3A4256; opacity: 1; }
.field-stack .field input:not([type="checkbox"]), .field-stack .field select, .field-stack .field textarea { border: 2px solid #FFF0BF; border-radius: 10px; }
.field-stack .field input:focus, .field-stack .field select:focus, .field-stack .field textarea:focus { border-color: var(--yellow-light); box-shadow: 0 0 0 4px rgba(255, 227, 138, .35); }
.field-stack select:invalid { color: #6B7183; }
.field-stack ::placeholder { color: #6B7183; }
.btn-quote { min-height: 44px; padding: .5rem .7rem .5rem 1.4rem; font-size: 1.02rem; font-weight: 700; letter-spacing: 0; border-radius: 999px; gap: .55rem; box-shadow: none; }
.btn-quote-arrow { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid currentColor; border-radius: 50%; }
.btn-quote-arrow .icon { width: 13px; height: 13px; fill: currentColor; }
.form-submit { text-align: center; margin-top: .9rem; }
.form-fine { margin-top: .2rem; font-size: .76rem; line-height: 1.4; color: var(--muted); }
.form-agree { font-size: inherit; color: inherit; margin: .3rem 0 0 calc(18px + .5rem); }
.form-agree a { color: var(--blue-dark); text-decoration: underline; }
.field--sms { gap: .5rem; }
.field--sms input { width: 18px; height: 18px; margin-top: .05rem; }
.field--sms label { font-size: inherit; font-weight: 500; line-height: inherit; color: inherit; }
#estimate.form-card:not(.form-card--wide):not(.form-card--estimate) { border-radius: 28px; border: 0; border-top: 14px solid var(--yellow-light); }
#estimate.form-card:not(.form-card--wide):not(.form-card--estimate) { padding: clamp(1rem, 2vw, 1.35rem) 1rem clamp(1.1rem, 2vw, 1.5rem); } /* slim side padding */
#estimate:not(.form-card--wide) .form-card-head { margin-bottom: .75rem; }
#estimate.form-card:not(.form-card--wide):not(.form-card--estimate)::before { display: none; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; margin-bottom: 1.15rem; }
.field--full, .field-grid > .pending { grid-column: 1 / -1; }
@media (max-width: 520px) { .field-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .93rem; margin-bottom: .3rem; color: var(--navy); }
.req { color: var(--error); }
.optional { font-weight: 500; color: var(--muted); font-size: .85em; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem; font: 400 1rem/1.4 var(--font-body); color: var(--navy);
  background: var(--ivory); border: 1.5px solid #B9C3D3; border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field select { -webkit-appearance: none; appearance: none; padding-right: 2.75rem; background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 8%27%3E%3Cpath d=%27M1 1.5l5 5 5-5%27 fill=%27none%27 stroke=%27%23101840%27 stroke-width=%271.8%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1rem center; background-size: 12px 8px; }
.field textarea { min-height: 104px; resize: vertical; }
.field input[type="file"] { padding: .6rem; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-dark); background-color: #fff; box-shadow: 0 0 0 4px rgba(66, 124, 181, .22); }
.field [aria-invalid="true"] { border-color: var(--error) !important; background-color: #FFF8F7 !important; }
/* Address suggestions (Google Places) */
.field--ac { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin: .3rem 0 0; padding: .3rem 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); text-align: left; }
.ac-list [role="option"] { display: flex; flex-direction: column; padding: .55rem .9rem; cursor: pointer; color: var(--navy); line-height: 1.3; }
.ac-list [role="option"] span { font-size: .88rem; color: #5A6275; }
.ac-list [role="option"]:hover, .ac-list [aria-selected="true"] { background: #FFF6D6; }
.ac-powered { padding: .35rem .9rem .15rem; font-size: .75rem; color: #6B7183; text-align: right; border-top: 1px solid var(--line); margin-top: .2rem; }
.field-error { color: var(--error); font-size: .88rem; font-weight: 600; margin: .3rem 0 0; }
.hint { font-size: .85rem; color: var(--muted); margin: .3rem 0 0; }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: .65rem; align-items: start; }
.field--check input { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--blue-dark); }
.field--check label { font-weight: 500; font-size: .88rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); margin: .85rem 0 0; text-align: center; }
.error-summary { background: #FFF4F2; border: 1.5px solid #F2B8B0; color: var(--error); border-radius: var(--radius-sm); padding: .8rem 1rem; margin-bottom: 1rem; font-weight: 600; font-size: .95rem; }
.error-summary ul { margin: .35rem 0 0; padding-left: 1.2rem; font-weight: 500; }
.error-summary a { color: var(--error); }
.form-status:not(:empty) { margin-top: .9rem; padding: .8rem 1rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem; }
.form-status.is-error { background: #FFF4F2; color: var(--error); border: 1.5px solid #F2B8B0; }
.form-status.is-busy { background: var(--pale); color: var(--blue-deeper); }
.form-success { text-align: center; padding: 1rem 0 .5rem; }
.form-success:focus { outline: none; }
.success-bear { width: 110px; margin: 0 auto 1rem; }

/* ------------------------------------------------------------- content --- */
.intro-copy { max-width: 820px; }
.roof-system { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: .82fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; background: #ECF5FC; border: 1px solid #DCE8F4; border-radius: var(--radius-lg); padding: clamp(1.75rem, 4.5vw, 3.75rem); box-shadow: var(--shadow-sm); }
.roof-system-eyebrow { margin: 0 0 1rem; font: 600 .9rem/1.2 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--blue-dark); }
.roof-system h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.04; margin-bottom: .55em; }
.roof-system-lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 44ch; margin: 0 0 1.6rem; }
.roof-system-checks { gap: .95rem; margin-bottom: 2rem; font-size: 1.08rem; }
.roof-system-checks li { gap: .85rem; align-items: center; }
.roof-system-checks .icon { width: 28px; height: 28px; padding: 5px; margin-top: 0; background: #3A73BF; flex: none; }
.roof-system-btn { --bg: #3A73BF; border-radius: 8px; padding: .95em 1.7em; font-size: 1.08rem; gap: 1.6em; box-shadow: 0 6px 18px rgba(58, 115, 191, .25); }
.roof-system-btn:hover { --bg: var(--blue-dark); }
.roof-system-btn .icon { width: 1.2em; height: 1.2em; fill: currentColor; transition: transform .2s var(--ease); }
.roof-system-btn:hover .icon { transform: translateX(3px); }
.roof-system-area { margin: 1.1rem 0 0; font-size: .95rem; color: var(--muted); }
.roof-system-figure { margin: 0; }
.roof-system-figure img { display: block; width: 100%; height: auto; }
.roof-system-legend { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(3, auto); gap: .7rem 2rem; position: relative; padding-inline: clamp(0rem, 4%, 2.5rem); }
.roof-system-legend::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px solid #C9D7E6; }
.roof-system-legend li { display: flex; align-items: center; gap: .85rem; font-size: 1.05rem; color: var(--navy); }
.roof-system-legend span { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #2E66B1; color: #fff; font-weight: 700; font-size: .95rem; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(16, 24, 64, .18); }
.roof-system-note { text-align: center; margin: 1.25rem 0 0; font-size: .95rem; color: var(--muted); }
@media (max-width: 900px) {
  .roof-system { grid-template-columns: 1fr; }
  .roof-system-figure { order: -1; }
}
@media (max-width: 520px) {
  .roof-system-legend { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
  .roof-system-legend::after { display: none; }
}

.service-card, .article-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; display: flex; flex-direction: column; }
.service-card:hover, .article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #BFD3E8; }
.service-card p, .article-card p { color: var(--muted); flex: 1; }
.service-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--pale); display: grid; place-items: center; margin-bottom: 1.1rem; }
.service-icon .icon { width: 30px; height: 30px; fill: var(--blue); }
/* Illustrated service cards: line-art panel on top, centered serif-style title. */
.service-card--art { padding: clamp(.9rem, 1.8vw, 1.15rem) clamp(.9rem, 1.8vw, 1.15rem) clamp(1.3rem, 2.6vw, 1.6rem); text-align: center; box-shadow: none; border-color: #D6E4F2; }
.service-art { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); background: #E6F0FA; overflow: hidden; margin-bottom: 1.15rem; }
.service-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s var(--ease); }
.service-card--art:hover .service-art img { transform: scale(1.04); }
.service-card--art h3 { font-size: 1.35rem; margin-bottom: .4em; }
.service-card--art p { font-size: .97rem; margin-inline: auto; max-width: 34ch; }
.service-card--art .more { align-self: center; }
@media (prefers-reduced-motion: reduce) { .service-card--art:hover .service-art img { transform: none; } }
.card-link { color: var(--navy); text-decoration: none; }
.card-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.card-link:focus-visible { outline: none; }
.service-card:focus-within, .article-card:focus-within { outline: 3px solid var(--blue-dark); outline-offset: 3px; }
.more { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--blue-dark); font-size: .95rem; }

.check-list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; }
.check-list .icon { width: 22px; height: 22px; fill: #fff; background: var(--blue); border-radius: 50%; padding: 3px; margin-top: .15rem; }
.check-list--cols { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .check-list--cols { grid-template-columns: 1fr; } }
.dot-list { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; }
.dot-list li::marker { color: var(--blue); }

.options { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.options-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: .75rem; text-align: center; }
.options-card h3 { margin: 0; }
.options-card p { color: var(--muted); margin: 0 0 .5rem; }
.bear--card { width: 110px; margin: 0 auto .25rem; }
@media (max-width: 900px) { .options { grid-template-columns: 1fr; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: stretch; }
.step { display: flex; flex-direction: column; align-items: flex-start; background: #fff; border-radius: var(--radius-lg); padding: 2rem 1.75rem; box-shadow: var(--shadow-sm); }
.step-label { font: italic 600 1.6rem/1 var(--font-display); color: #A87800; letter-spacing: -.01em; margin-bottom: 1.25rem; }
.step h3 { font-size: 1.15rem; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: 1.15; margin-bottom: .9rem; }
.step p { color: var(--muted); margin: 0; font-size: .98rem; line-height: 1.6; }
.step--feature { background: var(--yellow); box-shadow: var(--shadow); }
.step--feature p, .step--feature .step-label { color: var(--navy); }
.step--feature .btn { margin-top: auto; }
.step--feature p + .btn { margin-top: 1.5rem; }
.btn-navy { --bg: var(--navy); --fg: #fff; text-transform: uppercase; letter-spacing: .04em; padding-inline: 2em; }
.btn-navy:hover { --bg: #1E2A5E; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.why-card { background: #fff; border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--line); height: 100%; }
.why-icon { width: 40px; height: 40px; fill: var(--blue); margin-bottom: .9rem; }
.why-card h3 { font-size: 1.12rem; }
.why-card p { color: var(--muted); margin: 0; font-size: .98rem; }

.area-groups { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2rem); }
.area-group { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-top: 6px solid var(--blue); }
.area-group h3 { font-size: 1.6rem; }
.area-group h3 a { color: var(--navy); text-decoration: none; }
.area-group h3 a:hover { color: var(--blue-dark); text-decoration: underline; }
.area-group > p { color: var(--muted); }
.area-group h4 { margin: 1.5rem 0 .75rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-family: var(--font-body); }
.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.chip-list li { padding: .35rem .8rem; background: var(--pale); border-radius: 999px; font-size: .92rem; font-weight: 600; color: var(--navy); }
.section--blue .chip-list li { background: var(--ivory); }
.area-note { text-align: center; margin: 1.75rem 0 0; color: var(--muted); }
@media (max-width: 800px) { .area-groups { grid-template-columns: 1fr; } }

/* "Proudly Serving" tabbed map */
.area-map { max-width: 1120px; margin-inline: auto; }
.area-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.6rem, 2vw, 1.25rem); max-width: 820px; margin: 0 auto clamp(1.25rem, 3vw, 2rem); }
.area-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 64px; padding: .9rem 1.25rem;
  font: 700 clamp(1rem, 2.2vw, 1.35rem)/1.2 var(--font-display); letter-spacing: .02em; text-transform: uppercase;
  color: var(--navy); background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  cursor: pointer; box-shadow: var(--shadow-sm);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.area-tab .icon { width: 1.3em; height: 1.3em; color: var(--blue-dark); }
.area-tab:hover { border-color: var(--blue); transform: translateY(-1px); }
.area-tab[aria-selected="true"] { background: var(--yellow); border-color: var(--yellow); box-shadow: 0 2px 0 #D9A400, 0 6px 16px rgba(255, 198, 25, .28); }
.area-tab[aria-selected="true"] .icon { color: var(--navy); }
.area-tab:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 3px; border-radius: var(--radius); }
.area-panel:focus-visible { outline-offset: 6px; border-radius: var(--radius-lg); }
.area-map-frame { position: relative; aspect-ratio: 16 / 7; min-height: 320px; border-radius: var(--radius-lg); overflow: hidden; background: var(--pale-2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.area-map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.area-cities { list-style: none; margin: clamp(1.5rem, 3vw, 2.25rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .9rem 1.5rem; text-align: center; }
.area-cities li { font-size: 1.05rem; font-weight: 600; color: var(--muted); }
.area-cities a { color: var(--blue-dark); font-weight: 700; }
@media (max-width: 760px) { .area-map-frame { aspect-ratio: 4 / 3; } }
@media (max-width: 560px) {
  .area-tab { min-height: 56px; padding: .75rem .6rem; gap: .4rem; font-size: .95rem; letter-spacing: 0; }
  .area-map-frame { aspect-ratio: 1 / 1; min-height: 280px; }
  .area-cities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; }
  .area-cities li { font-size: 1rem; }
}

.about-teaser { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; max-width: 980px; }
.about-logo { width: 200px; }
@media (max-width: 700px) { .about-teaser { grid-template-columns: 1fr; text-align: center; } .about-logo { margin: 0 auto; width: 160px; } }

.cta-band { background: #2D4E7C; color: #fff; padding: clamp(2.25rem, 4vw, 3rem) 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.15rem); margin-bottom: .35rem; }
.cta-band p { margin: 0; color: #DCE6F2; max-width: 60ch; font-size: 1.06rem; }
.cta-band .btn-row { gap: 1rem; }
.cta-band .btn { min-height: 52px; padding-inline: 1.6em; }
.btn-ghost-light { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .55); }
.btn-ghost-light:hover { --bg: rgba(255, 255, 255, .1); --bd: #fff; }
.btn-ghost-light .icon-line { width: 20px; height: 20px; }

/* FAQ */
.faq-list { display: grid; gap: .75rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.35rem; min-height: 56px; border-radius: var(--radius); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover .faq-q { color: var(--blue-dark); }
.faq-q { margin: 0; font-size: 1.08rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; line-height: 1.35; }
.faq-icon { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--pale); position: relative; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2.5px; background: var(--blue-dark); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .2s var(--ease); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq-item[open] .faq-icon { background: var(--yellow); }
.faq-a { padding: 0 1.35rem 1.25rem; color: #2B3358; }
.faq-a > :last-child { margin-bottom: 0; }

/* service page bits */
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--blue); font-weight: 700; }
.glance { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 1.5rem); }
.glance dl { margin: 0 0 1.25rem; display: grid; gap: .9rem; }
.glance dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); }
.glance dd { margin: .15rem 0 0; font-weight: 600; }
@media (max-width: 900px) { .glance { position: static; } }
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.scope-note { max-width: 760px; margin: 1.5rem auto 0; text-align: center; color: var(--muted); }
@media (max-width: 800px) { .scope-grid { grid-template-columns: 1fr; } }
.def-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.def-card { background: #fff; border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--line); border-left: 5px solid var(--blue); }
.def-card h3 { font-size: 1.15rem; }
.def-card p { margin: 0; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: t; display: grid; gap: 1rem; }
.timeline li { counter-increment: t; position: relative; padding: 1.25rem 1.5rem 1.25rem 4.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.timeline li::before { content: counter(t); position: absolute; left: 1.25rem; top: 1.2rem; width: 38px; height: 38px; border-radius: 50%; background: var(--pale); color: var(--blue-dark); display: grid; place-items: center; font: 800 1.05rem/1 var(--font-display); }
.timeline h3 { font-size: 1.12rem; margin-bottom: .25rem; }
.timeline p { margin: 0; color: var(--muted); }
.area-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-sm); }
.area-callout h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.area-callout p { margin: 0; color: var(--muted); }
.split-copy .bear--side { width: 130px; margin-top: 1.5rem; }
@media (max-width: 900px) { .split-copy .bear--side { display: none; } }
.decision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.decision-grid h3 { font-size: 1.15rem; }
@media (max-width: 700px) { .decision-grid { grid-template-columns: 1fr; } }
.side-stack { display: grid; gap: 1.25rem; }
.nearby .chip-list { margin-top: .75rem; }
.chip-list--links a { display: block; margin: -.35rem -.8rem; padding: .35rem .8rem; border-radius: 999px; color: inherit; text-decoration: none; }
.chip-list--links a:hover { background: var(--blue-dark); color: #fff; }

/* Roof replacement location pages */
.loc-checklist { margin-top: 1.75rem; }
.loc-checklist h3 { margin-top: 0; }
.loc-photo { margin: 0; }
.loc-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.loc-photo figcaption { margin-top: .75rem; font-size: .95rem; color: var(--muted); }
.nearby .dot-list { margin-bottom: 1rem; }
.loc-index { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.loc-index h3 { font-size: 1.25rem; }

/* projects, reviews, before/after */
.project-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.project-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.project-body { padding: 1.4rem; }
.project-meta { display: flex; align-items: center; gap: .35rem; font-size: .88rem; font-weight: 700; color: var(--blue-dark); margin-bottom: .4rem; }
.project-facts { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0 0 .75rem; font-size: .9rem; }
.project-facts dt { display: inline; font-weight: 700; }
.project-facts dt::after { content: ': '; }
.project-facts dd { display: inline; margin: 0; color: var(--muted); }
.review-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; justify-content: space-between; }
.review-card blockquote { margin: 0 0 1.25rem; font-size: 1.05rem; }
.review-card figcaption { display: grid; gap: .1rem; font-size: .92rem; color: var(--muted); }
.review-card figcaption strong { color: var(--navy); font-size: 1rem; }
.review-card figcaption a { color: inherit; }
.review-stars { --rating: 5; display: inline-block; font-size: 1.1rem; letter-spacing: .1em; line-height: 1; margin-bottom: .9rem; background: linear-gradient(90deg, var(--yellow) calc(var(--rating) / 5 * 100%), var(--line) 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.review-card--google blockquote p { white-space: pre-line; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 9; overflow: hidden; }
.review-card--google figcaption { display: flex; align-items: center; gap: .75rem; }
.review-who { display: grid; gap: .1rem; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.review-more { display: inline-block; margin-top: .5rem; font-size: .9rem; font-weight: 700; color: var(--blue-dark); }

/* scrolling review strip (site.js adds .is-marquee unless reduced motion) */
.review-carousel { position: relative; }
.review-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem .5rem; margin: -.5rem 0 1.5rem; color: var(--muted); }
.review-summary .review-stars { margin: 0; }
.review-summary strong { color: var(--navy); font-size: 1.1rem; }
.review-summary a { color: var(--blue-dark); font-weight: 700; }
.review-viewport { overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem 0 1rem; border-radius: var(--radius); }
.review-viewport:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.review-track { display: flex; width: max-content; }
.review-track .review-card { width: min(360px, 82vw); margin-right: 1.25rem; scroll-snap-align: start; }
.review-carousel.is-marquee .review-viewport { overflow: hidden; scroll-snap-type: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.review-carousel.is-marquee .review-track { animation: review-marquee var(--marquee-duration, 40s) linear infinite; }
.review-carousel.is-marquee .review-viewport:hover .review-track,
.review-carousel.is-marquee .review-viewport:focus-within .review-track,
.review-carousel.is-paused .review-track { animation-play-state: paused; }
@keyframes review-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.review-toggle { display: block; margin: .5rem auto 0; background: none; border: 1px solid var(--line); border-radius: 999px; padding: .35rem 1rem; font: 600 .85rem var(--font-body); color: var(--muted); cursor: pointer; }
.review-toggle:hover { color: var(--navy); border-color: var(--muted); }

.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.ba { margin: 0; }
.ba-frame { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); --pos: 50%; background: var(--pale-2); container-type: inline-size; isolation: isolate; transform: translateZ(0); cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.ba-frame.is-dragging { cursor: grabbing; }
.ba-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; -webkit-user-drag: none; pointer-events: none; }
/* Clip the before photo by narrowing its wrapper (not clip-path) and pin the photo to the frame's width — avoids Safari mis-scaling the images on scroll. */
.ba-before-wrap { position: absolute; top: 0; bottom: 0; left: 0; width: var(--pos); overflow: hidden; }
.ba-before { width: 100cqw; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 0 1px rgba(16, 24, 64, .2); pointer-events: none; }
.ba-handle::after { content: ''; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--yellow); border: 3px solid #fff; box-shadow: var(--shadow); transition: transform .15s var(--ease); }
.ba-frame:hover .ba-handle::after, .ba-frame.is-dragging .ba-handle::after { transform: translate(-50%, -50%) scale(1.12); }
.ba-label { position: absolute; top: .75rem; padding: .25rem .65rem; border-radius: 999px; background: rgba(16, 24, 64, .78); color: #fff; font-size: .8rem; font-weight: 700; pointer-events: none; }
.ba-label--before { left: .75rem; }
.ba-label--after { right: .75rem; }
.ba-range { width: 100%; margin: .9rem 0 .5rem; accent-color: var(--blue-dark); min-height: 32px; cursor: ew-resize; }
.ba figcaption { font-size: .95rem; color: var(--muted); }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery-item { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.gallery-item img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .3s var(--ease); }
.gallery-item:hover img { transform: scale(1.03); }
.lightbox { border: 0; border-radius: var(--radius-lg); padding: 1rem; max-width: min(1000px, 94vw); background: #fff; box-shadow: var(--shadow-lg); }
.lightbox::backdrop { background: rgba(16, 24, 64, .7); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 72vh; width: auto; margin: 0 auto; border-radius: var(--radius-sm); }
.lightbox figcaption { text-align: center; margin-top: .75rem; color: var(--muted); }
.lightbox-controls { display: flex; justify-content: center; gap: .75rem; margin-top: .75rem; }

/* articles */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.article-body { max-width: 72ch; font-size: 1.08rem; }
.article-meta { color: var(--muted); font-size: .92rem; }
.article-photo { margin: 1.25rem 0 2rem; border-radius: var(--radius); overflow: hidden; background: #E6F0FA; }
.article-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.article-card--photo { padding-top: clamp(.9rem, 1.8vw, 1.15rem); }
.article-card-img { aspect-ratio: 3 / 2; border-radius: var(--radius-sm); background: #E6F0FA; overflow: hidden; margin-bottom: 1.15rem; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s var(--ease); }
.article-card--photo:hover .article-card-img img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .article-card--photo:hover .article-card-img img { transform: none; } }
.article-aside { display: grid; gap: 1.25rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.article-aside .h3 { font-size: 1.12rem; }
.link-list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .5rem; }
.link-list--inline { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; margin-top: 2rem; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } .article-aside { position: static; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact-aside { display: grid; gap: 1.25rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-list a { display: flex; gap: .85rem; align-items: center; text-decoration: none; color: var(--navy); word-break: break-word; }
.contact-list a > span { display: grid; }
.contact-list .icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--pale); fill: var(--blue-dark); }
.card--bear { position: relative; padding-top: 1.5rem; }
.bear--aside { width: 90px; float: right; margin: 0 0 .5rem 1rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.status-page { min-height: 55vh; }
.bear--status { width: 140px; margin: 0 auto 1.5rem; }

.placeholder-box { border: 2px dashed #B9C3D3; border-radius: var(--radius); padding: 2.5rem 1rem; text-align: center; color: var(--muted); background: #fff; }

/* -------------------------------------------------------------- footer --- */
.site-footer { background: #121F3E; color: #C6D0E0; padding: clamp(3rem, 6vw, 4rem) 0 0; font-size: .98rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.icon-line { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .95fr .9fr 1fr; gap: 2.5rem 3rem; }
.footer-logo { width: 200px; height: auto; margin-bottom: 1.25rem; }
.footer-tagline { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; line-height: 1.2; color: #fff; margin: 0 0 1rem; }
.footer-brand p:not(.footer-tagline):not(.footer-badge) { max-width: 34ch; line-height: 1.65; margin: 0; }
.footer-social { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: background-color .15s, color .15s; }
.footer-social a:hover, .footer-social a:focus-visible { background: var(--yellow); color: var(--navy); }
.footer-social .icon { width: 18px; height: 18px; fill: currentColor; }
.footer-badge { display: flex; align-items: center; gap: .5rem; margin: 1.5rem 0 0; color: var(--yellow); font-weight: 700; font-size: .9rem; }
.footer-badge .icon-line { width: 18px; height: 18px; }
.footer-heading { font-family: var(--font-body); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--yellow); margin: 0 0 1.1rem; }
.footer-list + .footer-heading { margin-top: 2rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-list a { display: inline-flex; align-items: center; min-height: 26px; }
.footer-list a.footer-more { color: var(--yellow); font-weight: 700; gap: .3rem; }
.footer-list a.footer-more:hover { color: #fff; }
.footer-more .icon { width: 1em; height: 1em; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.footer-contact a, .footer-contact li > span { display: inline-flex; align-items: flex-start; gap: .75rem; line-height: 1.5; word-break: break-word; color: #fff; }
.footer-contact .icon-line { color: var(--yellow); margin-top: .1em; }
.footer-phone { font-weight: 800; font-size: 1.15rem; }
.footer-base { margin-top: clamp(2.5rem, 5vw, 3rem); border-top: 1px solid rgba(255, 255, 255, .1); color: #AEB9CC; font-size: .88rem; }
.footer-base-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding: 1.5rem 0; }
.footer-base p { margin: 0; }
.footer-legal { display: flex; gap: 1.25rem; }
.site-footer .footer-legal a, .site-footer .footer-legal .link-button { color: #C6D0E0; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .footer-legal a:hover, .site-footer .footer-legal .link-button:hover { color: #fff; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .cta-band .btn-row, .cta-band .btn { width: 100%; } }

/* ---------------------------------------------------- mobile action bar --- */
.mobile-bar { display: none; }
@media (max-width: 900px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .98); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(16, 24, 64, .08); transition: transform .25s var(--ease);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 50px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 1.02rem; }
  .mobile-bar-call { background: var(--pale); color: var(--blue-deeper); border: 2px solid var(--blue-dark); }
  .mobile-bar-estimate { background: var(--yellow); color: var(--navy); }
  body.is-typing .mobile-bar, body.nav-open .mobile-bar { transform: translateY(110%); }
}

/* -------------------------------------------- consent (Google tags) --- */
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.consent-banner {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 70; max-width: 420px; padding: 1rem 1.1rem;
  background: #fff; color: var(--navy); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(16, 24, 64, .18); font-size: .95rem;
}
.consent-banner[hidden] { display: none; }
.consent-banner p { margin: 0 0 .75rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 900px) {
  .consent-banner { left: .75rem; right: .75rem; max-width: none; bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* ------------------------------------------------ preview-only markers --- */
.pending { position: relative; outline: 2px dashed #E0A800; outline-offset: 6px; border-radius: 8px; margin: 1.25rem 0; }
.pending--inline { display: inline; margin: 0; }
.pending-tag { position: absolute; top: -1.15rem; left: .5rem; z-index: 2; background: #FFF3C4; color: #5C4300; border: 1px solid #E0A800; font: 700 .72rem/1 var(--font-body); padding: .3rem .5rem; border-radius: 6px; letter-spacing: .02em; }
.why-grid > .pending, .steps.pending { margin: 0; }

/* ---------------------------------------------------------- animation --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
  .hero-copy > * { animation: rise .7s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-copy > :nth-child(5) { animation-delay: .24s; }
  .hero-form { animation: rise .8s .15s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .site-header, .area-strip, .mobile-bar, .cta-band, .hero-form, .site-footer { display: none !important; }
}

/* shingle color swatches (illustrated, see lib/components.mjs) */
.swatch-grid { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(.6rem, 1.4vw, 1.1rem); }
.swatch { margin: 0; }
.swatch-art { position: relative; display: flex; flex-direction: column; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: var(--edge); box-shadow: var(--shadow-sm); }
.swatch-art b { display: flex; flex: 1; width: 140%; align-items: flex-start; border-bottom: 3px solid var(--edge); }
.swatch-art i { flex: none; height: 100%; box-shadow: inset -2px 0 0 var(--edge), inset 0 -6px 8px -6px rgba(0, 0, 0, .55); }
.swatch-grid--large .swatch-art b { border-bottom-width: 5px; }
.swatch-grid--large .swatch-art i { box-shadow: inset -3px 0 0 var(--edge), inset 0 -10px 12px -8px rgba(0, 0, 0, .6); }
/* granule texture */
.swatch-art::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .55; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 2.2 -.6'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(160deg, rgba(255, 255, 255, .18), rgba(0, 0, 0, .12)); }
.swatch-name { display: block; margin-top: .45rem; font-size: .88rem; font-weight: 700; line-height: 1.25; color: var(--navy); }
.swatch-line { margin-top: 2.5rem; }
.swatch-line:first-of-type { margin-top: 0; }
.swatch-line h3 { margin-bottom: .35rem; }
.swatch-line > p { color: var(--muted); max-width: 70ch; }
.swatch-note { margin-top: 1.5rem; font-size: .88rem; color: var(--muted); }
@media (max-width: 960px) { .swatch-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .swatch-grid { grid-template-columns: repeat(3, 1fr); } }

/* project map */
.project-map { margin-top: 1rem; }
.map-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; justify-content: center; }
.map-filter { font: inherit; font-weight: 700; font-size: .92rem; padding: .5rem 1rem; border-radius: 999px; border: 2px solid var(--blue-dark); background: #fff; color: var(--blue-dark); cursor: pointer; }
.map-filter.is-active, .map-filter:hover { background: var(--blue-dark); color: #fff; }
.map-layout { display: grid; grid-template-columns: 1fr minmax(260px, 340px); gap: 1.25rem; align-items: stretch; }
.map-canvas { position: relative; z-index: 0; isolation: isolate; min-height: 460px; border-radius: var(--radius); overflow: hidden; background: var(--pale-2); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); font-weight: 600; }
.map-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; align-content: start; max-height: 460px; overflow-y: auto; }
.map-list li[hidden] { display: none; }
.map-list-item { display: flex; gap: .75rem; align-items: flex-start; width: 100%; text-align: left; font: inherit; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .85rem 1rem; cursor: pointer; }
.map-list-item:hover, .map-list-item:focus-visible { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.map-list-item strong { display: block; line-height: 1.3; }
.map-list-meta { display: flex; align-items: center; gap: .3rem; margin-top: .2rem; font-size: .86rem; color: var(--muted); }
.map-list-meta .icon { width: 14px; height: 14px; fill: var(--blue-dark); }
.map-list-pin { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-weight: 800; font-size: .85rem; }
.map-note { margin-top: .9rem; font-size: .85rem; color: var(--muted); }
.bb-pin { background: none; border: 0; }
.bb-pin-shape { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--yellow); border: 3px solid var(--navy); box-shadow: 0 4px 10px rgba(16, 24, 64, .35); }
.bb-pin-shape span { transform: rotate(45deg); font-family: var(--font-body); font-weight: 800; font-size: 14px; line-height: 1; color: var(--navy); }
.map-popup { width: 220px; font-family: var(--font-body); }
.map-popup img { display: block; width: 100%; height: 110px; object-fit: cover; border-radius: 6px; margin-bottom: .5rem; }
.map-popup strong { display: block; font-size: 1rem; color: var(--navy); }
.map-popup span { display: block; font-size: .85rem; color: var(--muted); }
.map-popup a { display: inline-block; margin-top: .4rem; font-weight: 700; color: var(--blue-dark); }
@media (max-width: 860px) { .map-layout { grid-template-columns: 1fr; } .map-canvas { min-height: 360px; } .map-list { max-height: none; } }
.def-card .hood-list { margin-top: 1rem; }
.def-card .hood-list li { font-size: .85rem; }
.hood-zips { margin: 2rem auto 0; max-width: 760px; color: var(--muted); }
.swatch-kind { display: inline-block; margin-left: .4rem; padding: .15rem .6rem; border-radius: 999px; background: var(--pale); color: var(--blue-dark); font: 700 .75rem var(--font-body); letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.section--blue .swatch-kind { background: #fff; }
.office-hours { margin: 1rem 0 .5rem; }
.office-card p { margin-bottom: .75rem; }
.bb-pin--gmap { display: block; padding-bottom: 6px; cursor: pointer; }
.bb-cluster { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 999px; background: var(--navy); color: #fff; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(16, 24, 64, .25), 0 4px 10px rgba(16, 24, 64, .35); font-family: var(--font-body); font-weight: 800; font-size: 14px; cursor: pointer; }

/* ------------------------------------------------------------ booking --- */
.booking-band { background: #F3EFE4; }
.booking-promo { display: grid; justify-items: center; text-align: center; max-width: 820px; margin-inline: auto; }
.promo-art { position: relative; width: 100%; display: grid; justify-items: center; padding-top: clamp(1rem, 3vw, 2rem); }
.promo-cal {
  position: absolute; inset: 0 0 auto; z-index: 0;
  display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: clamp(44px, 8vw, 74px);
  border: 3px solid var(--navy); background: #fff; border-radius: 6px; overflow: hidden;
  grid-template-rows: auto;
}
.promo-cal-head { font: 700 clamp(.66rem, 1.6vw, .95rem)/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; display: grid; place-items: center; height: clamp(26px, 4.5vw, 38px); border-bottom: 3px solid var(--navy); background: var(--yellow); color: var(--navy); }
.promo-cal-head:not(:nth-child(7)), .promo-cal-day:not(:nth-child(7n)) { border-right: 1.5px solid var(--navy); }
.promo-cal-day { padding: .2rem .4rem; font: 700 clamp(.66rem, 1.4vw, .9rem)/1.2 var(--font-display); color: var(--navy); text-align: left; border-bottom: 1.5px solid var(--navy); }
.promo-cal-day:nth-last-child(-n+7) { border-bottom: 0; }
.promo-photo {
  position: relative; z-index: 1; width: min(66%, 480px); height: auto; margin-top: clamp(1.5rem, 4vw, 2.6rem);
  filter: drop-shadow(0 10px 18px rgba(16, 24, 64, .22));
}
.promo-title { margin: clamp(1.4rem, 3vw, 2rem) 0 .4rem; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; }
.promo-sub { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); margin-bottom: 1.6rem; }
.promo-btn { min-width: 220px; }
/* Homepage band: a slightly smaller version of the card. */
.booking-band .booking-promo { max-width: 700px; }
.booking-band .promo-cal { grid-auto-rows: clamp(40px, 7vw, 62px); }
.booking-band .promo-photo { width: min(64%, 400px); }
.booking-band .promo-title { font-size: clamp(1.8rem, 3.8vw, 2.7rem); margin-top: clamp(1.2rem, 2.6vw, 1.7rem); }
.booking-band .promo-sub { margin-bottom: 1.3rem; }

.booking-page { padding-top: clamp(2rem, 5vw, 3.5rem); }
.booking:focus { outline: none; }
.booking-back { display: inline-flex; align-items: center; gap: .35rem; margin: 0 0 1.5rem; padding: .4rem .1rem; background: none; border: 0; font: 600 1.05rem var(--font-body); color: var(--navy); cursor: pointer; }
.booking-back:hover { color: var(--blue-dark); }
.icon-back { transform: rotate(90deg); }
.booking-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: .35rem; }
.booking-lead { color: var(--muted); margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }

.calendly-embed { height: 760px; margin-inline: -1rem; }
.calendly-embed iframe { display: block; width: 100%; height: 100%; }
.calendly-loading { padding: 2rem; color: var(--muted); text-align: center; }
.booking-fallback { text-align: center; margin-top: 1rem; }
.booking-noscript { text-align: center; margin-top: 1.5rem; }
.card--book { border-top: 5px solid var(--yellow); }

@media (max-width: 680px) {
  .calendly-embed { height: 1050px; }
  .promo-photo { width: min(80%, 360px); }
}

/* ------------------------------------------------------------ warranty --- */
.warranty-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3.5rem, 8vw, 6.5rem); }
.warranty-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--yellow) 0 46px, #E0A900 46px 48px); }
.warranty-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.warranty-hero::before { /* keeps the headline readable over the photo */
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(16, 24, 64, .88) 0%, rgba(35, 76, 119, .72) 55%, rgba(35, 76, 119, .35) 100%);
}
.warranty-hero-inner { position: relative; z-index: 2; }
.warranty-hero h1 { color: #fff; font-size: clamp(2.6rem, 7vw, 5rem); text-transform: uppercase; letter-spacing: -.01em; margin-bottom: .3em; }
.warranty-hero .eyebrow { color: var(--yellow); }
.warranty-hero .lead { color: rgba(255, 255, 255, .92); margin-bottom: 1.75rem; }
.warranty-hero .breadcrumbs ol, .warranty-hero .breadcrumbs li::after { color: rgba(255, 255, 255, .75); }
.warranty-hero .breadcrumbs a { color: #fff; }
.warranty-hero :focus-visible { outline-color: var(--yellow); }

.warranty-basics { align-items: center; }
.warranty-points { gap: 1rem; margin-bottom: 1.75rem; }
.warranty-points strong { color: var(--navy); }
.warranty-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border-bottom: 8px solid var(--yellow); }
.warranty-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.coverage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2rem); }
.coverage-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.coverage-card > img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.coverage-body { padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.coverage-body .dot-list { margin-bottom: 1.25rem; }
.coverage-num { font: italic 600 1.15rem/1 var(--font-display); color: #A87800; margin-bottom: .75rem; }
.coverage-body h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); text-transform: uppercase; letter-spacing: .005em; }
.coverage-note { background: var(--ivory); border-left: 4px solid var(--yellow); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: .7rem .9rem; font-size: .95rem; color: var(--muted); margin-bottom: 1.5rem; }
.coverage-body .btn { margin-top: auto; }
@media (max-width: 820px) { .coverage-grid { grid-template-columns: 1fr; } }

.limit-grid { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.limit-grid li { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--blue); border-radius: var(--radius); padding: 1.4rem 1.3rem; }
.limit-grid h3 { font-size: 1.1rem; }
.limit-grid p { color: var(--muted); font-size: .97rem; margin: 0; }
.limit-note { display: flex; gap: .75rem; align-items: flex-start; max-width: 820px; margin: 0; color: var(--muted); }
.limit-note .icon { width: 24px; height: 24px; fill: var(--blue); margin-top: .1rem; }
@media (max-width: 1000px) { .limit-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .limit-grid { grid-template-columns: 1fr; } }

.steps--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .steps--3 { grid-template-columns: 1fr; } }
.leak-alert { display: flex; gap: 1rem; align-items: flex-start; margin-top: 2rem; background: #FFF8E1; border: 2px solid var(--yellow); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.leak-alert h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.leak-alert p { margin: 0; }
.leak-alert-icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; }
.leak-alert-icon .icon { fill: var(--yellow); width: 22px; height: 22px; }

.warranty-form-split { grid-template-columns: .75fr 1.25fr; align-items: start; }
.warranty-form-split .split-copy { position: sticky; top: calc(var(--header-h) + 1.5rem); }
@media (max-width: 900px) { .warranty-form-split { grid-template-columns: 1fr; } .warranty-form-split .split-copy { position: static; } }
.form-group { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
.form-group + .form-group { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.form-group legend { display: flex; align-items: center; gap: .6rem; padding: 0; margin-bottom: .9rem; font: 700 1.1rem/1.2 var(--font-display); color: var(--navy); }
.form-group-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); font-size: .85rem; }
.form-group .field-grid { margin-bottom: 0; }
.field-pair { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem; }
.form-note--left { text-align: left; }
.field--ack { margin-bottom: 1.25rem; }
.field--ack label { color: var(--text); font-size: .93rem; }
.field--ack .field-error { grid-column: 2; }

.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head-row .section-head { margin-bottom: 0; }

.license-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 1.25rem; }
.license-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; text-align: center; box-shadow: var(--shadow-sm); }
.license-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--muted); margin: 0 0 .2rem; }
.license-card h3 { font-size: 1.6rem; text-transform: uppercase; }
.license-number { margin-bottom: .75rem; }
@media (max-width: 600px) { .license-grid { grid-template-columns: 1fr; } }

/* Four-step estimate selections, matching the navy and yellow form card. */
.estimate-progress { margin: .5rem 0 1rem; color: var(--muted); font-size: .85rem; font-weight: 700; letter-spacing: .04em; }
.estimate-step { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.estimate-step legend { padding: 0; margin-bottom: 1.2rem; font: 700 1.3rem/1.25 var(--font-display); color: var(--navy); }
.estimate-step legend:focus { outline: none; }
.estimate-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.estimate-choice { position: relative; cursor: pointer; }
.estimate-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.estimate-choice > span:first-of-type { display: grid; place-items: center; min-height: 74px; padding: .85rem .5rem; border: 2px solid var(--line); border-radius: 12px; color: var(--navy); font-weight: 700; text-align: center; background: #fff; transition: border-color .15s, background-color .15s; }
.estimate-choice:hover > span:first-of-type { border-color: var(--blue-dark); background: var(--pale); }
.estimate-choice input:checked + span { border-color: var(--navy); background: var(--yellow-light); }
.estimate-choice input:checked + span::after { content: '✓'; margin-top: .2rem; }
.estimate-choice input:focus-visible + span { outline: 3px solid var(--blue-dark); outline-offset: 3px; }
.estimate-choice input[aria-invalid="true"] + span { border-color: var(--error); }
.estimate-choice .field-error { display: none; }
.estimate-nav { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.25rem; }
.lead-form[data-estimate-wizard] [hidden] { display: none !important; }

/* Keep Previous visible inside the homepage hero's white form card. */
.lead-form .estimate-nav .btn-outline { --bg: #fff; --fg: var(--navy); --bd: var(--navy); }
.lead-form .estimate-nav .btn-outline:hover { --bg: var(--pale); --fg: var(--navy); }

/* Lead with the current question, followed immediately by its step number. */
.estimate-step legend { margin-bottom: .4rem; }
.estimate-step .estimate-progress { margin: 0 0 1.2rem; }
#estimate:not(.form-card--wide) .estimate-step legend { width: 100%; text-align: center; }
#estimate:not(.form-card--wide) .estimate-progress { text-align: center; }

/* Estimate card inspired by the supplied reference: yellow masthead and icon tiles. */
.hero-form { max-width: 520px; }
#estimate.form-card--estimate { padding: 0; border: 1px solid #dce0e8; border-top: 0; border-radius: 26px; overflow: hidden; background: #fff; color: var(--navy); }
#estimate.form-card--estimate:not(.form-card--wide) { max-width: 520px; }
#estimate.form-card--estimate::before { display: none; }
.estimate-banner { padding: 1.75rem clamp(1.25rem, 3vw, 2rem); background: #f9ce44; color: var(--navy); }
.estimate-banner h2 { margin: 0; font: 800 clamp(1.4rem, 2.2vw, 1.85rem)/1.15 var(--font-display); color: var(--navy); }
.estimate-banner p { margin: 0; font-size: 1rem; font-weight: 700; }
.form-card--estimate .lead-form { padding: 1.65rem clamp(1.25rem, 3vw, 2rem) 0; }
.form-card--estimate .estimate-progress { text-align: left !important; margin: 0 0 1.5rem; color: #555d70; font-size: .9rem; letter-spacing: 0; }
.estimate-progress-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45rem; margin-top: .6rem; }
.estimate-progress-bars i { display: block; height: 6px; background: #e2e5ed; border-radius: 99px; }
.estimate-progress-bars .is-complete { background: var(--navy); }
#estimate.form-card--estimate .estimate-step legend { width: 100%; text-align: left; margin-bottom: 1.25rem; font: 800 clamp(1.25rem, 2vw, 1.5rem)/1.25 var(--font-display); }
.form-card--estimate .estimate-choices { gap: .8rem; }
.form-card--estimate .estimate-choice > span:first-of-type { display: flex; flex-direction: column; justify-content: center; gap: .75rem; min-height: 120px; padding: 1rem .6rem; background: #f7f8fb; border: 2px solid #d6dbe6; border-radius: 15px; font-size: .95rem; line-height: 1.25; }
.estimate-choice svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form-card--estimate .estimate-choice:hover > span:first-of-type { border-color: var(--navy); background: #fff8de; }
.form-card--estimate .estimate-choice input:checked + span { border-color: var(--navy); background: #fff0b8; }
.form-card--estimate .estimate-choice input:checked + span::after { display: none; }
.estimate-gutters { margin: 1rem 0 0; font-size: .9rem; color: #555d70; }
.estimate-gutters button, .estimate-skip { padding: 0; border: 0; background: none; color: var(--navy); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.estimate-no-spam { margin: .8rem 0; color: #555d70; font-size: .8rem; text-align: center; }
.lead-form .estimate-nav .estimate-previous { --fg: var(--navy); --bg: #fff; --bd: #d6dbe6; padding: .65rem 1rem; font-size: .9rem; }
.lead-form .estimate-nav .estimate-previous:hover { --bg: #f7f8fb; }
.estimate-area { padding: .8rem; border-radius: 10px; background: #f0f6f0; color: #315b3e; font-weight: 600; font-size: .9rem; }
.form-card--estimate .field-stack .field textarea { min-height: 90px; }
.form-card--estimate [data-submit] { width: 100%; border-radius: 12px; min-height: 52px; font-size: 1rem; }
.form-card--estimate .estimate-after { padding: 1.5rem clamp(1.25rem, 3vw, 2rem) 2rem; text-align: left; }
.estimate-kicker { font-size: .85rem; font-weight: 700; color: #555d70; }
.estimate-skip { display: block; margin: 1.1rem auto; font-size: .85rem; }
.estimate-after [hidden] { display: none !important; }
.estimate-after iframe { width: 100%; height: 720px; border: 0; border-radius: 12px; background: #f7f8fb; }
.estimate-confirm-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1rem; border-radius: 50%; background: #fff0b8; color: var(--navy); font-size: 1.8rem; }
[data-estimate-confirmation]:focus { outline: none; }
@media (max-width: 380px) { .form-card--estimate .estimate-choice > span:first-of-type { font-size: .82rem; padding-inline: .35rem; } .estimate-nav { flex-wrap: wrap; } }

.estimate-trust { padding: 1.25rem 0 1.5rem; margin: 1.25rem clamp(1.25rem, 3vw, 2rem) 0; border-top: 1px solid #e3e6ed; text-align: center; font-size: .78rem; line-height: 1.9; font-weight: 600; color: #555d70; }
.estimate-trust span { padding: 0 .35rem; }

@media (max-width: 560px) { .header-phone { font-size: .85rem; white-space: nowrap; } .header-actions { gap: .5rem; } }
