/* ==========================================================================
   HERO — dark left panel (55%) + full-bleed image right (45%), 55/45 split
   fills the viewport below the fixed nav.
   Markup: section.hero > .hero__panel--text.panel, .hero__panel--image
   ========================================================================== */

.hero {
  display: flex;
  min-height: calc(100vh - var(--nav-height));
}

/* ---- Text panel ----------------------------------------------------------*/
.hero__panel--text {
  flex: 0 0 55%;
  background: var(--color-bg-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__eyebrow {
  margin-bottom: var(--space-md);
}

.hero__heading {
  color: var(--color-white);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-lg);
}

.hero__heading-line {
  display: block;
}

.hero__heading-line--accent {
  color: var(--color-brand-red);
}

.hero__lede {
  font-family: var(--font-body);
  font-weight: var(--fw-body-regular);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-white-70);
  max-width: 380px;
  margin-bottom: var(--space-section-gap);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm-lg);
}

/* ---- Image panel -----------------------------------------------------------*/
.hero__panel--image {
  flex: 0 0 45%;
  position: relative;
  overflow: hidden;
  min-height: 480px;
}

/* Slideshow: three stacked images that crossfade on a timer (see main.js).
   Absolutely positioned so it never affects the panel's width or position. */
.hero__slideshow {
  position: absolute;
  inset: 0;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero__image.is-active {
  opacity: 1;
}

/* ---- "New Location" badge ------------------------------------------------- */
.hero__badge {
  position: absolute;
  right: var(--space-md);
  bottom: calc(4px + var(--space-md)); /* clear the red accent bar */
  padding: 0.4rem 0.7rem;
  background: var(--color-brand-red);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: var(--fw-body-semibold);
  font-size: var(--fs-caption-sm);
  text-transform: uppercase;
  letter-spacing: var(--ls-caption);
  border-radius: var(--radius-card);
}

.hero__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(17, 17, 17, 0.35) 0%, transparent 40%);
}

.hero__image-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-brand-red);
}

/* ---- Mobile: stack, cap image height --------------------------------------*/
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    min-height: auto;
  }

  .hero__panel--text {
    flex: none;
    width: 100%;
    min-height: auto;
    padding: 3rem 1.5rem 2.5rem;
  }

  .hero__panel--image {
    flex: none;
    width: 100%;
    height: 440px; /* taller so the rotating photos have room to read */
    min-height: 0;
  }
}

/* ---- Reduced motion: hold on the first image, no crossfade ---------------- */
@media (prefers-reduced-motion: reduce) {
  .hero__image {
    transition: none;
  }
}
