/* Homepage hero — desktop / tablet / mobile */
.np-home-hero {
  position: relative;
  isolation: isolate;
  min-height: min(100svh, 920px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--np-hero-text, #f8fafc);
}

.np-home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.np-home-hero__slider {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.np-home-hero--logistics .np-home-hero__media::after {
  z-index: 3;
}

.np-home-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.15s ease, visibility 1.15s ease;
}

.np-home-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.np-home-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.02);
  animation: npHeroImageIn 1.2s ease both;
}

.np-home-hero--logistics .np-home-hero__slide .np-home-hero__image {
  animation: npHeroKenBurnsA 18s ease-in-out infinite alternate;
}

.np-home-hero--logistics .np-home-hero__slide:nth-child(even) .np-home-hero__image {
  object-position: 72% center;
  animation-name: npHeroKenBurnsB;
}

.np-home-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(105deg, rgba(var(--np-hero-overlay-rgb, 15, 58, 40), 0.88) 0%, rgba(var(--np-hero-overlay-rgb, 15, 58, 40), 0.72) 42%, rgba(15, 23, 42, 0.45) 100%),
    linear-gradient(180deg, rgba(var(--np-hero-overlay-rgb, 15, 58, 40), 0.35) 0%, rgba(var(--np-hero-overlay-rgb, 15, 58, 40), 0.55) 55%, rgba(var(--np-hero-overlay-rgb, 15, 58, 40), 0.82) 100%);
}

.np-home-hero__glow {
  position: absolute;
  inset-inline-start: -8%;
  bottom: -18%;
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--np-hero-accent-rgb, 134, 239, 172), 0.22) 0%, transparent 68%);
  pointer-events: none;
  animation: npHeroGlow 4.5s ease-in-out infinite alternate;
}

.np-home-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(5.5rem, 12vh, 7.5rem) 0 clamp(3rem, 7vh, 4.5rem);
}

.np-home-hero__container {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 980px;
  margin-inline: auto;
}

.np-home-hero__copy {
  max-width: 42rem;
  animation: npHeroCopyIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.np-home-hero__brand {
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: clamp(2.35rem, 5.6vw, 4.35rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
  text-wrap: balance;
}

.np-home-hero__lead {
  margin: 0;
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--np-hero-muted, rgba(248, 250, 252, 0.82));
  font-size: clamp(1.02rem, 1.7vw, 1.28rem);
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0;
}

.np-home-hero__lead-line {
  display: block;
}

.np-home-hero__trust {
  margin: 0.85rem 0 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
  font-weight: 600;
}

.np-home-hero__search {
  display: grid;
  grid-template-columns: minmax(160px, 0.85fr) minmax(0, 1.45fr) auto;
  gap: 0.75rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(10px);
  animation: npHeroSearchIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.np-home-hero__field {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}

.np-home-hero__field label {
  margin: 0;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
}

.np-home-hero__control {
  position: relative;
  display: flex;
  align-items: center;
}

.np-home-hero__control > i {
  position: absolute;
  inset-inline-start: 0.9rem;
  color: #94a3b8;
  font-size: 0.85rem;
  pointer-events: none;
  z-index: 1;
}

.np-home-hero__control select,
.np-home-hero__control input {
  width: 100%;
  min-height: 3.05rem;
  padding: 0.7rem 0.95rem;
  padding-inline-start: 2.45rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.np-home-hero__control select {
  appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-inline-end: 2rem;
}

[dir="rtl"] .np-home-hero__control select {
  background-position:
    18px calc(50% - 3px),
    12px calc(50% - 3px);
}

.np-home-hero__control select:focus,
.np-home-hero__control input:focus {
  border-color: var(--np-hero-accent, #86efac);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(var(--np-hero-primary-rgb, 27, 131, 84), 0.15);
}

.np-home-hero__actions {
  display: flex;
  align-items: stretch;
}

.np-home-hero__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3.05rem;
  padding: 0.7rem 1.35rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sa-green-dark, #14532d) 0%, var(--sa-green, #166534) 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 8px 18px rgba(var(--np-hero-overlay-rgb, 20, 83, 45), 0.28);
}

.np-home-hero__submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.np-home-hero__submit:active {
  transform: translateY(0);
}

.np-home-hero__cta {
  animation: npHeroCopyIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.np-home-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--np-hero-accent, #bbf7d0);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s ease, gap 0.15s ease;
}

.np-home-hero__link:hover {
  color: #fff;
  gap: 0.65rem;
}

.np-home-hero__link i {
  font-size: 0.78rem;
}

[dir="ltr"] .np-home-hero__link i {
  transform: scaleX(-1);
}

@keyframes npHeroImageIn {
  from { transform: scale(1.08); opacity: 0.7; }
  to { transform: scale(1.02); opacity: 1; }
}

@keyframes npHeroCopyIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes npHeroSearchIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes npHeroGlow {
  from { opacity: 0.55; transform: translate3d(0, 0, 0); }
  to { opacity: 1; transform: translate3d(12px, -10px, 0); }
}

@keyframes npHeroKenBurnsA {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.6%, 1.2%, 0); }
}

@keyframes npHeroKenBurnsB {
  from { transform: scale(1.12) translate3d(-1.2%, 0.8%, 0); }
  to { transform: scale(1.04) translate3d(1.4%, -0.8%, 0); }
}

@keyframes npHeroPanelKenBurns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-2%, 1.5%, 0); }
}

/* Tablet */
@media (max-width: 991.98px) {
  .np-home-hero {
    min-height: min(88svh, 820px);
  }

  .np-home-hero__container,
  .np-home-hero--logistics .np-home-hero__container {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .np-home-hero__panel {
    min-height: 0;
  }

  .np-home-hero__panel-media,
  .np-home-hero__panel-media img,
  .np-home-hero__panel-video {
    min-height: 12.5rem;
  }

  .np-home-hero__search {
    grid-template-columns: 1fr 1.3fr;
  }

  .np-home-hero__actions {
    grid-column: 1 / -1;
  }

  .np-home-hero__submit {
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .np-home-hero {
    min-height: auto;
    align-items: flex-end;
  }

  .np-home-hero__media {
    min-height: 100%;
  }

  .np-home-hero__image {
    object-position: 62% center;
  }

  .np-home-hero__shade {
    background:
      linear-gradient(180deg, rgba(var(--np-hero-overlay-rgb, 15, 58, 40), 0.35) 0%, rgba(var(--np-hero-overlay-rgb, 15, 58, 40), 0.78) 42%, rgba(var(--np-hero-overlay-rgb, 15, 58, 40), 0.94) 100%),
      linear-gradient(105deg, rgba(var(--np-hero-overlay-rgb, 15, 58, 40), 0.55), rgba(15, 23, 42, 0.35));
  }

  .np-home-hero__content {
    padding: 6.5rem 0 2rem;
  }

  .np-home-hero__brand {
    font-size: clamp(2rem, 9vw, 2.55rem);
  }

  .np-home-hero__lead {
    font-size: 1rem;
    line-height: 1.65;
  }

  .np-home-hero__search {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 0.85rem;
    border-radius: 16px;
  }

  .np-home-hero__control select,
  .np-home-hero__control input,
  .np-home-hero__submit {
    min-height: 2.9rem;
  }
}

@media (max-width: 419.98px) {
  .np-home-hero__content {
    padding-top: 5.75rem;
  }

  .np-home-hero__brand {
    font-size: 1.85rem;
  }
}

.np-home-hero--logistics {
  overflow: hidden;
  min-height: min(86svh, 820px);
  align-items: center;
  margin-bottom: 0;
}

.np-home-hero--logistics .np-home-hero__content {
  padding-bottom: clamp(5.5rem, 12vh, 8rem);
}

.np-home-hero--logistics .np-home-hero__container {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(17.5rem, 0.92fr);
  align-items: center;
  gap: clamp(1.5rem, 3.4vw, 3.5rem);
  max-width: 1180px;
  margin-inline: auto;
  width: 100%;
}

.np-home-hero__main {
  display: grid;
  gap: clamp(1.15rem, 2.2vw, 1.7rem);
  min-width: 0;
}

.np-home-hero--logistics .np-home-hero__copy {
  max-width: 46rem;
}

.np-home-hero--logistics .np-home-hero__brand {
  font-size: clamp(2.35rem, 5.2vw, 4.15rem);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

.np-home-hero--logistics .np-home-hero__lead {
  max-width: 38rem;
  margin-bottom: 0.35rem;
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  opacity: 0.78;
}

.np-home-hero--logistics .np-home-hero__search {
  max-width: none;
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  animation: npHeroSearchIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both, lgHeroSearchGlow 3.6s ease-in-out 1.2s infinite alternate;
}

.np-home-hero--logistics .np-home-hero__eyebrow {
  animation: npHeroCopyIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
}

.np-home-hero--logistics .np-home-hero__brand {
  animation: npHeroCopyIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.np-home-hero--logistics .np-home-hero__lead,
.np-home-hero--logistics .np-home-hero__trust {
  animation: npHeroCopyIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.np-home-hero--logistics .np-home-hero__buttons {
  animation: npHeroCopyIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.np-home-hero--logistics .np-home-hero__panel {
  animation: lgHeroPanelFloat 5.8s ease-in-out 1.15s infinite alternate;
}

.np-home-hero__btn--solid,
.np-home-hero__btn--ghost {
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, color 0.28s ease;
}

.np-home-hero__btn--solid:hover,
.np-home-hero__btn--ghost:hover {
  transform: translateY(-3px);
}

@keyframes lgHeroPanelFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

@keyframes lgHeroSearchGlow {
  from { box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16); }
  to { box-shadow: 0 22px 48px rgba(197, 165, 114, 0.22); }
}

.np-home-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem 1.6rem;
}

.np-home-hero__btn {
  text-decoration: none;
}

.np-home-hero__btn--solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0.85rem 1.85rem;
  border-radius: 999px;
  background: #fff;
  color: #141414;
  font-size: 1.02rem;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.np-home-hero__btn--solid:hover {
  color: #141414;
  filter: brightness(0.97);
}

.np-home-hero__btn--ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 600;
}

.np-home-hero__btn--ghost:hover {
  color: #fff;
}

.np-home-hero__play {
  position: relative;
  width: 3.35rem;
  height: 3.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--atelier-gold, #ffc700);
  color: #141414;
  font-size: 0.85rem;
}

.np-home-hero__play::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 2px solid var(--atelier-gold, #ffc700);
  border-radius: 50%;
  opacity: 0.55;
  animation: npHeroSonar 2.2s ease-out infinite;
}

@keyframes npHeroSonar {
  0% {
    transform: scale(0.92);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.28);
    opacity: 0;
  }
}

.np-home-hero__aside {
  min-width: 0;
  height: 100%;
  animation: npHeroCopyIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.np-home-hero__panel {
  display: grid;
  grid-template-rows: minmax(13.5rem, 1fr) auto;
  height: 100%;
  min-height: 28rem;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 64px rgba(0, 18, 40, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.np-home-hero__panel-media {
  position: relative;
  display: block;
  min-height: 13.5rem;
  overflow: hidden;
}

.np-home-hero__slider--panel {
  position: absolute;
  inset: 0;
}

.np-home-hero__panel-media img,
.np-home-hero__panel-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 13.5rem;
  object-fit: cover;
  object-position: center 24%;
}

.np-home-hero__panel-media--reel img {
  animation: npHeroPanelKenBurns 12s ease-in-out infinite alternate;
}

.np-home-hero__panel-media--reel .np-home-hero__slide:nth-child(even) img {
  object-position: 68% center;
  animation-direction: reverse;
}

.np-home-hero__panel-video {
  background: #001a33;
}

.np-home-hero__panel-body {
  display: grid;
  gap: 0.7rem;
  padding: 1.15rem 1.25rem 1.25rem;
  background: #fff;
  color: #0f2744;
}

.np-home-hero__panel-kicker {
  margin: 0;
  color: var(--np-hero-gold, #c5a572);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.np-home-hero__panel-title {
  margin: 0;
  color: #002d58;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.4;
}

.np-home-hero__facts {
  display: grid;
  gap: 0.45rem;
  margin: 0.15rem 0 0;
  padding: 0.7rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(0, 45, 88, 0.1);
}

.np-home-hero__facts li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.np-home-hero__facts i {
  width: 1.15rem;
  margin-top: 0.15rem;
  color: var(--np-hero-gold, #c5a572);
  font-size: 0.82rem;
  text-align: center;
}

.np-home-hero__facts strong {
  color: #002d58;
  margin-inline-end: 0.25rem;
}

.np-home-hero__panel-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.2rem;
  padding: 0.72rem 0.95rem;
  border-radius: 12px;
  background: #002d58;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.np-home-hero__panel-cta:hover {
  color: #fff;
  background: #001a33;
}

.np-home-hero__panel-cta i {
  font-size: 0.75rem;
}

.lg-hero-panel {
  display: none;
}

.lg-hero-panel__card {
  width: min(100%, 28.5rem);
  margin-inline-start: auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 22px 50px rgba(15, 20, 18, 0.18);
  pointer-events: auto;
}

.lg-hero-panel__top {
  position: relative;
  padding: 1.75rem 1.6rem 1.45rem;
  background: var(--atelier-gold, #ffc700);
  color: #141414;
}

.lg-hero-panel__top span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.75;
}

.lg-hero-panel__top h2 {
  margin: 0;
  max-width: 90%;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.55;
  color: #141414;
}

.lg-hero-panel__diag {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 88px;
  height: 88px;
  pointer-events: none;
}

.lg-hero-panel__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.6rem;
  background: #141414;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
}

.lg-hero-panel__cta:hover {
  color: #fff;
  background: #1c1c1c;
}

@media (max-width: 991.98px) {
  .lg-hero-panel {
    margin-top: -5.5rem;
  }
}

@media (max-width: 767.98px) {
  .np-home-hero--logistics {
    min-height: min(86svh, 760px);
  }

  .lg-hero-panel {
    margin-top: -2.5rem;
    padding-inline: 0.75rem;
  }

  .lg-hero-panel__card {
    width: 100%;
  }

  .np-home-hero--logistics .np-home-hero__content {
    padding-bottom: 2.5rem;
  }

  .np-home-hero--logistics .np-home-hero__search {
    max-width: none;
  }

  .np-home-hero__panel {
    min-height: 0;
    grid-template-rows: 11.5rem auto;
  }

  .np-home-hero__panel-media,
  .np-home-hero__panel-media img,
  .np-home-hero__panel-video {
    min-height: 11.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .np-home-hero__image,
  .np-home-hero__copy,
  .np-home-hero__search,
  .np-home-hero__cta,
  .np-home-hero__glow,
  .np-home-hero__aside,
  .np-home-hero__panel,
  .np-home-hero__panel-media img,
  .np-home-hero__panel-video,
  .np-home-hero__slide,
  .np-home-hero__play::after,
  .np-home-hero__eyebrow,
  .np-home-hero__brand,
  .np-home-hero__lead,
  .np-home-hero__trust,
  .np-home-hero__buttons {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
}
