/* Custom Component Styles for Home Page specific sections */

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-negative);
  background: var(--color-dark);
}

.hero-img {
  width: 100%;
  height: 130%; /* Oversize to prevent gap during parallax */
  object-fit: cover;
  position: absolute;
  top: -15%; /* Center the oversized image to hide edges and gaps */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, rgba(26,26,26,0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: var(--z-normal);
  max-width: 800px;
}

.hero-title {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
  font-family: var(--font-main);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: var(--color-white);
  border-radius: 2px;
  animation: scrollWheel 2s infinite ease-in-out;
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Timeline Grid */
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

/* Wine Grid */
.wines-teaser {
  background-color: var(--color-light);
}
.wine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.wine-card {
  display: block;
}

.wine-card-img-wrapper {
  aspect-ratio: 3/4;
  margin-bottom: var(--space-md);
}

.wine-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Utilities */
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

@media (max-width: 900px) {
  .timeline-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .wine-grid { grid-template-columns: 1fr; }
}
