:root {
  --legacy-primary: #1db8e8;
  --legacy-primary-dark: #139ccc;
  --legacy-secondary: #1a2742;
  --legacy-dark: #0f1729;
  --legacy-soft: #eef9fe;
  --legacy-muted: #5f6c80;
}

body.legacy-core {
  color: var(--legacy-secondary);
  background: #fff;
}

.legacy-topbar {
  background: var(--legacy-secondary);
  color: #fff;
  padding: 1rem 0;
}

.legacy-topbar a {
  color: #fff;
  text-decoration: none;
}

.legacy-topbar .label {
  color: var(--legacy-primary);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.legacy-icon-box {
  align-items: center;
  background: var(--legacy-primary);
  border-radius: .75rem;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.legacy-navbar {
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 41, .08);
  position: sticky;
  top: 0;
  z-index: 1040;
}

.legacy-navbar .navbar-brand img {
  height: 4rem;
  width: auto;
}

.legacy-navbar .nav-link {
  color: var(--legacy-secondary);
  font-weight: 650;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.legacy-navbar .nav-link.active,
.legacy-navbar .nav-link:hover {
  color: var(--legacy-primary);
}

.legacy-btn-primary,
.legacy-btn-primary:focus {
  background: linear-gradient(135deg, var(--legacy-primary), #2aa7f0);
  border: 0;
  border-radius: .9rem;
  box-shadow: 0 16px 34px rgba(29, 184, 232, .25);
  color: #fff;
  font-weight: 800;
  padding: .9rem 1.45rem;
}

.legacy-btn-primary:hover {
  background: linear-gradient(135deg, var(--legacy-primary-dark), var(--legacy-primary));
  color: #fff;
  transform: translateY(-1px);
}

.legacy-btn-outline {
  border: 2px solid rgba(255, 255, 255, .55);
  border-radius: .9rem;
  color: #fff;
  font-weight: 800;
  padding: .85rem 1.35rem;
}

.legacy-btn-outline:hover {
  background: rgba(255, 255, 255, .16);
  border-color: #fff;
  color: #fff;
}

.legacy-pill {
  align-items: center;
  background: rgba(29, 184, 232, .12);
  border-radius: 999px;
  color: var(--legacy-primary-dark);
  display: inline-flex;
  font-size: .82rem;
  font-weight: 800;
  gap: .45rem;
  letter-spacing: .05em;
  padding: .55rem 1.05rem;
  text-transform: uppercase;
}

.legacy-section {
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  position: relative;
}

.legacy-section-soft {
  background: linear-gradient(180deg, #f8fbfd 0%, #fff 100%);
}

.legacy-section-cyan {
  background: var(--legacy-primary);
  color: #fff;
}

.legacy-heading {
  color: var(--legacy-secondary);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.04;
}

.legacy-heading .accent,
.legacy-text-primary {
  color: var(--legacy-primary);
}

.legacy-lead {
  color: var(--legacy-muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

.legacy-hero {
  min-height: min(820px, calc(100vh - 7rem));
  overflow: hidden;
  position: relative;
}

.legacy-hero.legacy-subhero,
.legacy-hero.legacy-subhero .legacy-hero-content {
  min-height: 520px;
}

.legacy-hero::before {
  background: linear-gradient(90deg, rgba(26, 39, 66, .95) 0%, rgba(26, 39, 66, .76) 42%, rgba(26, 39, 66, .08) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 2;
}

.legacy-slide {
  background-position: center;
  background-size: cover;
  inset: 0;
  opacity: 0;
  position: absolute;
  transform: scale(1.04);
  animation: legacySlide 30s infinite;
}

.legacy-slide:nth-child(2) { animation-delay: 6s; }
.legacy-slide:nth-child(3) { animation-delay: 12s; }
.legacy-slide:nth-child(4) { animation-delay: 18s; }
.legacy-slide:nth-child(5) { animation-delay: 24s; }

@keyframes legacySlide {
  0%, 20% { opacity: 1; transform: scale(1); }
  26%, 100% { opacity: 0; transform: scale(1.04); }
}

.legacy-hero-content {
  min-height: min(820px, calc(100vh - 7rem));
  padding: clamp(5rem, 10vw, 9rem) 0;
  position: relative;
  z-index: 3;
}

.legacy-hero h1 {
  color: #fff;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.02;
}

.legacy-hero .lead {
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.legacy-feature-orbit {
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(29, 184, 232, .20), rgba(29, 184, 232, .05) 65%, rgba(255, 255, 255, 0) 66%);
  border: 4px dashed rgba(29, 184, 232, .28);
  border-radius: 50%;
  display: grid;
  min-height: 360px;
  place-items: center;
}

.legacy-floating-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 41, .08);
  border-radius: 1.2rem;
  box-shadow: 0 22px 44px rgba(15, 23, 41, .12);
  padding: 1rem 1.1rem;
}

.legacy-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 41, .08);
  border-radius: 1.45rem;
  box-shadow: 0 18px 40px rgba(15, 23, 41, .08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.legacy-card:hover {
  border-color: rgba(29, 184, 232, .24);
  box-shadow: 0 28px 55px rgba(15, 23, 41, .12);
  transform: translateY(-6px);
}

.legacy-location-featured {
  background: linear-gradient(135deg, var(--legacy-primary), #2aa7f0);
  border: 0;
  color: #fff;
}

.legacy-location-featured .legacy-icon-box {
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .28);
}

.legacy-service-card {
  color: inherit;
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.legacy-service-card .image-wrap {
  height: 14rem;
  overflow: hidden;
  position: relative;
}

.legacy-service-card img {
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
  width: 100%;
}

.legacy-service-card:hover img {
  transform: scale(1.07);
}

.legacy-service-card .image-wrap::after {
  background: linear-gradient(180deg, rgba(15, 23, 41, 0) 20%, rgba(15, 23, 41, .65) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.legacy-service-icon {
  align-items: center;
  background: rgba(29, 184, 232, .12);
  border-radius: 1rem;
  color: var(--legacy-primary-dark);
  display: inline-flex;
  font-size: 1.65rem;
  height: 4rem;
  justify-content: center;
  width: 4rem;
}

.legacy-cta {
  background: var(--legacy-secondary);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.legacy-cta .legacy-cta-bg {
  inset: 0;
  object-fit: cover;
  opacity: .18;
  position: absolute;
  width: 100%;
  height: 100%;
}

.legacy-cta .container {
  position: relative;
  z-index: 2;
}

.legacy-step {
  text-align: center;
}

.legacy-step-number {
  align-items: center;
  background: linear-gradient(135deg, var(--legacy-primary), #2aa7f0);
  border-radius: 50%;
  box-shadow: 0 18px 34px rgba(29, 184, 232, .22);
  color: #fff;
  display: inline-flex;
  font-size: 1.65rem;
  font-weight: 900;
  height: 5.5rem;
  justify-content: center;
  margin-bottom: 1.4rem;
  width: 5.5rem;
}

.legacy-hours-card {
  background: linear-gradient(135deg, var(--legacy-primary), #2aa7f0);
  border-radius: 1.5rem;
  color: #fff;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.legacy-hours-row {
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: .9rem;
  padding: 1rem;
}

.legacy-dark-card {
  background: linear-gradient(135deg, var(--legacy-secondary), var(--legacy-dark));
  border-radius: 1.5rem;
  color: #fff;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
}

.legacy-dark-card > * {
  position: relative;
  z-index: 2;
}

.legacy-dark-card img {
  inset: 0;
  object-fit: cover;
  opacity: .18;
  position: absolute;
  width: 100%;
  height: 100%;
}

.legacy-team-img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}

.legacy-footer {
  background: var(--legacy-primary);
  color: #fff;
  padding: 4rem 0 2rem;
}

.legacy-footer a {
  color: rgba(255, 255, 255, .86);
  text-decoration: none;
}

.legacy-footer a:hover {
  color: #fff;
}

.legacy-footer .muted {
  color: rgba(255, 255, 255, .78);
}

@media (max-width: 991.98px) {
  .legacy-topbar .container {
    justify-content: start !important;
  }

  .legacy-navbar .navbar-brand img {
    height: 3.2rem;
  }

  .legacy-hero,
  .legacy-hero-content {
    min-height: 680px;
  }

  .legacy-hero::before {
    background: linear-gradient(90deg, rgba(26, 39, 66, .94), rgba(26, 39, 66, .76));
  }
}
