:root {
  --black: #0a0a0a;
  --near-black: #121212;
  --charcoal: #1c1c1c;
  --gray: #6b6b6b;
  --muted: #9a9a9a;
  --sand: #e8e6e1;
  --white: #ffffff;
  --off-white: #f7f7f5;
  --blue: #5cabde;
  --blue-dark: #3a8fc4;
  --blue-deep: #1e6fa0;
  --success: #1f7a4d;
  --danger: #b42318;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,.18);
  --header-h: 76px;
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: #222;
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
h1,h2,h3,h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--black);
}
p { margin: 0 0 1em; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.muted { color: var(--gray); }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: .5rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}
.logo { height: 52px; width: auto; }
.site-nav {
  display: flex; align-items: center; gap: .15rem 1rem; flex-wrap: wrap;
}
.site-nav a {
  color: #ddd; text-decoration: none; font-weight: 600; font-size: .92rem;
  padding: .4rem .35rem; border-radius: 6px;
}
.site-nav a:hover, .site-nav a.active { color: var(--blue); }
.site-nav .btn-call {
  background: var(--blue); color: #fff !important; padding: .55rem 1rem;
  border-radius: 999px; font-size: .85rem; white-space: nowrap;
}
.site-nav .btn-call:hover { background: var(--blue-dark); color: #fff !important; }
.nav-toggle {
  display: none; background: transparent; border: 0; width: 44px; height: 44px;
  padding: 10px; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; background: #fff; margin: 6px 0; border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  border-radius: 999px; padding: .85rem 1.35rem; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: .15s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #333; color: #fff; }

/* Hero */
.hero {
  position: relative; color: #fff;
  min-height: clamp(420px, 72vh, 640px);
  display: grid; align-items: end;
  background: var(--black);
  overflow: hidden;
}
.hero-slideshow {
  position: absolute; inset: 0; z-index: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  background: var(--black) center/cover no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  will-change: opacity;
}
.hero-slide.is-active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.78) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 3.5rem 0 3rem; }
.hero-kicker {
  display: inline-block; letter-spacing: .14em; text-transform: uppercase;
  font-size: .75rem; font-weight: 700; color: var(--blue); margin-bottom: .8rem;
}
.hero h1 {
  color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); max-width: 14ch; margin-bottom: .5rem;
}
.hero .lede { font-size: 1.1rem; max-width: 42ch; color: #e8e8e8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-call-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
  max-width: 34rem;
}
.hero-call-buttons .btn {
  width: 100%;
  text-align: center;
  padding: 1rem 1.2rem 1.05rem;
  min-height: 4.4rem;
  font-size: 1rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.25;
}
.hero-call-buttons .btn-label {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
}
.hero-call-buttons .btn-phone {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.95;
  letter-spacing: 0.03em;
  line-height: 1.3;
  margin-top: 0.1rem;
}
@media (max-width: 600px) {
  .hero-call-buttons .btn {
    padding: 1.05rem 1.15rem 1.1rem;
    min-height: 4.6rem;
    gap: 0.4rem;
  }
  .hero-call-buttons .btn-label { font-size: 1.05rem; }
  .hero-call-buttons .btn-phone { font-size: 0.95rem; }
}
.btn-hero-salem {
  background: #5CABDE;
  color: #fff !important;
  border-color: #5CABDE;
}
.btn-hero-salem:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff !important; }
.btn-hero-cda {
  background: #0a0a0a;
  color: #fff !important;
  border-color: rgba(255,255,255,.25);
}
.btn-hero-cda:hover { background: #222; color: #fff !important; }
.hero-secondary-link {
  margin: 1rem 0 0;
  font-size: .92rem;
}
.hero-secondary-link a {
  color: rgba(255,255,255,.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-secondary-link a:hover { color: #fff; }

@media (max-width: 600px) {
  .hero-call-buttons { grid-template-columns: 1fr; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide:not(.is-active) { display: none; }
  .hero-slide.is-active { opacity: 1; }
}

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: #fff; }
.section-dark { background: var(--near-black); color: #eee; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.eyebrow {
  color: var(--blue-deep); text-transform: uppercase; letter-spacing: .12em;
  font-size: .75rem; font-weight: 700; margin-bottom: .5rem;
}
.section-dark .eyebrow { color: var(--blue); }

/* Cards / grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card {
  background: #fff; border-radius: var(--radius); padding: 1.4rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.04);
}
.card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.service-icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(92,171,222,.15); color: var(--blue-deep); font-size: 1.3rem; margin-bottom: .9rem;
}
.why-list { list-style: none; padding: 0; margin: 0; }
.why-list li {
  padding: .85rem 0 .85rem 2rem; position: relative; border-bottom: 1px solid #eee;
}
.why-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--blue-deep); font-weight: 700;
}

/* Reviews */
.review-card { display: flex; flex-direction: column; gap: .6rem; height: 100%; }
.stars { color: #f5b301; letter-spacing: 2px; font-size: 1rem; }
.review-text { flex: 1; font-size: .98rem; }
.review-meta { font-size: .85rem; color: var(--gray); }

/* Gallery */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .85rem;
}
.gallery-item {
  position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1;
  background: #ddd;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem .75rem;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; font-size: .8rem;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: #fff; text-align: center; padding: 3rem 1rem; border-radius: var(--radius);
}
.cta-band h2 { color: #fff; }
.cta-band .btn { margin: .35rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: start; }
.form label { display: block; font-weight: 600; margin: .7rem 0 .3rem; font-size: .9rem; }
.form input, .form textarea, .form select {
  width: 100%; padding: .75rem .9rem; border: 1px solid #d0d0d0; border-radius: 8px;
  font: inherit; background: #fff;
}
.form textarea { min-height: 140px; resize: vertical; }
.form button { margin-top: 1rem; }
.alert {
  padding: .85rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-weight: 600;
}
.alert-success { background: #e8f6ee; color: var(--success); }
.alert-error { background: #fdeceb; color: var(--danger); }
.map-embed {
  border: 0; width: 100%; min-height: 320px; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.service-area-map {
  width: 100%;
  margin: 0.25rem 0 0;
}
.service-area-map-canvas {
  width: 100%;
  height: 360px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #e8eef5;
  z-index: 0;
}
.service-area-map-compact .service-area-map-canvas {
  height: 260px;
  box-shadow: none;
  border: 1px solid var(--border, #d0d7e2);
}
.map-attribution {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  color: var(--muted, #5a6b7d);
  text-align: right;
}
.map-attribution a { color: inherit; }
.service-area-map .leaflet-container {
  font: inherit;
  border-radius: inherit;
}
.service-area-map .leaflet-popup-content {
  margin: 0.55rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
}
@media (max-width: 640px) {
  .service-area-map-canvas { height: 280px; }
  .service-area-map-compact .service-area-map-canvas { height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .leaflet-fade-anim .leaflet-tile,
  .leaflet-fade-anim .leaflet-popup {
    transition: none !important;
  }
}
.placeholder-note {
  font-size: .85rem; background: #fff8e6; border: 1px dashed #e0b84d;
  color: #7a5b00; padding: .75rem 1rem; border-radius: 8px; margin: 1rem 0;
}

/* Footer */
.site-footer {
  background: var(--black); color: #cfcfcf; padding: 3rem 0 1.5rem; margin-top: 2rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2rem; }
.footer-logo { margin-bottom: 1rem; }
.footer-heading { color: #fff; font-size: 1rem; margin-bottom: .6rem; }
.site-footer a { color: var(--blue); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }

/* Page hero (inner) */
.page-hero {
  background: var(--near-black); color: #fff; padding: 3rem 0 2.5rem;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero p { color: #ccc; max-width: 50ch; }

/* Admin */
.admin-body { background: #f0f2f5; }
.admin-wrap { width: min(100% - 2rem, 1100px); margin: 2rem auto; }
.admin-card { background: #fff; border-radius: 12px; padding: 1.25rem; margin-bottom: 1.25rem; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th, .admin-table td { border-bottom: 1px solid #eee; padding: .55rem; text-align: left; vertical-align: top; }
.admin-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }
.login-box { max-width: 400px; margin: 10vh auto; background: #fff; padding: 2rem; border-radius: 12px; box-shadow: var(--shadow); }
.login-box h1 { font-size: 1.4rem; }

/* Responsive */
@media (max-width: 900px) {
  .grid-3, .grid-4, .footer-grid, .contact-grid, .grid-2 { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--charcoal); flex-direction: column; align-items: stretch;
    padding: 1rem; gap: .25rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .75rem; }
  .site-nav .btn-call { text-align: center; }
  .header-inner { position: relative; }
}
@media (max-width: 600px) {
  .hero { min-height: 520px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
}

/* Service area city chips */
.area-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.area-list li {
  background: #fff; border: 1px solid #e2e2e2; border-radius: 999px;
  padding: .4rem .85rem; font-size: .9rem; font-weight: 600;
}
.site-nav { gap: .1rem .7rem; }
@media (max-width: 1100px) {
  .site-nav .btn-call { display: none; }
}

/* Service cards with photos */
.card-service {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-service-media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1a1a1a;
}
.card-service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.card-service:hover .card-service-media img { transform: scale(1.04); }
.card-service-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35));
  pointer-events: none;
}
.card-service-body { padding: 1.15rem 1.25rem 1.35rem; flex: 1; display: flex; flex-direction: column; }
.card-service-body h3, .card-service-body h2 { margin-top: 0; }
.card-service-body h3 a { color: inherit; text-decoration: none; }
.card-service-body h3 a:hover { color: var(--blue-deep); }
.card-service-body > a:last-child { margin-top: auto; }
.card-service-lg .card-service-media { aspect-ratio: 16 / 10; }

/* Location heroes — keep state-shape graphic centered in frame */
.location-hero {
  min-height: clamp(420px, 68vh, 600px);
}
.location-hero .location-hero-bg {
  background-position: var(--hero-pos, center center) !important;
  background-size: cover !important;
}
.location-hero .hero-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.82) 100%);
}
.location-hero .hero-content {
  /* Keep copy in lower band so state graphic stays readable above */
  padding-top: 4.5rem;
  padding-bottom: 2.75rem;
}
.location-hero h1 { max-width: 18ch; }
@media (max-width: 700px) {
  .location-hero .location-hero-bg {
    background-position: var(--hero-pos-mobile, center center) !important;
  }
  .location-hero {
    min-height: 520px;
  }
  .location-hero .hero-content {
    padding-top: 5rem;
  }
}

/* Services page call buttons on dark page-hero */
.page-hero .services-call-buttons .btn-hero-cda {
  border-color: rgba(255,255,255,.35);
}
.page-hero .services-schedule-btn {
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
.page-hero .services-schedule-btn:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.services-call-buttons-cta .btn-hero-salem {
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.cta-band .services-call-buttons {
  text-align: left;
}

.field-hint { color: var(--danger); font-size: .88rem; margin: .35rem 0 .6rem; }


/* ---- Reviews carousel ---- */
.reviews-carousel {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}
.reviews-carousel-viewport {
  overflow: hidden;
  position: relative;
  min-height: 220px;
}
.reviews-carousel-track {
  position: relative;
}
.reviews-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(1.25rem);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
  visibility: hidden;
}
.reviews-carousel-slide.is-active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
  z-index: 1;
}
.reviews-carousel-slide.is-leaving {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(-1rem);
  visibility: visible;
  z-index: 0;
}
.review-card-carousel {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 1.75rem 1.5rem;
}
.review-card-carousel .review-text {
  font-size: 1.125rem;
  line-height: 1.55;
  margin: 0.85rem 0 1rem;
}
.reviews-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.1rem;
}
.reviews-carousel-btn {
  appearance: none;
  border: 1px solid var(--border, #d0d7e2);
  background: #fff;
  color: var(--navy, #0b2c4a);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.reviews-carousel-btn:hover,
.reviews-carousel-btn:focus-visible {
  background: var(--blue-soft, #e8f1fb);
  border-color: var(--blue, #1a6fb5);
  outline: none;
}
.reviews-carousel-dots {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}
.reviews-carousel-dot {
  appearance: none;
  border: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #c5d0de;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.reviews-carousel-dot.is-active {
  background: var(--blue, #1a6fb5);
  transform: scale(1.25);
}
.reviews-attribution {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted, #5a6b7d);
  flex-wrap: wrap;
}
.reviews-attribution img {
  display: block;
  height: 20px;
  width: auto;
}
.reviews-carousel.is-paused .reviews-carousel-btn {
  box-shadow: 0 0 0 2px rgba(26, 111, 181, 0.15);
}
@media (max-width: 640px) {
  .review-card-carousel {
    min-height: 240px;
    padding: 1.35rem 1.1rem;
  }
  .review-card-carousel .review-text {
    font-size: 1.05rem;
  }
  .reviews-carousel-btn {
    width: 2.75rem;
    height: 2.75rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reviews-carousel-slide,
  .reviews-carousel-slide.is-leaving {
    transition: none;
    transform: none;
  }
}
