/* Homepage hero — desktop / tablet / mobile */
.np-home-hero {
  --np-hero-green: #0f3a28;
  --np-hero-green-mid: #14532d;
  --np-hero-accent: #86efac;
  --np-hero-text: #f8fafc;
  --np-hero-muted: rgba(248, 250, 252, 0.82);
  position: relative;
  isolation: isolate;
  min-height: min(100svh, 920px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--np-hero-text);
}

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

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

.np-home-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(15, 58, 40, 0.88) 0%, rgba(15, 58, 40, 0.72) 42%, rgba(15, 23, 42, 0.45) 100%),
    linear-gradient(180deg, rgba(15, 58, 40, 0.35) 0%, rgba(15, 58, 40, 0.55) 55%, rgba(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(134, 239, 172, 0.18) 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: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.np-home-hero__lead {
  margin: 0;
  max-width: 34rem;
  color: var(--np-hero-muted);
  font-size: clamp(1.02rem, 1.7vw, 1.28rem);
  font-weight: 500;
  line-height: 1.7;
}

.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: #86efac;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 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, #14532d 0%, #166534 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  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(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: #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); }
}

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

  .np-home-hero__container {
    max-width: 720px;
  }

  .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(15, 58, 40, 0.35) 0%, rgba(15, 58, 40, 0.78) 42%, rgba(15, 58, 40, 0.94) 100%),
      linear-gradient(105deg, rgba(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;
  }
}

@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 {
    animation: none !important;
  }
}
