/* Marelyo V2 — homepage visual refinements. */

.hero-visual.has-photo,
.feature-story-visual.has-photo,
.product-media {
  overflow: hidden;
}

.hero-photo,
.story-photo,
.product-preview-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual.has-photo {
  display: block;
  min-height: 550px;
  background: #f5efe9;
}

.hero-visual.has-photo::before,
.hero-visual.has-photo::after {
  display: none;
}

.hero-photo {
  position: absolute;
  inset: 0;
}

.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(62, 48, 43, 0) 52%, rgba(62, 48, 43, 0.2) 100%);
}

.hero-photo-badge {
  position: absolute;
  z-index: 2;
  left: 28px;
  bottom: 28px;
  display: grid;
  gap: 2px;
  min-width: 190px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  background: rgba(255, 250, 247, 0.9);
  box-shadow: 0 12px 30px rgba(58, 42, 35, 0.12);
  backdrop-filter: blur(8px);
}

.hero-photo-badge strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.hero-photo-badge small {
  color: var(--marelyo-muted);
}

.product-media {
  aspect-ratio: 1;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  color: rgba(62, 48, 43, 0.8);
}

.product-preview-photo {
  transition: transform 0.28s ease;
}

.v1-product-card:hover .product-preview-photo {
  transform: scale(1.025);
}

.feature-story-visual.has-photo {
  position: relative;
  display: block;
  min-height: 480px;
  background: #f4efe9;
}

.story-photo {
  position: absolute;
  inset: 0;
}

/* Keep the promotional wheel fully usable on shorter laptop screens. */
.marelyo-wheel-overlay {
  align-items: center;
}

.marelyo-wheel-modal {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

@media (max-height: 900px) and (min-width: 601px) {
  .marelyo-wheel-modal {
    width: min(100%, 620px);
    padding: 22px 30px 26px;
  }

  .wheel-stage {
    width: min(52vh, 330px);
    margin-bottom: 14px;
  }

  .wheel-center {
    width: 64px;
    height: 64px;
    font-size: 1.8rem;
  }

  .wheel-copy .eyebrow {
    margin-bottom: 6px;
  }

  .wheel-copy h2 {
    font-size: clamp(2rem, 5vh, 3rem);
  }

  .wheel-subtitle {
    margin-bottom: 6px;
  }

  .wheel-copy > p:not(.eyebrow):not(.wheel-subtitle) {
    margin: 6px 0;
  }

  .wheel-form {
    margin-top: 12px;
  }

  .wheel-result {
    margin-top: 6px;
    min-height: 20px;
  }
}

@media (max-width: 900px) {
  .hero-visual.has-photo {
    min-height: 430px;
  }

  .feature-story-visual.has-photo {
    min-height: 410px;
  }
}

@media (max-width: 600px) {
  .hero-visual.has-photo {
    min-height: 380px;
  }

  /* On phones, keep the hero photo unobstructed. */
  .hero-photo-badge,
  .hero-card-small {
    display: none !important;
  }

  .feature-story-visual.has-photo {
    min-height: 360px;
  }

  .marelyo-wheel-overlay {
    align-items: start;
  }

  .marelyo-wheel-modal {
    max-height: calc(100dvh - 20px);
  }
}
