/* ===== LANDING NAVBAR — premium healthcare layout ===== */

body.landing-page {
  background: var(--navy);
  background-image: none;
  --bg-light: var(--navy);
  --landing-nav-height: 76px;
  --landing-hero-offset: 76px;
  --landing-nav-offset: var(--landing-hero-offset);
  --landing-nav-break: 1199px;
}

body.landing-page:has(.landing-maintenance-banner) {
  --landing-hero-offset: calc(var(--landing-nav-height) + 40px);
  --landing-nav-offset: var(--landing-hero-offset);
}

body.landing-page::before,
body.landing-page::after {
  display: none;
}

body.landing-page .bg-canvas {
  display: none;
}

/* ── Shell: controlled navy, very subtle depth ── */
.landing-page .landing-navbar.landing-navbar--premium {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--landing-nav-height);
  background: linear-gradient(180deg, #012a4a 0%, #012033 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.landing-page .landing-navbar.landing-navbar--premium.nav-blended {
  background: linear-gradient(180deg, rgba(1, 42, 74, 0.94) 0%, rgba(1, 32, 51, 0.94) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.landing-page .landing-navbar.landing-navbar--premium.nav-scrolled,
.landing-page .landing-navbar.landing-navbar--premium.scrolled {
  background: #012a4a;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.16);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.landing-page .landing-navbar.landing-navbar--premium.nav-on-light {
  background: rgba(248, 252, 252, 0.96);
  border-bottom-color: rgba(1, 42, 74, 0.08);
  box-shadow: 0 2px 14px rgba(1, 42, 74, 0.06);
}

/* ── Brand | Navigation | Sign In ── */
.landing-page .nav-container.nav-container--premium {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(24px, 3.2vw, 40px);
  height: var(--landing-nav-height);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}

.landing-page .nav-bar__left {
  justify-self: start;
  min-width: 0;
}

.landing-page .nav-bar__center {
  justify-self: center;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

/* Expanded search grows left — tuck nav aside on desktop only */
@media (min-width: 993px) {
  .landing-page .landing-navbar.nav-search-active .nav-bar__center {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.landing-page .nav-bar__right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 14px);
  min-width: 0;
}

/* ── Logo cluster ── */
.landing-page .nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
  height: var(--landing-nav-height);
}

.landing-page .nav-logo__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.landing-page .nav-logo__icon {
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transform-origin: center center;
  will-change: transform;
  animation: medconnect-heartbeat 2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.landing-page .nav-logo:hover .nav-logo__icon {
  animation-name: medconnect-heartbeat-hover;
}

@keyframes medconnect-heartbeat {
  0%, 100% { transform: scale(1); }
  7% { transform: scale(1.08); }
  12% { transform: scale(0.98); }
  17% { transform: scale(1); }
  24% { transform: scale(1); }
  31% { transform: scale(1.06); }
  36% { transform: scale(0.99); }
  41% { transform: scale(1); }
  55%, 70%, 85% { transform: scale(1); }
}

@keyframes medconnect-heartbeat-hover {
  0%, 100% { transform: scale(1); }
  7% { transform: scale(1.12); }
  12% { transform: scale(0.98); }
  17% { transform: scale(1); }
  24% { transform: scale(1); }
  31% { transform: scale(1.1); }
  36% { transform: scale(0.99); }
  41% { transform: scale(1); }
  55%, 70%, 85% { transform: scale(1); }
}

.landing-page .nav-logo .logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.35px;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  line-height: 1;
  transition: color 0.28s ease;
}

.landing-page .nav-logo .logo-brand-med {
  color: #fff;
  transition: color 0.28s ease;
}

.landing-page .landing-navbar.nav-on-light .nav-logo .logo-brand-med,
.landing-page .landing-navbar.nav-on-light .nav-logo .logo-text {
  color: var(--navy);
}

.landing-page .nav-logo .logo-accent {
  color: var(--teal);
}

.landing-page .nav-logo__divider {
  display: block;
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

.landing-page .landing-navbar.nav-on-light .nav-logo__divider {
  background: rgba(1, 42, 74, 0.16);
}

.landing-page .nav-logo__partner {
  display: block;
  height: 34px;
  width: auto;
  max-width: 48px;
  max-height: 34px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.92;
}

.landing-page .nav-logo__partner--bcc {
  height: 34px;
  max-height: 34px;
}

/* ── Center navigation links ── */
.landing-page .nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  width: max-content;
  max-width: 100%;
}

.landing-page .nav-links li {
  margin: 0;
  padding: 0;
}

.landing-page .nav-links .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  border-radius: 0;
  transition: color 0.2s ease;
}

.landing-page .landing-navbar.nav-on-light .nav-links .nav-link {
  color: rgba(1, 42, 74, 0.78);
}

.landing-page .nav-links .nav-link::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 3px;
  border-radius: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
  pointer-events: none;
}

.landing-page .nav-links .nav-link:hover {
  color: #5eead4;
  background: transparent;
  transform: none;
}

.landing-page .landing-navbar.nav-on-light .nav-links .nav-link:hover {
  color: var(--teal);
}

.landing-page .nav-links .nav-link:hover::after,
.landing-page .nav-links .nav-link.is-active::after {
  transform: scaleX(1);
}

.landing-page .nav-links .nav-link.is-active {
  color: #fff;
  background: transparent;
}

.landing-page .landing-navbar.nav-on-light .nav-links .nav-link.is-active {
  color: var(--navy);
}

.landing-page .nav-links .nav-link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Right actions: search + sign in ── */
.landing-page .btn-nav-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: inherit;
  cursor: pointer;
  line-height: 1;
  border: none;
  text-decoration: none;
}

.landing-page .btn-nav-signin--primary {
  padding: 0 20px;
  min-height: 44px;
  height: 44px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--teal);
  border-radius: 9px;
  box-shadow: 0 2px 10px rgba(6, 147, 150, 0.22);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.landing-page .btn-nav-signin--primary:hover {
  transform: none;
  background: #057a7c;
  box-shadow: 0 4px 14px rgba(6, 147, 150, 0.3);
  filter: none;
}

.landing-page .btn-nav-signin--primary:focus-visible {
  outline: 2px solid #5eead4;
  outline-offset: 3px;
}

.landing-page .btn-nav-signin svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.landing-page .btn-nav-signin--drawer {
  display: none;
}

.landing-page .ann-list-back-btn {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.landing-page .ann-list-back-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
}

/* ── Hamburger (mobile only) ── */
.landing-page .nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.landing-page .nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease, background 0.28s ease;
}

.landing-page .landing-navbar.nav-on-light .nav-toggle span {
  background: var(--navy);
}

.landing-page .nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ── Mobile drawer (hidden on desktop) ── */
.landing-page .nav-menu--drawer {
  display: none;
}

.landing-page .nav-menu--ann-list {
  display: flex;
  align-items: center;
}

.landing-page .nav-container.nav-container--premium:has(.nav-menu--ann-list) {
  grid-template-columns: 1fr auto;
}

.landing-page .hero {
  padding-top: var(--landing-nav-height);
}

html.landing-scroll {
  scroll-padding-top: var(--landing-nav-offset, var(--landing-hero-offset, var(--landing-nav-height)));
  scroll-behavior: auto;
}

/* ── Mid desktop: keep full nav, slightly tighter ── */
@media (max-width: 1366px) {
  .landing-page .nav-links .nav-link {
    padding: 8px 10px;
    font-size: 13.5px;
  }

  .landing-page .nav-logo .logo-text {
    font-size: 20px;
  }
}

/* ── Tablet / mobile: brand + menu ── */
@media (max-width: 1199px) {
  body.landing-page:has(.landing-maintenance-banner) .nav-menu--drawer {
    padding-top: 20px;
  }

  .landing-page .nav-container.nav-container--premium {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'left right';
    gap: 12px;
  }

  .landing-page .nav-bar__left {
    grid-area: left;
  }

  .landing-page .nav-bar__center {
    display: none;
  }

  .landing-page .nav-bar__right {
    grid-area: right;
  }

  .landing-page .btn-nav-signin--primary:not(.btn-nav-signin--drawer) {
    display: none;
  }

  .landing-page .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 202;
  }

  .landing-page .nav-menu--drawer {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    flex: none !important;
    position: fixed !important;
    top: var(--landing-nav-height) !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(300px, 86vw) !important;
    max-width: 100% !important;
    height: calc(100vh - var(--landing-nav-height)) !important;
    height: calc(100dvh - var(--landing-nav-height)) !important;
    margin: 0 !important;
    padding: 12px 18px 20px !important;
    background: #012a4a !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: none !important;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.28) !important;
    z-index: 201 !important;
    gap: 10px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    transform: translate3d(105%, 0, 0);
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.38s;
    will-change: transform;
  }

  .landing-page .nav-menu--drawer.open {
    transform: translate3d(0, 0, 0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: flex !important;
    transition:
      transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0s;
  }

  .landing-page .landing-navbar.nav-on-light .nav-menu--drawer {
    background: rgba(248, 252, 252, 0.98);
    border-left-color: var(--border);
    box-shadow: -12px 0 48px rgba(1, 42, 74, 0.12);
  }

  .landing-page .nav-menu--drawer .nav-links--drawer {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0 !important;
    gap: 2px !important;
    flex: 0 0 auto;
  }

  .landing-page .nav-menu--drawer .nav-links--drawer .nav-link {
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 15px;
    border-radius: 8px;
  }

  .landing-page .nav-links--drawer .nav-link::after {
    display: none;
  }

  .landing-page .nav-links--drawer .nav-link.is-active {
    background: rgba(6, 147, 150, 0.16);
    color: #fff;
  }

  .landing-page .landing-navbar.nav-on-light .nav-links--drawer .nav-link.is-active {
    background: rgba(6, 147, 150, 0.1);
    color: var(--navy);
  }

  .landing-page .btn-nav-signin--drawer {
    display: inline-flex;
    width: 100%;
    margin-top: 6px;
    flex-shrink: 0;
  }

  .landing-page .nav-bar__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-shrink: 0;
    min-width: 0;
  }

  .landing-page .nav-search-wrap {
    flex-shrink: 0;
  }

  .landing-page .nav-toggle {
    flex-shrink: 0;
    position: relative;
    z-index: 203;
  }
}

@media (max-width: 768px) {
  .landing-page .nav-logo__divider,
  .landing-page .nav-logo__partner {
    display: none;
  }

  .landing-page .nav-logo {
    gap: 0;
  }
}

@media (max-width: 480px) {
  .landing-page .nav-logo__icon {
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
  }

  .landing-page .nav-logo .logo-text {
    font-size: 18px;
  }

  .landing-page .nav-search-toggle__label {
    display: none;
  }
}

@media (max-width: 360px) {
  .landing-page .nav-logo .logo-text {
    font-size: 16px;
  }

  .landing-page .nav-container.nav-container--premium {
    padding: 0 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-page .nav-logo__icon {
    animation: none;
    will-change: auto;
    transform: none;
  }

  .landing-page .nav-menu--drawer {
    transition: none;
  }

  .landing-page .nav-links .nav-link::after {
    transition: none;
  }
}

/* ── Section reveal — fade + slide up, 600ms, once ── */
.landing-page .mc-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.landing-page .mc-reveal.mc-visible {
  opacity: 1;
  transform: translateY(0);
}

.landing-page .mc-reveal-left {
  transform: translateX(-28px) translateY(16px);
}

.landing-page .mc-reveal-left.mc-visible {
  transform: translateX(0) translateY(0);
}

.landing-page .mc-reveal-right {
  transform: translateX(28px) translateY(16px);
}

.landing-page .mc-reveal-right.mc-visible {
  transform: translateX(0) translateY(0);
}

.landing-page .mc-reveal-d1 { transition-delay: 0.04s; }
.landing-page .mc-reveal-d2 { transition-delay: 0.1s; }
.landing-page .mc-reveal-d3 { transition-delay: 0.16s; }
.landing-page .mc-reveal-d4 { transition-delay: 0.22s; }
.landing-page .mc-reveal-d5 { transition-delay: 0.28s; }
.landing-page .mc-reveal-d6 { transition-delay: 0.34s; }
.landing-page .mc-reveal-d7 { transition-delay: 0.4s; }
.landing-page .mc-reveal-d8 { transition-delay: 0.46s; }

/* ── Services / How It Works — infinite card carousel ── */
.landing-page .landing-reveal-title {
  opacity: 0;
  transform: translateY(-32px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-page .landing-reveal-title.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.landing-page .landing-reveal-desc {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-page .landing-reveal-desc.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.landing-page .landing-carousel {
  --carousel-gap: clamp(24px, 2.5vw, 32px);
  --carousel-card-width: clamp(260px, 28vw, 300px);
  --carousel-duration: 25s;
  --carousel-inset: clamp(80px, 9vw, 120px);
  --carousel-fade: clamp(24px, 3vw, 40px);
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 12px;
  touch-action: pan-y;
}

.landing-page .landing-carousel__viewport {
  overflow: hidden;
  padding-inline: var(--carousel-inset);
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 var(--carousel-fade),
    #000 calc(100% - var(--carousel-fade)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 var(--carousel-fade),
    #000 calc(100% - var(--carousel-fade)),
    transparent 100%
  );
}

.landing-page .landing-carousel__track {
  display: flex;
  width: max-content;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  animation: landing-carousel-scroll var(--carousel-duration) linear infinite;
  animation-play-state: paused;
}

.landing-page .landing-carousel.is-in-view .landing-carousel__track {
  animation-play-state: running;
}

.landing-page .landing-carousel:not(.is-in-view) .landing-carousel__track {
  animation-play-state: paused;
}

@media (hover: hover) and (pointer: fine) {
  .landing-page .landing-carousel:hover .landing-carousel__track,
  .landing-page .landing-carousel.is-paused .landing-carousel__track {
    animation-play-state: paused;
  }
}

.landing-page .landing-carousel__group {
  display: flex;
  align-items: stretch;
  gap: var(--carousel-gap);
  padding-right: var(--carousel-gap);
  flex-shrink: 0;
}

.landing-page .landing-carousel .service-card {
  flex: 0 0 var(--carousel-card-width);
  width: var(--carousel-card-width);
  min-height: 240px;
  height: 240px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    background 0.25s ease;
}

.landing-page .landing-carousel .service-card .service-icon {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-page .landing-carousel .service-card-desc {
  flex: 1;
}

@media (hover: hover) and (pointer: fine) {
  .landing-page .landing-carousel .service-card:hover {
    transform: translate3d(0, -6px, 0);
    box-shadow: 0 20px 44px rgba(6, 147, 150, 0.16);
    border-color: rgba(6, 147, 150, 0.35);
    z-index: 2;
    position: relative;
  }

  .landing-page .landing-carousel .service-card:hover .service-icon {
    transform: scale(1.05);
  }
}

.landing-page .landing-carousel .service-card.is-touch-active {
  transform: translate3d(0, -6px, 0) scale(1.01);
  box-shadow: 0 18px 40px rgba(6, 147, 150, 0.12);
  border-color: rgba(6, 147, 150, 0.3);
  z-index: 2;
  position: relative;
}

@keyframes landing-carousel-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 768px) {
  .landing-page .landing-carousel {
    --carousel-card-width: min(78vw, 280px);
    --carousel-duration: 28s;
    --carousel-inset: clamp(20px, 5vw, 48px);
    --carousel-fade: clamp(16px, 4vw, 28px);
  }
}

/* ── Contact section slide-in reveal ── */
.landing-page .contact-section .contact-col.mc-visible .contact-social-link,
.landing-page .contact-section .contact-col.mc-visible .contact-details li,
.landing-page .contact-section .contact-col.mc-visible .contact-links li {
  animation: landing-contact-item-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.landing-page .contact-col.mc-visible .contact-social-link:nth-child(1) { animation-delay: 0.08s; }
.landing-page .contact-col.mc-visible .contact-social-link:nth-child(2) { animation-delay: 0.14s; }
.landing-page .contact-col.mc-visible .contact-social-link:nth-child(3) { animation-delay: 0.2s; }

.landing-page .contact-col.mc-visible .contact-links li:nth-child(1),
.landing-page .contact-col.mc-visible .contact-details li:nth-child(1) { animation-delay: 0.06s; }
.landing-page .contact-col.mc-visible .contact-links li:nth-child(2),
.landing-page .contact-col.mc-visible .contact-details li:nth-child(2) { animation-delay: 0.12s; }
.landing-page .contact-col.mc-visible .contact-links li:nth-child(3),
.landing-page .contact-col.mc-visible .contact-details li:nth-child(3) { animation-delay: 0.18s; }
.landing-page .contact-col.mc-visible .contact-links li:nth-child(4),
.landing-page .contact-col.mc-visible .contact-details li:nth-child(4) { animation-delay: 0.24s; }

.landing-page .contact-col.mc-visible .contact-details svg,
.landing-page .contact-col.mc-visible .contact-social-link svg {
  animation: landing-icon-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.landing-page .contact-col.mc-visible .contact-brand {
  animation: landing-contact-item-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes landing-contact-item-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes landing-icon-pop {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ── Subtle floating ambient elements ── */
.landing-ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.landing-ambient__orb,
.landing-ambient__cross,
.landing-ambient__pulse {
  position: absolute;
  opacity: 0.45;
}

.landing-ambient__orb {
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 147, 150, 0.12) 0%, rgba(6, 147, 150, 0) 70%);
  animation: landing-float-orb 14s ease-in-out infinite;
}

.landing-ambient__orb--1 {
  width: 280px;
  height: 280px;
  top: -80px;
  right: -60px;
}

.landing-ambient__orb--2 {
  width: 180px;
  height: 180px;
  bottom: 10%;
  left: -40px;
  animation-delay: -4s;
  animation-duration: 18s;
}

.landing-ambient__orb--3 {
  width: 220px;
  height: 220px;
  top: 8%;
  left: -70px;
  animation-duration: 16s;
}

.landing-ambient__cross {
  width: 32px;
  height: 32px;
  background:
    linear-gradient(var(--teal), var(--teal)) center/2px 100% no-repeat,
    linear-gradient(var(--teal), var(--teal)) center/100% 2px no-repeat;
  opacity: 0.08;
  animation: landing-float-cross 12s ease-in-out infinite;
}

.landing-ambient__cross--1 {
  top: 22%;
  left: 12%;
  animation-delay: -2s;
}

.landing-ambient__cross--2 {
  bottom: 18%;
  right: 10%;
  animation-delay: -6s;
  animation-duration: 15s;
}

.landing-ambient__pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.25);
  animation: landing-pulse-dot 4s ease-in-out infinite;
}

.landing-ambient__pulse--1 {
  top: 40%;
  right: 18%;
}

.landing-ambient__pulse--2 {
  top: 30%;
  right: 22%;
  animation-delay: -2s;
}

.landing-ambient--contact .landing-ambient__orb,
.landing-ambient--contact .landing-ambient__cross,
.landing-ambient--contact .landing-ambient__pulse {
  opacity: 0.35;
}

@keyframes landing-float-orb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(12px, -18px); }
}

@keyframes landing-float-cross {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.08; }
  50% { transform: translateY(-14px) rotate(8deg); opacity: 0.12; }
}

@keyframes landing-pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.2); transform: scale(1); }
  50% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); transform: scale(1.15); }
}

.landing-page .services-section,
.landing-page .contact-section,
.landing-page .about-team-section {
  overflow: hidden;
}

/* Carousel breaks out to full viewport — allow horizontal bleed */
.landing-page .services-section:has(.landing-carousel) {
  overflow-x: clip;
  overflow-y: visible;
}

.landing-page .services-container,
.landing-page .contact-container {
  position: relative;
  z-index: 1;
}

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

  .landing-page .mc-reveal,
  .landing-page .mc-reveal-left,
  .landing-page .mc-reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .landing-ambient__orb,
  .landing-ambient__cross,
  .landing-ambient__pulse {
    animation: none;
  }

  .landing-page .nav-logo__icon {
    animation: none;
    will-change: auto;
    transform: none;
  }

  .landing-page .contact-col.mc-visible .contact-social-link,
  .landing-page .contact-col.mc-visible .contact-details li,
  .landing-page .contact-col.mc-visible .contact-links li,
  .landing-page .contact-col.mc-visible .contact-details svg,
  .landing-page .contact-col.mc-visible .contact-social-link svg,
  .landing-page .contact-col.mc-visible .contact-brand {
    animation: none;
  }

  .landing-page .landing-reveal-title,
  .landing-page .landing-reveal-desc {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .landing-page .service-card.lsa-card-reveal,
  .landing-page .lsa,
  .landing-page .lsa-hero-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .landing-page .landing-carousel__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    transform: none;
  }

  .landing-page .landing-carousel__group[aria-hidden="true"] {
    display: none;
  }

  .landing-page .landing-carousel__viewport {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .landing-page .landing-carousel__group {
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }

  .landing-page .landing-carousel .service-card {
    flex: 1 1 var(--carousel-card-width);
    max-width: var(--carousel-card-width);
  }
}

/* ===== Unified landing dark surface ===== */
.landing-page .services-section,
.landing-page .contact-section,
.landing-page .about-team-section {
  background: var(--navy) !important;
}

.landing-page .services-section {
  margin-top: 0;
  padding-top: clamp(64px, 9vw, 88px);
}

.landing-page .services-section::before,
.landing-page .contact-separator {
  display: none;
}

.landing-page .landing-ambient {
  display: none;
}

.landing-page .services-title {
  color: #fff;
}

.landing-page .services-desc {
  color: rgba(255, 255, 255, 0.72);
}

.landing-page .services-desc strong {
  color: rgba(255, 255, 255, 0.92);
}

.landing-page .services-brand {
  color: #5eead4;
}

.landing-page .service-card {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(255, 255, 255, 0.12);
}

.landing-page .service-card:hover {
  background: #fff;
}

.landing-page .contact-brand-name {
  color: #fff;
}

.landing-page .contact-brand-accent {
  color: #5eead4;
}

.landing-page .contact-brand-desc {
  color: rgba(255, 255, 255, 0.72);
}

.landing-page .contact-col-title {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.landing-page .contact-links a {
  color: rgba(255, 255, 255, 0.68);
}

.landing-page .contact-links a:hover {
  color: #5eead4;
}

.landing-page .contact-details li {
  color: rgba(255, 255, 255, 0.72);
}

.landing-page .contact-details li svg {
  color: #5eead4;
}

.landing-page .contact-copy {
  color: rgba(255, 255, 255, 0.62);
}

.landing-page .contact-copy-note {
  color: rgba(255, 255, 255, 0.45);
}

.landing-page .contact-bottom {
  border-top-color: rgba(255, 255, 255, 0.1);
  background: transparent;
}

.landing-page .contact-social-link {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
}

.landing-page .contact-social-link:hover {
  background: rgba(6, 147, 150, 0.18);
  border-color: rgba(6, 147, 150, 0.4);
  color: #5eead4;
}

.landing-page .contact-emergency {
  color: #fcd34d;
}