
/*
  LastPick - Hero Section
  This file contains styles for the hero section.
*/

.hero {
  position: relative;
  display: grid;
  /* FIX: Use min-height to ensure content is not crushed by layout changes. */
  min-height: clamp(70vh, 75vh, 80vh);
  overflow: hidden;
  isolation: isolate;
  /* FIX: Pull hero up to sit underneath the padded body and fixed header. */
  margin-top: calc(-1 * var(--header-height));
  /* REFINEMENT: Further reduced bottom margin for a smoother transition. */
  margin-bottom: clamp(2rem, 4vw, 3rem);
  perspective: 1000px;
  --bottle-y: 0px;
  --bottle-rotate: 0deg;
  --hero-pointer-x: 0px;
  --hero-pointer-y: 0px;
  --hero-parallax-y: 0px;
}

.hero-bg,
.hero-overlay,
.hero-decoration,
.hero-content {
  /* FIX: Position all hero children within the same grid area to allow for absolute positioning. */
  grid-area: 1 / 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(8, 56, 38, 0.7) 0%, rgba(8, 56, 38, 0.5) 30%, rgba(8, 56, 38, 0.15) 55%, transparent 80%);
}

.hero-decoration {
  display: none;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: start;
  padding-left: clamp(1.25rem, 4.6vw, 4.5rem);
  max-width: min(32rem, 42%);
  color: var(--warm-cream);
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: translateZ(0);
  will-change: transform;
}

.hero-content h1 {
  font-family: var(--font-primary);
  font-size: clamp(2.65rem, 6.6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0;
  text-transform: none; /* Override if any global uppercase is set */
}

/* ========================================================= */
/* Home Hero Specific Styles                                 */
/* ========================================================= */
.home-hero {
  background-image: url('assets/images/hero/desktop/hero-bg.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 35%;
}