.emergency-section { background: #0F172A; color: #fff; padding: 64px 0; text-align: center; }
.emergency-section h2 { color: #fff; margin-bottom: 12px; }
.emergency-section p { color: #94A3B8; margin-bottom: 28px; font-size: 1.05rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.btn-emergency {
  padding: 16px 40px; background: #E8451A; color: #fff; border: none; border-radius: 50px;
  font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: background 0.2s, transform 0.1s;
}
.btn-emergency:hover { background: #c93a14; }
.btn-emergency:active { transform: scale(0.97); }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
/* ── HOME RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .city-cards-grid { grid-template-columns: repeat(3, 1fr); }
  .cities-grid { grid-template-columns: repeat(3, 1fr); }
  .resources-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; gap: 20px; }
  .city-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cities-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content h1 { font-size: 1.9rem; }
  .nav .container { flex-wrap: wrap; row-gap: 10px; }
  .nav-links { width: 100%; margin-top: 8px; flex-wrap: wrap; justify-content: flex-start; }
}
@media (max-width: 480px) {
  .city-cards-grid { grid-template-columns: 1fr 1fr; }
  .cities-grid { grid-template-columns: 1fr 1fr; }
  .contractors-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .compare-table th, .compare-table td { padding: 10px 12px; font-size: 0.85rem; }
  .hero-content h1 { font-size: 1.6rem; }
  .hero { padding: 48px 0 56px; }
  .hero-form-wrap { padding: 24px 18px; }
  .btn-nav { min-height: 44px; display: inline-flex; align-items: center; }
  .city-link { min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .city-card { min-height: 44px; justify-content: center; }
  /* Lead-form touch targets: full-width submit + 44px-tall inputs (#W1) */
  .hero-form input, .hero-form select,
  .city-form input, .city-form select, .city-form textarea {
    min-height: 44px; box-sizing: border-box;
  }
  .btn-submit { width: 100%; min-height: 44px; box-sizing: border-box; }
}
/* Prevent horizontal scroll at 375px */
@media (max-width: 400px) {
  .city-cards-grid { gap: 10px; }
  .city-card { padding: 14px 12px; }
  .all-cities-summary { font-size: 0.9rem; }
  .local-content .container { max-width: 100%; }
}

/* ── STATE PAGE ─────────────────────────────────────────────────────────── */
.state-hero { background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%); color: #fff; padding: 56px 0 48px; text-align: center; }
.state-hero h1 { color: #fff; font-size: 2.2rem; margin-bottom: 12px; }
.state-sub { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: 1rem; opacity: 0.9; margin-bottom: 24px; }
.state-sub span { white-space: nowrap; }
.state-storm-box { display: inline-block; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; padding: 12px 24px; font-size: 0.95rem; max-width: 700px; }
.state-cities-section { padding: 64px 0; background: #F8FAFC; }
.state-cities-section h2 { margin-bottom: 32px; }
.state-cities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.state-city-card { position: relative; display: block; background: #fff; border: 1.5px solid #E2E8F0; border-radius: 10px; padding: 20px; text-decoration: none; color: inherit; transition: border-color 0.2s, box-shadow 0.2s; }
.state-city-card:hover { border-color: #1565C0; box-shadow: 0 4px 20px rgba(21,101,192,0.12); }
/* Whole card clickable via stretched link; service pills sit above it. */
.scity-link { text-decoration: none; color: inherit; }
.scity-link::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.state-city-card .scity-services { position: relative; z-index: 1; }
.scity-name { font-size: 1.1rem; font-weight: 700; color: #1A202C; margin-bottom: 4px; }
.scity-meta { margin-bottom: 12px; }
.scity-count { font-size: 0.85rem; color: #1565C0; font-weight: 600; }
.scity-coming { color: #94A3B8; }
.scity-services { display: flex; flex-wrap: wrap; gap: 6px; }
.scity-service-link { font-size: 0.75rem; padding: 3px 10px; background: #EFF6FF; color: #1565C0; border-radius: 20px; text-decoration: none; transition: background 0.2s; }
.scity-service-link:hover { background: #DBEAFE; }
.state-info-section { padding: 64px 0; background: #fff; }
.state-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.state-info-card { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px; padding: 28px; }
.state-info-card h3 { font-size: 1rem; margin-bottom: 12px; color: #1A202C; }
.state-info-card p { font-size: 0.9rem; color: #4A5568; line-height: 1.65; margin-bottom: 8px; }

/* ── CONTRACTOR PROFILE ─────────────────────────────────────────────────── */
.contractor-hero { background: #F8FAFC; border-bottom: 1px solid #E2E8F0; padding: 48px 0; }
.cprofile-wrap { display: grid; grid-template-columns: 1fr 440px; gap: 48px; align-items: start; }
.cprofile-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.cprofile-header h1 { margin: 0; font-size: 2rem; }
.cprofile-verified { background: #DCFCE7; color: #166534; font-size: 0.85rem; font-weight: 700; padding: 5px 12px; border-radius: 20px; white-space: nowrap; }
.cprofile-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.cstars { color: #F59E0B; font-size: 1.3rem; }
.cprofile-rating strong { font-size: 1.2rem; }
.crating-count { color: #718096; font-size: 0.9rem; }
.cprofile-meta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.cmeta-item { font-size: 0.95rem; color: #4A5568; }
.cprofile-bio { color: #4A5568; line-height: 1.7; margin-bottom: 24px; font-size: 0.95rem; }
.cprofile-services h3 { margin-bottom: 12px; }
.cservice-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.ctag { padding: 5px 14px; background: #EFF6FF; color: #1565C0; border-radius: 20px; font-size: 0.85rem; font-weight: 500; }
.cprofile-links { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-back-city { padding: 10px 20px; border: 1.5px solid #CBD5E0; color: #4A5568; border-radius: 8px; text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.cprofile-form-wrap { background: #fff; border: 1.5px solid #E2E8F0; border-radius: 12px; padding: 32px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.nearby-section { padding: 64px 0; background: #fff; }
.nearby-section h2 { margin-bottom: 32px; }

/* ── GUIDE / COST PAGE ──────────────────────────────────────────────────── */
.guide-hero { background: #1A202C; color: #fff; padding: 56px 0; }
.guide-hero h1 { color: #fff; font-size: 2.1rem; margin-bottom: 12px; }
.guide-sub { color: rgba(255,255,255,0.75); font-size: 1rem; margin-bottom: 32px; }
.guide-quick-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 800px; }
.qstat { background: rgba(255,255,255,0.1); border-radius: 8px; padding: 16px; text-align: center; }
.qval { display: block; font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.qlabel { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.guide-content { padding: 64px 0; }
.guide-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.guide-article h2 { margin: 32px 0 16px; }
.guide-article p { color: #4A5568; line-height: 1.75; margin-bottom: 16px; }
.guide-list { list-style: none; padding: 0; margin-bottom: 24px; }
.guide-list li { padding: 10px 0 10px 20px; border-bottom: 1px solid #F1F5F9; color: #4A5568; font-size: 0.95rem; line-height: 1.65; position: relative; }
.guide-list li::before { content: '✓'; position: absolute; left: 0; color: #1565C0; font-weight: 700; }
.sidebar-form { background: #F8FAFC; border: 1.5px solid #E2E8F0; border-radius: 12px; padding: 28px; margin-bottom: 24px; position: sticky; top: 20px; }
.sidebar-form h3 { margin-bottom: 8px; }
.sidebar-form > p { color: #4A5568; font-size: 0.9rem; margin-bottom: 16px; }
.sidebar-links { background: #F8FAFC; border-radius: 10px; padding: 20px; }
.sidebar-links h4 { margin-bottom: 12px; font-size: 0.95rem; }
.sidebar-links ul { list-style: none; padding: 0; }
.sidebar-links li { margin-bottom: 8px; }
.sidebar-links a { color: #1565C0; text-decoration: none; font-size: 0.9rem; }
.sidebar-links a:hover { text-decoration: underline; }

/* ── SERVICE NAV ────────────────────────────────────────────────────────── */
.services-nav { background: #F1F5F9; border-bottom: 1px solid #E2E8F0; padding: 12px 0; }
.services-nav .container { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.services-nav-label { font-size: 0.85rem; color: #64748B; font-weight: 500; margin-right: 4px; }
.svc-nav-link { padding: 5px 14px; border: 1px solid #CBD5E0; border-radius: 20px; font-size: 0.82rem; color: #4A5568; text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.svc-nav-link:hover { border-color: #1565C0; color: #1565C0; }
.svc-nav-all { background: #1565C0; color: #fff !important; border-color: #1565C0; }
.svc-nav-all:hover { background: #0D47A1; border-color: #0D47A1; }

/* ── NEW RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cprofile-wrap { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-quick-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .state-cities-grid { grid-template-columns: repeat(2, 1fr); }
  .state-info-grid { grid-template-columns: 1fr; }
  .guide-quick-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .state-cities-grid { grid-template-columns: 1fr; }
  .guide-quick-stats { grid-template-columns: 1fr 1fr; }
}

/* ── CLIMATE BANNER ─────────────────────────────────── */
.climate-banner {
  padding: .6rem 0;
  font-size: .88rem;
  font-weight: 500;
  color: #fff;
}
.climate-banner.risk-medium { background: #e65100; }
.climate-banner.risk-high   { background: #b71c1c; }
.climate-banner.risk-extreme{ background: #4a148c; }
.risk-label {
  display: inline-block;
  background: rgba(255,255,255,.22);
  border-radius: 4px;
  padding: .15rem .45rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-right: .4rem;
}
.city-local-note {
  font-size: .93rem;
  color: rgba(255,255,255,.88);
  margin-top: .4rem;
  max-width: 640px;
}

/* ── NEIGHBORHOODS ──────────────────────────────────── */
.neighborhoods-section { background: #f5f7fa; padding: 2.5rem 0; }
.neighborhoods-section h2 { margin-bottom: .4rem; }
.neighborhoods-section > .container > p { color: #555; margin-bottom: 1rem; }
.neighborhood-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: .8rem;
}
.hood-link {
  display: inline-block;
  background: #fff;
  border: 1.5px solid #1565C0;
  color: #1565C0;
  padding: .4rem .85rem;
  border-radius: 20px;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s, color .18s;
}
.hood-link:hover { background: #1565C0; color: #fff; }
.hood-all { border-color: #555; color: #555; }
.hood-all:hover { background: #555; color: #fff; }
.zip-note { font-size: .8rem; color: #888; margin-top: .3rem; }
.section-sub { color: #666; margin-bottom: 1rem; font-size: .94rem; }

/* ── BLOG PUBLIC ────────────────────────────────────── */
.blog-hero { background: linear-gradient(135deg,#1a237e 0%,#283593 100%); color:#fff; padding:2.5rem 0 1.8rem; }
.blog-hero h1 { margin:0 0 .4rem; font-size:2rem; }
.blog-hero-sub { margin:0 0 1rem; opacity:.85; font-size:1rem; }
.blog-cat-nav { display:flex; gap:.5rem; flex-wrap:wrap; }
.blog-cat-link { display:inline-block; padding:.3rem .85rem; border-radius:16px; font-size:.83rem; font-weight:600; text-decoration:none; background:rgba(255,255,255,.15); color:#fff; border:1px solid rgba(255,255,255,.3); transition:.18s; }
.blog-cat-link:hover,.blog-cat-link.active { background:#fff; color:#1a237e; }
.blog-section { padding:2.5rem 0 3rem; }
.blog-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.4rem; }
.blog-card { background:#fff; border-radius:10px; padding:1.3rem; box-shadow:0 1px 4px rgba(0,0,0,.07); border:1px solid #eee; display:flex; flex-direction:column; transition:box-shadow .18s; }
.blog-card:hover { box-shadow:0 4px 16px rgba(0,0,0,.12); }
.blog-card-featured { border-top:3px solid #1565C0; }
.blog-card-meta { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; margin-bottom:.6rem; }
.blog-cat-badge { display:inline-block; padding:.18rem .5rem; border-radius:4px; font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
.blog-cat-research { background:#e3f2fd; color:#1565C0; }
.blog-cat-guide { background:#f3e5f5; color:#6a1b9a; }
.blog-cat-tips { background:#e8f5e9; color:#2e7d32; }
.blog-cat-comparison { background:#fff3e0; color:#e65100; }
.blog-date { font-size:.78rem; color:#888; }
.blog-featured-badge { font-size:.72rem; background:#fff8e1; color:#f57c00; padding:.15rem .4rem; border-radius:4px; font-weight:700; }
.blog-card-title { margin:.3rem 0 .7rem; font-size:1.05rem; line-height:1.4; flex-grow:1; }
.blog-card-title a { color:#1a1a2e; text-decoration:none; }
.blog-card-title a:hover { color:#1565C0; }
.blog-card-excerpt { color:#555; font-size:.88rem; line-height:1.5; margin-bottom:.9rem; flex-grow:2; }
.blog-card-footer { display:flex; align-items:center; gap:.7rem; flex-wrap:wrap; margin-top:auto; }
.blog-author { font-size:.78rem; color:#777; }
.blog-read-time { font-size:.78rem; color:#aaa; }
.blog-read-more { margin-left:auto; font-size:.82rem; font-weight:600; color:#1565C0; text-decoration:none; }
.blog-read-more:hover { text-decoration:underline; }
.blog-pagination { display:flex; justify-content:center; align-items:center; gap:1rem; margin-top:2rem; }
.page-btn { display:inline-block; padding:.5rem 1.1rem; background:#1565C0; color:#fff; border-radius:6px; text-decoration:none; font-weight:600; font-size:.88rem; }
.page-btn:hover { background:#0d47a1; }
.page-info { color:#666; font-size:.9rem; }
.blog-empty { text-align:center; color:#888; padding:3rem 0; }

/* ── BLOG ARTICLE PAGE ──────────────────────────────── */
.blog-article-header { background:#f8f9fb; border-bottom:1px solid #e8e8e8; padding:2.5rem 0 2rem; }
.blog-article-header-inner { max-width:860px; }
.blog-article-header h1 { font-size:2.1rem; line-height:1.25; margin:.6rem 0 1rem; color:#1a1a2e; }
.blog-article-meta { display:flex; gap:.5rem; flex-wrap:wrap; align-items:center; color:#777; font-size:.85rem; margin-bottom:.8rem; }
.blog-author-byline { font-weight:600; color:#555; }
.blog-article-excerpt { font-size:1.08rem; color:#444; line-height:1.6; margin:.4rem 0 1rem; max-width:680px; }
.blog-data-badge { display:inline-flex; align-items:center; gap:.4rem; background:#e8f5e9; color:#2e7d32; padding:.35rem .8rem; border-radius:20px; font-size:.82rem; font-weight:600; }
.blog-article-layout { display:grid; grid-template-columns:1fr 300px; gap:2.5rem; padding-top:2rem; padding-bottom:3rem; align-items:start; }
.blog-article-body { max-width:680px; }
.blog-article-body h2 { font-size:1.4rem; margin:2rem 0 .7rem; color:#1a1a2e; }
.blog-article-body h3 { font-size:1.15rem; margin:1.5rem 0 .5rem; color:#1a1a2e; }
.blog-article-body p { line-height:1.75; color:#333; margin:.7rem 0; }
.blog-article-body ul,.blog-article-body ol { padding-left:1.5rem; }
.blog-article-body li { line-height:1.7; color:#333; margin:.3rem 0; }
.blog-article-body strong { color:#1a1a2e; }
/* CLS guard: dynamic post content images ({{ post.content | safe }}) have no
   width/height attrs in the HTML, so we lock them here to prevent layout shift.
   max-width + height:auto is the standard fix; border-radius matches the card style. */
.blog-article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 1.25rem 0;
}
.blog-article-sidebar { position:sticky; top:1.5rem; }
.sidebar-related { background:#fff; border-radius:8px; padding:1rem; box-shadow:0 1px 4px rgba(0,0,0,.07); margin-top:1rem; }
.sidebar-related h4 { margin:0 0 .7rem; font-size:.9rem; color:#333; }
.related-list { list-style:none; padding:0; margin:0; }
.related-list li { border-bottom:1px solid #f0f0f0; padding:.5rem 0; }
.related-list li:last-child { border-bottom:none; }
.related-list a { color:#1565C0; text-decoration:none; font-size:.85rem; line-height:1.4; }
.related-list a:hover { text-decoration:underline; }

@media(max-width:1024px){.blog-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:768px){
  .blog-grid{grid-template-columns:1fr}
  .blog-article-layout{grid-template-columns:1fr}
  .blog-article-sidebar{position:static}
  .blog-article-header h1{font-size:1.5rem}
}

/* 320px fix: allow long state-sub subtitle to wrap on very narrow screens */
@media (max-width: 360px) { .state-sub span { white-space: normal; } }

/* ── Blog guides strip (blog list page) ── */
.blog-guides-strip { background:#f0f4ff; border-bottom:1px solid #d8e2ff; padding:.65rem 0; }
.blog-guides-strip-inner { display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; font-size:.83rem; }
.blog-guides-strip-label { font-weight:700; color:#1a1a2e; white-space:nowrap; }
.blog-guides-link { color:#1565C0; text-decoration:none; padding:.2rem .55rem; border-radius:4px; border:1px solid #c5d5f8; background:#fff; transition:background .15s, color .15s; white-space:nowrap; }
.blog-guides-link:hover { background:#1565C0; color:#fff; }

/* ── Blog list CTA ── */
.blog-list-cta { margin-top:3rem; background:linear-gradient(135deg,#1a1a2e 0%,#1565C0 100%); border-radius:12px; padding:2.5rem 2rem; text-align:center; }
.blog-list-cta-inner { max-width:560px; margin:0 auto; }
.blog-list-cta-heading { color:#fff; font-size:1.6rem; margin:0 0 .6rem; }
.blog-list-cta-sub { color:rgba(255,255,255,.85); font-size:1rem; margin:0 0 1.4rem; }
.btn-cta-primary { display:inline-block; background:#ff6b35; color:#fff; font-weight:700; font-size:1rem; padding:.8rem 2rem; border-radius:6px; text-decoration:none; transition:background .18s; }
.btn-cta-primary:hover { background:#e85d2b; }
.blog-list-cta-links { margin-top:1.2rem; display:flex; align-items:center; justify-content:center; gap:.5rem; flex-wrap:wrap; }
.blog-list-cta-links a { color:rgba(255,255,255,.75); font-size:.85rem; text-decoration:none; }
.blog-list-cta-links a:hover { color:#fff; text-decoration:underline; }
.blog-list-cta-links span { color:rgba(255,255,255,.4); }

/* ── Blog post: related topical cluster section ── */
.blog-related-cluster { background:#f8f9fb; border-top:1px solid #e8e8e8; padding:2.5rem 0 3rem; }
.blog-related-cluster-heading { font-size:1.3rem; color:#1a1a2e; margin:0 0 1.4rem; }
.blog-related-cluster-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
.blog-cluster-group { background:#fff; border-radius:8px; padding:1.2rem 1.4rem; box-shadow:0 1px 4px rgba(0,0,0,.07); border:1px solid #eee; }
.blog-cluster-group-title { font-size:.85rem; text-transform:uppercase; letter-spacing:.06em; color:#888; font-weight:700; margin:0 0 .8rem; }
.blog-cluster-list { list-style:none; padding:0; margin:0; }
.blog-cluster-list li { border-bottom:1px solid #f2f2f2; padding:.45rem 0; }
.blog-cluster-list li:last-child { border-bottom:none; }
.blog-cluster-list a { color:#1565C0; text-decoration:none; font-size:.88rem; line-height:1.4; }
.blog-cluster-list a:hover { text-decoration:underline; }
@media(max-width:768px) {
  .blog-related-cluster-grid { grid-template-columns:1fr; }
  .blog-guides-strip-inner { gap:.4rem; }
}

/* ── CWV / CLS / MOBILE GLOBAL FIXES ───────────────────────────────────────
/* ============================================================
   PickARoofer visual pass (icons + imagery) — 2026-06-25
   ============================================================ */
.ico { width: 24px; height: 24px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.ico-lg { width: 40px; height: 40px; }
.ico-sm { width: 18px; height: 18px; }

/* Round icon badge used on feature/step/service cards */
.icon-badge {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #E8F1FC 0%, #D6E6FA 100%);
  color: #1565C0; margin: 0 auto 18px;
  box-shadow: 0 4px 14px rgba(21,101,192,0.12);
}
.icon-badge .ico { width: 32px; height: 32px; }
.service-item .icon-badge { margin: 0 0 14px; width: 52px; height: 52px; border-radius: 13px; }
.service-item .icon-badge .ico { width: 26px; height: 26px; }

/* Hero thematic image overlay — keeps text readable over a real roofing photo */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(21,101,192,0.94) 0%, rgba(13,71,161,0.92) 100%),
    url("/static/img/hero-home.jpg");
  background-size: cover; background-position: center;
}

/* Service feature grid → balanced 2×2 on desktop */
.services-grid.grid-2x2 { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin-left: auto; margin-right: auto; }
@media (max-width: 640px) { .services-grid.grid-2x2 { grid-template-columns: 1fr; } }

/* Inline trust/check icons inherit brand color */
.trust-item .ico, .badge-strip .ico { color: #1565C0; }
.hero .trust-item .ico { color: #fff; }

/* Image band — full-width thematic photo between content sections */
.image-band { position: relative; height: 280px; background-size: cover; background-position: center; }
.image-band .band-caption {
  position: absolute; left: 0; bottom: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff; font-size: 0.85rem; padding: 28px 18px 12px; text-align: center;
}
@media (max-width: 640px) { .image-band { height: 190px; } }

/* Before/After portfolio pair */
.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; margin-top: 1.5rem; }
.ba-card { border: 1px solid #E2E8F0; border-radius: 12px; overflow: hidden; background: #fff; }
.ba-imgs { display: grid; grid-template-columns: 1fr 1fr; }
.ba-imgs figure { margin: 0; position: relative; }
.ba-imgs img { width: 100%; height: 170px; object-fit: cover; display: block; }
.ba-imgs figcaption { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,0.62); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 20px; text-transform: uppercase; }
.ba-card .ba-body { padding: 16px 18px; }
.ba-card .ba-body strong { display: block; color: #1A202C; margin-bottom: 4px; }
.ba-card .ba-body p { font-size: 0.88rem; color: #4A5568; line-height: 1.6; margin: 0; }
.illustrative-note { font-size: 0.74rem; color: #94A3B8; text-align: center; margin-top: 12px; font-style: italic; }

/* Horizontal stepper — icon+number BESIDE the text (removes vertical "ladder") — 2026-06-25 */
.how-it-works .step { display: flex; align-items: flex-start; gap: 18px; text-align: left; }
.how-it-works .step-figure { position: relative; flex-shrink: 0; }
.how-it-works .step-figure .icon-badge { margin: 0; }
.how-it-works .step-num {
  position: absolute; top: -8px; right: -8px;
  width: 26px; height: 26px; font-size: 0.85rem; margin: 0;
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(21,101,192,0.35);
}
.how-it-works .step-body { flex: 1; min-width: 0; }
.how-it-works .step-body h3 { margin: 2px 0 8px; }
@media (max-width: 640px) { .how-it-works .step { gap: 14px; } }

/* ── D2 CITY PAGE REDESIGN (2026-07-15) ────────────────────────────────────── */

/* Hero zone — left-aligned on wide, form on right at ≥900px */
.city-hero { background: #1565C0; color: #fff; padding: 56px 0 64px; }
.city-hero-inner { display: grid; grid-template-columns: 1fr 520px; gap: 48px; align-items: start; }
.city-hero-left { text-align: left; }
.city-hero h1 { color: #fff; font-size: 2.1rem; margin-bottom: 10px; text-align: left; }
.city-sub { font-size: 1rem; opacity: 0.9; margin-bottom: 0; text-align: left; }
.city-local-note { font-size: .93rem; color: rgba(255,255,255,.88); margin-top: .5rem; max-width: 600px; }

/* City-form wrap stays on right column — no change to existing styles */

/* Stat chips row */
.city-stat-chips { background: #fff; border-bottom: 1px solid #E2E8F0; padding: 0; }
.city-stat-chips-inner { display: flex; gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.stat-chip {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 20px 28px; border-right: 1px solid #E2E8F0; min-width: 160px; flex: 1;
}
.stat-chip:last-child { border-right: none; }
.stat-chip-icon { font-size: 1.5rem; margin-bottom: 4px; line-height: 1; }
.stat-chip-value { font-size: 1.4rem; font-weight: 800; color: #1565C0; line-height: 1.1; }
.stat-chip-label { font-size: 0.78rem; color: #64748B; font-weight: 500; margin-top: 2px; }

/* Section headings with accent line */
.section-heading-accent {
  display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
}
.section-heading-accent h2 { margin-bottom: 0; }
.section-heading-accent::before {
  content: ''; display: block; width: 4px; height: 32px;
  background: #1565C0; border-radius: 2px; flex-shrink: 0;
}
/* FAQ cards are a centered column — center this one heading to match
   (other city sections keep the left accent). */
.faq-section .section-heading-accent { justify-content: center; }

/* Alternating section backgrounds */
.city-section-white { background: #fff; padding: 56px 0; }
.city-section-gray  { background: #F9FAFB; padding: 56px 0; }

/* Local conditions section (moved below listings) */
.city-local-conditions { background: #fff; padding: 56px 0; }
.city-local-conditions .container { max-width: 720px; margin: 0 auto; }
.city-local-conditions-body > p:first-child { font-size: 1rem; line-height: 1.75; color: #374151; margin-bottom: 16px; }
.city-local-conditions details { margin-top: 8px; }
.city-local-conditions summary {
  cursor: pointer; color: #1565C0; font-weight: 600; font-size: 0.95rem;
  padding: 4px 0; list-style: none; display: flex; align-items: center; gap: 6px;
}
.city-local-conditions summary::-webkit-details-marker { display: none; }
.city-local-conditions summary::before { content: '▸'; font-size: 0.75rem; }
.city-local-conditions details[open] summary::before { content: '▾'; }
.city-local-conditions-more { padding-top: 14px; }
.city-local-conditions-more p { font-size: 0.97rem; line-height: 1.75; color: #374151; margin-bottom: 14px; }
.city-local-conditions-more p:last-child { margin-bottom: 0; }

/* Contractor card — slightly reduced vertical padding, more prominent badge */
.contractor-card { padding: 16px; }
.verified-badge {
  background: #DCFCE7 !important; color: #15803D !important;
  border: 1.5px solid #86EFAC !important; border-radius: 50px !important;
  font-size: 0.8rem !important; font-weight: 700 !important;
  padding: 3px 12px !important; letter-spacing: 0.01em;
}

/* FAQ in details accordion (D2: base faq-item already works, this adds details wrapping support) */
.faq-details-group {
  border: 1px solid #E2E8F0; border-radius: 12px; background: #F8FAFC;
  margin-bottom: 12px; padding: 0 20px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.faq-details-group:hover { border-color: #93C5FD; }
.faq-details-group[open] {
  background: #fff; border-color: #93C5FD;
  box-shadow: 0 6px 24px rgba(21,101,192,0.10);
}
.faq-details-group summary {
  width: 100%; text-align: left; padding: 18px 0;
  font-size: 1rem; font-weight: 600; color: #1A202C; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  list-style: none;
}
.faq-details-group summary::-webkit-details-marker { display: none; }
.faq-details-group summary::after {
  content: ''; display: block; flex-shrink: 0; width: 28px; height: 28px;
  border-radius: 50%; background: #EFF6FF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231565C0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center no-repeat;
  transition: transform 0.25s, background-color 0.2s;
}
.faq-details-group[open] summary::after { transform: rotate(180deg); background-color: #DBEAFE; }
.faq-details-group summary:hover { color: #1565C0; }
.faq-details-body { font-size: 0.95rem; color: #4A5568; line-height: 1.7; padding-bottom: 18px; }

/* Mobile adjustments for D2 redesign */
@media (max-width: 900px) {
  .city-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .city-hero { padding: 40px 0 48px; }
  .city-hero h1 { font-size: 1.75rem; }
  .city-stat-chips-inner { flex-wrap: nowrap; }
  .stat-chip { min-width: 140px; padding: 16px 20px; }
}
@media (max-width: 640px) {
  .city-hero h1 { font-size: 1.5rem; }
  .stat-chip { min-width: 120px; padding: 14px 16px; }
  .stat-chip-value { font-size: 1.2rem; }
  .city-form-wrap { padding: 24px 16px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 375px) {
  .city-hero h1 { font-size: 1.35rem; }
  .stat-chip { min-width: 110px; padding: 12px 14px; }
  .city-local-conditions .container { padding: 0 16px; }
}

/* ── PUBLIC UI CONSISTENCY PASS ───────────────────────────────────────────
   Shared presentation primitives for public pages. Page-specific campaign
   treatments remain intact while cards, CTAs and mobile overflow align. */
:root {
  --rm-primary: #1565C0;
  --rm-accent: #E8451A;
  --rm-radius: 12px;
  --rm-border: #E2E8F0;
  --rm-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
}

button, input, select, textarea { font-family: inherit; }
button, [class^="btn-"], [class*=" btn-"] { border-radius: 8px; }
button, [class^="btn-"], [class*=" btn-"] {
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .1s;
}
button:not(:disabled) { cursor: pointer; }
.btn-submit, .btn-emergency { border-radius: 50px; }
.btn-nav:hover, .btn-website:hover, .btn-quote:hover, .btn-submit:hover,
.btn-emergency:hover, .btn-cta-primary:hover { box-shadow: 0 4px 14px rgba(15, 23, 42, .16); }

.contractor-card, .service-item, .step, .resource-card, .blog-card,
.guide-card, .ba-card, .portal-card, .result-card {
  border-radius: var(--rm-radius);
  border-color: var(--rm-border);
}
.contractor-card, .service-item, .step, .resource-card, .blog-card,
.guide-card, .ba-card { box-shadow: 0 1px 3px rgba(15, 23, 42, .04); }

table { max-width: 100%; }
.compare-table-wrap, .compare-table-scroll { max-width: 100%; }
.card-actions > * { flex: 0 1 auto; }

@media (max-width: 640px) {
  h1 { font-size: clamp(1.75rem, 8vw, 2.1rem); }
  h2 { font-size: clamp(1.35rem, 6vw, 1.6rem); }
  h3 { font-size: 1.125rem; }
  .container { padding-left: 16px; padding-right: 16px; }
  .contractors-grid, .services-grid, .steps-grid, .resources-grid,
  .state-cities-grid, .state-info-grid, .blog-grid, .guides-grid,
  .benefits-grid, .ba-grid { grid-template-columns: minmax(0, 1fr); }
  .card-actions > a, .card-actions > button { flex: 1 1 auto; text-align: center; }
  .price-table, .src-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ── HAIL-CHECK v3: modern step cards + bento quick links (2026-07-17) ── */
.hiw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 24px 0 10px; }
.hiw-card {
  position: relative; overflow: hidden; background: #fff;
  border: 1px solid #E8EDF4; border-radius: 18px; padding: 26px 22px 24px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.hiw-card:hover { transform: translateY(-3px); border-color: #BFDBFE; box-shadow: 0 14px 34px rgba(21,101,192,0.12); }
.hiw-ghost {
  position: absolute; top: -14px; right: 6px; font-size: 92px; font-weight: 800;
  line-height: 1; color: rgba(21,101,192,0.07); user-select: none; pointer-events: none;
}
.hiw-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: 16px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  color: #1565C0;
}
.hiw-icon svg { width: 26px; height: 26px; }
.hiw-card h3 { font-size: 1.02rem; margin: 0 0 8px; color: #0F2540; }
.hiw-card p { font-size: 0.88rem; line-height: 1.6; color: #4A5568; margin: 0; }
.hiw-chip {
  display: inline-block; margin-top: 12px; padding: 5px 12px; border-radius: 999px;
  background: #F0F6FF; border: 1px solid #DBEAFE; color: #1565C0;
  font-size: 0.78rem; font-weight: 700;
}
/* arrow connectors between cards (desktop only) */
.hiw-card:not(:last-child)::after {
  content: '\2192'; position: absolute; top: 50%; right: -16px; z-index: 2;
  transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: 1px solid #E2E8F0; color: #1565C0;
  font-size: 0.95rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(15,23,42,0.08);
}
@media (max-width: 860px) {
  .hiw-grid { grid-template-columns: 1fr; }
  .hiw-card:not(:last-child)::after { content: '\2193'; top: auto; bottom: -16px; right: 50%; transform: translateX(50%); }
}
/* Bento quick links */
.qlb-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(96px, auto); gap: 16px; margin: 20px 0 10px; }
.qlb-feature {
  grid-row: span 2; position: relative; overflow: hidden; display: flex;
  flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 26px 24px; border-radius: 18px; text-decoration: none;
  background: linear-gradient(150deg, #0D2F65 0%, #1565C0 78%, #1E88E5 100%);
  color: #fff; transition: box-shadow 0.25s, transform 0.25s;
}
.qlb-feature:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(13,71,161,0.35); }
.qlb-rings {
  position: absolute; top: -70px; right: -70px; width: 240px; height: 240px;
  border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.14);
  box-shadow: 0 0 0 44px rgba(255,255,255,0.05), 0 0 0 90px rgba(255,255,255,0.03);
  pointer-events: none;
}
.qlb-feature-kicker {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #9EC5F8;
}
.qlb-feature strong { font-size: 1.35rem; font-weight: 800; }
.qlb-feature p { margin: 0; font-size: 0.88rem; line-height: 1.55; color: rgba(255,255,255,0.85); max-width: 300px; }
.qlb-feature-cta { margin-top: 8px; font-size: 0.88rem; font-weight: 700; color: #fff; }
.qlb-feature:hover .qlb-feature-cta { text-decoration: underline; }
.qlb-card {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  background: #fff; border: 1px solid #E8EDF4; border-radius: 18px;
  text-decoration: none; color: inherit; box-shadow: 0 1px 3px rgba(15,23,42,0.04);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.qlb-card:hover { transform: translateY(-2px); border-color: #BFDBFE; box-shadow: 0 12px 28px rgba(21,101,192,0.12); }
.qlb-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%); color: #1565C0;
}
.qlb-icon svg { width: 22px; height: 22px; }
.qlb-card div { min-width: 0; }
.qlb-card strong { display: block; font-size: 0.95rem; color: #0F2540; margin-bottom: 2px; }
.qlb-card span { font-size: 0.83rem; color: #4A5568; line-height: 1.5; }
.qlb-card--alert .qlb-icon { background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%); color: #DC2626; }
@media (max-width: 700px) {
  .qlb-grid { grid-template-columns: 1fr; }
  .qlb-feature { grid-row: auto; min-height: 180px; }
}

/* ── HAIL-CHECK centered landing (owner feedback 2026-07-17): no sidebar on
      the no-city states — single column, blocks centered on the page ── */
.guide-layout--center { grid-template-columns: minmax(0, 1fr); }
.guide-layout--center .guide-article { min-width: 0; }
.hc-center { text-align: center; }
.guide-layout--center .price-note.hc-center { max-width: 640px; margin-left: auto; margin-right: auto; }

/* Responsive polish across device widths */
.guide-hero h1 { font-size: clamp(1.7rem, 5.5vw, 2.1rem); }
@media (max-width: 1024px) and (min-width: 861px) {
  .hiw-grid { gap: 14px; }
  .hiw-card { padding: 22px 18px 20px; }
}
@media (max-width: 860px) {
  /* down-arrow connector centered in the inter-card gap (28px arrow / 30px gap) */
  .hiw-grid { gap: 30px; }
  .hiw-card:not(:last-child)::after { bottom: -29px; }
}
@media (max-width: 520px) {
  .guide-hero form { flex-direction: column; }
  .guide-hero form button[type="submit"] { width: 100%; }
  .hiw-card { padding: 22px 18px 20px; }
  .qlb-feature { padding: 22px 18px; min-height: 160px; }
}

/* ── HUB v3 (guides/storm): hail-check v3 card language on the hub pages
      (2026-07-23) — same tokens as hiw/qlb above: 18px radius, #E8EDF4
      border, gradient squircle icons (.hiw-icon reused), lift-on-hover ── */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.hub-card {
  position: relative; overflow: hidden; background: #fff;
  border: 1px solid #E8EDF4; border-radius: 18px; padding: 26px 22px 24px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.hub-card:hover { transform: translateY(-3px); border-color: #BFDBFE; box-shadow: 0 14px 34px rgba(21,101,192,0.12); }
.hub-card .hiw-icon .ico { width: 26px; height: 26px; }
.hub-card h2 { font-size: 1.05rem; margin: 0 0 8px; color: #0F2540; }
.hub-card h2 a { color: #1565C0; text-decoration: none; }
.hub-card h2 a:hover { text-decoration: underline; }
.hub-card p { color: #4A5568; font-size: 0.88rem; line-height: 1.6; margin: 0 0 14px; }
.hub-intro { color: #4A5568; font-size: 0.97rem; line-height: 1.75; margin-bottom: 32px; }
.hub-section-head { padding: 40px 0 8px; }
.hub-section-head p { color: #4A5568; font-size: 0.97rem; line-height: 1.75; max-width: 720px; margin-bottom: 20px; }
/* hub availability badges (moved out of guides_hub inline styles) */
.guide-badge { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 2px 10px; border-radius: 20px; }
.guide-badge.available { background: #F0FDF4; color: #166534; border: 1px solid #86EFAC; }
.guide-badge.coming-soon { background: #F8FAFC; color: #64748B; border: 1px solid #CBD5E1; }
/* crosslink chip row (moved out of guides_hub inline styles) */
.guides-crosslinks { margin-top: 48px; padding-top: 32px; border-top: 1px solid #E2E8F0; }
.guides-crosslinks h3 { color: #1A202C; font-size: 0.95rem; margin: 0 0 12px; }
.crosslink-list { display: flex; flex-wrap: wrap; gap: 12px; }
.crosslink-list a { color: #1565C0; text-decoration: none; font-size: 0.92rem; border: 1px solid #BFDBFE; border-radius: 20px; padding: 5px 14px; }
.crosslink-list a:hover { background: #EFF6FF; text-decoration: none; }
/* storm hub: surge CTA band as a v3 card (replaces inline-styled band) */
.hub-cta-section { padding: 26px 0 0; }
.hub-cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 22px 24px; border-radius: 18px;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border: 1px solid #FED7AA; box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
.hub-cta-band > div:first-child { max-width: 560px; }
.hub-cta-band strong { font-size: 1.05rem; color: #7C2D12; }
.hub-cta-band p { margin: 4px 0 0; color: #9A3412; font-size: 0.92rem; line-height: 1.55; }
.hub-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hub-cta-ghost, .hub-cta-solid {
  padding: 11px 18px; border-radius: 8px; font-weight: 700;
  text-decoration: none; white-space: nowrap;
}
.hub-cta-ghost { background: #fff; border: 1.5px solid #E8451A; color: #E8451A; }
.hub-cta-solid { background: #E8451A; color: #fff; }
.hub-cta-solid:hover { background: #c93a14; }
/* same breakpoints as hail-check v3: 861–1024 / <=860 / <=520 */
@media (max-width: 1024px) and (min-width: 861px) {
  .hub-grid { gap: 14px; }
  .hub-card { padding: 22px 18px 20px; }
}
@media (max-width: 860px) {
  .hub-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .hub-card { padding: 22px 18px 20px; }
  .hub-cta-band { padding: 20px 18px; }
  .hub-cta-actions { width: 100%; }
  .hub-cta-actions a { flex: 1 1 auto; text-align: center; }
}


/* ── NWS ACTIVE-ALERT BANNER (W4e) ──────────────────── */
.nws-alert-banner {
  background: #b71c1c;
  color: #fff;
  padding: .6rem 0;
  font-size: .88rem;
  font-weight: 500;
}
.nws-alert-row { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; }
.nws-alert-row + .nws-alert-row { margin-top: .4rem; }
.nws-alert-icon { font-size: 1rem; }
.nws-alert-meta { color: rgba(255,255,255,.85); font-size: .82rem; }
.nws-alert-link {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
  margin-left: .3rem;
}
.nws-alert-cta {
  background: rgba(255,255,255,.2);
  padding: .15rem .5rem;
  border-radius: 4px;
  text-decoration: none;
}
