/* Homepage Hero — full viewport, immersive background */

.hero.hero--home {
  position: relative;
  margin: 0;
  padding:
    calc(clamp(24px, 3vw, 40px) + var(--home-topbar-offset, 76px))
    0
    clamp(28px, 3.5vw, 40px);
  overflow: hidden;
  background: #050b1d;
  min-height: calc(100vh - var(--home-topbar-offset, 76px));
  min-height: calc(100dvh - var(--home-topbar-offset, 76px));
  border: none;
  border-radius: 0;
}

.hero.hero--home .hero__bg-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../images/arbicar-hero.jpg");
  background-size: cover;
  background-position: center center;
  pointer-events: none;
}

.hero.hero--home .hero__bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      rgba(5, 11, 29, 0.94) 0%,
      rgba(5, 11, 29, 0.82) 34%,
      rgba(5, 11, 29, 0.45) 58%,
      rgba(5, 11, 29, 0.28) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(5, 11, 29, 0.12) 0%,
      rgba(5, 11, 29, 0.35) 72%,
      rgba(5, 11, 29, 0.88) 100%
    );
}

.hero.hero--home .hero__container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  min-height: calc(100vh - var(--home-topbar-offset, 76px) - clamp(52px, 6vw, 80px));
  min-height: calc(100dvh - var(--home-topbar-offset, 76px) - clamp(52px, 6vw, 80px));
}

.hero.hero--home .hero__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0;
  min-height: 0;
  width: 100%;
}

.hero.hero--home .hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(100%, 920px);
  max-width: 920px;
  margin-inline: auto;
}

.hero.hero--home .hero__title {
  margin: 0 0 20px;
  font-size: clamp(2.35rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.hero.hero--home .hero__subtitle {
  margin: 0 0 28px;
  max-width: 36ch;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.9);
}

.hero.hero--home .hero__accentWord {
  font-family: Georgia, "Times New Roman", "Palatino Linotype", serif;
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(90deg, #ec4899, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero.hero--home .hero__cta {
  display: inline-flex;
  width: auto;
  max-width: none;
  min-height: 44px;
  padding: 10px 22px;
  align-self: center;
  flex-shrink: 0;
  margin-bottom: 0;
}

/* Search bar */
.hero.hero--home .hero__searchBar {
  flex-shrink: 0;
  width: 100%;
  max-width: none;
  margin-top: clamp(28px, 4vh, 40px);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(8, 14, 34, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.hero.hero--home .hero__searchForm {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: end;
}

.hero.hero--home .hero__searchField {
  min-width: 0;
}

.hero.hero--home .hero__searchLabel {
  display: block;
  margin-bottom: 6px;
  padding-inline: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.88);
}

.hero.hero--home .hero__searchControl {
  width: 100%;
  min-height: 44px;
  padding: 0 36px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(5, 11, 29, 0.65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
  color: #f1f5f9;
  font-size: 0.9rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hero.hero--home .hero__searchControl:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background-color: rgba(15, 23, 42, 0.75);
}

.hero.hero--home .hero__searchControl:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.hero.hero--home .hero__searchSubmit {
  min-height: 44px;
  padding: 10px 24px;
  white-space: nowrap;
  border-radius: 12px;
}

.hero.hero--home .hero__searchSubmit:focus-visible,
.hero.hero--home .hero__cta:focus-visible,
.hero.hero--home .hero__searchControl:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.75);
  outline-offset: 2px;
}

/* Reveal */
.hero.hero--home [data-hero-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero.hero--home.is-loaded [data-hero-reveal].is-visible,
.hero.hero--home [data-hero-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero.hero--home .hero__searchBar[data-hero-reveal] {
  transition-delay: 0.12s;
}

@media (max-width: 1024px) {
  .hero.hero--home {
    min-height: auto;
  }

  .hero.hero--home .hero__container {
    min-height: 0;
  }

  .hero.hero--home .hero__frame {
    padding-block: clamp(16px, 4vw, 32px);
  }

  .hero.hero--home .hero__searchForm {
    grid-template-columns: 1fr 1fr;
  }

  .hero.hero--home .hero__searchSubmit {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero.hero--home .hero__searchForm {
    grid-template-columns: 1fr;
  }

  .hero.hero--home .hero__searchBar {
    padding: 12px;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero.hero--home [data-hero-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
