/* ─────────────────────────────────────────────────────────────────────
   AVENU — hero
   Full-bleed photo carousel. Snitch-style: model-led, bottom-left
   overlay, fade-or-slide transitions, pagination dots inside the
   section. CTAs are on-image variants (solid white + outlined white) —
   scoped to this section, not added to common.css primitives.
   Responsive at 1440 / 768 / 375.
   ───────────────────────────────────────────────────────────────────── */

.av-hero {
  position: relative;
  width: 100%;
  /* Full-bleed under sticky header. --av-hero-height is set inline from
     the height_vh setting, clamped so we never go shorter than 560 nor
     taller than 920 on desktop. */
  height: clamp(560px, var(--av-hero-height, 88vh), 920px);
  overflow: hidden;
  isolation: isolate;
  background: #0F0F0F; /* base ink while images load */
}

.av-hero__viewport {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ─── Slides ─────────────────────────────────────────────────────────── */
.av-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}
.av-hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* Slide variant: horizontal slide instead of fade. We still toggle
   `is-active` from JS; CSS picks a different transform basis. */
.av-hero--slide .av-hero__slide {
  transform: translateX(4%);
  transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}
.av-hero--slide .av-hero__slide.is-active {
  transform: translateX(0);
}

/* ─── Background image ──────────────────────────────────────────────── */
.av-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  /* Subtle Ken-Burns-lite scale-in when slide becomes active. */
  transform: scale(1.02);
  transition: transform 8s ease-out;
}
.av-hero__slide.is-active .av-hero__img {
  transform: scale(1);
}
.av-hero__img--placeholder {
  background:
    linear-gradient(135deg, #1A1A1A 0%, #0F0F0F 60%, #2A2A2A 100%);
}

/* ─── Overlay scrim (darker at bottom, fades up) ────────────────────── */
.av-hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ─── Content (eyebrow + headline + body + CTAs) ─────────────────────── */
.av-hero__content-wrap {
  position: absolute;
  inset: 0;
  max-width: var(--container-max, 1440px);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 2;
}
.av-hero__content {
  pointer-events: auto;
  max-width: 560px;
  color: var(--av-hero-text, #FFFFFF);
  padding-bottom: clamp(72px, 11vh, 120px);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.av-hero--align-center .av-hero__content-wrap {
  align-items: center;
}
.av-hero--align-center .av-hero__content {
  text-align: center;
  align-items: center;
}

/* ─── Eyebrow chip (semi-transparent backdrop-blur) ──────────────────── */
.av-hero__eyebrow {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 12px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  color: currentColor;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  margin-bottom: 20px;
}
.av-hero--align-center .av-hero__eyebrow { align-self: center; }

/* ─── Headline (Space Grotesk display, tight) ────────────────────────── */
.av-hero__headline {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: currentColor;
  margin: 0 0 20px 0;
  /* let merchant <br>s actually break */
  text-wrap: balance;
}

/* ─── Body (Inter, slightly faded for hierarchy) ─────────────────────── */
.av-hero__body {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  color: currentColor;
  opacity: 0.88;
  max-width: 460px;
  margin: 0 0 32px 0;
}
.av-hero--align-center .av-hero__body { margin-left: auto; margin-right: auto; }

/* ─── CTAs (on-image variants: solid white + outlined white) ─────────── */
.av-hero__ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.av-hero--align-center .av-hero__ctas { justify-content: center; }

.av-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease,
              border-color 180ms ease, transform 180ms ease;
  white-space: nowrap;
}
.av-hero__cta svg { width: 16px; height: 16px; flex: 0 0 auto; }
.av-hero__cta:hover { transform: translateY(-1px); }

.av-hero__cta--solid {
  background: #FFFFFF;
  color: #0F0F0F;
  border-color: #FFFFFF;
}
.av-hero__cta--solid:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #0F0F0F;
  border-color: rgba(255, 255, 255, 0.9);
}

.av-hero__cta--outline {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.7);
}
.av-hero__cta--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
}

/* ─── Pagination dots ────────────────────────────────────────────────── */
.av-hero__dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}
.av-hero__dot {
  width: 8px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--av-hero-dot, #FFFFFF);
  opacity: 0.4;
  cursor: pointer;
  transition: width 220ms ease, opacity 220ms ease;
}
.av-hero__dot:hover { opacity: 0.7; }
.av-hero__dot.is-active {
  width: 32px;
  opacity: 1;
}

/* ─── Arrows (only when show_arrows is on) ───────────────────────────── */
.av-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #0F0F0F;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 180ms ease, transform 180ms ease;
}
.av-hero__arrow:hover {
  background: #FFFFFF;
  transform: translateY(-50%) scale(1.05);
}
.av-hero__arrow svg { width: 18px; height: 18px; }
.av-hero__arrow--prev { left: clamp(12px, 2vw, 24px); }
.av-hero__arrow--next { right: clamp(12px, 2vw, 24px); }

/* ─── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .av-hero__slide,
  .av-hero__img,
  .av-hero__cta,
  .av-hero__dot,
  .av-hero__arrow {
    transition: none !important;
  }
  .av-hero__slide.is-active .av-hero__img { transform: none; }
}

/* ─── Tablet (≤768) ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .av-hero {
    height: clamp(520px, var(--av-hero-height, 78vh), 820px);
  }
  .av-hero__content-wrap {
    padding: 0 clamp(16px, 4vw, 32px);
  }
  .av-hero__content {
    max-width: 520px;
    padding-bottom: clamp(64px, 10vh, 96px);
  }
  .av-hero__headline {
    font-size: clamp(2.25rem, 7vw, 3.5rem);
    margin-bottom: 16px;
  }
  .av-hero__body {
    font-size: 15px;
    margin-bottom: 24px;
  }
  .av-hero__cta {
    padding: 13px 22px;
    font-size: 13px;
  }
  .av-hero__dots { bottom: 24px; }
}

/* ─── Mobile (≤480) ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .av-hero {
    /* Effective min-height of 480px on phones so the hero never collapses
       when height_vh is set low. */
    height: max(480px, clamp(480px, var(--av-hero-height, 72vh), 720px));
  }
  .av-hero__content-wrap {
    padding: 0 16px;
  }
  .av-hero__content {
    max-width: 100%;
    padding-bottom: 72px;
  }
  .av-hero__eyebrow {
    font-size: 10px;
    padding: 5px 10px;
    margin-bottom: 14px;
  }
  .av-hero__headline {
    font-size: clamp(2rem, 9vw, 3rem);
    margin-bottom: 14px;
  }
  .av-hero__body {
    font-size: 14px;
    line-height: 1.5;
    max-width: 100%;
    margin-bottom: 20px;
  }
  .av-hero__ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .av-hero--align-center .av-hero__ctas { align-items: stretch; }
  .av-hero__cta {
    width: 100%;
    padding: 14px 20px;
  }
  .av-hero__dots {
    bottom: 18px;
    gap: 6px;
  }
  .av-hero__dot.is-active { width: 24px; }
  .av-hero__arrow {
    width: 36px;
    height: 36px;
  }
  .av-hero__arrow svg { width: 14px; height: 14px; }
}
