/**
 * Section: Hero
 * Ported from .docs/mockup/css/sections.css (HERO block + its rules in the
 * shared responsive block). Tokens only — no hardcoded colours or sizes.
 */

.hero {
  background: var(--coastal-soft);
  padding-block: var(--space-xl) 0;
  padding-inline: var(--space-gutter);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-xl);
  align-items: end;
  min-height: 78vh;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  padding-bottom: var(--space-2xl);
  max-width: 600px;
}

.hero-title-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.hero-title-group .eyebrow {
  line-height: 1;
}

.hero h1 {
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.96;
  color: var(--deep-ocean);
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
  letter-spacing: -0.04em;
}

.hero-sub {
  font-size: var(--text-lead);
  line-height: 1.55;
  color: var(--charcoal);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
  flex-wrap: wrap;
  margin-top: var(--space-xs);
}

.hero-slider {
  position: relative;
  height: 78vh;
  border-radius: 4px;
  overflow: hidden;
  perspective: 1200px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform-origin: left center;
  transform: rotateY(-90deg);
  opacity: 0;
  transition: transform 0.7s var(--ease-out), opacity 0.7s ease;
  backface-visibility: hidden;
}

.hero-slide.is-active {
  transform: rotateY(0deg);
  opacity: 1;
}

.hero-slide.is-exiting {
  transform: rotateY(90deg);
  opacity: 0;
}

.hero-slider-controls {
  display: flex;
  gap: 6px;
}

.hero-slider-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  color: var(--deep-ocean);
  transition: background var(--duration-fast), color var(--duration-fast);
}

.hero-slider-btn:hover {
  background: var(--deep-ocean);
  color: var(--off-white);
}

.hero-slider-btn .material-symbols-outlined {
  font-size: 20px;
}

.hero-image-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 3;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(8px);
  padding: var(--space-2xs) var(--space-s);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--deep-ocean);
}

.hero-slider-bottom {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 2;
}


/* === RESPONSIVE === */
@media (max-width: 980px) {
  .hero {
    padding-block: var(--space-l) 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-m);
    min-height: auto;
  }

  .hero-content {
    padding-bottom: 0;
  }

  .hero-slider {
    height: 56vh;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    height: 44vh;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    justify-content: center;
  }

  .hero-image-caption {
    bottom: auto;
    left: auto;
    top: 16px;
    right: 16px;
  }
}
