/**
 * Hero 50/50 Section Component
 * Split hero layout with content on left and slideshow on right
 */

.hero-5050 {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 120px;
}

/* Background Color Modifiers */
.hero-5050--bg-white {
  background-color: #fff;
}

.hero-5050--bg-light {
  background-color: #f5f5f5;
}

.hero-5050--bg-gray {
  background-color: #e8e8e8;
}

/* Grid Layout - 50/50 Split */
.hero-5050__grid {
  display: grid;
  gap: var(--space-48);
  align-items: center;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .hero-5050__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-64);
  }
}

/* Content (Left Column) */
.hero-5050__content {
  max-width: 100%;
}

.hero-5050__title {
  font-size: 2.5em;
  font-weight: 700;
  line-height: var(--lh-tight);
  color: #000;
  margin-bottom: var(--space-24);
}

@media (min-width: 768px) {
  .hero-5050__title {
    font-size: 3em;
  }
}

@media (min-width: 1024px) {
  .hero-5050__title {
    font-size: 3.5em;
  }
}

@media (min-width: 1280px) {
  .hero-5050__title {
    font-size: 4em;
  }
}

/* Hero 50/50 Title Typography Presets
 * 
 * USAGE: Add modifier class to hero-5050__title element
 * Example: <h1 class="hero-5050__title hero-5050__title--preset-bold">Your Title</h1>
 * 
 * AVAILABLE PRESETS:
 * - hero-5050__title--preset-bold: Raleway Bold, 700 weight, 1.2 line-height, -0.03em letter-spacing
 */
.hero-5050__title--preset-bold {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #000000;
  opacity: 1;
}

.hero-5050__subtitle {
  font-size: 1.125em;
  line-height: var(--lh-normal);
  color: #000;
  margin-bottom: var(--space-32);
}

@media (min-width: 768px) {
  .hero-5050__subtitle {
    font-size: 1.25em;
  }
}

@media (min-width: 1024px) {
  .hero-5050__subtitle {
    font-size: 1.375em;
  }
}

/* Hero Actions */
.hero-5050__actions {
  display: flex;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.hero-5050__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-32);
  font-size: var(--fs-300);
  font-weight: 600;
  line-height: 1;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border-radius: var(--radius-4);
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.hero-5050__button:hover,
.hero-5050__button:focus {
  background-color: var(--color-primary-hover);
}

@media (min-width: 768px) {
  .hero-5050__button {
    padding: var(--space-24) var(--space-48);
    font-size: var(--fs-400);
  }
}

/* Media (Right Column) */
.hero-5050__media {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 32px;
  overflow: hidden;
  background-color: #c4c4c4;
  aspect-ratio: 4 / 3;
}

@media (min-width: 768px) {
  .hero-5050__media {
    border-radius: 40px;
    aspect-ratio: 3 / 4;
  }
}

@media (min-width: 1024px) {
  .hero-5050__media {
    border-radius: 48px;
    width: 650px;
    height: 700px;
    aspect-ratio: auto;
  }
}

/* Single Image */
.hero-5050__single-image {
  position: relative;
  width: 100%;
  height: 100%;
}

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

/* Hero Slideshow */
.hero-5050__slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-5050__slideshow-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-5050__slide {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-5050__slide.slideshow__slide--active {
  pointer-events: auto;
  z-index: 2;
}

.hero-5050__slide.slideshow__slide--exit {
  z-index: 1;
}

/* Effect: Dissolve (Fade) */
.hero-5050__slideshow--dissolve .hero-5050__slide {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-5050__slideshow--dissolve .hero-5050__slide.slideshow__slide--active {
  opacity: 1;
}

.hero-5050__slideshow--dissolve .hero-5050__slide.slideshow__slide--exit {
  opacity: 0;
}

/* Effect: Slide (Horizontal) */
.hero-5050__slideshow--slide .hero-5050__slide {
  transform: translateX(100%);
  transition: transform 1s ease-in-out;
  opacity: 1;
}

.hero-5050__slideshow--slide .hero-5050__slide.slideshow__slide--active {
  transform: translateX(0);
  opacity: 1;
}

.hero-5050__slideshow--slide .hero-5050__slide.slideshow__slide--exit {
  transform: translateX(-100%);
  opacity: 1;
}

/* Effect: Zoom In */
.hero-5050__slideshow--zoom .hero-5050__slide {
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
}

.hero-5050__slideshow--zoom .hero-5050__slide .hero-5050__image {
  transform: scale(1.15);
  transition: transform 1.5s ease-in-out;
}

.hero-5050__slideshow--zoom .hero-5050__slide.slideshow__slide--active {
  opacity: 1;
}

.hero-5050__slideshow--zoom .hero-5050__slide.slideshow__slide--active .hero-5050__image {
  transform: scale(1);
}

.hero-5050__slideshow--zoom .hero-5050__slide.slideshow__slide--exit {
  opacity: 0;
}

/* Effect: Pan & Zoom (Ken Burns) */
.hero-5050__slideshow--pan .hero-5050__slide {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-5050__slideshow--pan .hero-5050__slide .hero-5050__image {
  transform: scale(1.1);
  transition: transform 8s ease-in-out;
}

.hero-5050__slideshow--pan .hero-5050__slide.slideshow__slide--active {
  opacity: 1;
}

.hero-5050__slideshow--pan .hero-5050__slide.slideshow__slide--active .hero-5050__image {
  transform: scale(1.2) translateX(-3%);
}

.hero-5050__slideshow--pan .hero-5050__slide.slideshow__slide--exit {
  opacity: 0;
}

.hero-5050__slideshow--pan .hero-5050__slide.slideshow__slide--exit .hero-5050__image {
  transform: scale(1.1);
}

/* Slideshow Navigation Dots */
.hero-5050__slideshow .slideshow__navigation {
  position: absolute;
  bottom: var(--space-24);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: var(--space-12);
  align-items: center;
  justify-content: center;
}

.hero-5050__slideshow .slideshow__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-5050__slideshow .slideshow__dot:hover {
  background-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.hero-5050__slideshow .slideshow__dot--active {
  background-color: rgba(255, 255, 255, 1);
  transform: scale(1.3);
}

.hero-5050__slideshow .slideshow__dot:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 1);
  outline-offset: 4px;
}

@media (min-width: 768px) {
  .hero-5050__slideshow .slideshow__navigation {
    bottom: var(--space-32);
    gap: var(--space-16);
  }

  .hero-5050__slideshow .slideshow__dot {
    width: 14px;
    height: 14px;
  }
}

/* Hero Scroll Arrow */
.hero-5050__scroll-arrow {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: transparent;
  border: 2px solid rgba(0, 0, 0, 0.3);
  color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: hero-5050-bounce 2s infinite;
}

.hero-5050__scroll-arrow:hover {
  transform: translateX(-50%) translateY(4px);
  background-color: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.5);
  color: rgba(0, 0, 0, 0.9);
}

.hero-5050__scroll-arrow:focus-visible {
  outline: 2px solid #000;
  outline-offset: 4px;
}

.hero-5050__scroll-arrow svg {
  width: 24px;
  height: 24px;
}

@keyframes hero-5050-bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-8px);
  }
  60% {
    transform: translateX(-50%) translateY(-4px);
  }
}

@media (min-width: 768px) {
  .hero-5050 {
    padding-bottom: 140px;
  }

  .hero-5050__scroll-arrow {
    bottom: 48px;
    width: 56px;
    height: 56px;
  }

  .hero-5050__scroll-arrow svg {
    width: 28px;
    height: 28px;
  }
}

/* Accessibility: Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  .hero-5050__scroll-arrow {
    animation: none;
  }
  
  .hero-5050__scroll-arrow:hover {
    transform: translateX(-50%);
  }
}

/* Mobile Order - Slideshow First */
@media (max-width: 1023px) {
  .hero-5050 {
    padding-bottom: 100px;
  }

  .hero-5050__grid {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }
  
  .hero-5050__media {
    order: -1;
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
  
  .hero-5050__scroll-arrow {
    width: 40px;
    height: 40px;
    bottom: 24px;
  }
  
  .hero-5050__scroll-arrow svg {
    width: 20px;
    height: 20px;
  }
  
  .hero-5050__slideshow,
  .hero-5050__single-image {
    max-width: 100%;
  }
  
  .hero-5050__slideshow-track {
    max-width: 100%;
  }
  
  .hero-5050__slide {
    max-width: 100%;
  }
  
  .hero-5050__image {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  
  .hero-5050__title {
    font-size: 2em;
  }
  
  .hero-5050__subtitle {
    font-size: 1em;
  }
}

