/**
 * NGT modern hero — photo carousel + Ken Burns + route accents
 * Inspired by Freight Force (full-bleed photo slides + captions),
 * with stronger motion for a 2020s feel.
 */
:root {
  --ngt-purple: #8b3d9e;
  --ngt-purple-dark: #5b2d6b;
  --ngt-slate: #1e293b;
  --ngt-cream: #f8fafc;
  --ngt-honey: #e8b84a;
  --ngt-teal: #2dd4bf;
}

#hero.ngt-hero-modern {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: clamp(28rem, 72vh, 42rem);
  overflow: hidden;
  background: var(--ngt-slate);
}

#hero.ngt-hero-modern .ngt-hero__carousel {
  position: absolute;
  inset: 0;
}

#hero.ngt-hero-modern .ngt-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition:
    opacity 1.1s ease,
    transform 7s ease-out;
  will-change: opacity, transform;
}

#hero.ngt-hero-modern .ngt-hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

#hero.ngt-hero-modern .ngt-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    160deg,
    rgb(91 45 107 / 0.58) 0%,
    rgb(30 41 59 / 0.72) 55%,
    rgb(30 41 59 / 0.88) 100%
  );
  pointer-events: none;
}

#hero.ngt-hero-modern .ngt-hero__routes {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

#hero.ngt-hero-modern .ngt-hero__route {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
}

#hero.ngt-hero-modern.is-ready .ngt-hero__route--teal {
  stroke: var(--ngt-teal);
  animation: ngt-draw-route 2.4s ease-out 0.4s forwards;
}

#hero.ngt-hero-modern.is-ready .ngt-hero__route--honey {
  stroke: var(--ngt-honey);
  stroke-width: 1.5;
  animation: ngt-draw-route 2.6s ease-out 0.7s forwards;
}

#hero.ngt-hero-modern .ngt-hero__node {
  fill: var(--ngt-teal);
  opacity: 0;
}

#hero.ngt-hero-modern .ngt-hero__node--honey {
  fill: var(--ngt-honey);
}

#hero.ngt-hero-modern.is-ready .ngt-hero__node {
  animation: ngt-node-pulse 2.4s ease-in-out 1.6s infinite;
}

@keyframes ngt-draw-route {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes ngt-node-pulse {
  0%,
  100% {
    opacity: 0.35;
    r: 5;
  }
  50% {
    opacity: 0.9;
    r: 7;
  }
}

#hero.ngt-hero-modern .hero-container {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
}

#hero.ngt-hero-modern .ngt-hero__logo,
#hero.ngt-hero-modern .ngt-hero__tagline,
#hero.ngt-hero-modern .ngt-hero__facility-label,
#hero.ngt-hero-modern .ngt-hero__ctas,
#hero.ngt-hero-modern .ngt-news-banner--in-hero,
#hero.ngt-hero-modern .ngt-hero__carousel-dots {
  opacity: 0;
  transform: translateY(18px);
}

#hero.ngt-hero-modern.is-ready .ngt-hero__tagline {
  animation: ngt-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

#hero.ngt-hero-modern.is-ready .ngt-hero__facility-label {
  animation: ngt-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
}

#hero.ngt-hero-modern.is-ready .ngt-hero__ctas {
  animation: ngt-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

#hero.ngt-hero-modern.is-ready .ngt-hero__carousel-dots {
  animation: ngt-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.52s forwards;
}

#hero.ngt-hero-modern.is-ready .ngt-news-banner--in-hero {
  animation: ngt-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

@keyframes ngt-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#hero.ngt-hero-modern .ngt-hero__tagline,
#hero.ngt-hero-modern h2 {
  margin: 0 0 0.75rem;
  max-width: 36rem;
  font-family: "Plus Jakarta Sans", "Poppins", system-ui, sans-serif;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--ngt-cream);
  text-shadow: 0 2px 16px rgb(0 0 0 / 0.4);
}

#hero.ngt-hero-modern .ngt-hero__facility-label {
  margin: 0 0 1.5rem;
  min-height: 1.25rem;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ngt-teal);
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.35);
  transition: opacity 0.35s ease;
}

#hero.ngt-hero-modern .ngt-hero__facility-label.is-swapping {
  opacity: 0;
}

#hero.ngt-hero-modern .btn-get-started {
  font-family: "Plus Jakarta Sans", "Poppins", system-ui, sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1.55rem;
  border-radius: 9999px;
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
  margin: 0.25rem;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

#hero.ngt-hero-modern .btn-get-started:hover {
  background: var(--ngt-purple);
  border-color: var(--ngt-purple);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.25);
}

#hero.ngt-hero-modern .btn-get-started--primary:hover {
  background: var(--ngt-honey);
  border-color: var(--ngt-honey);
  color: var(--ngt-slate);
}

#hero.ngt-hero-modern .ngt-hero__carousel-dots {
  display: flex;
  gap: 0.55rem;
  margin-top: 1.75rem;
}

#hero.ngt-hero-modern .ngt-hero__carousel-dots button {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.35);
  cursor: pointer;
  transition:
    width 0.35s ease,
    background 0.25s ease;
}

#hero.ngt-hero-modern .ngt-hero__carousel-dots button.is-active {
  width: 1.65rem;
  background: var(--ngt-honey);
}

#hero.ngt-hero-modern .ngt-hero__carousel-dots button:focus-visible {
  outline: 2px solid var(--ngt-teal);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  #hero.ngt-hero-modern {
    min-height: 32rem;
  }

  #hero.ngt-hero-modern .hero-container {
    padding-top: 6rem;
  }

  #hero.ngt-hero-modern .ngt-hero__routes {
    opacity: 0.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  #hero.ngt-hero-modern .ngt-hero__slide,
  #hero.ngt-hero-modern .ngt-hero__tagline,
  #hero.ngt-hero-modern .ngt-hero__facility-label,
  #hero.ngt-hero-modern .ngt-hero__ctas,
  #hero.ngt-hero-modern .ngt-hero__carousel-dots,
  #hero.ngt-hero-modern .ngt-hero__route,
  #hero.ngt-hero-modern .ngt-hero__node {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
}

/* Header: keep full logo (with Transport) — no ImageOnly swap on scroll */
#header #logo a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 0.65rem;
  background: rgb(247 242 250 / 0.94);
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.2);
}

#header #logo img,
#header #imgLogoTop {
  display: block;
  max-width: 150px;
}

#header #imgLogoScrolled,
#header.header-scrolled #imgLogoScrolled {
  display: none !important;
}

#header.header-scrolled #imgLogoTop {
  display: block !important;
}

/* Service cards — light motion lift (FF-style cards, modern hover) */
#services .box {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

#services .box:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgb(30 41 59 / 0.12);
}
