/**
 * Hero & Carousel Styles
 * Hero section and carousel/slider component
 */

.hero {
  background: var(--color-background);
  padding: 24px 0 48px;
}

/* Carousel Container */
.carousel {
  position: relative;
  width: calc(100% + 48px);
  margin-left: -24px;
  margin-right: -24px;
  overflow: hidden;
}

.carousel .container {
  padding-left: 0;
  padding-right: 0;
}

/* Carousel Track */
.carousel-track {
  display: flex;
  gap: 24px;
  align-items: center;
  transition: transform 0.5s ease;
  will-change: transform;
  /* Critical for iOS: Allow vertical scroll only */
  touch-action: pan-y;
}

/* Slide */
.slide {
  flex: 0 0 60%;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  padding: 32px 24px;
  align-items: center;
  box-sizing: border-box;
  opacity: 0.35;
  transition: opacity 0.3s ease;
  overflow: hidden;
  max-height: 75dvh;
}

.slide.is-active {
  opacity: 1;
}

/* Slide Image */
.slide-image {
  background: #ccc;
  width: 100%;
  border-radius: 20px;
  height: auto;
  min-height: 32dvh;
  max-height: 70dvh;
  overflow: hidden;
  margin: 0;
}

.slide .slide-image {
  border-radius: 16px;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Slide Content */
.slide-content {
  position: relative;
}

.slide-content h1 {
  font-family: "Aptos Display", "Aptos", sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 0.75;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--color-accent);
  margin-bottom: 10px;
  font-weight: 700;
}

.subcopy {
  font-size: 16px;
  color: var(--color-muted);
  margin-bottom: 24px;
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding-bottom: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #d0d0d0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dot.is-active {
  background: var(--color-accent);
}

/* Mobile Responsiveness */
@media (max-width: 1023px) {
  .slide {
    grid-template-columns: 1fr;
    flex: 0 0 80%;
    padding: 24px 16px;
    max-height: 100dvh;
  }

  .slide-image {
    width: 100%;
    margin: 0;
    min-height: 40dvh;
    max-height: 100dvh;
  }
}

@media (max-width: 767px) {
  .slide {
    padding: 32px 16px;
  }
}
