:root {
  --navy: #062447;
  --blue: #0b4f9f;
  --bright-blue: #02a9dc;
  --steel: #6f7680;
  --mist: #edf6fb;
  --ink: #102033;
  --muted: #617184;
  --line: #d9e5f1;
  --white: #ffffff;
  --silver: #d7dde4;
  --shadow: 0 22px 55px rgba(6, 36, 71, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #f8fbff;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px clamp(16px, 4vw, 56px);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: auto;
  height: clamp(72px, 8vw, 104px);
  object-fit: contain;
}

.nav-links,
.header-actions {
  display: none;
  align-items: center;
}

.nav-links {
  gap: 34px;
  color: #000000;
  font-weight: 400;
}

.header-actions {
  gap: 10px;
}

.header-call,
.header-book {
  display: none;
  padding: 11px 16px;
  border-radius: 8px;
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--bright-blue), var(--blue));
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(2, 169, 220, 0.24);
}

.header-book {
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
}

.hero {
  position: relative;
  min-height: 800px;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.mid-cta-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/main-image-mirrored.jpg");
  background-size: cover;
  background-position: 78% center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 36, 71, 0.96) 0%, rgba(6, 36, 71, 0.82) 44%, rgba(6, 36, 71, 0.18) 100%),
    linear-gradient(0deg, rgba(6, 36, 71, 0.32), rgba(6, 36, 71, 0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 62px 0 40px;
}

.hero-copy {
  max-width: 720px;
}

.urgency-pill,
.eyebrow,
.form-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--navy);
  background: #b8f4ff;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(2.35rem, 8vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-subtitle {
  margin-bottom: 24px;
  font-size: clamp(1.18rem, 3vw, 1.65rem);
  font-weight: 800;
}

.hero-bullets {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 400;
}

.hero-bullets li,
.offer-card li {
  position: relative;
  padding-left: 28px;
}

.hero-bullets li::before,
.offer-card li::before {
  position: absolute;
  left: 0;
  content: "\2713";
  color: #b8f4ff;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 480px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 20px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--bright-blue), var(--blue) 52%, var(--navy));
  box-shadow: 0 15px 28px rgba(2, 169, 220, 0.26);
}

.btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.btn-secondary.light {
  background: var(--navy);
  border-color: var(--navy);
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  color: var(--white);
  background: var(--line);
}

.quick-strip span {
  display: grid;
  place-items: center;
  min-height: 70px;
  padding: 14px;
  text-align: center;
  background: var(--navy);
  font-weight: 900;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
  scroll-margin-top: 130px;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-heading h2,
.mid-cta h2,
.area-panel h2,
.welcome h2 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: clamp(2rem, 6vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p,
.welcome p {
  color: var(--muted);
  font-size: 1.06rem;
}

.split {
  display: grid;
  gap: 24px;
  align-items: center;
}

.image-panel {
  min-height: 330px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.mobile-shop {
  background-image: url("assets/second-image.jpg");
}

.offer-grid,
.service-grid,
.review-grid,
.why-grid {
  display: grid;
  gap: 16px;
}

.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 270px;
  padding: 22px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(150deg, var(--blue), var(--navy));
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.offer-card > * {
  position: relative;
  z-index: 1;
}

.offer-card::after {
  position: absolute;
  right: -55px;
  bottom: -70px;
  width: 185px;
  height: 185px;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.offer-card.emergency {
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(150deg, var(--bright-blue), var(--blue) 46%, var(--navy));
}

.offer-card.auto {
  color: var(--white);
  background: linear-gradient(150deg, var(--blue), var(--navy));
}

.offer-card h3 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 5vw, 2.65rem);
  line-height: 1.02;
}

.offer-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 400;
}

.offer-book-button {
  width: fit-content;
  min-height: 38px;
  margin: 26px auto 0;
  padding: 9px 14px;
  color: var(--navy);
  background: var(--white);
  font-size: 0.86rem;
  font-weight: 400;
  box-shadow: 0 14px 24px rgba(6, 36, 71, 0.18);
}

.badge,
.deal-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.deal-tag {
  right: 16px;
  left: auto;
  color: var(--white);
  background: var(--navy);
}

.badge.blue {
  color: var(--blue);
}

.badge.silver {
  background: var(--navy);
  color: var(--white);
}

.why {
  width: 100%;
  padding-right: max(16px, calc((100% - 1180px) / 2));
  padding-left: max(16px, calc((100% - 1180px) / 2));
  background: var(--white);
}

.why-grid > div,
.review-grid article,
.service-card {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.why-grid > div {
  box-shadow: 0 14px 32px rgba(6, 36, 71, 0.08);
}

.why-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.why-card-title h3 {
  margin: 0;
}

.why-grid p {
  margin-bottom: 0;
}

.icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  font-weight: 900;
}

.service-card {
  padding: 0;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(6, 36, 71, 0.08);
}

.service-card h3,
.service-card p {
  padding-right: 18px;
  padding-left: 18px;
}

.service-card h3 {
  margin-top: 18px;
  margin-bottom: 8px;
  color: var(--navy);
}

.service-card p {
  padding-bottom: 20px;
  color: var(--muted);
}

.service-img {
  height: 185px;
  background-size: cover;
  background-position: center;
}

.service-img.residential {
  background-image: url("assets/residential.jpg");
}

.service-img.commercial {
  background-image: url("assets/commercial.jpg");
}

.service-img.automotive {
  background-image: url("assets/automotive.jpg");
}

.service-img.equipment {
  background-image: url("assets/emergency.jpg");
}

.reviews {
  width: 100%;
  padding-right: max(16px, calc((100% - 1180px) / 2));
  padding-left: max(16px, calc((100% - 1180px) / 2));
  background: var(--mist);
}

.stars {
  display: block;
  margin-bottom: 10px;
  color: #ffb400;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.review-grid article p {
  color: var(--muted);
}

.mid-cta {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  color: var(--white);
}

.mid-cta-bg {
  background-image: url("assets/main-image-mirrored.jpg");
  background-position: 78% center;
}

.mid-cta::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(6, 36, 71, 0.94), rgba(6, 36, 71, 0.58), rgba(6, 36, 71, 0.16));
}

.mid-cta-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
}

.mid-cta h2,
.mid-cta p {
  max-width: 560px;
  color: var(--white);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

details {
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

summary {
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
}

details p {
  margin: 12px 0 0;
  color: var(--muted);
}

.area-panel {
  display: grid;
  gap: 22px;
  padding: 26px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.area-panel h2,
.area-panel p {
  color: var(--white);
}

.footer {
  display: grid;
  gap: 24px;
  padding: 42px max(16px, calc((100% - 1180px) / 2)) 92px;
  color: rgba(255, 255, 255, 0.78);
  background: #06172b;
}

.footer h2,
.footer h3 {
  margin-bottom: 10px;
  color: var(--white);
}

.footer a,
.footer span {
  display: block;
  margin: 8px 0;
}

.footer .map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer .map-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.popup,
.appointment-popup {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(6, 23, 43, 0.64);
}

.popup.is-visible,
.appointment-popup.is-visible {
  display: grid;
}

.appointment-popup {
  overflow-y: auto;
}

.quote-card {
  display: grid;
  gap: 9px;
  width: 100%;
  max-width: 430px;
  padding: 18px;
  color: var(--ink);
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.appointment-popup-card {
  position: relative;
  width: min(100%, 430px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}

.quote-card label {
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 800;
}

.address-grid,
.datetime-grid,
.vehicle-grid {
  display: grid;
  gap: 10px;
}

.address-grid {
  grid-template-columns: minmax(0, 1fr) minmax(96px, 34%);
}

.vehicle-fields {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.vehicle-fields[hidden] {
  display: none;
}

.field-group-title {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 900;
}

.quote-card input,
.quote-card select,
.quote-card textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font: inherit;
  font-weight: 400;
}

.quote-card textarea {
  min-height: 82px;
  resize: vertical;
}

@media (min-width: 620px) {
  .address-grid {
    grid-template-columns: minmax(0, 1fr) 128px;
  }

  .datetime-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vehicle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.security-check {
  padding: 9px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.website-field,
.botcheck-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.3;
}

.form-note.success {
  color: #087f5b;
  font-weight: 800;
}

.form-note.error {
  color: #b42318;
  font-weight: 800;
}

.popup-card {
  position: relative;
  width: min(100%, 430px);
  padding: 32px 24px 24px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.popup-card .deal-tag {
  position: static;
  display: inline-flex;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--bright-blue), var(--blue));
}

.popup-card h2 {
  color: var(--navy);
}

.popup-card p {
  color: var(--muted);
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  color: var(--navy);
  background: transparent;
  font-size: 2rem;
  cursor: pointer;
}

@media (min-width: 620px) {
  .hero-actions {
    flex-direction: row;
    max-width: none;
  }

  .quick-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .offer-grid,
  .service-grid,
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-grid,
  .footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .nav-links,
  .header-actions,
  .header-book,
  .header-call {
    display: flex;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: minmax(0, 780px);
    align-items: center;
    justify-content: start;
    padding: 84px 0 66px;
  }

  .split {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .offer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .review-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .area-panel {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer {
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    padding-bottom: 42px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 8px 14px;
  }

  .brand-logo {
    height: 58px;
    max-width: 70vw;
  }

  .header-actions,
  .header-call {
    display: flex;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-book {
    display: none;
  }

  .header-call {
    min-height: 44px;
    padding: 10px 13px;
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .hero {
    min-height: 0;
  }

  .hero-content {
    padding: 52px 0 46px;
  }

  .hero-media {
    background-position: 82% center;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(6, 36, 71, 0.96), rgba(6, 36, 71, 0.84) 58%, rgba(6, 36, 71, 0.52));
  }

  .hero .btn-primary {
    font-size: 1.08rem;
  }

  .quick-strip {
    grid-template-columns: 1fr;
  }
}

/* Service area and city pages */
.location-intro {
  color: var(--white);
  background: var(--navy);
}

.location-intro-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 76px;
}

.location-intro h1 { max-width: 800px; }
.location-intro p { max-width: 650px; }
.location-kicker, .city-hero-label { font-weight: 700; text-transform: uppercase; }

.location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px 24px;
}

.location-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 1.1rem;
}

.location-link:hover, .city-more a:hover { color: var(--blue); }
.city-hero { min-height: 610px; }
.city-hero .hero-content { padding-top: 90px; padding-bottom: 74px; }
.city-hero .hero-copy { max-width: 820px; }
.city-overview-copy { max-width: 800px; margin-bottom: 30px; }
.city-overview-copy h2, .city-more h2 { color: var(--navy); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; }
.city-overview-copy p { color: var(--muted); font-size: 1.06rem; }

.city-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  scroll-margin-top: 130px;
}

.city-services article { min-width: 0; }
.city-services img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.city-services h3 { margin: 18px 0 8px; color: var(--navy); font-size: 1.4rem; }
.city-services p { color: var(--muted); }
.city-callout { color: var(--white); background: var(--navy); }
.city-callout-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 50px 0; }
.city-callout h2 { margin-bottom: 8px; color: var(--white); font-size: clamp(1.8rem, 4vw, 2.5rem); }
.city-callout p { max-width: 680px; margin-bottom: 0; }
.city-callout-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.city-more { border-top: 1px solid var(--line); }
.city-more-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 20px 0; }
.city-all-link { color: var(--blue); font-weight: 700; }

@media (max-width: 899px) {
  .location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .city-services { grid-template-columns: 1fr; }
  .city-callout-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .location-intro-inner { padding: 52px 0; }
  .location-grid { grid-template-columns: 1fr; }
  .city-hero .hero-content { padding-top: 52px; padding-bottom: 46px; }
  .city-callout-actions { flex-direction: column; width: 100%; }
}