/**
 * Homepage Hero — luxury editorial campaign.
 * Scoped under .v-home-hero / .v-home-section--hero.
 * Header overlays the hero (transparent → solid on scroll).
 */

/* --------------------------------------------------------------------------
   Section shell — true full-bleed, flush, owns its height
   -------------------------------------------------------------------------- */

.v-home-section--hero {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  margin: 0;
  border: 0;
  background: var(--v-color-forest-deep);
}

/*
 * Pull the hero up underneath the transparent header so the image sits
 * immediately behind it (no paper strip). Uses the header height token
 * only — announcement bar stays above in normal flow when enabled.
 */
body.v-has-transparent-header .v-home-section--hero,
body.v-has-transparent-header .v-home > .v-section:first-child {
  margin-top: calc(-1 * var(--v-header-height));
}

.v-home-section--hero > .v-section__inner,
.v-home-section--hero .v-section__container {
  position: relative;
  z-index: 2;
  min-height: inherit;
  height: 100%;
  padding-inline: 0;
}

.v-home-section--hero .v-container {
  max-width: none;
  padding-inline: 0;
  height: 100%;
}

/* --------------------------------------------------------------------------
   Hero root — campaign stage
   -------------------------------------------------------------------------- */

.v-home-hero {
  --v-hero-text: var(--v-color-paper);
  --v-hero-overlay: 0.42;

  position: relative;
  display: flex;
  min-height: 680px;
  min-height: max(680px, 92svh);
  width: 100%;
  color: var(--v-hero-text);
  isolation: isolate;
}

@media (min-width: 1024px) {
  .v-home-hero {
    min-height: 920px;
    min-height: clamp(920px, 100svh, 980px);
  }
}

/* --------------------------------------------------------------------------
   Media + layered lighting
   -------------------------------------------------------------------------- */

.v-home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--v-color-forest-deep);
}

.v-home-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/*
 * Three quiet light layers (no candy gradients):
 * 1. top scrim   — keeps the overlaid header legible
 * 2. copy shadow — anchors the text side
 * 3. base veil   — global contrast, driven by the Customizer opacity
 */
.v-home-hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(12, 14, 12, calc(var(--v-hero-overlay) * 0.85)) 0%,
      rgba(12, 14, 12, 0) 18%
    ),
    linear-gradient(
      78deg,
      rgba(12, 14, 12, calc(var(--v-hero-overlay) * 1.25)) 0%,
      rgba(12, 14, 12, calc(var(--v-hero-overlay) * 0.55)) 42%,
      rgba(12, 14, 12, 0.06) 72%,
      rgba(12, 14, 12, 0) 100%
    ),
    rgba(12, 14, 12, calc(var(--v-hero-overlay) * 0.35));
}

/* Mirror the copy shadow when content sits right */
.v-home-hero--desk-right .v-home-hero__overlay {
  transform: scaleX(-1);
}

/* Centered copy: symmetric, slightly stronger base veil */
.v-home-hero--desk-center .v-home-hero__overlay {
  background:
    linear-gradient(
      to bottom,
      rgba(12, 14, 12, calc(var(--v-hero-overlay) * 0.85)) 0%,
      rgba(12, 14, 12, 0) 18%
    ),
    linear-gradient(
      to top,
      rgba(12, 14, 12, calc(var(--v-hero-overlay) * 1.1)) 0%,
      rgba(12, 14, 12, 0.05) 55%
    ),
    rgba(12, 14, 12, calc(var(--v-hero-overlay) * 0.45));
}

/* --------------------------------------------------------------------------
   Content
   -------------------------------------------------------------------------- */

.v-home-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: inherit;
  padding: var(--v-space-8) var(--v-gutter);
  padding-top: calc(var(--v-header-height) + var(--v-space-8));
  padding-bottom: clamp(3rem, 9vw, 5rem);
}

/* Mobile vertical positions */
.v-home-hero--mob-bottom .v-home-hero__content {
  align-items: flex-end;
  justify-content: flex-start;
}

.v-home-hero--mob-center .v-home-hero__content {
  align-items: center;
  justify-content: flex-start;
}

.v-home-hero--mob-top .v-home-hero__content {
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: calc(var(--v-header-height) + clamp(3rem, 12vw, 5rem));
}

.v-home-hero__copy {
  display: flex;
  flex-direction: column;
  gap: var(--v-space-5);
  width: 100%;
  max-width: 34rem;
}

/* Eyebrow — hairline rule + tracked caps */
.v-home-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--v-space-3);
  margin: 0;
  font-size: 0.6875rem;
  font-weight: var(--v-font-weight-semibold);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--v-hero-text);
  opacity: 0.92;
}

.v-home-hero__eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}

/* Heading — editorial display scale */
.v-home-hero__heading {
  margin: 0;
  font-family: var(--v-font-display);
  font-weight: var(--v-font-weight-regular);
  font-size: clamp(2.75rem, 11vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--v-hero-text);
  text-wrap: balance;
}

.v-home-hero__desc {
  margin: 0;
  max-width: 27rem;
  font-family: var(--v-font-body);
  font-size: var(--v-text-md);
  line-height: var(--v-leading-relaxed);
  font-weight: var(--v-font-weight-light);
  letter-spacing: 0.01em;
  color: var(--v-hero-text);
  opacity: 0.88;
}

/* --------------------------------------------------------------------------
   CTAs — premium proportions
   -------------------------------------------------------------------------- */

.v-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--v-space-3);
  margin-top: var(--v-space-3);
}

.v-home-hero .v-btn {
  --v-btn-height: 3.375rem;                 /* 54px */
  --v-btn-px: 2.375rem;
  --v-btn-fs: 0.75rem;

  min-height: var(--v-btn-height);
  border-radius: 0;                          /* sharp, editorial */
  letter-spacing: 0.18em;
  font-weight: var(--v-font-weight-semibold);
  transition:
    background-color var(--v-duration-normal) var(--v-ease-standard),
    color var(--v-duration-normal) var(--v-ease-standard),
    border-color var(--v-duration-normal) var(--v-ease-standard),
    letter-spacing var(--v-duration-normal) var(--v-ease-standard);
}

.v-home-hero .v-btn:hover {
  letter-spacing: 0.22em;
}

.v-home-hero .v-btn:active {
  transform: none;
}

/* Primary: paper fill → hollow on hover (Saint Laurent pattern) */
.v-home-hero .v-btn--primary,
.v-home-hero .v-home-hero__btn--primary {
  --v-btn-bg: var(--v-hero-text);
  --v-btn-color: var(--v-color-ink);
  --v-btn-border: var(--v-hero-text);
  --v-btn-hover-bg: transparent;
  --v-btn-hover-color: var(--v-hero-text);
}

.v-home-hero .v-home-hero__btn--primary:hover {
  border-color: var(--v-hero-text);
}

/* Secondary: hairline outline → paper fill on hover */
.v-home-hero .v-btn--secondary {
  --v-btn-bg: transparent;
  --v-btn-color: var(--v-hero-text);
  --v-btn-border: rgba(247, 245, 240, 0.65);
  --v-btn-hover-bg: var(--v-hero-text);
  --v-btn-hover-color: var(--v-color-ink);
}

.v-home-hero .v-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(12, 14, 12, 0.4), 0 0 0 4px var(--v-hero-text);
}

/* Stack CTAs on very small screens */
@media (max-width: 379.98px) {
  .v-home-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .v-home-hero .v-btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Desktop refinements
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {
  .v-home-hero__content {
    padding: var(--v-space-10) clamp(3rem, 7vw, 6.5rem);
    padding-top: calc(var(--v-header-height) + var(--v-space-10));
  }

  .v-home-hero--desk-left .v-home-hero__content {
    align-items: center;
    justify-content: flex-start;
  }

  .v-home-hero--desk-center .v-home-hero__content {
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .v-home-hero--desk-center .v-home-hero__copy {
    align-items: center;
  }

  .v-home-hero--desk-center .v-home-hero__eyebrow::before {
    display: none;
  }

  .v-home-hero--desk-center .v-home-hero__desc {
    margin-inline: auto;
  }

  .v-home-hero--desk-center .v-home-hero__actions {
    justify-content: center;
  }

  .v-home-hero--desk-right .v-home-hero__content {
    align-items: center;
    justify-content: flex-end;
    text-align: right;
  }

  .v-home-hero--desk-right .v-home-hero__copy {
    align-items: flex-end;
  }

  .v-home-hero--desk-right .v-home-hero__eyebrow {
    flex-direction: row-reverse;
  }

  .v-home-hero--desk-right .v-home-hero__actions {
    justify-content: flex-end;
  }

  .v-home-hero__heading {
    font-size: clamp(3.5rem, 5.2vw, 5rem);
  }

  .v-home-hero__desc {
    font-size: var(--v-text-lg);
    opacity: 0.85;
  }

  .v-home-hero__copy {
    gap: var(--v-space-6);
  }
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .v-home-hero,
  .v-home-hero * {
    transition: none !important;
    animation: none !important;
  }
}
