/* Shared PHP-site enhancements */
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 99999;
  padding: 12px 18px;
  border-radius: 8px;
  background: #ffffff;
  color: #10243e;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }
.site-alert {
  position: relative;
  z-index: 20;
  padding: 14px 20px;
  text-align: center;
  font-weight: 700;
  line-height: 1.5;
}
.site-alert.success { background: #e8f8f3; color: #075f52; border-bottom: 1px solid #b9e8db; }
.site-alert.error { background: #fff0f0; color: #9d2424; border-bottom: 1px solid #f1c7c7; }
.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
}
.error-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  padding: 90px 20px;
  text-align: center;
  background: #f5f8fa;
}
.error-page-inner { max-width: 760px; margin: 0 auto; }
.error-code { display: block; margin-bottom: 8px; color: #0ea89b; font-size: clamp(58px, 10vw, 110px); font-weight: 800; line-height: 1; }
.error-page h1 { margin: 0 0 16px; color: #10243e; font-size: clamp(34px, 5vw, 58px); }
.error-page p { margin: 0 auto 28px; max-width: 620px; color: #5d6e7d; font-size: 18px; }

/* Local service imagery: consistent, responsive and optimized */
img { max-width: 100%; }
.hero-photo-panel img, .hero-photo, .process-card img, .compliance-photo img,
.photo-mosaic img, .specialty-hero-visual img, .specialty-feature > img,
.blog-card img, .blog-feature img, .video-card img {
  display:block;
  object-position:center;
}
@media (max-width: 767px) {
  .service-widget[style] {
    position:relative !important;
    left:auto !important;
    right:auto !important;
    bottom:auto !important;
    width:100% !important;
    margin-top:-48px;
    padding:0 12px;
  }
  .hero-photo-panel { min-height:320px; }
}


/* Service KPI strip: markup uses one wrapper around the metric cards. */
.service-metrics {
  display: block !important;
  width: 100%;
}
.service-metrics > div {
  display: flex;
  width: 100%;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: nowrap;
}
.service-metrics .service-metric {
  flex: 1 1 25%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) {
  .service-metrics > div { flex-wrap: wrap; }
  .service-metrics .service-metric { flex: 1 1 50%; }
  .service-metrics .service-metric:nth-child(2) { border-right: 0; }
  .service-metrics .service-metric:nth-child(-n+2) { border-bottom: 1px solid var(--line, #dbe5e9); }
}
@media (max-width: 520px) {
  .service-metrics > div { flex-direction: column; }
  .service-metrics .service-metric {
    width: 100%;
    flex: 1 1 auto;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line, #dbe5e9);
    padding: 18px 10px;
  }
  .service-metrics .service-metric:last-child { border-bottom: 0; }
}
