@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --brand: #0028AD;
  --brand-dark: #001F87;
  --brand-light: #8FB3FF;
  --dark: #111827;
  --light: #F3F4F6;
  --white: #FFFFFF;
  --body: #374151;
  --muted: #6B7280;
  --border: #E5E7EB;
  --radius: 8px;
  --container: 1200px;
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }

p { margin: 0 0 16px; }

a { color: var(--brand); }

img { max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-dark);
  color: var(--white);
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* =========================
   Header
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 1 1 0;
  min-width: 0;
}

.brand-logo {
  height: 56px;
  width: auto;
  display: block;
}

.main-nav {
  flex: 0 0 auto;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.nav-list > li {
  position: relative;
}

.has-dropdown {
  display: flex;
  align-items: center;
}

.nav-list > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  color: var(--light);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s ease;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
  color: var(--brand-light);
}

.nav-list .caret {
  width: 12px;
  height: 12px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: -4px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--light);
  cursor: pointer;
}

.submenu-toggle:hover,
.has-dropdown:hover .submenu-toggle {
  color: var(--brand-light);
}

.has-dropdown:hover .caret {
  transform: rotate(180deg);
}

.has-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 10;
  min-width: 250px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.18);
  display: none;
  flex-direction: column;
}

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
  display: flex;
}

.dropdown a {
  display: block;
  padding: 9px 12px;
  color: var(--dark);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
}

.dropdown a:hover {
  background: var(--light);
  color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex: 1 1 0;
}

.header-cta {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--light);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================
   Footer
   ========================= */
.site-footer {
  background: var(--dark);
  color: var(--light);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 48px;
}

.footer-col h3 {
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--light);
  opacity: 0.8;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-col a:hover {
  color: var(--brand-light);
  opacity: 1;
}

.footer-logo {
  height: 68px;
  width: auto;
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 15px;
  opacity: 0.8;
  max-width: 340px;
}

.footer-contact {
  gap: 14px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  opacity: 0.85;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  fill: var(--brand-light);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact a {
  opacity: 1;
}

.footer-cta {
  display: inline-flex;
  margin-top: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
  opacity: 0.7;
}

.footer-legal {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.footer-legal a {
  color: var(--light);
  opacity: 0.8;
  font-weight: 500;
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--brand-light);
  opacity: 1;
}

/* =========================
   Home page sections
   ========================= */
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--brand);
}

.btn-light:hover,
.btn-light:focus-visible {
  background: var(--light);
  color: var(--brand-dark);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--brand);
  border-color: var(--brand);
}

.btn-white:hover,
.btn-white:focus-visible {
  background: var(--brand);
  color: var(--white);
}

.section {
  padding: 80px 0;
}

.section-light {
  background: var(--light);
}

.section-head {
  max-width: 740px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  margin-bottom: 14px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.section-action {
  margin-top: 40px;
  text-align: center;
}

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  background: var(--dark) url("../images/emergency-plumber-repair.webp") center/cover no-repeat;
  padding: 112px 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.8) 48%, rgba(0, 40, 173, 0.62) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-inner {
  max-width: 820px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 18px;
  max-width: 660px;
  margin-bottom: 32px;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  font-size: 15px;
  opacity: 0.92;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-light);
  flex-shrink: 0;
}

/* Feature band */
.features {
  background: var(--dark);
}

.features .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 36px;
  padding-bottom: 36px;
}

.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature svg {
  width: 28px;
  height: 28px;
  fill: var(--brand-light);
  flex-shrink: 0;
}

.feature h3 {
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 4px;
}

.feature p {
  color: var(--light);
  opacity: 0.78;
  font-size: 15px;
  margin: 0;
}

/* Service cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #D6DEE8;
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.12);
}

.service-card img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 22px;
}

.service-card h3 {
  font-size: 20px;
  margin: 0;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--brand);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.card-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.card-link:hover {
  color: var(--brand-dark);
}

.card-link:hover svg {
  transform: translateX(3px);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
}

.step h3 {
  font-size: 20px;
  margin: 0 0 8px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* Call to action bands */
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cta-band {
  background: var(--brand);
  color: var(--white);
  padding: 64px 0;
}

.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-band h2 {
  color: var(--white);
  margin: 0 0 10px;
}

.cta-band p {
  margin: 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.9);
}

.final-cta {
  background: var(--dark);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}

.final-cta h2 {
  color: var(--white);
}

.final-cta p {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--light);
  opacity: 0.85;
}

.final-cta .cta-actions {
  justify-content: center;
}

/* Locations */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.locations-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--dark);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.locations-grid a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.locations-grid svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  opacity: 0.55;
  flex-shrink: 0;
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 20px;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  color: var(--dark);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--brand);
  font-size: 24px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq details p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 1024px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  h3 { font-size: 26px; }
  h4 { font-size: 20px; }

  .site-header .container {
    gap: 14px;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin: 0;
    padding-top: 16px;
    padding-bottom: 24px;
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }

  .site-header.is-open .main-nav {
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list > li > a {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 14px 10px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .has-dropdown {
    display: block;
  }

  .has-dropdown > a {
    padding-right: 60px;
  }

  .has-dropdown:hover .caret {
    transform: none;
  }

  .has-dropdown::after {
    display: none;
  }

  .submenu-toggle {
    position: absolute;
    top: 0;
    right: 10px;
    width: 48px;
    height: 48px;
    margin: 0;
    z-index: 2;
  }

  .has-dropdown:hover > .dropdown,
  .has-dropdown:focus-within > .dropdown {
    display: none;
  }

  .has-dropdown.is-open > .dropdown {
    display: flex;
  }

  .has-dropdown.is-open .caret {
    transform: rotate(180deg);
  }

  .dropdown {
    position: static;
    display: none;
    min-width: 0;
    padding: 4px 0 8px 12px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .dropdown a {
    display: block;
    width: 100%;
    padding: 10px;
    color: var(--light);
    opacity: 0.85;
  }

  .dropdown a:hover {
    background: transparent;
    color: var(--brand-light);
    opacity: 1;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 32px;
  }
}

@media (max-width: 600px) {
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
  h4 { font-size: 18px; }

  .container {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }

  .site-header .container {
    gap: 10px;
  }

  .brand-logo {
    height: 48px;
  }

  .main-nav {
    padding-top: 12px;
    padding-bottom: 20px;
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }

  .header-cta {
    padding: 10px 14px;
    font-size: 14px;
  }

  .hero {
    padding-top: 56px;
    padding-bottom: 56px;
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-points {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 28px;
  }

  .footer-logo {
    height: 56px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer-legal {
    gap: 14px;
  }
}

@media (max-width: 420px) {
  .container {
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }

  .main-nav {
    padding-top: 12px;
    padding-bottom: 20px;
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 48px;
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }

  .header-cta span {
    display: none;
  }

  .header-cta {
    padding: 11px 12px;
  }
}

/* Compact phones (320px - 380px) */
@media (max-width: 380px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  h4 { font-size: 16px; }

  .brand-logo {
    height: 42px;
  }

  .footer-logo {
    height: 52px;
  }

  .btn {
    padding: 11px 16px;
    font-size: 15px;
  }

  .header-cta {
    padding: 10px 11px;
  }

  .hero-sub,
  .hero-points {
    font-size: 16px;
  }

  .footer-col a,
  .footer-brand p,
  .footer-contact li {
    font-size: 14px;
  }
}

/* Phone landscape / notched devices */
@media (orientation: landscape) and (max-height: 500px) {
  .main-nav {
    max-height: calc(100vh - var(--header-h));
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .main-nav,
  .caret,
  .nav-toggle span {
    transition: none;
  }
}

/* =========================
   Home page responsiveness
   ========================= */
@media (min-width: 601px) and (max-width: 1024px) {
  .hero {
    padding-top: 96px;
    padding-bottom: 96px;
  }
}

@media (max-width: 1024px) {
  .features .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

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

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

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 56px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-head p {
    font-size: 17px;
  }

  .features .container {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .service-card img {
    height: 190px;
  }

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

  .cta-band {
    padding: 48px 0;
  }

  .cta-band .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .final-cta {
    padding: 56px 0;
  }
}

@media (max-width: 380px) {
  .locations-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Locations directory page
   ========================= */
.page-hero {
  background: var(--dark);
  color: var(--white);
  padding: 64px 0;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero p {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--light);
  opacity: 0.88;
}

.page-hero .breadcrumb {
  margin-bottom: 14px;
  font-size: 14px;
  opacity: 0.75;
}

.page-hero .breadcrumb a {
  color: var(--brand-light);
  text-decoration: none;
}

.page-hero .breadcrumb a:hover {
  text-decoration: underline;
}

.page-hero .hero-actions {
  margin-bottom: 0;
}

.locations-directory {
  padding-top: 48px;
}

.location-tools {
  max-width: 560px;
  margin: 0 auto 28px;
}

.location-filter input {
  width: 100%;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 16px;
  color: var(--dark);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.location-filter input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 40, 173, 0.12);
}

.letter-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.letter-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.letter-nav a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.location-group {
  margin-bottom: 36px;
  scroll-margin-top: 96px;
}

.letter-heading {
  font-size: 22px;
  color: var(--brand);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.location-list {
  columns: 3;
  column-gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.location-list li {
  break-inside: avoid;
  margin-bottom: 10px;
}

.location-list a {
  color: var(--dark);
  font-size: 16px;
  text-decoration: none;
}

.location-list a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.location-empty {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1024px) {
  .location-list {
    columns: 2;
  }
}

@media (max-width: 600px) {
  .page-hero {
    padding: 48px 0;
  }

  .location-list {
    columns: 1;
  }
}

/* =========================
   Legal / text pages
   ========================= */
.legal-content {
  max-width: 880px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 26px;
  margin: 40px 0 14px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 19px;
  margin: 26px 0 10px;
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--brand);
}

.legal-meta {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 600px) {
  .legal-content h2 {
    font-size: 22px;
    margin-top: 32px;
  }

  .legal-content h3 {
    font-size: 18px;
  }
}

/* =========================
   Contact page
   ========================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}

.contact-panel > h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.contact-methods {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-method {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-method svg {
  width: 22px;
  height: 22px;
  fill: var(--brand);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-method h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 3px;
}

.contact-method p,
.contact-method a {
  margin: 0;
  font-size: 16px;
  color: var(--body);
  text-decoration: none;
}

.contact-method a {
  color: var(--brand);
  font-weight: 600;
}

.contact-method a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.contact-emergency {
  background: var(--light);
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 24px;
}

.contact-emergency h3 {
  font-size: 18px;
  margin: 0 0 6px;
}

.contact-emergency p {
  margin: 0;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.check-list svg {
  width: 18px;
  height: 18px;
  fill: var(--brand);
  flex-shrink: 0;
  margin-top: 3px;
}

#request-service {
  scroll-margin-top: 96px;
}

.form-embed {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  overflow: hidden;
}

.form-embed iframe {
  display: block;
  width: 100%;
  height: 545px;
  border: 0;
}

.form-note {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.map-embed {
  margin-top: 36px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .contact-panel {
    padding: 22px;
  }

  .form-embed iframe {
    height: 520px;
  }

  .map-embed iframe {
    height: 320px;
  }
}

/* =========================
   About page
   ========================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-grid + .about-grid {
  margin-top: 64px;
}

.about-grid h2 {
  margin-top: 0;
}

.about-grid p:last-child {
  margin-bottom: 0;
}

.about-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
}

.about-grid.reverse .about-media {
  order: -1;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.info-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--dark);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.link-list a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.link-list svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  opacity: 0.55;
  flex-shrink: 0;
}

.page-note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 15px;
}

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

  .link-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-grid.reverse .about-media {
    order: 0;
  }

  .about-grid + .about-grid {
    margin-top: 48px;
  }

  .about-media img {
    max-height: 360px;
  }
}

@media (max-width: 600px) {
  .info-grid,
  .link-list {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Services page
   ========================= */
.pill-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}

.pill-nav a {
  padding: 10px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--dark);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pill-nav a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.services-group {
  scroll-margin-top: 100px;
}

.services-group + .services-group {
  margin-top: 56px;
}

.services-group h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.services-group > p {
  max-width: 780px;
  margin: 0 0 28px;
  color: var(--muted);
}

.featured-service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.featured-service img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.featured-service-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 34px;
}

.featured-service-body h3 {
  font-size: 24px;
  margin: 0;
}

.featured-service-body p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 700px) {
  .featured-service {
    grid-template-columns: 1fr;
  }

  .featured-service img {
    min-height: 200px;
  }

  .featured-service-body {
    padding: 24px;
  }
}

/* =========================
   Pricing page
   ========================= */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.price-card h3 {
  font-size: 18px;
  margin: 0 0 10px;
}

.price-range {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand);
  margin: 0 0 10px;
}

.price-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
}

.rate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rate-card {
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.rate-value {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand);
}

.rate-label {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.pricing-note {
  margin: 24px 0 32px;
  padding: 18px 20px;
  background: var(--light);
  border-left: 4px solid var(--brand);
  border-radius: 10px;
}

.section-head--spaced {
  margin-top: 64px;
}

.pricing-note p {
  margin: 0;
}

@media (max-width: 1024px) {
  .price-grid,
  .rate-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .price-grid,
  .rate-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   FAQ page
   ========================= */
.faq-tools {
  max-width: 560px;
  margin: 0 auto 28px;
}

.faq-tools input {
  width: 100%;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 16px;
  color: var(--dark);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-tools input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 40, 173, 0.12);
}

.faq-category + .faq-category {
  margin-top: 52px;
}

.faq-category h2 {
  margin-bottom: 18px;
  scroll-margin-top: 100px;
}

.faq-empty {
  display: none;
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
}

.faq-empty.is-visible {
  display: block;
}

/* =========================
   Blog
   ========================= */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: #D6DEE8;
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.12);
}

.post-card img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 22px;
}

.post-card h3 {
  font-size: 20px;
  margin: 0;
}

.post-card h3 a {
  color: var(--dark);
  text-decoration: none;
}

.post-card h3 a:hover {
  color: var(--brand);
}

.post-card p {
  margin: 0;
  color: var(--muted);
}

.post-meta {
  margin: 0;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.featured-post {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.featured-post img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.featured-post-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 36px;
}

.featured-post-body h2 {
  font-size: 28px;
  margin: 0;
}

.featured-post-body h2 a {
  color: var(--dark);
  text-decoration: none;
}

.featured-post-body h2 a:hover {
  color: var(--brand);
}

.article {
  max-width: 820px;
  margin: 0 auto;
}

.article-hero-img {
  display: block;
  width: 100%;
  border-radius: 14px;
  margin-bottom: 28px;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 15px;
}

.article h2 {
  font-size: 26px;
  margin: 34px 0 12px;
}

.article h3 {
  font-size: 20px;
  margin: 24px 0 10px;
}

.article p {
  margin: 0 0 16px;
}

.article ul,
.article ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.article li {
  margin-bottom: 8px;
}

.article a:not(.btn) {
  color: var(--brand);
}

.article-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 8px;
}

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

@media (max-width: 900px) {
  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-post img {
    min-height: 220px;
  }

  .featured-post-body {
    padding: 26px;
  }
}

@media (max-width: 600px) {
  .post-grid {
    grid-template-columns: 1fr;
  }

  .article h2 {
    font-size: 22px;
  }

  .article-hero-img {
    margin-bottom: 20px;
  }
}
