/*
  Hero Section
  Styles for template-parts/sections/hero.php
*/

.hero-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--color-bg);
  padding-top: 136px;
  padding-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section__media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: hero-media-fade-in 900ms ease forwards;
}

.hero-section__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: blur(2px) contrast(0.85) saturate(0.8);
  transform: scale(1.03);
  display: block;
}

.hero-section__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 20%, rgba(226, 199, 149, 0.18), transparent 45%),
    linear-gradient(180deg, rgba(250, 248, 243, 0.92) 0%, rgba(250, 248, 243, 0.86) 45%, rgba(250, 248, 243, 0.92) 75%, rgba(250, 248, 243, 1) 100%);
}

@keyframes hero-media-fade-in {
  to {
    opacity: 1;
  }
}

.hero-section__inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
}

@media (prefers-reduced-motion: reduce) {
  .hero-section__video {
    display: none !important;
  }
}

.hero-section__eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  /* 12px */
  font-weight: 400;
  color: rgba(46, 65, 46, 0.85);
  background-color: rgba(46, 65, 46, 0.05);
  border: 1px solid rgba(46, 65, 46, 0.06);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4);
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.hero-section__title {
  font-family: var(--font-heading);
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
  line-height: 0.95;
  margin-bottom: 0;
}

.hero-section__title-main,
.hero-section__title-accent {
  display: block;
}

.hero-section__title-main {
  font-size: clamp(2.8rem, 5.8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: #2E412E;
}

.hero-section__title-accent {
  margin-top: 0.12em;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-section__description {
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  line-height: 1.65;
  color: rgba(46, 65, 46, 0.85);
  max-width: 720px;
  margin-bottom: 0;
}

.hero-section__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  align-items: center;
}

.hero-section__social-proof {
  margin-top: var(--space-12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  width: 100%;
}

.hero-section__social-proof-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(46, 65, 46, 0.5);
  margin-bottom: 0;
}

.hero-section__logo-carousel {
  overflow: hidden;
  width: 100%;
  max-width: 860px;
  position: relative;
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.hero-section__logo-track {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  width: max-content;
  animation: logo-scroll 30s linear infinite;
}

.hero-section__logo-track:hover {
  animation-play-state: paused;
}

.hero-section__logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  flex-shrink: 0;
}

.hero-section__logo-img {
  max-height: 20px;
  width: auto;
  opacity: 0.55;
  filter: grayscale(1) brightness(0.3) contrast(1.1);
  transition: opacity var(--transition-fast) ease, filter var(--transition-fast) ease;
}

.hero-section__logo-item:hover .hero-section__logo-img {
  opacity: 1;
  filter: grayscale(0) brightness(0.2) contrast(1);
}

@keyframes logo-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Responsive Rules */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 148px;
    padding-bottom: 40px;
  }

  .hero-section__video {
    opacity: 0.06;
  }

  .hero-section__video {
    opacity: 1;
  }

  .hero-section__logo-track {
    gap: var(--space-6);
    animation-duration: 20s;
  }

  .hero-section__title {
    max-width: 680px;
  }

  .hero-section__title-main {
    font-size: clamp(2.15rem, 9vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
  }

  .hero-section__title-accent {
    max-width: 92%;
    margin-inline: auto;
    margin-top: 0.18em;
    font-size: clamp(1.55rem, 7vw, 2.4rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-top: 140px;
    padding-bottom: 40px;
  }

  .hero-section__video {
    opacity: 1;
  }

  .hero-section__eyebrow {
    font-size: 11px;
    padding: 6px 12px;
    text-align: center;
    line-height: 1.3;
    white-space: normal;
    max-width: 90%;
  }

  .hero-section__actions {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin-inline: auto;
    gap: var(--space-3);
  }

  .hero-section__actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero-section__logo-img {
    max-height: 16px;
  }

  .hero-section__title-main {
    font-size: clamp(2rem, 9.5vw, 2.75rem);
    line-height: 1.04;
  }

  .hero-section__title-accent {
    max-width: 94%;
    font-size: clamp(1.35rem, 7.2vw, 2rem);
    line-height: 1.08;
  }

  .hero-section__description {
    font-size: 1rem;
    line-height: 1.55;
    max-width: 92%;
    margin-inline: auto;
  }
}

@media (max-width: 360px) {
  .hero-section__title-main {
    font-size: clamp(1.8rem, 8.5vw, 2.25rem);
  }

  .hero-section__title-accent {
    font-size: clamp(1.2rem, 6vw, 1.6rem);
  }
}