/* ==========================================================================
   HOME HERO — redesign. Pure presentation: the block template's logic
   (login-first CTA, download attribute, etc.) is unchanged. Slides under the
   transparent header (body reserves 125px for it). Loaded only where the
   hero block renders.
   ========================================================================== */

body:has(.menu-wrapper-full-width) .hero {
  --ink: #0f243e;
  --lime: #a6cf37;
  --teal: #52cfae;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --pad: clamp(1.5rem, 4vw, 4.5rem);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  margin-top: -125px;
  height: clamp(580px, 90vh, 840px);
  background: #0b1d33;
  border-radius: 0 0 clamp(26px, 4vw, 52px) clamp(26px, 4vw, 52px);
  font-family: var(--sans);
}

/* ----- Image + refined overlay ------------------------------------------- */
body:has(.menu-wrapper-full-width) .hero .hero__image {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  position: relative;
  overflow: hidden;
}
body:has(.menu-wrapper-full-width) .hero .hero__image picture { display: block; height: 100%; }
body:has(.menu-wrapper-full-width) .hero .hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform-origin: 70% 40%;
  animation: hero-zoom 2.8s var(--ease) both;
}
body:has(.menu-wrapper-full-width) .hero .hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  isolation: auto;
  background:
    radial-gradient(46rem 26rem at 0% 100%, rgba(166, 207, 55, 0.24), transparent 70%),
    linear-gradient(0deg, rgba(8, 24, 44, 0.78) 0%, rgba(8, 24, 44, 0.25) 42%, rgba(8, 24, 44, 0) 70%),
    linear-gradient(90deg, rgba(8, 24, 44, 0.82) 0%, rgba(8, 24, 44, 0.5) 40%, rgba(8, 24, 44, 0.06) 78%);
}
/* soft veil at the very top so the transparent header stays readable */
body:has(.menu-wrapper-full-width) .hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 12rem;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 24, 44, 0.55), rgba(8, 24, 44, 0));
  pointer-events: none;
}

/* ----- Content ----------------------------------------------------------- */
body:has(.menu-wrapper-full-width) .hero .hero__content {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  position: relative;
  z-index: 3;
  align-self: end;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 125px var(--pad) clamp(5.5rem, 12vh, 7rem);
}
@media (min-width: 900px) {
  body:has(.menu-wrapper-full-width) .hero .hero__content { align-self: center; padding-bottom: clamp(5rem, 10vh, 6.5rem); }
}

body:has(.menu-wrapper-full-width) .hero .hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  padding: 0.5rem 1rem 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font: 800 0.72rem/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
}
body:has(.menu-wrapper-full-width) .hero .hero__eyebrow-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lime), var(--teal));
  box-shadow: 0 0 0 4px rgba(166, 207, 55, 0.3);
}

body:has(.menu-wrapper-full-width) .hero .hero__content--title {
  max-width: 16ch;
  margin: 0;
  font: 300 clamp(2.5rem, 6.4vw, 5.6rem)/1.02 var(--serif);
  letter-spacing: -0.018em;
  word-spacing: 0.06em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
body:has(.menu-wrapper-full-width) .hero .hero__content--body {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  font: 500 clamp(1rem, 1.5vw, 1.2rem)/1.7 var(--sans);
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.88);
}
body:has(.menu-wrapper-full-width) .hero .hero__content--body p { margin: 0 0 0.6em; }
body:has(.menu-wrapper-full-width) .hero .hero__content--body p:last-child { margin-bottom: 0; }

/* Call to action (the link itself and its logic live in the template) */
body:has(.menu-wrapper-full-width) .hero .hero__content--cta { margin-top: 2.25rem; }
body:has(.menu-wrapper-full-width) .hero .hero__content--cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: auto;
  height: auto;
  padding: 1.05rem 1.9rem;
  border: 0;
  border-radius: 999px;
  font: 800 0.98rem/1 var(--sans);
  letter-spacing: 0;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(120deg, #a6cf37 0%, #c2e55e 50%, #6fdcb5 100%);
  box-shadow: 0 16px 34px -14px rgba(120, 190, 40, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, gap 0.35s var(--ease);
}
body:has(.menu-wrapper-full-width) .hero .hero__content--cta a::after {
  content: "→";
  font-size: 1.1em;
  line-height: 1;
}
body:has(.menu-wrapper-full-width) .hero .hero__content--cta a:hover,
body:has(.menu-wrapper-full-width) .hero .hero__content--cta a:focus-visible {
  gap: 1.1rem;
  transform: translateY(-3px);
  background: linear-gradient(120deg, #b6dc4c 0%, #d0ec80 50%, #86e4c3 100%);
  box-shadow: 0 22px 40px -14px rgba(120, 190, 40, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
body:has(.menu-wrapper-full-width) .hero .hero__content--cta a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ----- Scroll cue -------------------------------------------------------- */
body:has(.menu-wrapper-full-width) .hero .hero__scroll {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.6rem 1rem 0.5rem;
  border: 0;
  border-radius: 18px;
  background: transparent;
  font: 700 0.72rem/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.35s var(--ease);
}
body:has(.menu-wrapper-full-width) .hero .hero__scroll:hover,
body:has(.menu-wrapper-full-width) .hero .hero__scroll:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(-50%) translateY(-3px);
}
body:has(.menu-wrapper-full-width) .hero .hero__scroll:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (min-width: 700px) and (min-height: 600px) {
  body:has(.menu-wrapper-full-width) .hero .hero__scroll { display: flex; }
}
body:has(.menu-wrapper-full-width) .hero .hero__scroll-mouse {
  position: relative;
  width: 1.5rem;
  height: 2.4rem;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
}
body:has(.menu-wrapper-full-width) .hero .hero__scroll-mouse::after {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 50%;
  width: 0.28rem;
  height: 0.28rem;
  margin-left: -0.14rem;
  border-radius: 50%;
  background: var(--lime);
  animation: hero-wheel 1.9s var(--ease) infinite;
}

/* ----- Motion ------------------------------------------------------------ */
@keyframes hero-zoom { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes hero-wheel { 0% { opacity: 0; transform: translateY(0); } 25% { opacity: 1; } 75% { opacity: 1; transform: translateY(0.85rem); } 100% { opacity: 0; transform: translateY(0.85rem); } }

body:has(.menu-wrapper-full-width) .hero .hero__eyebrow { animation: hero-rise 0.9s var(--ease) 0.15s both; }
body:has(.menu-wrapper-full-width) .hero .hero__content--title { animation: hero-rise 1s var(--ease) 0.3s both; }
body:has(.menu-wrapper-full-width) .hero .hero__content--body { animation: hero-rise 1s var(--ease) 0.45s both; }
body:has(.menu-wrapper-full-width) .hero .hero__content--cta { animation: hero-rise 1s var(--ease) 0.6s both; }

@media (prefers-reduced-motion: reduce) {
  body:has(.menu-wrapper-full-width) .hero .hero__image img,
  body:has(.menu-wrapper-full-width) .hero .hero__eyebrow,
  body:has(.menu-wrapper-full-width) .hero .hero__content--title,
  body:has(.menu-wrapper-full-width) .hero .hero__content--body,
  body:has(.menu-wrapper-full-width) .hero .hero__content--cta,
  body:has(.menu-wrapper-full-width) .hero .hero__scroll-mouse::after { animation: none; }
  body:has(.menu-wrapper-full-width) .hero .hero__content--cta a { transition: none; }
}
