/* Homepage-style hero + stats bar (city landing pages) */

:root {
  --stats-h: 112px;
  --hero-gap: 14px;
}

.site-van-bg[data-tone="hero"].is-loaded {
  background-position: 16% center;
}

.hero--city {
  min-height: calc(100svh - var(--stats-h));
  flex-direction: column;
  justify-content: center;
}

.city-hero-stack .hero--city {
  min-height: 0;
}

/* City services strip — docked above stats bar */
.city-services-strip {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 8px auto 0;
  padding: 0 clamp(20px, 4vw, 48px) 16px;
}

.city-services-strip--dock {
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
}

.city-services-strip--dock .city-services-strip__inner {
  border-radius: 14px 14px 0 0;
  padding: 10px 16px 12px;
  margin-bottom: 0;
  border-bottom: none;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.18);
}

.city-services-strip--dock + .stats-bar {
  margin-top: 0;
  padding-top: 12px;
}

.city-services-strip--dock .city-services-strip__title {
  margin-bottom: 8px;
  font-size: clamp(18px, 1.6vw, 24px);
}

.city-services-strip--dock .city-services-strip__links {
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.city-services-strip--dock .city-services-strip__links::-webkit-scrollbar {
  display: none;
}

.city-services-strip--dock .city-service-link {
  flex: 1 1 0;
  min-width: max-content;
  padding: 9px 12px;
  font-size: clamp(11px, 1vw, 13px);
  white-space: nowrap;
  justify-content: center;
}

.city-services-strip__inner {
  background: linear-gradient(155deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.04) 100%);
  border: 1px solid rgba(91, 163, 217, 0.35);
  border-radius: 16px;
  padding: 18px 22px 20px;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.city-services-strip__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: 0.6px;
  color: #fcd34d;
  margin: 0 0 14px;
  line-height: 1;
}

.city-services-strip__title::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: #fcd34d;
  margin-right: 10px;
  vertical-align: middle;
}

.city-services-strip__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.city-service-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: min(100%, 200px);
  flex: 1 1 180px;
  padding: 12px 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(46,109,164,0.32) 0%, rgba(46,109,164,0.18) 100%);
  border: 1px solid rgba(91, 163, 217, 0.45);
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.city-service-link:hover {
  transform: translateY(-2px);
  border-color: rgba(252, 211, 77, 0.55);
  background: linear-gradient(180deg, rgba(46,109,164,0.45) 0%, rgba(46,109,164,0.28) 100%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  color: var(--white);
}

.city-service-link__arrow {
  opacity: 0.55;
  font-size: 16px;
  flex-shrink: 0;
}

.city-services-strip__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.city-service-feature {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.8);
}

.city-service-feature::before {
  content: '✓';
  color: #5ba3d9;
  font-weight: 700;
  font-size: 11px;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--stats-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: transparent;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: transparent;
  background-image: var(--hero-overlay);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 38%);
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 20px) clamp(20px, 4vw, 48px) 28px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--hero-gap);
  max-width: 680px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fcd34d;
  margin: 0;
  line-height: 1.1;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: clamp(24px, 2.5vw, 36px);
  height: 2px;
  background: #fcd34d;
  flex-shrink: 0;
}

.hero-handyman {
  display: inline-flex;
  align-items: center;
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  margin: 0;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(91, 163, 217, 0.45);
  background: rgba(46, 109, 164, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.hero-handyman::before {
  content: '✦';
  margin-right: 10px;
  color: #5ba3d9;
  font-size: 10px;
}

.hero-handyman:hover {
  color: var(--white);
  background: rgba(46, 109, 164, 0.38);
  border-color: rgba(91, 163, 217, 0.75);
  transform: translateY(-1px);
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(34px, 5.2vw, 68px);
  line-height: 1.05;
  color: var(--white);
  margin: 0;
  letter-spacing: 0.5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 14em;
}

.hero-title__line {
  display: block;
}

.hero-title__line--accent {
  color: #5ba3d9;
}

.hero-lead {
  max-width: 36em;
  margin: 0;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.hero-phone-big {
  margin: 0;
  width: 100%;
}

.hero-phone-label {
  font-size: clamp(14px, 1.25vw, 18px);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #5ba3d9;
  margin-bottom: 10px;
}

.hero-phone-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 58px);
  color: var(--white);
  text-decoration: none;
  letter-spacing: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  cursor: pointer;
}

.phone-link,
.hero-phone-number {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s, text-shadow 0.15s ease, filter 0.15s ease;
}

.phone-link:link,
.phone-link:visited,
.phone-link:focus,
.hero-phone-number:link,
.hero-phone-number:visited,
.hero-phone-number:focus {
  color: var(--white);
  outline: none;
}

.phone-link:active,
.hero-phone-number:active {
  color: var(--white);
  text-shadow:
    0 0 10px rgba(251, 191, 36, 0.9),
    0 0 22px rgba(251, 191, 36, 0.45);
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.75));
}

@media (hover: hover) and (pointer: fine) {
  .phone-link:hover,
  .hero-phone-number:hover {
    color: #5ba3d9;
    text-shadow: none;
    filter: none;
  }
}

.hero-phone-icon {
  display: flex;
  align-items: center;
  color: #5ba3d9;
  flex-shrink: 0;
}

.hero-callback-btn {
  margin-top: 18px;
  max-width: 300px;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* City map in hero (right column) */
.hero-map-col {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
}

.hero-city-map {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  background: linear-gradient(160deg, rgba(91,163,217,0.12) 0%, rgba(15,35,64,0.35) 100%);
  border-radius: 20px;
  border: 1px solid rgba(91, 163, 217, 0.35);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-city-map__svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 24px rgba(91, 163, 217, 0.2));
}

.hero-city-map__label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 1px;
  fill: #fcd34d;
  paint-order: stroke fill;
  stroke: rgba(15, 35, 64, 0.85);
  stroke-width: 5px;
  pointer-events: none;
}

/* Irvine pilot — 2× city map, no services strip */
.hero--city-map-lg .hero-layout {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 58%);
  align-items: center;
}

.hero--city-map-lg .hero-map-col {
  align-self: center;
}

.hero-city-map--lg {
  max-width: 840px;
  padding: 28px;
  border-radius: 24px;
}

.hero-city-map--lg .hero-city-map__label {
  font-size: clamp(20px, 2vw, 28px);
  stroke-width: 3px;
}

.hero-city-map--lg .hero-city-map__svg {
  filter: drop-shadow(0 0 32px rgba(91, 163, 217, 0.28));
}

/* Irvine pilot — bare map (no plaque frame under outline) */
.hero-city-map--bare {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.hero-city-map--bare .hero-city-map__svg {
  filter: drop-shadow(0 0 40px rgba(91, 163, 217, 0.35));
}

/* Irvine pilot — services strip + stats as one bottom dock */
.city-hero-stack {
  display: flex;
  flex-direction: column;
}

.city-hero-stack .hero--city {
  flex: 1 1 auto;
  min-height: 0;
}

.city-hero-footer {
  position: relative;
  z-index: 3;
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
  background: transparent;
}

.city-hero-footer .city-services-strip--dock {
  padding-bottom: 0;
}

.city-hero-footer .city-services-strip--dock + .stats-bar {
  margin-top: 0;
}

/* Stats bar */
.stats-bar {
  position: relative;
  z-index: 3;
  margin-top: 0;
  padding: 14px 0 16px;
  background: linear-gradient(180deg, rgba(30, 65, 102, 0.94) 0%, rgba(26, 58, 92, 0.95) 55%, rgba(21, 46, 72, 0.96) 100%);
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 -8px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: stretch;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  padding: 14px 12px;
  text-align: center;
  position: relative;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: 2px solid rgba(0,0,0,0.28);
  box-shadow:
    0 4px 10px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 14px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(30px, 2.8vw, 38px);
  color: var(--white);
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}

.stat-num span { color: #5ba3d9; }

.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(138, 155, 176, 0.95);
  line-height: 1.25;
}

.stat-item--reviews .stat-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.stat-review-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(30px, 2.8vw, 38px);
  color: var(--white);
  letter-spacing: 1px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}

.stat-review-stars {
  color: #fbbf24;
  font-size: clamp(13px, 1.2vw, 16px);
  letter-spacing: 1.5px;
  line-height: 1;
}

.stat-tt-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 8px;
}

.stat-item--callback {
  border-color: rgba(126, 196, 239, 0.75);
  background: linear-gradient(145deg, rgba(91, 163, 217, 0.42) 0%, rgba(126, 196, 239, 0.28) 55%, rgba(245, 166, 35, 0.18) 100%);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 22px rgba(91, 163, 217, 0.35);
  animation: callback-pulse 3s ease-in-out infinite;
  cursor: pointer;
}

.stat-item--callback::after {
  content: '✦';
  position: absolute;
  top: 7px;
  right: 9px;
  font-size: 12px;
  font-weight: 700;
  color: #fcd34d;
  line-height: 1;
  pointer-events: none;
}

@keyframes callback-pulse {
  0%, 100% {
    box-shadow:
      0 4px 14px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      0 0 18px rgba(91, 163, 217, 0.28);
    border-color: rgba(126, 196, 239, 0.65);
  }
  50% {
    box-shadow:
      0 4px 18px rgba(0, 0, 0, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.26),
      0 0 30px rgba(245, 166, 35, 0.28),
      0 0 24px rgba(91, 163, 217, 0.45);
    border-color: rgba(252, 211, 77, 0.75);
  }
}

.stat-item--callback .stat-num span {
  color: #fcd34d;
}

.stat-item--callback .stat-label {
  color: #a8d4f5;
}

.stat-item--callback:hover {
  transform: translateY(-3px);
  border-color: rgba(252, 211, 77, 0.9);
  background: linear-gradient(145deg, rgba(91, 163, 217, 0.52) 0%, rgba(126, 196, 239, 0.38) 55%, rgba(245, 166, 35, 0.28) 100%);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 36px rgba(245, 166, 35, 0.32),
    0 0 28px rgba(91, 163, 217, 0.45);
  animation: none;
}

@media (max-width: 900px) {
  .hero-bg { background-attachment: scroll; }

  .hero-layout {
    grid-template-columns: 1fr;
    padding-top: calc(var(--nav-h) + 12px);
  }

  .hero-map-col {
    order: 2;
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-city-map {
    max-width: 300px;
    padding: 14px;
  }

  .hero-city-map--lg {
    max-width: min(100%, 600px);
    padding: 18px;
  }

  .hero--city-map-lg .hero-layout {
    grid-template-columns: 1fr;
  }

  .city-services-strip__links {
    flex-direction: column;
  }

  .city-services-strip--dock .city-services-strip__links {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .city-service-link {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }

  .city-services-strip--dock .city-service-link {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 16px;
  }

  .hero-phone-number {
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
  }
}

@media (max-width: 600px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
