/* Grand Rapids Michigan Plumber — trades variant. Tokens from CLIENT-GRMP.md (measured from the logo). */
:root {
  --color-primary: #022E6C;
  --color-primary-dark: #011F49;
  --color-secondary: #0B6FA8;
  --color-water: #0E87CA;
  --color-accent: #FAA742;
  --color-bg: #F4F7FB;
  --color-surface: #FFFFFF;
  --color-text: #1A202C;
  --color-muted: #4A5568;
  --color-border: #D6DEE8;
  --color-cta: #C70202;
  --color-cta-hover: #A80202;
  --color-cta-text: #FFFFFF;
  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 6px;
  --shadow: 0 6px 24px rgba(2, 46, 108, 0.12);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--color-text); background: var(--color-surface); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-secondary); }
a:hover { color: var(--color-primary); }
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-primary); line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }
.eyebrow { display: inline-block; font-family: var(--font-heading); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--color-secondary); margin-bottom: .6rem; }
.eyebrow-light { color: var(--color-accent); }

/* Accessibility helpers */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--color-primary); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-block; font-family: var(--font-heading); font-weight: 700; text-decoration: none; padding: 14px 24px; border-radius: var(--radius); border: 2px solid transparent; text-align: center; cursor: pointer; font-size: 1rem; line-height: 1.2; }
.btn-cta { background: var(--color-cta); color: var(--color-cta-text); }
.btn-cta:hover { background: var(--color-cta-hover); color: var(--color-cta-text); }
.btn-outline { border-color: var(--color-primary); color: var(--color-primary); background: transparent; }
.btn-outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--color-primary); }
.btn-block { display: block; width: 100%; }

/* Utility bar + nav */
.utility-bar { background: var(--color-primary-dark); color: #fff; font-size: .9rem; }
.utility-inner { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.utility-badge { font-family: var(--font-heading); font-weight: 700; color: var(--color-accent); }
.utility-phone { color: #fff; font-weight: 700; text-decoration: none; }
.site-nav { position: sticky; top: 0; z-index: 50; background: var(--color-surface); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 10px; padding-bottom: 10px; }
.nav-logo img { width: 200px; height: auto; }
.nav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--color-primary); font-weight: 600; text-decoration: none; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--color-primary) var(--hero-bg) center / cover no-repeat; padding: 56px 0 64px; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(1,31,73,.92) 0%, rgba(1,31,73,.78) 55%, rgba(1,31,73,.55) 100%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.pill-heading { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--color-cta); color: #fff; padding: 6px 14px; border-radius: 999px; margin-bottom: 1rem; }
.hero-oneliner { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-weight: 800; line-height: 1.15; }
.hero-subhead { font-size: 1.1rem; color: #E6EDF7; }
.hero-subhead strong { color: #fff; }
.hero-price a { color: var(--color-accent); font-weight: 700; }
.proof-bullets { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 8px; }
.proof-bullets li { padding-left: 28px; position: relative; color: #E6EDF7; }
.proof-bullets li::before { content: "\2714"; position: absolute; left: 0; color: var(--color-accent); font-weight: 700; }
.proof-bullets strong { color: #fff; }
.hero-form-card { background: var(--color-surface); color: var(--color-text); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-top: 5px solid var(--color-cta); }
.hero-qualifier { font-family: var(--font-heading); font-weight: 700; color: var(--color-primary); margin-bottom: .8rem; }
.hero-phone { text-align: center; margin: .8rem 0 0; }
.hero-phone a { font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; color: var(--color-cta); text-decoration: none; }

/* Forms */
.lead-form label, .lead-form legend { display: block; font-weight: 600; font-size: .92rem; margin: .7rem 0 .25rem; }
.lead-form input[type=text], .lead-form input[type=tel], .lead-form select, .lead-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--color-border); border-radius: var(--radius); font: inherit; background: #fff; }
.lead-form fieldset { border: 0; padding: 0; margin: 0; }
.form-radio label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin-right: 18px; }
.lead-form button { margin-top: 1rem; }
.form-note { font-size: .85rem; color: var(--color-muted); margin: .8rem 0 0; }

/* Problem */
.problem { background: var(--color-bg); }
.problem-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem-card { background: #fff; border-radius: var(--radius); padding: 24px; border-left: 5px solid var(--color-cta); box-shadow: var(--shadow); }

/* Authority */
.authority-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.authority-image img { border-radius: var(--radius); box-shadow: var(--shadow); }
.stats-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; background: var(--color-primary); color: #fff; border-radius: var(--radius); padding: 24px; }
.stat { text-align: center; }
.stat-number { display: block; font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--color-accent); }
.stat-label { font-size: .92rem; }

/* Plan */
.plan { background: var(--color-primary); color: #fff; text-align: center; }
.plan h2, .plan h3 { color: #fff; }
.plan-steps { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.plan-step { background: rgba(255,255,255,.07); border-radius: var(--radius); padding: 24px; }
.step-number { font-family: var(--font-heading); font-weight: 800; font-size: 1.6rem; color: var(--color-accent); }

/* Pricing */
.pricing { background: var(--color-bg); }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.4rem; }
table { border-collapse: collapse; width: 100%; background: #fff; font-size: .95rem; }
th, td { padding: 10px 14px; border: 1px solid var(--color-border); text-align: left; vertical-align: top; }
th { background: var(--color-primary); color: #fff; font-family: var(--font-heading); }
tbody tr:nth-child(even) td { background: #F8FAFD; }
.price-factors { margin-bottom: 1.6rem; }

/* Result */
.result-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.result-inner img { border-radius: var(--radius); }

/* CTA strip, guide card */
.cta-strip { background: var(--color-cta); color: #fff; padding: 28px 0; }
.cta-strip-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.cta-strip p { margin: 0; font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; }
.cta-strip .btn-cta { background: #fff; color: var(--color-cta); }
.guide-card { background: var(--color-bg); padding: 20px 0; border-bottom: 1px solid var(--color-border); }
.guide-card p { margin: 0; font-size: 1.05rem; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { display: block; background: #fff; border: 1px solid var(--color-border); border-top: 4px solid var(--color-water); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--color-text); }
.service-card:hover { box-shadow: var(--shadow); }
.service-card h2, .service-card h3 { font-size: 1.1rem; }
.service-card p { margin: 0; font-size: .95rem; color: var(--color-muted); }

/* Accordions */
.accordions { background: var(--color-bg); }
details { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); margin-bottom: 12px; }
summary { cursor: pointer; padding: 16px 20px; font-family: var(--font-heading); font-weight: 700; color: var(--color-primary); }
details > div { padding: 0 20px 16px; }

/* Pre-footer + contact */
.prefooter-cta { position: relative; color: #fff; background: var(--color-primary) var(--prefooter-bg) center / cover no-repeat; }
.prefooter-overlay { position: absolute; inset: 0; background: rgba(1,31,73,.85); }
.prefooter-inner { position: relative; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.prefooter-inner h2 { color: #fff; margin: 0; }
.prefooter-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.lead-form-wide { background: var(--color-bg); padding: 24px; border-radius: var(--radius); }

/* Guide pages */
.breadcrumbs { background: var(--color-bg); padding: 12px 0; font-size: .9rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "\203A"; margin-right: 8px; color: var(--color-muted); }
.guide { padding: 40px 0 64px; }
.guide-body { max-width: 820px; }
.guide-body h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; }
.guide-body h2 { margin-top: 2.2rem; font-size: 1.6rem; }
.guide-body h3 { margin-top: 1.4rem; }
.guide-byline { color: var(--color-muted); font-size: .9rem; }
.guides-hub h1, .simple-page h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; }
.simple-page { min-height: 50vh; }
.simple-page .btn { margin: 0 8px 8px 0; }

/* Footer */
.site-footer { background: var(--color-primary-dark); color: #DCE4EF; padding-top: 48px; }
.site-footer a { color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer-logo { background: #fff; border-radius: var(--radius); padding: 8px; width: 220px; }
.footer-heading { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 20px; font-size: .92rem; }
.footer-nav li { margin-bottom: 6px; break-inside: avoid; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 16px 0; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.footer-hubs { list-style: none; padding: 0; margin: 0 0 1em; }
.footer-hubs li { margin-bottom: 6px; }
.mobile-call { display: none; }

/* Mega menu (desktop) */
.site-nav .container { position: relative; }
.nav-links > li { position: static; display: flex; align-items: center; }
.nav-toggle { display: none; }
@media (min-width: 1025px) {
  .nav-inner { align-items: stretch; padding-top: 0; padding-bottom: 0; }
  .nav-logo, .nav-cta { align-self: center; margin: 10px 0; }
  .primary-nav, .nav-links { display: flex; align-items: stretch; }
  .nav-links > li { align-self: stretch; }
}
.mega-toggle { width: 26px; height: 26px; margin-left: 2px; border: 0; background: transparent; cursor: pointer; position: relative; }
.mega-toggle::after { content: ""; position: absolute; left: 8px; top: 7px; width: 7px; height: 7px; border-right: 2px solid var(--color-primary); border-bottom: 2px solid var(--color-primary); transform: rotate(45deg); }
.mega { display: none; position: absolute; left: 20px; right: 20px; top: 100%; background: var(--color-surface); border-top: 4px solid var(--color-cta); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); z-index: 70; }
.has-mega:hover .mega, .has-mega.is-open .mega { display: block; }
.mega-inner { display: grid; grid-template-columns: repeat(3, 1fr) 1.1fr; gap: 28px; padding: 28px; }
.mega-heading { font-family: var(--font-heading); font-weight: 800; color: var(--color-primary); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6rem; }
.mega ul { list-style: none; padding: 0; margin: 0; }
.mega li { margin-bottom: 8px; }
.mega a { color: var(--color-text); font-weight: 500; text-decoration: none; }
.mega a:hover { color: var(--color-secondary); text-decoration: underline; }
.mega-feature { background: var(--color-bg); border-radius: var(--radius); padding: 18px; }
.mega-feature .btn { color: #fff; text-decoration: none; margin: .4rem 0 .8rem; }
.mega-small { font-size: .9rem; margin: 0; }

/* Photo slots */
.problem-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: stretch; }
.problem-layout .problem-cards { grid-template-columns: 1fr; gap: 14px; }
.problem-photo img, .plan-photo img, .result-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; }
.plan-photo { max-width: 760px; margin: 0 auto 32px; }
.result-inner img { width: 100%; }
.guide-hero { margin: 0 0 1.4rem; }
.guide-hero img, .guide-figure img { border-radius: var(--radius); width: 100%; }
.guide-figure { margin: 1.6rem 0; }
.guide-figure figcaption, .guide-hero figcaption { font-size: .88rem; color: var(--color-muted); margin-top: .4rem; }

/* Legal pages */
.legal { padding: 40px 0 64px; }
.legal-body { max-width: 820px; }
.legal-body h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; }
.legal-body h2 { font-size: 1.35rem; margin-top: 2rem; }

/* Guides hub — photo cards */
.guides-intro { font-size: 1.1rem; color: var(--color-muted); max-width: 760px; margin-bottom: 2rem; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.guide-tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-border); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--color-text); box-shadow: 0 2px 10px rgba(2,46,108,.06); transition: box-shadow .2s, transform .2s; }
.guide-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.guide-tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.guide-tile-body { padding: 22px 24px 26px; }
.guide-tile .eyebrow { color: var(--color-muted); letter-spacing: .1em; }
.guide-tile h2 { font-size: 1.25rem; margin: .2rem 0 .6rem; text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.guide-tile p { margin: 0; color: var(--color-muted); font-size: .97rem; }

/* City pages */
.local-facts { background: var(--color-surface); }
.local-rows { margin: 0 0 1.4rem; border-top: 3px solid var(--color-water); }
.local-row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.local-row dt { font-family: var(--font-heading); font-weight: 700; color: var(--color-primary); }
.local-row dd { margin: 0; }
.local-facts-list { margin: 0 0 1rem; }
.local-sources { font-size: .85rem; color: var(--color-muted); }
.nearby { background: var(--color-bg); padding: 36px 0; }
.chip-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip-row a { display: inline-block; padding: 8px 14px; border: 1px solid var(--color-border); border-radius: 999px; background: #fff; text-decoration: none; color: var(--color-primary); font-weight: 500; font-size: .95rem; }
.chip-row a:hover { border-color: var(--color-secondary); }
.locations-grid { padding: 48px 0; }
.locations-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.locations-column details { background: var(--color-bg); }
.locations-column ul { columns: 2; column-gap: 20px; margin: 0; padding: 0 20px 16px 36px; }
.locations-column li { margin-bottom: 6px; break-inside: avoid; }
.locations-column a { color: var(--color-primary); text-decoration: none; }
.locations-column a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner, .authority-inner, .result-inner, .contact-inner, .problem-layout { grid-template-columns: 1fr; }
  .mega-inner { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; order: 3; }
  .nav-toggle span { display: block; height: 3px; background: var(--color-primary); border-radius: 2px; }
  .nav-inner { flex-wrap: wrap; }
  .primary-nav { display: none; order: 4; width: 100%; }
  .primary-nav.is-open { display: block; }
  .nav-links { flex-direction: column; gap: 0; padding: 8px 0 12px; }
  .nav-links > li { flex-wrap: wrap; border-top: 1px solid var(--color-border); padding: 10px 0; }
  .mega-link { flex: 1; }
  .mega { position: static; box-shadow: none; border-top: 0; width: 100%; }
  .has-mega:hover .mega { display: none; }
  .has-mega.is-open .mega { display: block; }
  .mega-inner { grid-template-columns: 1fr; gap: 14px; padding: 12px 0 0; }
  .services-grid, .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  body { font-size: 16px; padding-bottom: 56px; }
  section { padding: 44px 0; }
  .utility-bar { display: none; }
  .hero-oneliner { font-size: 1.55rem; }
  .nav-logo img { width: 150px; }
  .nav-cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .problem-cards, .plan-steps, .services-grid, .guide-grid, .stats-bar, .footer-inner, .locations-columns { grid-template-columns: 1fr; }
  .local-row { grid-template-columns: 1fr; gap: 4px; }
  .locations-column ul { columns: 1; }
  .mobile-call { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--color-cta); color: #fff; text-align: center; font-family: var(--font-heading); font-weight: 800; padding: 14px; text-decoration: none; }
  .mobile-call:hover { color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .guide-tile:hover { transform: none; }
}

/* Tools strip on service, guide and town pages */
.tool-strip { background: var(--color-bg); padding: 52px 0; }
.tool-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tool-strip-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-border); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--color-text); transition: box-shadow .2s; }
.tool-strip-card:hover { box-shadow: var(--shadow); }
.tool-strip-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tool-strip-body { display: block; padding: 16px 18px 20px; }
.tool-strip-body .eyebrow { display: block; margin-bottom: .2rem; }
.tool-strip-body strong { display: block; font-family: var(--font-heading); color: var(--color-primary); font-size: 1.1rem; line-height: 1.3; margin-bottom: .4rem; }
.tool-strip-body span:last-child { display: block; color: var(--color-muted); font-size: .93rem; }
.tool-strip-more { margin: 18px 0 0; font-weight: 600; }
@media (max-width: 768px) { .tool-strip-grid { grid-template-columns: 1fr; } }

/* Insights (/insights/): dated, data-led assets */
.insight-dek { font-size: 1.2rem; color: var(--color-muted); line-height: 1.55; }
.insight-takeaways { background: var(--color-bg); border-left: 6px solid var(--color-accent); border-radius: var(--radius); padding: 20px 24px; margin: 1.6rem 0 2rem; }
.insight-takeaways h2 { margin: 0 0 .6rem; font-size: 1.3rem; }
.insight-takeaways ul { margin: 0; padding-left: 1.2em; }
.insight-takeaways li { margin-bottom: .45rem; }
.insight-bottomline { background: #fff; border-radius: 8px; padding: 14px 16px; margin: 0 0 1rem; font-size: 1.08rem; line-height: 1.55; box-shadow: 0 1px 0 var(--color-border); }
.insight-bottomline strong:first-child { color: var(--color-cta); }
.guide-body table { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.6rem; font-size: .95rem; display: block; overflow-x: auto; }
.guide-body th, .guide-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.guide-body thead th { background: var(--color-primary); color: #fff; font-family: var(--font-heading); font-size: .85rem; }
.guide-body tbody tr:nth-child(even) { background: var(--color-bg); }
.insight-chart-figure { margin: 1.8rem 0; padding: 16px; border: 1px solid var(--color-border); border-radius: 10px; background: #fff; }
.insight-chart { width: 100%; height: auto; display: block; }
.insight-chart-figure figcaption { font-size: .86rem; color: var(--color-muted); margin-top: .6rem; }
.insight-faq details { margin-bottom: 10px; }
.insight-sources { font-size: .9rem; padding-left: 1.3em; }
.insight-sources li { margin-bottom: .35rem; word-break: break-word; }
.insight-method { font-size: .9rem; color: var(--color-muted); background: var(--color-bg); border-radius: var(--radius); padding: 14px 18px; }

.insight-card-band { padding: 36px 0 8px; }
.insight-card { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--color-border); border-left: 6px solid var(--color-accent); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--color-text); }
.insight-card:hover { box-shadow: var(--shadow); }
.insight-card img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.insight-card-body { display: block; padding: 18px 22px 18px 0; }
.insight-card-body strong { display: block; font-family: var(--font-heading); color: var(--color-primary); font-size: 1.2rem; line-height: 1.3; margin: .2rem 0 .4rem; }
.insight-card-body span:last-child { display: block; color: var(--color-muted); font-size: .95rem; }
@media (max-width: 768px) { .insight-card { grid-template-columns: 1fr; } .insight-card-body { padding: 0 18px 18px; } }

/* Insight widgets: town picker and winter tracker */
.insight-widget { background: #fff; border: 1px solid var(--color-border); border-top: 5px solid var(--color-water); border-radius: 12px; box-shadow: var(--shadow); padding: 22px 24px; margin: 1.8rem 0; }
.insight-widget h3 { margin: 0 0 .3rem; }
.insight-widget-lede { color: var(--color-muted); margin-bottom: .9rem; }
.insight-widget label { display: block; font-family: var(--font-heading); font-weight: 700; color: var(--color-primary); margin-bottom: 6px; }
.insight-widget select { width: 100%; max-width: 420px; padding: 12px 14px; font: inherit; border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; }
.insight-widget-result:empty { display: none; }
.insight-widget-result { margin-top: 18px; padding: 18px 20px; background: #EAF5FC; border-left: 6px solid var(--color-water); border-radius: 10px; }
.insight-widget-result h4 { margin: 0 0 .6rem; font-family: var(--font-heading); color: var(--color-primary); font-size: 1.15rem; }
.insight-widget-result dl { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; margin: 0; }
.insight-widget-result dt { font-weight: 700; color: var(--color-primary); }
.insight-widget-result dd { margin: 0; }
.insight-widget-links { margin: 12px 0 0; font-weight: 600; }
.wt-tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.wt-tiles li { background: var(--color-bg); border-radius: 10px; padding: 14px; text-align: center; }
.wt-tiles strong { display: block; font-family: var(--font-heading); font-size: 1.8rem; color: var(--color-primary); line-height: 1.1; }
.wt-tiles span { display: block; font-size: .88rem; }
.wt-tiles em { display: block; font-style: normal; font-size: .78rem; color: var(--color-muted); margin-top: 4px; }
.insight-widget-note { font-size: .82rem; color: var(--color-muted); margin: 12px 0 0; }
@media (max-width: 768px) { .wt-tiles { grid-template-columns: repeat(2, 1fr); } .insight-widget-result dl { grid-template-columns: 1fr; } .insight-widget-result dt { margin-top: 6px; } }

/* Insight quick-check bar (above the fold) */
.insight-quickbar { background: var(--color-primary); color: #fff; border-radius: 12px; padding: 14px 18px; margin: 1rem 0 1.4rem; min-height: 118px; }
.insight-quickbar a { color: var(--color-accent); font-weight: 600; white-space: nowrap; }
.qb-live { margin: 0 0 10px; font-size: .97rem; }
.qb-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--color-accent); margin-right: 8px; vertical-align: middle; }
.qb-live.is-live .qb-dot { background: #3DDC84; box-shadow: 0 0 0 4px rgba(61,220,132,.25); }
.qb-town { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.qb-town label { font-family: var(--font-heading); font-weight: 700; }
.qb-town select { padding: 9px 12px; font: inherit; border-radius: var(--radius); border: 0; min-width: 220px; color: var(--color-text); }
.qb-summary { flex-basis: 100%; margin: 4px 0 0; font-size: .95rem; }
.qb-summary:empty { display: none; }
@media (max-width: 768px) { .insight-quickbar { min-height: 150px; } .qb-town select { flex: 1 1 100%; min-width: 0; } }
/* Phones: the quick check moves up under the title so it shows on the first screen. */
@media (max-width: 768px) {
  .insight-head { display: flex; flex-direction: column; }
  .insight-head .eyebrow, .insight-head h1 { order: 0; }
  .insight-head .insight-quickbar { order: 1; margin-top: .2rem; }
  .insight-head .insight-dek, .insight-head .guide-byline { order: 2; }
  .insight-head h1 { font-size: 1.65rem; }
}

/* Leak Bill Time Machine (/insights/leak-water-bill-grand-rapids/), placed right after Key Takeaways */
.lb-tool { border-top-width: 6px; }
.lb-kicker { display: inline-block; background: var(--color-accent); color: var(--color-primary); font-family: var(--font-heading); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }
.lb-tool h2 { margin: 0 0 .3rem; font-size: 1.5rem; }
.lb-step { border: 0; padding: 0; margin: 0 0 18px; }
.lb-step legend, .lb-credit summary { font-family: var(--font-heading); font-weight: 700; color: var(--color-primary); font-size: 1.08rem; margin-bottom: 10px; }
.lb-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--color-primary); color: #fff; font-size: .85rem; margin-right: 8px; }
.lb-leaks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.lb-leak input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lb-leak-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; height: 100%; padding: 12px 8px; border: 2px solid var(--color-border); border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.lb-leak-card strong { font-size: .92rem; color: var(--color-primary); line-height: 1.2; }
.lb-leak-card em { font-style: normal; font-size: .78rem; color: var(--color-muted); }
.lb-leak:hover .lb-leak-card { border-color: var(--color-water); }
.lb-leak input:checked + .lb-leak-card { border-color: var(--color-primary); background: #EAF5FC; transform: translateY(-2px); box-shadow: var(--shadow); }
.lb-leak input:focus-visible + .lb-leak-card { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.lb-icon { width: 40px; height: 40px; background: center / contain no-repeat; }
.lb-icon-faucet { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M6 12h18a6 6 0 0 1 6 6v3h-5v-3a1 1 0 0 0-1-1H6z' fill='%23022E6C'/%3E%3Crect x='12' y='6' width='6' height='6' rx='1' fill='%23022E6C'/%3E%3Cpath d='M27.5 25c2 3 3 4.6 3 6a3 3 0 0 1-6 0c0-1.4 1-3 3-6z' fill='%230E87CA'/%3E%3C/svg%3E"); }
.lb-icon-shower { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M8 6h12a4 4 0 0 1 4 4v2h-3v-2a1 1 0 0 0-1-1H8z' fill='%23022E6C'/%3E%3Cpath d='M13 14h16a2 2 0 0 1-2 3H15a2 2 0 0 1-2-3z' fill='%23022E6C'/%3E%3Ccircle cx='17' cy='24' r='2' fill='%230E87CA'/%3E%3Ccircle cx='24' cy='28' r='2' fill='%230E87CA'/%3E%3Ccircle cx='19' cy='33' r='2' fill='%230E87CA'/%3E%3C/svg%3E"); }
.lb-icon-slowtoilet, .lb-icon-runtoilet { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect x='10' y='4' width='18' height='11' rx='2' fill='%23022E6C'/%3E%3Cpath d='M7 18h26c0 7-5 11-10 11l1 7H15l1-7C11 29 7 25 7 18z' fill='%23022E6C'/%3E%3Cpath d='M20 9c1.5 2 2 3 2 3.8a2 2 0 0 1-4 0c0-.8.5-1.8 2-3.8z' fill='%230E87CA'/%3E%3C/svg%3E"); }
.lb-icon-runtoilet { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect x='10' y='4' width='18' height='11' rx='2' fill='%23022E6C'/%3E%3Cpath d='M7 18h26c0 7-5 11-10 11l1 7H15l1-7C11 29 7 25 7 18z' fill='%23022E6C'/%3E%3Cpath d='M4 10q3-3 6 0M30 10q3-3 6 0M4 15q3-3 6 0M30 15q3-3 6 0' stroke='%23C70202' stroke-width='2' fill='none'/%3E%3C/svg%3E"); }
.lb-icon-custom { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='15' fill='none' stroke='%23022E6C' stroke-width='3'/%3E%3Cpath d='M20 11c3.5 5 5 7.6 5 9.6a5 5 0 0 1-10 0c0-2 1.5-4.6 5-9.6z' fill='%230E87CA'/%3E%3C/svg%3E"); }
.lb-counter { margin-top: 12px; padding: 14px 16px; background: var(--color-bg); border-radius: 10px; }
.lb-counter p { margin: 0 0 10px; }
.lb-counter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 10px; }
.lb-tap { min-width: 120px; }
.lb-tap-status { font-weight: 600; color: var(--color-primary); }
.lb-tool input[type="number"] { width: 120px; padding: 10px 12px; font: inherit; border: 1px solid var(--color-input-border, #718096); border-radius: var(--radius); }
.lb-days { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.lb-days input[type="range"] { flex: 1; accent-color: var(--color-primary); height: 28px; }
.lb-days output { min-width: 78px; font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--color-primary); }
.lb-tool .lb-inline-label { font-size: .95rem; }
.lb-result { margin: 6px 0 18px; padding: 20px 22px; background: var(--color-primary); color: #fff; border-radius: 12px; }
.lb-big-label { display: block; font-size: 1rem; opacity: .92; }
.lb-big strong { display: block; font-family: var(--font-heading); font-size: clamp(2.6rem, 7vw, 3.6rem); line-height: 1.05; color: var(--color-accent); margin: 4px 0; }
.lb-big-sub { display: block; font-size: .92rem; opacity: .9; }
.lb-split { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 14px 0 8px; background: rgba(255,255,255,.2); }
.lb-split span { transition: width .4s ease; }
.lb-split-w, .lb-key-w { background: #7CC6F0; }
.lb-split-s, .lb-key-s { background: var(--color-accent); }
.lb-split-key { margin: 0; font-size: .92rem; }
.lb-key { display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin: 0 5px 0 2px; vertical-align: -1px; }
.lb-key-s { margin-left: 12px; }
.lb-chart-wrap h3 { margin: 0 0 6px; font-size: 1.1rem; }
.lb-svg { width: 100%; height: auto; display: block; }
.lb-grow .lb-bar { transform-box: fill-box; transform-origin: bottom; animation: lb-rise .5s ease-out both; animation-delay: var(--d); }
@keyframes lb-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.lb-credit { margin: 18px 0; padding: 16px 18px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-bg); }
.lb-credit summary { cursor: pointer; margin: 0; }
.lb-credit[open] summary { margin-bottom: 12px; }
.lb-credit label { margin-top: 4px; }
.lb-credit-out { margin-top: 12px; }
.lb-credit-out p { margin: 0 0 8px; }
.lb-yes strong { color: #1F7A3A; }
.lb-no strong { color: var(--color-cta); }
.lb-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 14px; border-top: 1px solid var(--color-border); }
.lb-share p { flex-basis: 100%; margin: 0; font-weight: 600; }
.lb-fix { font-weight: 700; }
@media (max-width: 768px) {
  .lb-leaks { grid-template-columns: repeat(2, 1fr); }
  .lb-leak:last-child { grid-column: span 2; }
  .lb-tool { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) { .lb-split span, .lb-leak-card { transition: none; } }

/* NativeForms embed (site.form.provider "nativeforms") */
.lead-form-nativeforms { background: #fff; border-radius: var(--radius); overflow: hidden; }
.lead-form-nativeforms iframe { display: block; width: 100%; border: 0; min-height: 480px; }
