/* ==========================================================================
   Full-bleed hero — viewport yüksekliği (cihaza göre)
   Final görsel: assets/img/hero-full-bleed.webp — 2400×1350 (16:9)
   ========================================================================== */

.oat-hero--visual {
  --oat-hero-chrome: calc(var(--topbar-h) + var(--header-h));
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #161a1e;
  padding: 0;
  /* Navbar + topbar altı kalan ekranı doldur; dvh mobil chrome’a uyum sağlar */
  min-height: calc(100vh - var(--oat-hero-chrome));
  min-height: calc(100dvh - var(--oat-hero-chrome));
  height: calc(100svh - var(--oat-hero-chrome));
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
}

.oat-hero--visual .oat-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.oat-hero--visual .oat-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  display: block;
}

/* Sol metin + alt trust için okunabilirlik */
.oat-hero--visual .oat-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(18, 22, 26, .94) 0%,
      rgba(18, 22, 26, .82) 34%,
      rgba(18, 22, 26, .42) 58%,
      rgba(18, 22, 26, .22) 100%
    ),
    linear-gradient(
      180deg,
      rgba(18, 22, 26, .28) 0%,
      transparent 26%,
      transparent 58%,
      rgba(18, 22, 26, .78) 100%
    );
}

.oat-hero--visual .oat-hero__stage {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(var(--space-4), 2.5vh, var(--space-6));
  padding-block: clamp(var(--space-5), 5vh, var(--space-8)) clamp(var(--space-4), 3vh, var(--space-6));
  min-height: 100%;
  box-sizing: border-box;
}

.oat-hero--visual .oat-hero__copy {
  max-width: 38rem;
  padding-top: clamp(0px, 2vh, var(--space-5));
}

.oat-hero--visual .oat-hero__title {
  color: #fff;
}

.oat-hero--visual .oat-hero__text {
  color: rgba(255, 255, 255, .82);
}

.oat-hero--visual .oat-trust {
  margin-top: 0;
  padding-top: clamp(var(--space-4), 2.5vh, var(--space-5));
  border-top-color: rgba(255, 255, 255, .16);
  flex: none;
}

.oat-hero--visual .oat-trust__item b { color: #fff; }
.oat-hero--visual .oat-trust__item b + span { color: rgba(255, 255, 255, .72); }

/* Alt ortada aşağı kaydır cue — trust şeridinin hemen üstü */
.oat-hero__scroll {
  align-self: center;
  margin-top: auto;
  margin-bottom: var(--space-2);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: color .2s ease;
  animation: oat-hero-scroll-in 1.1s ease forwards;
  animation-delay: 2s;
}
.oat-hero__scroll:hover,
.oat-hero__scroll:focus-visible {
  color: #fff;
}
.oat-hero__scroll-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
}
.oat-hero__scroll-chevron {
  display: block;
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, .4));
  animation: oat-hero-chevron 1.55s ease-in-out 3.1s infinite;
}
@keyframes oat-hero-scroll-in {
  to {
    opacity: .88;
    transform: translateY(0);
    pointer-events: auto;
  }
}
@keyframes oat-hero-chevron {
  0%, 100% { transform: translateY(0); opacity: .75; }
  50% { transform: translateY(8px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .oat-hero__scroll {
    opacity: .88;
    pointer-events: auto;
    transform: none;
    animation: none;
  }
  .oat-hero__scroll-chevron { animation: none; }
}

@media (max-width: 980px) {
  .oat-hero--visual .oat-hero__bg img {
    object-position: 72% center;
  }
  .oat-hero--visual .oat-hero__bg::after {
    background:
      linear-gradient(
        180deg,
        rgba(18, 22, 26, .55) 0%,
        rgba(18, 22, 26, .72) 42%,
        rgba(18, 22, 26, .88) 100%
      ),
      linear-gradient(
        90deg,
        rgba(18, 22, 26, .7) 0%,
        rgba(18, 22, 26, .35) 100%
      );
  }
  .oat-hero--visual .oat-hero__copy {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .oat-hero--visual {
    /* Kısa ekranlarda içerik taşmasın; alt mobil CTA bar (~68px) payı */
    --oat-hero-mobilebar: 68px;
    height: auto;
    min-height: calc(100svh - var(--oat-hero-chrome) - var(--oat-hero-mobilebar));
    min-height: calc(100dvh - var(--oat-hero-chrome) - var(--oat-hero-mobilebar));
  }

  .oat-hero--visual .oat-hero__stage {
    padding-bottom: var(--space-5);
  }

  .oat-hero--visual .oat-trust {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }
}

/* Çok kısa landscape / küçük yükseklik */
@media (max-height: 640px) {
  .oat-hero--visual {
    height: auto;
    min-height: calc(100dvh - var(--oat-hero-chrome));
  }
  .oat-hero--visual .oat-hero__stage {
    gap: var(--space-4);
    padding-block: var(--space-4) var(--space-4);
  }
  .oat-hero--visual .oat-hero__text {
    margin-block: var(--space-3) var(--space-4);
  }
}
