/* ============================================================
   Cal Coast Construction — Site Styles
   Built around mockup-B direction. Services-first IA.
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #0b0f14;
  background: #0b0f14;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

:root {
  --navy:        #0b0f14;
  --navy-dark:   #0c1825;
  --navy-soft:   #15202e;
  --accent:      #2680c2;
  --accent-dark: #1a6aaa;
  --cream:       #faf8f5;
  --white:       #ffffff;
  --slate:       #64748b;
  --slate-light: #94a3b8;
  --font-display: 'Bebas Neue', 'Oswald', 'Impact', sans-serif;
  --font-body:   'Inter', system-ui, sans-serif;
}

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--accent); color: white;
  padding: 12px 20px; z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { left: 8px; outline: 3px solid #fff; outline-offset: 2px; }

/* Accessible focus rings on every interactive element */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.btn:focus-visible, .icon-tile:focus-visible, .service-tile:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.header-nav a:focus-visible, .footer-col a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-image, .icon-tile-icon {
    animation: none !important;
  }
  .county-band {
    background-attachment: scroll !important;
  }
}

/* Screen reader only utility class */
.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;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--accent);
  width: 0; z-index: 2000;
  transition: width 0.1s ease;
  pointer-events: none;
}

/* Body text link styling — animated underline */
.body-prose a {
  color: var(--accent);
  position: relative;
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s ease;
}
.body-prose a:hover { background-size: 100% 1px; }

/* Subtle noise / grain overlay for dark sections — adds depth without color shift */
.section-dark, .trust-band, .hero, .county-band, .final-cta, .icon-strip, .page-hero {
  position: relative;
}
.section-dark::after, .trust-band::after, .hero::after, .county-band::after, .final-cta::after, .icon-strip::after, .page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 2;
}
/* Don't let noise eat clicks on tiles inside these sections */
.hero-content, .hero-corner, .services-grid, .icon-grid, .stats-grid, .neighborhoods-grid, .cities-grid, .county-band-content, .trust-inner, .icon-strip-inner, .final-cta .btns, .final-cta h2, .final-cta p, .final-cta .phone-line {
  position: relative; z-index: 3;
}

/* Smoother section reveal — translateY + slight scale */
.reveal { opacity: 0; transform: translateY(28px) scale(0.99); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: translateY(0) scale(1); }

/* ============================================================
   Header — transparent over hero, solidifies on scroll
   ============================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-bottom 0.3s ease, padding 0.3s ease;
}
.header.scrolled {
  background: rgba(11, 15, 20, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 12px 40px;
}
.header-logo img { height: 112px; display: block; transition: height 0.3s ease; }
.header.scrolled .header-logo img { height: 88px; }
.header-nav { display: flex; gap: 32px; }
.header-nav a {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  font-weight: 500;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--accent); }
.header-phone {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 1px;
  color: #fff;
  transition: color 0.2s;
}
.header-phone:hover { color: var(--accent); }

/* ============================================================
   Hero — full-viewport fleet image with slow zoom + dark gradient
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--navy);
}
.hero-image {
  position: absolute; inset: 0;
  background: url('/images/Fleet_of_Cal_Coast_trucks_in_a_line_with_trailers.png') center/cover no-repeat;
  animation: heroZoom 22s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes heroZoom {
  0%   { transform: scale(1.0); }
  100% { transform: scale(1.08); }
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,15,20,0.55) 0%, rgba(11,15,20,0.35) 35%, rgba(11,15,20,0.85) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 60px 90px 60px;
  max-width: 1200px;
}
.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 600;
}
.hero-rule { width: 56px; height: 1px; background: #fff; margin-bottom: 22px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 0.92;
  color: #fff;
  margin-bottom: 22px;
  letter-spacing: 0.01em;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  max-width: 580px;
  margin-bottom: 38px;
  line-height: 1.55;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 16px 36px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: #fff; color: var(--navy); }

.hero-corner-cta {
  position: absolute;
  top: 130px; right: 60px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 1.5px;
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.08) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.hero-corner-cta i { font-size: 1.4rem; line-height: 1; }
.hero-corner-cta:hover { transform: translateY(-2px); background: #1f6ea8; box-shadow: 0 18px 36px rgba(0,0,0,0.45); }
.hero-corner-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ============================================================
   Service tiles — 5 photo cards, services-first IA
   ============================================================ */
.services-strip {
  background: var(--navy);
  padding: 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.04);
}
.service-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: block;
  background: var(--navy-dark);
}
.service-tile-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
  filter: brightness(0.55) saturate(0.95);
}
.service-tile:hover .service-tile-img { transform: scale(1.08); filter: brightness(0.7) saturate(1); }
.service-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);
}
.service-tile-content {
  position: absolute;
  left: 28px; right: 28px; bottom: 28px;
  z-index: 2;
}
.service-tile-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.service-tile h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.service-tile p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}
.service-tile .arrow {
  display: inline-block; margin-top: 14px;
  font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}

/* ============================================================
   Icon tiles — primary nav doorway, lighter than photo tiles
   ============================================================ */
.icon-strip {
  background: var(--navy);
  padding: 80px 40px 100px;
  position: relative;
  overflow: hidden;
}
.icon-strip::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(38,128,194,0.07), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(38,128,194,0.04), transparent 50%);
  pointer-events: none;
}
.icon-strip-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.icon-strip-header { text-align: center; margin-bottom: 56px; }
.icon-strip-header .eyebrow { color: var(--accent); font-size: 0.72rem; letter-spacing: 4px; text-transform: uppercase; font-weight: 600; }
.icon-strip-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: #fff;
  margin-top: 12px;
  line-height: 1.05;
}
.icon-strip-header p { color: var(--slate-light); max-width: 600px; margin: 18px auto 0; font-size: 1rem; }

.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}
.icon-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 20px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  color: #fff;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}
.icon-tile::before {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.icon-tile:hover {
  background: rgba(38,128,194,0.08);
  border-color: rgba(38,128,194,0.4);
  transform: translateY(-4px);
}
.icon-tile:hover::before { transform: scaleX(1); }
.icon-tile-icon {
  font-size: 56px;
  color: var(--accent);
  margin-bottom: 18px;
  display: inline-block;
  line-height: 1;
  animation: iconFloat 4.5s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}
.icon-tile:nth-child(1) .icon-tile-icon { animation-delay: 0s; }
.icon-tile:nth-child(2) .icon-tile-icon { animation-delay: 0.6s; }
.icon-tile:nth-child(3) .icon-tile-icon { animation-delay: 1.2s; }
.icon-tile:nth-child(4) .icon-tile-icon { animation-delay: 1.8s; }
.icon-tile:nth-child(5) .icon-tile-icon { animation-delay: 2.4s; }
.icon-tile:hover .icon-tile-icon {
  transform: scale(1.18) rotate(-3deg);
  color: #fff;
  animation-play-state: paused;
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.icon-tile h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  transition: color 0.3s;
}
.icon-tile p {
  font-size: 0.78rem;
  color: var(--slate-light);
  line-height: 1.5;
  margin: 0;
  letter-spacing: 0.02em;
}
.icon-tile .arrow {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--slate-light);
  font-weight: 600;
  transition: color 0.3s, transform 0.3s;
}
.icon-tile:hover .arrow { color: var(--accent); transform: translateX(4px); }

@media (max-width: 1024px) {
  .icon-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .icon-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .icon-tile-icon { font-size: 44px; }
}

/* ============================================================
   Section: County band with Coronado Bridge + parallax
   ============================================================ */
.county-band {
  position: relative;
  height: 60vh;
  min-height: 480px;
  background: url('/images/sandiego.jpg') center/cover fixed no-repeat;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.county-band::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,15,20,0.5), rgba(11,15,20,0.55));
}
.county-band-content {
  position: relative; z-index: 2; text-align: center;
  color: #fff; max-width: 800px; padding: 0 40px;
}
.county-band .eyebrow {
  font-size: 0.72rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px; font-weight: 600;
}
.county-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  margin-bottom: 22px;
}
.county-band p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

/* ============================================================
   Trust / stats block on dark with fleet behind
   ============================================================ */
.trust-band {
  position: relative;
  padding: 100px 40px;
  background:
    linear-gradient(180deg, rgba(11,15,20,0.85), rgba(11,15,20,0.95)),
    url('/images/Fleet_of_Cal_Coast_trucks_in_a_line_with_trailers.png') center/cover no-repeat;
  color: #fff;
}
.trust-inner { max-width: 1200px; margin: 0 auto; }
.trust-header { text-align: center; margin-bottom: 64px; }
.trust-header .eyebrow {
  color: var(--accent); font-size: 0.72rem;
  letter-spacing: 4px; text-transform: uppercase; font-weight: 600;
}
.trust-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  margin-top: 14px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.stat {
  background: rgba(11,15,20,0.5);
  padding: 40px 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ============================================================
   Section base + reveal-on-scroll
   ============================================================ */
.section {
  padding: 100px 40px;
  background: var(--cream);
  color: var(--navy);
}
.section-dark { background: var(--navy-dark); color: #fff; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
  font-size: 0.72rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin-top: 14px; margin-bottom: 16px;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--slate);
  line-height: 1.6;
}
.section-dark .section-lead { color: var(--slate-light); }

/* reveal — older rule kept inert; canonical reveal lives above */

/* ============================================================
   Projects strip
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.project {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: var(--navy-dark);
}
.project img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.project:hover img { transform: scale(1.07); }
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.8) 100%);
  display: flex; align-items: flex-end; padding: 22px;
  color: #fff;
}
.project-overlay h4 {
  font-family: var(--font-display); font-size: 1.4rem;
  letter-spacing: 0.02em;
}
.project-overlay span {
  display: block; font-size: 0.7rem; color: var(--accent);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px;
}

/* ============================================================
   Final CTA block with image
   ============================================================ */
.final-cta {
  position: relative;
  padding: 120px 40px;
  background:
    linear-gradient(135deg, rgba(11,15,20,0.85), rgba(12,24,37,0.92)),
    url('/images/residential.webp') center/cover no-repeat;
  color: #fff;
  text-align: center;
}
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1;
  margin-bottom: 20px;
  max-width: 900px; margin-left: auto; margin-right: auto;
}
.final-cta p {
  font-size: 1.1rem; color: rgba(255,255,255,0.78);
  max-width: 620px; margin: 0 auto 36px;
}
.final-cta .btns { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.final-cta .phone-line {
  margin-top: 28px; font-size: 0.85rem; color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
}
.final-cta .phone-line a { color: #fff; font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 1px; }

/* ============================================================
   Process timeline — 4-step horizontal process
   ============================================================ */
.process-band {
  background: var(--navy-dark);
  padding: 100px 40px;
  color: #fff;
  position: relative;
}
.process-inner { max-width: 1200px; margin: 0 auto; }
.process-header { text-align: center; margin-bottom: 64px; }
.process-header .eyebrow { color: var(--accent); font-size: 0.72rem; letter-spacing: 4px; text-transform: uppercase; font-weight: 600; }
.process-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-top: 12px; line-height: 1.05;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute; top: 36px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(38,128,194,0.5), transparent);
  z-index: 0;
}
.process-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
.process-num {
  width: 72px; height: 72px;
  border: 2px solid var(--accent);
  background: var(--navy-dark);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.8rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  transition: background 0.4s ease, color 0.4s ease, transform 0.4s ease;
}
.process-step:hover .process-num {
  background: var(--accent); color: #fff;
  transform: scale(1.08);
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.4rem; color: #fff;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}
.process-step p {
  color: var(--slate-light);
  font-size: 0.92rem;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .process-grid { grid-template-columns: 1fr; gap: 32px; }
  .process-grid::before { display: none; }
}

/* ============================================================
   Animated stat number — counts up on enter
   ============================================================ */
.stat-num.counting { transition: opacity 0.4s ease; }
.stat-num[data-count] { font-variant-numeric: tabular-nums; }

/* ============================================================
   Before/After image slider — for case studies
   Usage:
     <div class="ba-slider" data-label-before="Before" data-label-after="After">
       <img class="ba-after" src="/images/projects/x-after.jpg" alt="...">
       <div class="ba-before"><img src="/images/projects/x-before.jpg" alt="..."></div>
       <input type="range" min="0" max="100" value="50" class="ba-range" aria-label="Reveal before/after">
       <div class="ba-handle"></div>
     </div>
   ============================================================ */
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--navy-dark);
  user-select: none;
}
.ba-slider img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ba-after { position: absolute; inset: 0; z-index: 1; }
.ba-before {
  position: absolute; inset: 0; z-index: 2;
  width: 50%;
  overflow: hidden;
  transition: width 0.05s linear;
}
.ba-before img {
  width: 100vw; max-width: none;
  /* Width is the slider width — content stays anchored to left */
}
.ba-range {
  position: absolute; inset: 0; z-index: 4;
  width: 100%; height: 100%;
  appearance: none; background: transparent;
  cursor: ew-resize;
  margin: 0;
}
.ba-range::-webkit-slider-thumb { appearance: none; width: 4px; height: 100%; background: transparent; }
.ba-range::-moz-range-thumb { width: 4px; height: 100%; background: transparent; border: 0; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; background: #fff; z-index: 3;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
}
.ba-handle::before, .ba-handle::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 36px; height: 36px;
  border-radius: 50%; background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.ba-handle::after {
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  z-index: 1;
}
.ba-labels {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; justify-content: space-between; z-index: 5;
  pointer-events: none;
}
.ba-labels span {
  background: rgba(11,15,20,0.7); color: #fff;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 12px;
  backdrop-filter: blur(4px);
}

/* ============================================================
   Mobile sticky call/text bar — always visible while scrolling
   ============================================================ */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1500;
  background: rgba(11, 15, 20, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 10px 12px;
  gap: 10px;
}
.mobile-cta-bar a {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 12px;
  font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.mobile-cta-bar a:active { transform: scale(0.97); }
.mobile-cta-call { background: var(--accent); color: #fff; }
.mobile-cta-call:hover { background: var(--accent-dark); }
.mobile-cta-text { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.mobile-cta-text:hover { background: rgba(255,255,255,0.06); }
.mobile-cta-bar i { font-size: 18px; }
@media (max-width: 768px) {
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 64px; } /* reserve space so bar doesn't cover footer text */
}

/* ============================================================
   FAQ section — accordion, schema-paired, ranking-grade
   ============================================================ */
.faq-section {
  background: var(--cream);
  color: var(--navy);
  padding: 100px 40px;
  border-top: 1px solid rgba(11,15,20,0.06);
}
.faq-inner { max-width: 860px; margin: 0 auto; }
.faq-header { text-align: center; margin-bottom: 48px; }
.faq-header .eyebrow {
  color: var(--accent); font-size: 0.72rem; letter-spacing: 4px;
  text-transform: uppercase; font-weight: 600;
}
.faq-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--navy);
  margin-top: 12px;
  line-height: 1.05;
}
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--white);
  border: 1px solid rgba(11,15,20,0.08);
  padding: 0;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item[open] {
  border-color: rgba(38,128,194,0.4);
  box-shadow: 0 6px 24px rgba(11,15,20,0.05);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 500;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-q { flex: 1; }
.faq-toggle {
  width: 16px; height: 16px; flex-shrink: 0; position: relative;
}
.faq-toggle::before, .faq-toggle::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 14px; height: 2px; background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-toggle::after { opacity: 0; }
.faq-a {
  padding: 0 28px 24px 28px;
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .faq-section { padding: 64px 24px; }
  .faq-item summary { padding: 18px 20px; font-size: 0.98rem; }
  .faq-a { padding: 0 20px 18px 20px; }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--navy-dark);
  color: var(--slate-light);
  padding: 72px 40px 32px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer h4 {
  color: #fff; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 18px;
}
.footer-col a {
  display: block; padding: 4px 0;
  font-size: 0.9rem; color: var(--slate-light);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-brand img { height: 96px; margin-bottom: 18px; }
.footer-brand p { font-size: 0.88rem; color: var(--slate-light); line-height: 1.6; max-width: 360px; }
.footer-family {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px; margin-bottom: 20px;
  font-size: 0.85rem; color: var(--slate-light); line-height: 1.6;
}
.footer-family a { color: var(--accent); font-weight: 600; }
.footer-family a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 0.8rem; color: var(--slate);
}
.footer-bottom .num { color: var(--accent); font-weight: 600; }
.footer-legal a { color: var(--slate); margin-left: 18px; }
.footer-legal a:hover { color: #fff; }

/* ============================================================
   Page-hero variant for inner pages (about, contact, services)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 180px 40px 100px;
  background:
    linear-gradient(180deg, rgba(11,15,20,0.7), rgba(11,15,20,0.85)),
    url('/images/sandiegopark.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1;
  margin-bottom: 16px;
}
.page-hero h1 .accent { color: var(--accent); }
.page-hero p {
  font-size: 1.1rem; color: rgba(255,255,255,0.78);
  max-width: 720px; margin: 0 auto;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .header { padding: 14px 20px; }
  .header.scrolled { padding: 10px 20px; }
  .header-nav { display: none; }
  .hero-content { padding: 0 24px 56px 24px; }
  .hero-corner-cta { display: none; }
  .hero-eyebrow { display: none; }
  .hero-rule { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .projects-grid { grid-template-columns: 1fr; }
  .county-band { background-attachment: scroll; }
  .section { padding: 64px 24px; }
}
