/* ============================================
 * Hero Section - Full-Viewport, Parallax, Overlay
 * All values reference CSS variables from variables.css
 * ============================================ */

/* --- Hero Container --- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* --- Background Image --- */

.hero__background {
  position: absolute;
  inset: 0;
  z-index: var(--z-base);
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* --- Gradient Overlay --- */

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(45, 42, 38, 0.85) 0%,
    rgba(45, 42, 38, 0.5) 40%,
    rgba(45, 42, 38, 0.1) 70%,
    transparent 100%
  );
}

/* --- Content --- */

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
  padding-bottom: var(--space-16);
}

.hero__heading {
  font-family: var(--font-heading);
  font-size: var(--font-size-hero);
  font-weight: var(--weight-normal);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-surface);
  margin-bottom: var(--space-4);
}

.hero__subheading {
  font-family: var(--font-body);
  font-size: var(--font-size-body-lg);
  font-weight: var(--weight-normal);
  line-height: var(--leading-body);
  color: var(--color-text-on-image);
  max-width: 42ch;
  margin-bottom: var(--space-8);
}

/* CTA button on hero inherits .btn-primary styles */
.hero__cta {
  display: inline-flex;
}

/* --- Responsive --- */

/* Small phones - tighter padding */
@media (max-width: 374px) {
  .hero__content {
    padding-bottom: var(--space-12);
  }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .hero__content {
    padding-bottom: var(--space-20);
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .hero__content {
    padding-bottom: var(--space-24);
  }
}

/* --- Reduced Motion --- */

@media (prefers-reduced-motion: reduce) {
  .hero__background {
    transform: none !important;
  }
}
