/* Glory Days Vintage — homepage-only photographic banner.
   Load after style.css. All rules are scoped to the hero-banner component. */

.hero-banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 420px;
  max-height: 680px;
  aspect-ratio: 21 / 9;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--wine-dark, #47151f);
  color: var(--paper, #f8f5ef);
  animation: none;
}

.hero-banner-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center center;
  animation: none;
  transition: none;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    rgb(35 13 20 / 32%) 0%,
    rgb(35 13 20 / 20%) 32%,
    rgb(35 13 20 / 0%) 56%);
  pointer-events: none;
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(360px, 33%);
  max-width: 360px;
  min-width: 0;
  margin: 0 0 0 7%;
  padding: 28px 0;
  border: 0;
  background: transparent;
  color: var(--paper, #f8f5ef);
  text-align: left;
  animation: none;
}

.hero-banner-content h1 {
  margin: 0 0 16px;
  color: var(--paper, #f8f5ef);
  font-family: var(--serif, Georgia, 'Times New Roman', serif);
  font-size: clamp(26px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.015em;
  text-wrap: balance;
  text-shadow: 0 1px 8px rgb(0 0 0 / 24%);
}

.hero-banner-subtitle {
  margin: 0 0 24px;
  color: var(--paper, #f8f5ef);
  font-family: var(--sans, Arial, Helvetica, sans-serif);
  font-size: clamp(16px, 1.3vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  text-shadow: 0 1px 6px rgb(0 0 0 / 28%);
}

.hero-banner .hero-banner-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: fit-content;
  min-width: 132px;
  min-height: 46px;
  margin: 0;
  padding: 12px 24px;
  border: 1px solid var(--wine, #641f2b);
  border-radius: 0;
  background: var(--wine, #641f2b);
  color: var(--paper, #f8f5ef);
  font-family: var(--sans, Arial, Helvetica, sans-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .035em;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  touch-action: manipulation;
  animation: none;
  transition: background-color var(--ease, 220ms ease),
    border-color var(--ease, 220ms ease);
}

.hero-banner .hero-banner-cta:hover {
  border-color: var(--wine-dark, #47151f);
  background: var(--wine-dark, #47151f);
  color: var(--paper, #f8f5ef);
}

.hero-banner .hero-banner-cta:focus-visible {
  outline: 2px solid var(--paper, #f8f5ef);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgb(35 13 20 / 65%);
}

/* Keep the text within the left photographic safe area on tablets. */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-banner {
    height: clamp(420px, 48vw, 480px);
    aspect-ratio: auto;
  }

  .hero-banner-image {
    object-position: 60% center;
  }

  .hero-banner-content {
    width: 33%;
  }

  .hero-banner-content h1 {
    font-size: 26px;
  }

  .hero-banner-subtitle {
    font-size: 16px;
  }
}

/* Portrait crop retains the right-side faces; copy sits below them. */
@media (max-width: 767px) {
  .hero-banner {
    align-items: flex-end;
    height: clamp(480px, 130vw, 540px);
    min-height: 480px;
    max-height: 540px;
    aspect-ratio: auto;
  }

  .hero-banner-image {
    object-position: 80% center;
  }

  .hero-banner::before {
    background: linear-gradient(0deg,
      rgb(29 10 17 / 78%) 0%,
      rgb(35 13 20 / 58%) 25%,
      rgb(35 13 20 / 24%) 46%,
      rgb(35 13 20 / 0%) 70%);
  }

  .hero-banner-content {
    width: calc(100% - 48px);
    max-width: 360px;
    margin: 0 24px;
    padding: 28px 0 calc(30px + env(safe-area-inset-bottom, 0px));
  }

  .hero-banner-content h1 {
    margin-bottom: 12px;
    font-size: 26px;
    line-height: 1.25;
  }

  .hero-banner-subtitle {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-banner .hero-banner-cta {
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-banner,
  .hero-banner::before,
  .hero-banner-image,
  .hero-banner-content,
  .hero-banner-content h1,
  .hero-banner-subtitle,
  .hero-banner .hero-banner-cta {
    animation: none;
    transition: none;
  }
}

@media (forced-colors: active) {
  .hero-banner-content h1,
  .hero-banner-subtitle {
    text-shadow: none;
  }

  .hero-banner .hero-banner-cta {
    border-color: ButtonText;
    background: ButtonFace;
    color: ButtonText;
  }

  .hero-banner .hero-banner-cta:focus-visible {
    outline-color: Highlight;
    box-shadow: none;
  }
}
