/* ============================================
   DERELİ MARİNA — Hero (Video Banner)
   ============================================ */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 480px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  display: block;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 18, 16, 0.28) 0%,
    rgba(20, 18, 16, 0.12) 50%,
    rgba(20, 18, 16, 0.55) 100%
  );
}

/* Wave separator at bottom */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 60px;
  background: var(--color-paper);
  clip-path: ellipse(70% 100% at 50% 100%);
  z-index: 2;
}

/* Keep btn classes for rest of page */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn-primary {
  background: var(--color-copper);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-copper-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(201, 123, 61, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(247, 244, 237, 0.4);
}

.btn-ghost:hover {
  border-color: var(--color-white);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero {
    height: 60vh;
    min-height: 320px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 50vh;
    min-height: 260px;
  }
}


/* Animated manufacturing/sales headline over video */
.hero-video-overlay {
  background:
    linear-gradient(90deg, rgba(20, 18, 16, 0.6) 0%, rgba(20, 18, 16, 0.4) 50%, rgba(20, 18, 16, 0.6) 100%),
    linear-gradient(180deg, rgba(20, 18, 16, 0.2) 0%, rgba(20, 18, 16, 0.5) 100%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.hero-banner-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 2rem;
  color: var(--color-white);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-copper);
  margin: 0 auto 1.25rem;
  opacity: 0;
  animation: heroKickerIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

.hero-kicker::before, .hero-kicker::after {
  content: '';
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.hero-rotator {
  position: relative;
  width: min(1000px, 94vw);
  min-height: clamp(6.5rem, 12vw, 10.5rem);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.hero-rotator span {
  position: absolute;
  inset: 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(30px);
  animation: heroTitleRotate 12s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.hero-rotator span:nth-child(2) {
  animation-delay: 4s;
}

.hero-rotator span:nth-child(3) {
  animation-delay: 8s;
}

.hero-banner-content p {
  max-width: 58ch;
  color: rgba(247, 244, 237, 0.82);
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.75;
  margin: 0 auto 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroCopyIn 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

.hero-banner-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  animation: heroCopyIn 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.72s forwards;
}

@keyframes heroTitleRotate {
  0% { opacity: 0; transform: translateY(30px); }
  7% { opacity: 1; transform: translateY(0); }
  27% { opacity: 1; transform: translateY(0); }
  34% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 0; transform: translateY(-30px); }
}

@keyframes heroKickerIn {
  to { opacity: 1; }
}

@keyframes heroCopyIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .hero-banner-content {
    padding-top: 3rem;
  }

  .hero-rotator {
    min-height: clamp(7.5rem, 20vw, 10rem);
  }

  .hero-rotator span {
    font-size: clamp(2.0rem, 9vw, 3.8rem);
    width: 100%;
  }

  .hero-banner-content p {
    max-width: 34ch;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 74vh;
    min-height: 520px;
  }

  .hero-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  .hero-rotator span {
    font-size: clamp(1.8rem, 10vw, 2.8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-rotator span {
    animation: none;
    opacity: 0;
    transform: none;
    filter: none;
  }
  .hero-rotator span:first-child {
    opacity: 1;
  }
  .hero-kicker,
  .hero-banner-content p,
  .hero-banner-actions {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Force hero copy to stay on top of the video */
.hero-banner-content {
  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding-top: clamp(4rem, 8vh, 7rem) !important;
  padding-bottom: 4rem !important;
}

/* User-requested animated banner headings: keep active even if system reduce-motion is on */
.hero-rotator span {
  animation: heroTitleRotate 12s cubic-bezier(0.16, 1, 0.3, 1) infinite !important;
}

.hero-rotator span:nth-child(2) {
  animation-delay: 4s !important;
}

.hero-rotator span:nth-child(3) {
  animation-delay: 8s !important;
}

.hero-kicker,
.hero-banner-content p,
.hero-banner-actions {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-rotator span {
    animation: heroTitleRotate 12s cubic-bezier(0.16, 1, 0.3, 1) infinite !important;
  }
  .hero-rotator span:nth-child(2) { animation-delay: 4s !important; }
  .hero-rotator span:nth-child(3) { animation-delay: 8s !important; }
}
