/* ============================================================================
   MR.PlumberCalifornia -- Design System
   Premium / modern / minimal home-services site.
   All colors below are the exact brand palette provided -- edit here once
   and every page updates on next generation.
   ============================================================================ */
:root {
  --primary: #0B63F6;
  --primary-dark: #084ec2;
  --secondary: #00AEEF;
  --accent: #FF6A00;
  --bg: #FFFFFF;
  --soft-gray: #F6F8FB;
  --ink: #1E293B;
  --ink-soft: #52607a;
  --border: #E6EBF3;

  --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-dark: linear-gradient(180deg, rgba(10,20,40,0.82) 0%, rgba(10,20,40,0.55) 55%, rgba(10,20,40,0.85) 100%);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(16, 33, 74, 0.06);
  --shadow-md: 0 12px 32px rgba(16, 33, 74, 0.10);
  --shadow-lg: 0 24px 60px rgba(16, 33, 74, 0.16);
  --shadow-glow: 0 8px 28px rgba(11, 99, 246, 0.28);

  --max-width: 1240px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------------------------
   Reset / base
   --------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--primary-dark); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); margin: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 16px; color: var(--ink-soft); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(11, 99, 246, 0.08);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 1.06rem; margin-top: 14px; }
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.section.soft { background: var(--soft-gray); }

/* ---------------------------------------------------------------------------
   Buttons -- rounded, gradient, soft shadow, ripple on click, lift on hover
   --------------------------------------------------------------------------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { box-shadow: 0 12px 36px rgba(11, 99, 246, 0.4); color: #fff; }
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 106, 0, 0.32);
}
.btn-accent:hover { color: #fff; box-shadow: 0 14px 36px rgba(255, 106, 0, 0.42); }
.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-white {
  background: #fff;
  color: var(--primary);
}
.btn-white:hover { color: var(--primary-dark); }
.btn-lg { padding: 19px 40px; font-size: 1.05rem; }
.btn-sm { padding: 11px 22px; font-size: 0.9rem; }

/* Ripple */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transform: scale(0);
  animation: ripple 0.6s var(--ease);
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* ---------------------------------------------------------------------------
   Header
   --------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 24px;
}
.logo {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo .logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: var(--shadow-glow);
}
.logo .accent { color: var(--primary); }
.main-nav { display: flex; gap: 32px; align-items: center; }
.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gradient-brand);
  transition: width 0.25s var(--ease);
}
.main-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-call-btn {
  background: var(--gradient-brand);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  box-shadow: var(--shadow-glow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.header-call-btn:hover { color: #fff; transform: translateY(-1px); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 72px;
    right: 0; left: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 26px;
    gap: 18px;
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .main-nav a { font-size: 1.05rem; }
  .nav-toggle { display: block; }
}

/* ---------------------------------------------------------------------------
   Hero -- large headline, dark-overlay abstract background (no stock photo
   dependency), trust badges, floating call button
   --------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
  background: radial-gradient(1200px 600px at 15% -10%, rgba(0,174,239,0.35), transparent 60%),
              radial-gradient(900px 500px at 100% 10%, rgba(11,99,246,0.35), transparent 55%),
              linear-gradient(160deg, #0a1a3a 0%, #0d2456 45%, #0a1a3a 100%);
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero .eyebrow { background: rgba(255,255,255,0.12); color: #d7e9ff; }
.hero h1 { color: #fff; }
.hero .lead { color: #cfe0ff; font-size: 1.18rem; max-width: 620px; }
.hero-cta-row { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: #e8f1ff;
  backdrop-filter: blur(6px);
}
.trust-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 0 4px rgba(0,174,239,0.25); }
.coverage-badge {
  position: absolute;
  right: 24px;
  bottom: -1px;
  display: none;
}
@media (min-width: 980px) {
  .coverage-badge { display: block; }
}
.coverage-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 28px 30px;
  width: 280px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.coverage-card .big { font-size: 2.2rem; font-weight: 800; }
.coverage-card p { color: #cfe0ff; font-size: 0.86rem; margin: 4px 0 0; }

/* ---------------------------------------------------------------------------
   Breadcrumbs (used on interior pages)
   --------------------------------------------------------------------------- */
.breadcrumbs { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 20px; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.5; }
.page-hero {
  background: var(--soft-gray);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}
.page-hero .lead { max-width: 680px; font-size: 1.08rem; }

/* ---------------------------------------------------------------------------
   Cards -- several distinct styles so pages can alternate looks
   --------------------------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

/* Style A: icon-top service card */
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(11,99,246,0.25); }
.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem;
  margin-bottom: 18px;
  box-shadow: var(--shadow-glow);
}
.service-card h3 { margin-bottom: 10px; }
.service-card .learn-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; font-size: 0.92rem; }

/* Style B: glass card (used sparingly, on dark/soft backgrounds).
   IMPORTANT: text inside must ALWAYS stay dark/legible -- this card's own
   background is light, regardless of what section it sits inside, so it
   must never inherit a dark-section's light body-text color. */
.glass-card {
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-md);
}
.glass-card h1, .glass-card h2, .glass-card h3, .glass-card h4 { color: var(--ink) !important; }
.glass-card p, .glass-card li { color: var(--ink-soft) !important; }

/* Style C: bordered-left feature row */
.feature-row {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row .num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--soft-gray);
  color: var(--primary);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* Pills / tags */
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 20px 0; }
.pill-list li a, .pill-list li {
  background: var(--soft-gray);
  color: var(--ink);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all 0.25s var(--ease);
  display: inline-block;
}
.pill-list li a:hover { background: var(--gradient-brand); color: #fff; border-color: transparent; }

/* ---------------------------------------------------------------------------
   Steps (How It Works)
   --------------------------------------------------------------------------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
@media (max-width: 760px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card { position: relative; padding: 32px 26px 26px; background: #fff; border-radius: var(--radius-md); border: 1px solid var(--border); }
.step-card .step-number {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--gradient-brand);
  color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-glow);
}

/* ---------------------------------------------------------------------------
   FAQ accordion
   --------------------------------------------------------------------------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease);
}
.faq-item.open { box-shadow: var(--shadow-sm); border-color: rgba(11,99,246,0.25); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 22px;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
  gap: 16px;
}
.faq-question .icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--soft-gray);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
  font-weight: 700;
  color: var(--primary);
}
.faq-item.open .faq-question .icon { transform: rotate(45deg); background: var(--gradient-brand); color: #fff; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); padding: 0 22px; }
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 20px; }
.faq-answer p { margin: 0; }

/* ---------------------------------------------------------------------------
   Nearby cities grid
   --------------------------------------------------------------------------- */
.nearby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.nearby-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-weight: 700;
  color: var(--ink);
  transition: all 0.25s var(--ease);
}
.nearby-grid a:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-2px); color: var(--primary); }

/* ---------------------------------------------------------------------------
   Map
   --------------------------------------------------------------------------- */
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------------------------------------------------------------------------
   Search
   --------------------------------------------------------------------------- */
.search-wrap { position: relative; max-width: 460px; }
.search-input {
  width: 100%;
  padding: 15px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  font-size: 0.96rem;
  font-family: inherit;
}
.search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(11,99,246,0.12); }
.hero .search-input { background: rgba(255,255,255,0.95); }
.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 360px;
  overflow-y: auto;
  display: none;
  z-index: 50;
}
.search-results.active { display: block; }
.search-results a { display: block; padding: 12px 18px; color: var(--ink); border-bottom: 1px solid var(--border); font-size: 0.92rem; font-weight: 600; }
.search-results a:last-child { border-bottom: none; }
.search-results a:hover { background: var(--soft-gray); color: var(--primary); }
.search-empty { padding: 16px 18px; color: var(--ink-soft); font-size: 0.9rem; }

/* ---------------------------------------------------------------------------
   California coverage strip
   --------------------------------------------------------------------------- */
.coverage-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 760px) { .coverage-strip { grid-template-columns: repeat(2, 1fr); } }
.coverage-stat .big { font-size: 2.4rem; font-weight: 800; background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.coverage-stat p { margin-top: 6px; font-weight: 600; color: var(--ink); }

/* ---------------------------------------------------------------------------
   Blog preview cards
   --------------------------------------------------------------------------- */
.blog-card { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); background: #fff; transition: all 0.3s var(--ease); }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.blog-card .blog-thumb { height: 160px; background: var(--gradient-brand); }
.blog-card .blog-body { padding: 22px; }
.blog-card .blog-tag { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--secondary); }

/* ---------------------------------------------------------------------------
   Final CTA band
   --------------------------------------------------------------------------- */
.final-cta {
  background: linear-gradient(135deg, #0a1a3a 0%, #0d2456 100%);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(700px 300px at 80% 0%, rgba(0,174,239,0.35), transparent 60%);
}
.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 { color: #fff; margin-bottom: 14px; }
.final-cta p { color: #cfe0ff; max-width: 560px; margin: 0 auto 30px; }

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
.site-footer { background: #0a1428; color: #aebbd6; margin-top: 0; padding: 72px 0 28px; }
.site-footer a { color: #aebbd6; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: #7c8bad; font-size: 0.92rem; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 0.92rem; margin-bottom: 16px; letter-spacing: 0.02em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; font-size: 0.9rem; }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.25s var(--ease);
}
.social-row a:hover { background: var(--gradient-brand); border-color: transparent; }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; font-size: 0.78rem; color: #6b7996; line-height: 1.7; }
.footer-disclaimer p { color: #6b7996; margin: 0 0 10px; }
.footer-bottom {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
  color: #5b6787;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------------------------------------------------------------------
   Sticky / floating call button
   --------------------------------------------------------------------------- */
.floating-call-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 17px 26px;
  font-weight: 700;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float-pulse 2.6s ease-in-out infinite;
}
.floating-call-btn:hover { color: #fff; }
@keyframes float-pulse {
  0%, 100% { box-shadow: var(--shadow-lg), 0 0 0 0 rgba(11,99,246,0.35); }
  50% { box-shadow: var(--shadow-lg), 0 0 0 10px rgba(11,99,246,0); }
}
.sticky-call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 199;
  background: var(--gradient-brand);
  color: #fff;
  text-align: center;
  padding: 14px 16px;
  font-weight: 700;
  display: none;
}
@media (max-width: 640px) {
  .sticky-call-bar { display: block; }
  .floating-call-btn { display: none; }
  body { padding-bottom: 60px; }
  .hero { padding: 96px 0 72px; }
  .section { padding: 60px 0; }
}
.sticky-call-bar a { color: #fff; }

/* ---------------------------------------------------------------------------
   Scroll-reveal animation hooks (JS toggles .in-view -- see js/main.js)
   --------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ---------------------------------------------------------------------------
   Misc
   --------------------------------------------------------------------------- */
.disclaimer-inline {
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--soft-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-top: 14px;
}
.skip-link {
  position: absolute;
  left: -999px; top: auto;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: 12px; top: 12px; }
.lazy { opacity: 0; transition: opacity 0.4s var(--ease); }
.lazy.loaded { opacity: 1; }
section[id] { scroll-margin-top: 96px; }
hr.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ============================================================================
   Iteration 2 additions: dark sections, callout/warning/tip boxes, checklist
   panels, comparison tables, 2-column dark FAQ, active-state selection,
   alternating layout helpers (image-left/right, timeline).
   ============================================================================ */

/* ---- Dark section variant (Search, FAQ, Final CTA context, Coverage) --- */
.section.dark { background: linear-gradient(180deg, #0a1428 0%, #0F172A 100%); color: #dbe4f5; }
.section.dark h1, .section.dark h2, .section.dark h3, .section.dark h4 { color: #fff; }
.section.dark .section-head h2 { color: #fff; }
.section.dark .section-head p { color: #9fb0d1; }
.section.dark .eyebrow { background: rgba(255,255,255,0.1); color: #cfe0ff; }
.section.dark p { color: #9fb0d1; }

/* ---- Section-head is always center-aligned with eyebrow/H2/subtext ---- */
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }

/* ---- Search section (separate, dark, two inputs side by side) --------- */
.search-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
}
@media (max-width: 700px) { .search-panel { grid-template-columns: 1fr; } }
.search-box {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 22px 22px 22px 56px;
  backdrop-filter: blur(6px);
}
.search-box .box-icon {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  color: var(--secondary);
}
.search-box label { display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #9fb0d1; margin-bottom: 8px; }
.search-box input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 1.05rem;
  padding: 8px 2px;
  font-family: inherit;
}
.search-box input:focus { outline: none; border-color: var(--secondary); }
.search-box input::placeholder { color: #6f81a8; }

/* ---- Callout / warning / tip / info boxes ------------------------------ */
.callout {
  display: flex;
  gap: 16px;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin: 20px 0;
  border: 1px solid var(--border);
}
.callout .callout-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.callout h4 { margin-bottom: 6px; font-size: 1rem; }
.callout p { margin: 0; }
.callout-tip { background: rgba(0,174,239,0.06); border-color: rgba(0,174,239,0.25); }
.callout-tip .callout-icon { background: var(--secondary); color: #fff; }
.callout-warning { background: rgba(255,106,0,0.06); border-color: rgba(255,106,0,0.28); }
.callout-warning .callout-icon { background: var(--accent); color: #fff; }
.callout-info { background: rgba(11,99,246,0.06); border-color: rgba(11,99,246,0.22); }
.callout-info .callout-icon { background: var(--primary); color: #fff; }

/* ---- Checklist panel ---------------------------------------------------- */
.checklist-panel { background: var(--soft-gray); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px 28px; }
.checklist-panel ul { list-style: none; margin: 0; padding: 0; }
.checklist-panel li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.checklist-panel li:last-child { border-bottom: none; }
.checklist-panel li .tick { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--gradient-brand); color: #fff; display: flex; align-items: center; justify-content: center; margin-top: 1px; }

/* ---- Comparison / info table (public-facing, distinct from report table) */
.info-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.info-table th, .info-table td { padding: 14px 18px; text-align: left; font-size: 0.94rem; }
.info-table thead th { background: var(--gradient-brand); color: #fff; font-weight: 700; }
.info-table tbody tr:nth-child(even) { background: var(--soft-gray); }
.info-table tbody td { color: var(--ink-soft); border-top: 1px solid var(--border); }

/* ---- FAQ dark two-column variant --------------------------------------- */
.faq-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; max-width: 980px; margin: 0 auto; }
@media (max-width: 760px) { .faq-grid-2col { grid-template-columns: 1fr; } }
.section.dark .faq-item { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); }
.section.dark .faq-item.open { border-color: var(--secondary); }
.section.dark .faq-question { color: #fff; }
.section.dark .faq-question .icon { background: rgba(255,255,255,0.1); color: var(--secondary); }
.section.dark .faq-item.open .faq-question .icon { background: var(--gradient-brand); color: #fff; }
.section.dark .faq-answer p { color: #aebbd6; }

/* ---- Active-state selection (nearby cities, CTA groups) ---------------- */
.nearby-grid a.active {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}
.cta-group .btn.active { background: var(--accent); color: #fff; box-shadow: 0 10px 28px rgba(255,106,0,0.32); }

/* ---- Alternating layout helpers ---------------------------------------- */
.split-row { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 800px) { .split-row { grid-template-columns: 1fr; } }
.split-row.reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--soft-gray);
  min-height: 220px;
  display: flex; align-items: center; justify-content: center;
}
.timeline { position: relative; max-width: 720px; margin: 0 auto; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute; left: -36px; top: 2px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: var(--shadow-glow);
}

/* ---- Blog cards: light/dark theme variants ----------------------------- */
.blog-card.dark-card { background: #0F172A; border-color: #1c2942; }
.blog-card.dark-card h3 { color: #fff; }
.blog-card.dark-card p { color: #9fb0d1; }
.blog-card.dark-card .blog-tag { color: var(--secondary); }

/* Contrast safety: light-colored card/panel components sitting inside a
   .section.dark background should keep their own (dark) text color rather
   than inheriting the section's light body-text color. */
.section.dark .card p,
.section.dark .service-card p,
.section.dark .checklist-panel p,
.section.dark .checklist-panel li,
.section.dark .info-table td,
.section.dark .callout p { color: var(--ink-soft); }
.section.dark .card h3,
.section.dark .service-card h3,
.section.dark .checklist-panel h3 { color: var(--ink); }

/* ============================================================================
   Iteration 3: real-business hero polish (inline trust checklist, colorful
   circular icon badges) so location pages read like a confident service
   business page rather than a stacked content report.
   ============================================================================ */
.trust-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  max-width: 560px;
  margin: 26px 0 0;
  list-style: none;
  padding: 0;
}
@media (max-width: 560px) { .trust-checklist { grid-template-columns: 1fr; } }
.trust-checklist li { display: flex; align-items: center; gap: 10px; color: #dbe7ff; font-weight: 600; font-size: 0.95rem; }
.trust-checklist .tick-sm {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--secondary);
  color: #062043;
  display: flex; align-items: center; justify-content: center;
}

/* Colorful circular icon badges -- an alternative to the square gradient
   .service-icon, used where a bolder, more "real trade business" feel is
   wanted (location-page service cards). Five rotating colors. */
.icon-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-md);
}
.icon-circle.c1 { background: linear-gradient(135deg, #0B63F6, #00AEEF); }
.icon-circle.c2 { background: linear-gradient(135deg, #FF6A00, #ff9248); }
.icon-circle.c3 { background: linear-gradient(135deg, #00AEEF, #0B63F6); }
.icon-circle.c4 { background: linear-gradient(135deg, #1E293B, #475569); }
.icon-circle.c5 { background: linear-gradient(135deg, #0B63F6, #FF6A00); }
.service-card.centered { text-align: center; }
.service-card.centered .learn-link { justify-content: center; }

/* ============================================================================
   Iteration 4: hero badge pills, trust-strip ticker, and a styled map-card
   overlay -- adapted from a clean reference (WaterTame-style city page):
   badges, an icon+phrase strip under the hero, and a floating location
   card on the map instead of a bare iframe.
   ============================================================================ */
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #dbe7ff;
  font-size: 0.78rem; font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.01em;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.trust-strip {
  background: #0a1428;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  overflow-x: auto;
}
.trust-strip .container { display: flex; gap: 36px; justify-content: center; flex-wrap: wrap; }
.trust-strip-item {
  display: flex; align-items: center; gap: 9px;
  color: #cfe0ff; font-size: 0.86rem; font-weight: 700;
  white-space: nowrap;
}
.trust-strip-item .strip-icon { color: var(--secondary); display: flex; }

.map-card-wrap { position: relative; }
.map-location-card {
  position: absolute;
  left: 20px; bottom: 20px;
  z-index: 5;
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  max-width: calc(100% - 40px);
  flex-wrap: wrap;
}
.map-location-card .pin { color: var(--accent); display: flex; flex-shrink: 0; }
.map-location-card .sep-dot { color: var(--border); font-weight: 400; }
.map-location-card a { color: var(--primary); }

.hub-link-note {
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 22px;
}
