/* ===================================================================
   waterdamagenorthcarolina.com — v2 design system
   Deep Navy + Orange, matching the waterdamagemissouri.com structure
   =================================================================== */

:root {
  --navy: #16233d;
  --navy-dark: #0d1626;
  --navy-tint: #eef1f6;
  --navy-tint-2: #dbe1ec;
  --orange: #f5821f;
  --orange-dark: #d66a0f;
  --orange-tint: #fff3e8;

  --ink: #1b1f27;
  --ink-2: #4a5568;
  --ink-3: #6b7280;
  --line: #e4e8ef;
  --bg: #fff;
  --bg-soft: #f7f9fc;

  --success: #16a34a;

  --fs-h1: clamp(2rem, 4.4vw + .6rem, 3.2rem);
  --fs-h2: clamp(1.5rem, 2.2vw + .6rem, 2.1rem);
  --fs-h3: 1.15rem;
  --fs-body: 1.03rem;
  --lh-body: 1.68;

  --sec-pad: clamp(3rem, 7vw, 5.5rem);
  --wrap: 1160px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px -10px rgba(22,35,61,.18);
  --shadow-lift: 0 16px 40px -12px rgba(22,35,61,.26);
  --ease: cubic-bezier(.16,1,.3,1);
  --header-h: 118px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body { margin: 0; font-family: "Inter", system-ui, sans-serif; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink); background: var(--bg); }
h1,h2,h3,h4 { font-family: "Sora", system-ui, sans-serif; font-weight: 700; letter-spacing: -.01em; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: var(--fs-h1); line-height: 1.1; }
h2 { font-size: var(--fs-h2); line-height: 1.18; }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1.1em; }
a { color: var(--orange); text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.2em; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.sr-only { position: absolute; 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: -999px; top: 0; background: var(--orange); color: #fff; padding: .75rem 1.25rem; z-index: 999; }
.skip-link:focus { left: 0; }
section { padding-block: var(--sec-pad); }
.bg-soft { background: var(--bg-soft); }
.bg-navy-tint { background: var(--navy-tint); }

/* ---------- Utility bar ---------- */
.util-bar { background: var(--navy-dark); color: #cbd3e1; font-size: .82rem; padding-block: .5rem; }
.util-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.util-bar a { color: #fff; font-weight: 700; }
.util-bar .badges { display: flex; gap: 1.25rem; flex-wrap: wrap; }
@media (max-width: 640px) { .util-bar { display: none; } }

/* ---------- Header (non-sticky) ---------- */
.site-header { padding-block: .9rem; border-bottom: 1px solid var(--line); background: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: .6rem; font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--navy); }
.logo img { height: 38px; width: auto; }
.logo img.missing { display: none; }
.logo .logo-text { display: none; }
.logo img.missing + .logo-text { display: inline; }
nav.main-nav { display: flex; align-items: center; gap: 1.4rem; }
nav.main-nav > ul { display: flex; list-style: none; gap: 1.4rem; margin: 0; padding: 0; align-items: center; }
nav.main-nav a.nav-link { color: var(--ink-2); font-weight: 600; font-size: .93rem; border-bottom: 2px solid transparent; transition: color 200ms var(--ease); }
nav.main-nav a.nav-link:hover { color: var(--orange); }
.has-dropdown { position: relative; }
.has-dropdown > .drop-label { color: var(--ink-2); font-weight: 600; font-size: .93rem; display: flex; align-items: center; gap: .3rem; background: none; border: none; padding: .3rem 0; font-family: inherit; }
.has-dropdown .chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; }
.dropdown-panel { position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lift); min-width: 260px; padding: .5rem; display: none; z-index: 40; max-height: 360px; overflow-y: auto; }
.has-dropdown:hover .dropdown-panel, .has-dropdown:focus-within .dropdown-panel, .has-dropdown.open .dropdown-panel { display: block; }
.dropdown-panel a { display: block; padding: .5rem .6rem; border-radius: 6px; color: var(--ink-2); font-size: .9rem; }
.dropdown-panel a:hover { background: var(--navy-tint); color: var(--navy); }
.header-cta { display: flex; align-items: center; gap: .75rem; }
.call-btn { display: inline-flex; align-items: center; gap: .5rem; color: var(--navy) !important; font-weight: 700; font-size: .92rem; }
.free-est-btn { display: inline-flex; align-items: center; background: var(--orange); color: #fff !important; padding: .6rem 1.1rem; border-radius: 6px; font-weight: 700; font-size: .88rem; transition: background 200ms var(--ease); }
.free-est-btn:hover { background: var(--orange-dark); }
.hamburger { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; }
.hamburger span, .hamburger span::before, .hamburger span::after { content: ""; display: block; width: 20px; height: 2px; background: var(--navy); position: relative; margin: 4px 0; }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(160deg, var(--navy-dark), var(--navy)); background-size: cover; background-position: center; color: #fff; overflow: hidden; padding-block: 4rem; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(13,22,38,.68), rgba(13,22,38,.82)); z-index: 0; }
.hero .wrap { position: relative; z-index: 1; }
.hero .tagline { text-transform: uppercase; color: var(--orange); letter-spacing: .1em; font-weight: 700; font-size: .82rem; margin-bottom: 1rem; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero .intro { color: hsl(0 0% 100% / .88); max-width: 62ch; font-size: 1.06rem; margin-top: 1rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.5rem; color: hsl(0 0% 100% / .85); font-size: .88rem; font-weight: 600; }
.hero-badges span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-badges svg { width: 14px; height: 14px; stroke: var(--orange); fill: none; stroke-width: 2.5; }
.hero-actions { margin-top: 1.75rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.btn-orange { display: inline-flex; align-items: center; gap: .6rem; background: var(--orange); color: #fff !important; font-weight: 700; padding: .95rem 1.5rem; border-radius: 8px; font-size: 1rem; transition: background 200ms var(--ease), transform 200ms var(--ease); }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-outline-white { display: inline-flex; align-items: center; gap: .6rem; background: transparent; color: #fff !important; font-weight: 700; padding: .95rem 1.5rem; border-radius: 8px; font-size: 1rem; border: 2px solid hsl(0 0% 100% / .5); transition: border-color 200ms var(--ease), background 200ms var(--ease); }
.btn-outline-white:hover { border-color: #fff; background: hsl(0 0% 100% / .1); }
.btn-orange svg, .btn-outline-white svg { width: 18px; height: 18px; }

/* ---------- Stat band ---------- */
.stat-band { background: #fff; border-bottom: 1px solid var(--line); }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); padding-block: 2rem; }
.stat-tile { text-align: center; border-right: 1px solid var(--line); padding-inline: 1rem; }
.stat-tile:last-child { border-right: none; }
.stat-num { font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.9rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat-label { color: var(--ink-3); font-size: .78rem; font-weight: 600; margin-top: .25rem; }
@media (max-width: 720px) { .stat-grid { grid-template-columns: repeat(2,1fr); gap: 1.25rem 0; } .stat-tile:nth-child(2) { border-right: none; } }

/* ---------- Trust marquee ---------- */
.marquee-band { background: var(--navy); overflow: hidden; padding-block: .75rem; }
.marquee-track { display: flex; width: max-content; animation: marquee-scroll 28s linear infinite; }
.marquee-track span { color: #fff; font-weight: 700; font-size: .9rem; padding-inline: 1.5rem; white-space: nowrap; border-right: 1px solid hsl(0 0% 100% / .25); }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Section label ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; text-transform: uppercase; font-size: .78rem; font-weight: 700; color: var(--orange); letter-spacing: .1em; margin-bottom: .6rem; }
.section-intro { color: var(--ink-2); max-width: 70ch; }

/* ---------- Checkmark feature blocks ---------- */
.feature-block { display: flex; gap: 1rem; margin-bottom: 1.75rem; }
.feature-check { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--orange-tint); color: var(--orange); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.feature-check svg { width: 18px; height: 18px; stroke: var(--orange); fill: none; stroke-width: 3; }
.feature-block h3 { margin-bottom: .35rem; }
.feature-block p { color: var(--ink-2); margin-bottom: 0; }

/* ---------- Service cards (badge-tagged) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
@media (max-width: 860px) { .card-grid { grid-template-columns: 1fr; } }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.service-badge { display: inline-block; background: var(--navy-tint); color: var(--navy); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .3rem .6rem; border-radius: 999px; margin-bottom: .85rem; }
.service-card h3 { margin-bottom: .4rem; font-size: 1.02rem; }
.service-card p { color: var(--ink-2); font-size: .93rem; margin-bottom: 1rem; }
.service-card-links { display: flex; gap: 1rem; font-size: .85rem; font-weight: 700; flex-wrap: wrap; }
.service-card-links a.help-now { color: var(--orange); }
.service-card-links a.learn-more { color: var(--navy); }
.group-label { font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.05rem; margin: 2rem 0 1rem; color: var(--navy); }
.group-label:first-of-type { margin-top: 0; }

/* ---------- Numbered process steps (4-step) ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }
.process-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; position: relative; }
.process-num { font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.6rem; color: var(--orange); margin-bottom: .5rem; }
.process-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.process-card p { color: var(--ink-2); font-size: .92rem; margin-bottom: 0; }

/* ---------- Mid-page CTA band ---------- */
.cta-band { background: linear-gradient(160deg, var(--navy-dark), var(--navy)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: hsl(0 0% 100% / .85); max-width: 60ch; margin-inline: auto; }

/* ---------- Case study ---------- */
.case-block { margin-bottom: 1.75rem; }
.case-block p { color: var(--ink-2); }
.case-disclaimer { font-size: .85rem; color: var(--ink-3); font-style: italic; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }

/* ---------- Testimonials ---------- */
.testi-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; margin-bottom: 1.25rem; }
.testi-avatar-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .85rem; }
.testi-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .82rem; flex: none; }
.testi-name { font-weight: 700; color: var(--navy); font-size: .92rem; }
.testi-area { color: var(--ink-3); font-size: .82rem; }
.testi-card p.quote { color: var(--ink-2); margin-bottom: 0; }
.stars { color: #f5a623; font-size: 1rem; letter-spacing: 2px; margin-bottom: .5rem; }

/* ---------- Locations (plain list) ---------- */
.location-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem 1.5rem; }
@media (max-width: 760px) { .location-list { grid-template-columns: repeat(2,1fr); } }
.location-list li { padding-left: 1.3rem; position: relative; color: var(--ink-2); }
.location-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; background: var(--orange); border-radius: 50%; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.1rem 0; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { color: var(--orange); }
.faq-chev { width: 22px; height: 22px; border-radius: 50%; background: var(--navy-tint); color: var(--navy); flex: none; display: flex; align-items: center; justify-content: center; font-weight: 700; transition: transform 200ms var(--ease); }
.faq-item[open] .faq-chev { transform: rotate(45deg); background: var(--orange-tint); color: var(--orange); }
.faq-item .faq-answer { color: var(--ink-2); padding-bottom: 1.1rem; margin: 0; }

/* ---------- Final CTA band ---------- */
.final-cta { background: linear-gradient(160deg, var(--navy-dark), var(--navy)); color: #fff; }
.final-cta h2 { color: #fff; }
.final-cta-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 800px) { .final-cta-grid { grid-template-columns: 1fr; } }
.final-cta-list { list-style: none; padding: 0; display: grid; gap: .75rem; }
.final-cta-list li { display: flex; gap: .6rem; color: hsl(0 0% 100% / .9); }
.final-cta-list li::before { content: "\2713"; color: var(--orange); font-weight: 700; }
.final-cta-card { background: hsl(0 0% 100% / .08); border: 1px solid hsl(0 0% 100% / .2); border-radius: var(--radius); padding: 1.75rem; text-align: center; }
.final-cta-card h3 { color: #fff; font-size: 1rem; }
.final-cta-card p { color: hsl(0 0% 100% / .75); font-size: .88rem; }

/* ---------- Map band ---------- */
.map-band { height: 380px; background: var(--bg-soft); }
.map-band iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy-dark); color: hsl(0 0% 100% / .7); padding-block: var(--sec-pad) 1.5rem; }
.footer-about { margin-bottom: 2rem; max-width: 640px; }
.footer-about strong { color: #fff; font-family: "Sora", sans-serif; font-size: 1.1rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-grid > div:first-child ul { grid-template-columns: repeat(2,1fr); column-gap: 1.25rem; }
@media (max-width: 480px) { .footer-grid > div:first-child ul { grid-template-columns: 1fr; } }
.footer-grid a { color: hsl(0 0% 100% / .7); font-size: .9rem; }
.footer-grid a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid hsl(0 0% 100% / .15); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; font-size: .85rem; }
.footer-bottom a { color: hsl(0 0% 100% / .7); margin-left: 1rem; }

/* ---------- Sticky mobile call bar ---------- */
.sticky-call { position: fixed; left: 0; right: 0; bottom: 0; background: var(--orange); transform: translateY(120%); opacity: 0; transition: transform 350ms var(--ease), opacity 350ms var(--ease); padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom)); z-index: 200; }
.sticky-call.show { transform: translateY(0); opacity: 1; }
.sticky-call a { display: flex; align-items: center; justify-content: center; gap: .6rem; color: #fff; font-weight: 700; font-size: 1rem; }
.sticky-call svg { width: 18px; height: 18px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .85rem; color: var(--ink-3); padding-block: .75rem; }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--orange); }

/* ---------- Legal pages ---------- */
.title-band { background: var(--navy-dark); color: #fff; padding-block: 3rem; min-height: 180px; display: flex; align-items: center; }
.title-band h1 { color: #fff; margin: 0; }
.legal-body { max-width: 72ch; }
.legal-body h2 { margin-top: 2rem; }

/* ---------- Infographics (audit-required, min 2 per money page) ---------- */
.ig { margin-block: 1.75rem; }
.ig-meters { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
@media (max-width: 720px) { .ig-meters { grid-template-columns: 1fr; } }
.ig-meters .meter-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; text-align: center; }
.ig-meters .meter-num { font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--orange); font-variant-numeric: tabular-nums; }
.ig-meters .meter-label { color: var(--ink-3); font-size: .8rem; margin-top: .25rem; }
.ig-meters .meter-bar { height: 6px; background: var(--navy-tint-2); border-radius: 999px; margin-top: .6rem; overflow: hidden; }
.ig-meters .meter-bar-fill { height: 100%; background: var(--orange); border-radius: 999px; }
.ig-timeline { display: flex; align-items: flex-start; overflow-x: auto; padding-block: .75rem; }
.ig-timeline .tl-item { flex: 1; min-width: 130px; text-align: center; position: relative; padding-inline: .5rem; }
.ig-timeline .tl-track { position: absolute; top: 8px; left: -50%; width: 100%; height: 3px; background: var(--navy-tint-2); z-index: 0; }
.ig-timeline .tl-item:first-child .tl-track { display: none; }
.ig-timeline .tl-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--navy); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--navy-tint-2); margin: 0 auto; position: relative; z-index: 1; }
.ig-timeline .tl-item.danger .tl-dot { background: var(--orange); }
.ig-timeline .tl-caption { font-size: .78rem; color: var(--ink-3); margin-top: .5rem; font-weight: 600; }
.ig-timeline .tl-label { font-weight: 700; margin-top: .25rem; font-size: .88rem; }
.ig-rings { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.ig-rings .rings-visual { position: relative; width: 200px; height: 200px; flex: none; }
.ig-rings .ring { position: absolute; border-radius: 50%; border: 2px solid var(--navy-tint-2); }
.ig-rings .ring-1 { inset: 0; } .ig-rings .ring-2 { inset: 28px; border-color: var(--navy-tint); } .ig-rings .ring-3 { inset: 56px; }
.ig-rings .ring-center { position: absolute; inset: 74px; background: var(--navy); border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .74rem; text-align: center; padding: .25rem; }
.ig-rings .rings-list p { color: var(--ink-2); margin-bottom: .5rem; }
.ig-rings .rings-list strong { color: var(--navy); }

/* ---------- Checklist grid ---------- */
.check-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem 1.5rem; }
@media (max-width: 700px) { .check-grid { grid-template-columns: 1fr; } }
.check-item { display: flex; gap: .7rem; align-items: flex-start; }
.check-item svg { width: 20px; height: 20px; stroke: var(--orange); fill: none; stroke-width: 2.5; flex: none; margin-top: 3px; }
.check-item p { margin: 0; color: var(--ink-2); }
.check-item strong { color: var(--navy); }
.step-list { list-style: none; padding: 0; counter-reset: steplist; display: grid; gap: 1rem; }
.step-list li { counter-increment: steplist; display: flex; gap: 1rem; }
.step-list li::before { content: counter(steplist); font-family: "Sora", sans-serif; font-weight: 700; color: var(--orange); background: var(--orange-tint); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.step-list p { margin: 0; color: var(--ink-2); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (max-width: 940px) {
  .hamburger { display: block; }
  nav.main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow); z-index: 90; max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
  nav.main-nav.open { display: flex; }
  nav.main-nav > ul { flex-direction: column; align-items: stretch; gap: .3rem; }
  .dropdown-panel { position: static; box-shadow: none; border: none; display: none; padding-left: .75rem; max-height: none; }
  .has-dropdown.open .dropdown-panel { display: block; }
  .header-cta { width: 100%; justify-content: space-between; margin-top: .75rem; }
}
@media (min-width: 941px) { .hamburger { display: none; } }
