/* Shared components added on top of each page's own CSS.
   Loaded by the homepage AND every generated page. Uses the same design tokens
   (--navy, --gold, …) the pages already define. */

/* ── Focus + motion (accessibility) ── */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ── Nav: services dropdown + click-to-call ── */
nav .nav-inner { width: 100%; max-width: 1200px; margin: 0 auto; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-dd { position: relative; }
.nav-dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; } /* hover bridge */
.nav-dd-toggle::after { content: "▾"; font-size: 10px; margin-left: 5px; opacity: 0.7; }
.nav-dd-menu {
  position: absolute; top: calc(100% + 12px); left: -14px; min-width: 230px; z-index: 120;
  background: var(--navy); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 8px;
  display: none; flex-direction: column; box-shadow: 0 16px 36px rgba(0,0,0,0.28);
}
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { display: flex; }
.nav-dd-menu a { padding: 10px 12px; border-radius: 8px; white-space: nowrap; font-size: 14px; }
.nav-dd-menu a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-links a.nav-phone { color: #fff; font-weight: 600; white-space: nowrap; }
@media (max-width: 1040px) { .nav-links a.nav-phone { display: none; } }
.mobile-menu.open { max-height: calc(100vh - 64px); }
.mobile-menu a.mm-sub { padding-left: 22px; font-size: 14.5px; opacity: 0.85; }

/* ── Breadcrumbs ── */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }

/* ── Page hero: buttons, trust chips, figure ── */
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; }
.btn-ghost, .btn-ghost-light {
  display: inline-block; padding: 11px 26px; border-radius: 100px; font-weight: 600; font-size: 16px; text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}
.btn-ghost { border: 2px solid var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-ghost-light { border: 2px solid rgba(255,255,255,0.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; }
.chips li { background: var(--off-white); border-radius: 100px; padding: 6px 14px 6px 12px; font-size: 13px; font-weight: 600; color: var(--navy); }
.chips li::before { content: "✓"; color: var(--gold); margin-right: 6px; font-weight: 800; }
.page-figure { margin: 8px 0 28px; }
.page-figure img { width: 100%; height: auto; border-radius: var(--radius); display: block; background: var(--gray-light); }
.page-figure figcaption { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

/* ── Content blocks ── */
.checklist { list-style: none; margin: 0 0 18px; padding: 0; }
.checklist li { position: relative; padding: 9px 0 9px 28px; border-bottom: 1px solid var(--border); }
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: "✓"; position: absolute; left: 4px; color: var(--gold); font-weight: 800; }
.factor-card .label a { color: inherit; text-decoration: none; }
.factor-card .label a:hover { text-decoration: underline; }
.quote-card { background: var(--off-white); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 22px 24px; margin: 32px 0; }
.quote-card blockquote { font-size: 17px; line-height: 1.6; color: var(--text); margin: 0 0 10px; }
.quote-card figcaption { font-size: 13px; color: var(--text-muted); }
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; padding-right: 28px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 22px; font-weight: 500; color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--text-muted); }
main a:not(.btn-gold):not(.btn-ghost):not(.hub-card):not(.btn-ghost-light) { color: var(--navy); text-decoration-color: rgba(233,143,30,0.6); text-underline-offset: 2px; }
main a:not(.btn-gold):not(.btn-ghost):not(.hub-card):not(.btn-ghost-light):hover { text-decoration-color: var(--gold); }
.cta-box .btn-gold { display: inline-block; }

/* ── Lead form ── */
.iq-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 32px; margin-top: 56px; box-shadow: 0 16px 44px rgba(11,31,58,0.07); }
.iq-h { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 24px; color: var(--navy); margin: 0 0 6px; letter-spacing: -0.3px; }
.iq-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; }
.iq-form label { display: block; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 16px; }
.iq-form input, .iq-form select, .iq-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; background: var(--white); color: var(--text);
}
.iq-form textarea { resize: vertical; }
.iq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.iq-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.iq-btn { border: none; cursor: pointer; font-family: inherit; }
.iq-btn[disabled] { opacity: 0.6; cursor: wait; }
.iq-fine { font-size: 12px; color: var(--gray-mid); margin: 12px 0 0; }
.iq-err { background: #FDECEA; border: 1px solid #F1A9A0; color: #8A1F11; border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; margin: 0 0 14px; }
.iq-ok { background: #EAF3DE; border: 1px solid #97C459; color: #3B6D11; border-radius: var(--radius-sm); padding: 18px 22px; font-weight: 500; font-size: 15px; }
.iq-ok a { color: inherit; }
@media (max-width: 640px) { .iq-card { padding: 26px 20px; } .iq-row { grid-template-columns: 1fr; gap: 0; } }

/* ── Footer columns (internal linking) ── */
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-cols .fh { color: #fff; font-weight: 600; font-size: 12.5px; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 10px; }
.footer-cols a { display: block; color: rgba(255,255,255,0.62); text-decoration: none; font-size: 14px; padding: 3px 0; }
.footer-cols a:hover { color: #fff; }
.footer-cols .fnote { display: block; font-size: 12px; color: rgba(255,255,255,0.42); margin-top: 8px; max-width: 190px; line-height: 1.5; }
.footer-contact { font-size: 13px; line-height: 1.9; margin-top: 14px; color: rgba(255,255,255,0.5); }
.footer-contact a { color: rgba(255,255,255,0.5); text-decoration: none; }
@media (max-width: 640px) { .footer-cols { gap: 28px; } }

/* ── Homepage additions ── */
a.area-tag { text-decoration: none; color: inherit; transition: border-color 0.2s var(--ease), background 0.2s var(--ease); }
a.area-tag:hover { border-color: var(--gold); background: rgba(233,143,30,0.1); }
.service-card h3 a { color: inherit; text-decoration: none; }
.service-card h3 a:hover { text-decoration: underline; }
.card-more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 14px; color: var(--gold); text-decoration: none; }
.card-more:hover { text-decoration: underline; }
.card-more + .card-more { margin-left: 16px; }
.services-more { margin-top: 32px; font-size: 15px; color: var(--text-muted); }
.services-more a { color: var(--navy); font-weight: 600; }

/* ── Sticky call / quote bar (phones only) ── */
.mobile-cta { display: none; }
@media (max-width: 768px) {
  .mobile-cta {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(11,31,58,0.97);
    border-top: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(8px);
  }
  .mobile-cta a { flex: 1; display: flex; align-items: center; justify-content: center; padding: 11px 8px; border: 2px solid transparent; border-radius: 100px; font-weight: 700; font-size: 15px; text-decoration: none; }
  .mobile-cta .mc-call { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
  .mobile-cta .mc-quote { background: var(--gold); color: var(--navy); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* ── Homepage upgrade: quick-quote band, 3×2 services, guides, FAQ ── */
.hero { padding-bottom: 120px; }
.lead-band { position: relative; z-index: 5; margin-top: -72px; padding: 0 5% 44px; background: var(--off-white); }
.lead-band-inner {
  max-width: 1120px; margin: 0 auto; background: var(--white); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 24px 64px rgba(11,31,58,0.16); padding: 28px 32px;
  display: grid; grid-template-columns: minmax(220px, 0.9fr) 2.4fr; gap: 12px 36px; align-items: center;
}
.lead-band .section-label { margin-bottom: 6px; }
.lead-band h2 { font-size: 28px; letter-spacing: -0.5px; margin: 0 0 6px; }
.lead-band .lead-copy p { font-size: 15px; color: var(--text-muted); margin: 0; }
.lead-form { display: grid; grid-template-columns: 1fr 1.4fr 0.75fr 1.45fr auto; gap: 12px; align-items: end; margin: 0; }
.lead-form label { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
.lead-form input, .lead-form select { padding: 12px 12px; }
.lead-form .btn-primary { border: none; cursor: pointer; font-family: inherit; padding: 13px 26px; white-space: nowrap; }
.lead-form .btn-primary[disabled] { opacity: 0.6; cursor: wait; }
.lead-band .iq-fine { margin: 12px 0 0; }
.lead-band .iq-fine a { color: inherit; }
@media (max-width: 1020px) { .lead-band-inner { grid-template-columns: 1fr; } .lead-form { grid-template-columns: 1fr 1fr; } .lead-form .btn-primary { grid-column: 1 / -1; } }
@media (max-width: 560px) { .lead-band { margin-top: -48px; } .lead-band-inner { padding: 22px 18px; } .lead-form { grid-template-columns: 1fr; } .hero { padding-bottom: 88px; } }

.services-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

.home-guides { background: var(--off-white); }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.g-card { display: block; text-decoration: none; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease); }
.g-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(11,31,58,0.10); border-color: rgba(233,143,30,0.4); }
.g-card .g-tag { font-size: 12px; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 8px; }
.g-card h3 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.g-card p { font-size: 14px; color: var(--text-muted); margin: 0; }
@media (max-width: 960px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .guide-grid { grid-template-columns: 1fr; } }

.home-faq { background: var(--white); }
.faq-wrap { display: grid; gap: 40px; align-items: start; }
.faq-wrap { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); }
.home-faq h2 { font-size: clamp(28px, 3.4vw, 40px); }
.faq-tabs { max-width: none; margin-top: 24px; }
.faq-tabs details { background: #E3E7F0; border: none; border-radius: 6px; padding: 0; margin-bottom: 6px; transition: background 0.2s var(--ease); }
.faq-tabs details[open] { background: #D8DEEB; }
.faq-tabs summary { padding: 20px 56px 20px 22px; font-size: 17px; font-weight: 700; color: var(--navy); }
.faq-tabs summary::after { right: 22px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 700; color: var(--navy); }
.faq-tabs p { padding: 0 22px 22px; margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--text); }
.faq-tabs p a { color: var(--navy); font-weight: 600; }
.diff-card { background: var(--navy); border-radius: var(--radius); padding: 34px 30px; color: #fff; }
.diff-card .diff-h { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 24px; line-height: 1.2; color: var(--gold); margin-bottom: 20px; }
.diff-card ul { list-style: none; margin: 0 0 26px; padding: 0; }
.diff-card li { position: relative; padding: 0 0 16px 32px; }
.diff-card li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: rgba(233,143,30,0.18); color: var(--gold); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.diff-card li strong { display: block; font-size: 15.5px; color: #fff; margin-bottom: 3px; }
.diff-card li span { display: block; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.72); }
.diff-card .diff-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 6px; padding-top: 22px; }
.diff-card .btn-primary { padding: 12px 24px; font-size: 15px; }
.diff-card .diff-call { color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; }
.diff-card .diff-call:hover { text-decoration: underline; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } }

.diff-card .owner-quote { margin: 0 0 14px; font-size: 16px; line-height: 1.7; color: rgba(255,255,255,0.92); }
.diff-card .owner-quote::before { content: "\201C"; display: block; font-family: 'Poppins', sans-serif; font-size: 60px; line-height: 0.55; color: var(--gold); margin-bottom: 10px; }
.diff-card .owner-sig { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.6); margin-bottom: 26px; }
.diff-card .diff-sub { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,0.5); margin: 0 0 14px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); }
.diff-card li { padding-bottom: 11px; font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,0.88); }

.est-note { font-size: 12px; line-height: 1.5; color: var(--text-muted); margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--border); }

.iq-bill[hidden] { display: none !important; }
.lead-form .iq-bill { grid-column: 1 / 3; }
@media (max-width: 1020px) { .lead-form .iq-bill { grid-column: 1 / -1; } }

/* Homepage quote band: clean 6-column grid (name · phone · ZIP / need · bill / button) */
.lead-band-inner { grid-template-columns: minmax(230px, 0.85fr) 2.4fr; align-items: start; }
.lead-form { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 14px; align-items: start; }
.lead-form label { min-width: 0; }
.lead-form label:nth-of-type(1) { grid-column: span 2; }   /* name  */
.lead-form label:nth-of-type(2) { grid-column: span 2; }   /* phone */
.lead-form label:nth-of-type(3) { grid-column: span 2; }   /* ZIP   */
.lead-form label:nth-of-type(4) { grid-column: 1 / -1; }   /* need (full width when no bill question) */
.lead-form.has-bill label:nth-of-type(4) { grid-column: span 3; }
.lead-form .iq-bill { grid-column: span 3; }
.lead-form input, .lead-form select { width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px; }
.lead-form .btn-primary { grid-column: 1 / -1; width: 100%; height: 50px; padding: 0 26px; font-size: 16px; }
@media (max-width: 1020px) { .lead-band-inner { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .lead-form { grid-template-columns: 1fr; }
  .lead-form label:nth-of-type(n), .lead-form.has-bill label:nth-of-type(4), .lead-form .iq-bill { grid-column: 1 / -1; }
}

.lead-form .iq-notes { grid-column: 1 / -1; }
.lead-form textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; font-family: inherit; resize: vertical; min-height: 64px; }
.home-cta { background: var(--navy); }
.home-cta-inner { display: grid; grid-template-columns: 1.4fr auto; gap: 16px 40px; align-items: center; }
.home-cta h2 { color: #fff; margin-bottom: 10px; }
.home-cta .section-sub { color: rgba(255,255,255,0.65); margin-bottom: 0; max-width: 560px; }
.home-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.home-cta-call { color: #fff; font-weight: 600; font-size: 17px; text-decoration: none; }
.home-cta-call:hover { text-decoration: underline; }
.home-cta-more { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 14px; color: rgba(255,255,255,0.6); }
.home-cta-more a { color: var(--gold-light); font-weight: 600; }
@media (max-width: 820px) { .home-cta-inner { grid-template-columns: 1fr; } }

.footer-cols .fc-areas { columns: 2; column-gap: 26px; }
.footer-cols .fc-areas a { break-inside: avoid; }
