/* ===================================
   Engadin Now - Hero Section
   =================================== */

.home-hero-section {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: calc(-1 * var(--header-height, 56px));
  margin-bottom: var(--space-2xl);
  padding: var(--space-3xl) var(--space-lg);
  padding-top: calc(var(--header-height, 56px) + var(--space-2xl));
  min-height: 400px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-lg);

  overflow: hidden;
}

/* Background image layers */
.hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
  image-orientation: none;
  transform: none;
}

.hero-bg-layer.active {
  opacity: 1;
}

/* Ensure content is above background */
.home-hero-section > *:not(.hero-bg-layer) {
  position: relative;
  z-index: 1;
}

/* Logo styling */
.hero-logo {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  background: white;
  padding: 2px;
}

/* Title styling */
.hero-title {
  font-size: var(--text-large);
  font-weight: var(--weight-semibold);
  color: white;
  margin: 0;
  letter-spacing: -0.5px;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Subtitle styling */
.hero-subtitle {
  font-size: var(--text-body);
  color: white;
  line-height: 1.6;
  margin: 0;
  max-width: 400px;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */

/* Mobile */
@media (max-width: 768px) {
  .home-hero-section {
    padding: var(--space-2xl) var(--space-md);
    gap: var(--space-md);
    min-height: 350px;
  }

  .hero-logo {
    width: 80px;
    height: 80px;
  }

  .hero-title {
    font-size: var(--text-medium);
  }

  .hero-subtitle {
    font-size: var(--text-small);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .home-hero-section {
    padding: var(--space-4xl) var(--space-xl);
    gap: var(--space-xl);
    min-height: 500px;
  }

  .hero-logo {
    width: 120px;
    height: 120px;
  }

  .hero-title {
    font-size: var(--text-xlarge);
  }
}
