/* Rio Rancho Water Damage — referral site styles */
:root {
  --blue-900: #0b3a66;
  --blue-800: #0e4a82;
  --blue-700: #1565a8;
  --blue-600: #1a7cc7;
  --blue-500: #2b8fd9;
  --blue-100: #e8f3fb;
  --blue-50: #f3f8fc;
  --white: #ffffff;
  --gray-900: #1a2332;
  --gray-700: #3d4a5c;
  --gray-600: #5a687a;
  --gray-400: #9aa6b5;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --accent: #0d9488;
  --accent-dark: #0f766e;
  --warn: #b45309;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(11, 58, 102, 0.08);
  --shadow-lg: 0 10px 40px rgba(11, 58, 102, 0.12);
  --max: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-900); }
h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--blue-900);
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.25em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.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;
}

/* Top bar */
.topbar {
  background: var(--blue-900);
  color: var(--white);
  font-size: 0.875rem;
  padding: 0.45rem 0;
  text-align: center;
}
.topbar a { color: var(--white); font-weight: 600; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* Header / nav */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--blue-900);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border-radius: 9px;
  display: grid; place-items: center;
  color: white; font-size: 1.1rem; flex-shrink: 0;
}
.logo span { display: block; line-height: 1.2; }
.logo small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--gray-600);
  letter-spacing: 0;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1rem;
  flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  color: var(--gray-700);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.25rem 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue-700); }
.header-cta { margin-left: 0.5rem; }

/* Mobile: simplify header — sticky call bar + footer cover navigation */
@media (max-width: 767px) {
  .nav a:not(.header-cta) { display: none; }
  .header-inner { flex-wrap: nowrap; }
  .header-cta { margin-left: 0; padding: 0.55rem 0.9rem; font-size: 0.9rem; }
  .logo { font-size: 0.95rem; min-width: 0; }
  .logo small { display: none; }
}
@media (min-width: 768px) and (max-width: 1040px) {
  .nav a:not(.header-cta) { font-size: 0.82rem; }
  .header-cta { padding: 0.55rem 0.85rem; font-size: 0.88rem; }
}


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }
.btn-secondary {
  background: var(--white);
  color: var(--blue-800);
  border-color: var(--blue-700);
}
.btn-secondary:hover { background: var(--blue-50); color: var(--blue-900); }
.btn-lg { padding: 1rem 1.75rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-600) 100%);
  color: var(--white);
  padding: 3rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.08), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.hero h1 { color: var(--white); margin-bottom: 0.75rem; max-width: 18ch; }
.hero .lead {
  font-size: 1.15rem;
  opacity: 0.95;
  max-width: 38rem;
  margin-bottom: 1.75rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hero .btn-primary {
  background: #14b8a6;
  border-color: #14b8a6;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.hero .btn-primary:hover { background: #0d9488; border-color: #0d9488; }
.hero .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.hero .btn-secondary:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.hero-note {
  font-size: 0.9rem;
  opacity: 0.85;
  max-width: 36rem;
}
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 800px) {
  .hero-grid { grid-template-columns: 1.4fr 1fr; }
}

.hero-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}
.hero-card h2 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.hero-card ul { list-style: none; padding: 0; margin: 0; }
.hero-card li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.hero-card li::before {
  content: "✓";
  font-weight: 800;
  color: #5eead4;
  flex-shrink: 0;
}

/* Sections */
.section { padding: 3.25rem 0; }
.section-alt { background: var(--blue-50); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { color: var(--gray-700); }

/* Cards */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card .icon {
  width: 44px; height: 44px;
  background: var(--blue-100);
  color: var(--blue-700);
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--gray-700); font-size: 0.95rem; flex-grow: 1; }
.card a.more {
  font-weight: 650;
  text-decoration: none;
  margin-top: 0.75rem;
  color: var(--blue-700);
}
.card a.more:hover { text-decoration: underline; }

/* Steps */
.steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}
@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid; place-items: center;
  width: 36px; height: 36px;
  background: var(--blue-700);
  color: white;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

/* CTA band */
.cta-band {
  background: var(--blue-900);
  color: var(--white);
  padding: 2.75rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { opacity: 0.9; max-width: 36rem; margin-inline: auto; margin-bottom: 1.5rem; }
.cta-band .btn-primary { background: #14b8a6; border-color: #14b8a6; }

/* FAQ */
.faq details {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  margin-bottom: 0.65rem;
  padding: 0.85rem 1.1rem;
}
.faq summary {
  font-weight: 650;
  color: var(--blue-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--blue-600);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 0.75rem 0 0.25rem;
  color: var(--gray-700);
  font-size: 0.95rem;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--blue-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 2.25rem 0 2rem;
}
.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
}
.page-hero .breadcrumb a { color: var(--blue-700); text-decoration: none; }
.page-hero .breadcrumb a:hover { text-decoration: underline; }
.page-hero p.lead { color: var(--gray-700); max-width: 42rem; margin-bottom: 0; font-size: 1.05rem; }

/* Content layout */
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.content-split {
  display: grid;
  gap: 2rem;
}
@media (min-width: 860px) {
  .content-split { grid-template-columns: 1fr 300px; align-items: start; }
}
.sidebar-card {
  background: var(--blue-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.35rem;
  position: sticky;
  top: 5.5rem;
}
.sidebar-card h2 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.sidebar-card p { font-size: 0.92rem; color: var(--gray-700); }
.sidebar-card .phone-display {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue-900);
  margin: 0.75rem 0 1rem;
  word-break: break-all;
}
.area-list {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.area-list li {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0;
  font-weight: 550;
  color: var(--blue-900);
}

/* Disclosure / notice */
.notice {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 1rem 1.15rem;
  font-size: 0.92rem;
  color: #78350f;
  margin: 1.5rem 0;
}
.notice strong { color: #92400e; }

/* Footer */
.site-footer {
  background: var(--gray-900);
  color: #cbd5e1;
  padding: 2.75rem 0 6.5rem; /* space for mobile sticky bar */
  font-size: 0.9rem;
}
@media (min-width: 768px) {
  .site-footer { padding-bottom: 2.5rem; }
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h3 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.site-footer a { color: #94a3b8; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.footer-brand { font-weight: 700; color: var(--white); font-size: 1.05rem; margin-bottom: 0.5rem; }
.footer-disclosure {
  border-top: 1px solid #334155;
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.55;
}
.footer-bottom {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  color: #64748b;
  font-size: 0.8rem;
}

/* Sticky mobile call bar */
.mobile-callbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--blue-900);
  padding: 0.65rem 1rem;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  display: block;
}
@media (min-width: 768px) {
  .mobile-callbar { display: none; }
}
.mobile-callbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #14b8a6;
  color: white;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
}

/* Legal pages */
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal h3 { font-size: 1.05rem; }
.legal p, .legal li { font-size: 0.95rem; color: var(--gray-700); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--gray-600); }
.phone-link {
  font-weight: 700;
  color: var(--blue-800);
  text-decoration: none;
  white-space: nowrap;
}
.phone-link:hover { text-decoration: underline; }

/* header call button contrast fix */
a.btn.header-cta, a.btn.header-cta:visited, a.btn.header-cta:hover { color: #ffffff !important; }
