/* ===================================
   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) + 16px);
  min-height: 340px;

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

  overflow: hidden;
}

.home-hero-section::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 90px;
  background: linear-gradient(
    to bottom,
    rgba(6, 14, 21, 0) 0%,
    var(--bg-secondary, #eef2f6) 85%
  );
  z-index: 0;
  pointer-events: none;
}

/* 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 {
  display: none;
  width: 120px;
  height: 120px;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.25),
    0 4px 12px rgba(15, 23, 42, 0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  object-fit: contain;
  position: relative;
  overflow: hidden;
}

.hero-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0) 55%, rgba(220, 225, 233, 0.7) 100%);
  pointer-events: none;
}

/* Title styling */
.hero-title {
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: calc(var(--text-large) * 1.85);
  font-weight: var(--weight-semibold);
  color: white;
  margin: 0;
  letter-spacing: -0.5px;
  text-shadow:
    0 10px 28px rgba(13, 27, 42, 0.5),
    0 3px 10px rgba(13, 27, 42, 0.4);
}

/* Subtitle styling */
.hero-subtitle {
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: calc(var(--text-body) * 1.3);
  font-weight: 500;
  color: white;
  line-height: 1.6;
  margin: 0;
  max-width: 500px;
  text-shadow:
    0 6px 18px rgba(13, 27, 42, 0.35),
    0 2px 6px rgba(13, 27, 42, 0.3);
}

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

/* Mobile */
@media (max-width: 768px) {
  .home-hero-section {
    padding: var(--space-2xl) var(--space-md);
    padding-top: calc(var(--header-height, 56px) + var(--space-xl) + 8px);
    gap: var(--space-md);
    min-height: 300px;
  }

  .hero-logo {
    width: 95px;
    height: 95px;
    padding: 8px;
  }

  .hero-title {
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 24px;
  }

  .hero-subtitle {
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 17px;
    font-weight: 500;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .home-hero-section {
    padding: var(--space-4xl) var(--space-xl);
    padding-top: calc(var(--header-height, 56px) + var(--space-3xl) + 18px);
    gap: var(--space-lg);
    min-height: 480px;
  }

  .hero-logo {
    width: 140px;
    height: 140px;
    padding: 14px;
  }

  .hero-title {
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: calc(var(--text-xlarge) * 1.4);
  }
}
