/* =========================================================
   HERO V2 — Portada editorial responsiva
   Victor & Geraldina
========================================================= */

.hero-v2 {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #6a2434;
  background:
    url("../assets/images/hero-desktop.webp")
    center center / cover no-repeat;
}

.hero-v2__overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(248, 241, 230, 0.1) 0%,
      rgba(248, 241, 230, 0.04) 46%,
      rgba(248, 241, 230, 0) 72%
    );
}

.hero-v2__content {
  position: relative;
  z-index: 2;
  width: min(690px, 47vw);
  margin-left: clamp(54px, 7.2vw, 138px);
  padding: 126px 0 150px;
  text-align: center;
  animation: heroContentIn 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-v2__monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 25px;
}

.hero-v2__monogram span {
  width: clamp(42px, 5vw, 84px);
  height: 1px;
  background: rgba(106, 36, 52, 0.34);
}

.hero-v2__monogram strong {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.hero-v2__eyebrow {
  margin: 0 0 19px;
  color: #51453f;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.64rem, 0.82vw, 0.75rem);
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.hero-v2__title {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-content: center;
  column-gap: clamp(10px, 1.25vw, 22px);
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  line-height: 0.88;
  text-transform: uppercase;
}

.hero-v2__name {
  font-size: clamp(3.3rem, 5vw, 6.4rem);
  letter-spacing: 0.025em;
}

.hero-v2__ampersand {
  color: #8f8274;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 4.2vw, 5.2rem);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
}

.hero-v2__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 28px auto 22px;
  color: #697056;
}

.hero-v2__ornament span {
  width: clamp(36px, 4vw, 70px);
  height: 1px;
  background: rgba(81, 69, 63, 0.28);
}

.hero-v2__ornament b {
  font-size: 1.05rem;
  font-weight: 400;
}

.hero-v2__date,
.hero-v2__location {
  margin: 0;
  color: #51453f;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
}

.hero-v2__date {
  font-size: clamp(0.78rem, 1.15vw, 1.05rem);
  letter-spacing: 0.28em;
}

.hero-v2__location {
  margin-top: 13px;
  font-size: clamp(0.59rem, 0.78vw, 0.72rem);
  letter-spacing: 0.3em;
}

.hero-v2__scroll {
  position: absolute;
  left: 50%;
  bottom: 36px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #6a2434;
  text-decoration: none;
  opacity: 0.72;
  transform: translateX(-50%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-v2__scroll:hover,
.hero-v2__scroll:focus-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.hero-v2__scroll-line {
  position: relative;
  width: 1px;
  height: 48px;
  overflow: hidden;
  background: rgba(106, 36, 52, 0.18);
}

.hero-v2__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  animation: scrollLineDraw 2.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.hero-v2__scroll-arrow {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  animation: scrollArrow 2.8s ease-in-out infinite;
}

.hero-v2__scroll-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-v2__scroll-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollLineDraw {
  0% { transform: translateY(-100%); opacity: 0; }
  20% { opacity: 1; }
  65% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

@keyframes scrollArrow {
  0% { transform: translateY(0); opacity: 0.45; }
  30% { opacity: 1; }
  60% { transform: translateY(7px); opacity: 1; }
  100% { transform: translateY(7px); opacity: 0.35; }
}

@media (max-width: 1023px) and (min-width: 641px) {
  .hero-v2 {
    background-position: 54% center;
  }

  .hero-v2__content {
    width: min(560px, 52vw);
    margin-left: clamp(34px, 5vw, 70px);
  }

  .hero-v2__title {
    grid-template-columns: 1fr;
  }

  .hero-v2__ampersand {
    margin: -0.05em 0;
  }
}

@media (max-width: 640px) {
  .hero-v2 {
    min-height: 100svh;
    align-items: start;
    background-image: url("../assets/images/hero-mobile.webp");
    background-position: center center;
  }

  .hero-v2__overlay {
    background:
      linear-gradient(
        180deg,
        rgba(248, 241, 230, 0.02) 0%,
        rgba(248, 241, 230, 0) 70%
      );
  }

  .hero-v2__content {
    width: calc(100% - 48px);
    margin: 0 auto;
    padding: max(112px, calc(env(safe-area-inset-top) + 88px)) 0 0;
  }

  .hero-v2__monogram {
    margin-bottom: 19px;
    gap: 13px;
  }

  .hero-v2__monogram span {
    width: 38px;
  }

  .hero-v2__eyebrow {
    margin-bottom: 16px;
    font-size: 0.59rem;
    letter-spacing: 0.34em;
  }

  .hero-v2__title {
    display: flex;
    flex-direction: column;
    line-height: 0.82;
  }

  .hero-v2__name {
    font-size: clamp(3rem, 14.5vw, 4.5rem);
    letter-spacing: 0.015em;
  }

  .hero-v2__ampersand {
    margin: 0.02em 0 -0.02em;
    font-size: clamp(2.55rem, 12vw, 3.8rem);
    line-height: 0.75;
  }

  .hero-v2__ornament {
    margin: 22px auto 18px;
  }

  .hero-v2__date {
    font-size: 0.71rem;
    letter-spacing: 0.21em;
  }

  .hero-v2__location {
    margin-top: 11px;
    font-size: 0.54rem;
    letter-spacing: 0.23em;
  }

  .hero-v2__scroll {
    bottom: max(30px, calc(env(safe-area-inset-bottom) + 18px));
  }
}

@media (max-width: 640px) and (max-height: 720px) {
  .hero-v2__content {
    padding-top: 92px;
  }

  .hero-v2__monogram {
    margin-bottom: 12px;
  }

  .hero-v2__eyebrow {
    margin-bottom: 10px;
  }

  .hero-v2__ornament {
    margin-top: 15px;
    margin-bottom: 12px;
  }

  .hero-v2__scroll-line {
    height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-v2__content,
  .hero-v2__scroll-line::after,
  .hero-v2__scroll-arrow {
    animation: none;
  }

}

.hero-v2 .hero-v2__scroll {
  bottom: 120px;
}

@media (max-width: 640px) {
  .hero-v2 .hero-v2__scroll {
    bottom: 105px;
  }
}