/* =========================
   Promo Cards (match profiles)
   ========================= */

.promo-cards {
  display: grid;
  gap: clamp(8px, 2vw, 14px);
  grid-template-columns: 1fr;
}

/* same breakpoints as .profile-cards */
@media (min-width: 40rem) { .promo-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .promo-cards { grid-template-columns: repeat(3, 1fr); } }

.promo-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: var(--drop-shadow);
  text-decoration: none;
  background: #000;
  transform: translateZ(0);
  transition: transform .25s ease, box-shadow .25s ease;
  outline: none;
}

/* background image as an <img> so we can animate scale like profile cards */
.promo-card .bg {
  position: absolute; inset: 0;
}
.promo-card .bg img {
  width: 100%; height: 100%;
  display: block; object-fit: cover;
filter: grayscale(100%);
  transition: transform .35s ease, filter .35s ease;
}


.promo-card:hover .bg img {
  filter: grayscale(0%) saturate(1.05);
}

/* subtle scrim; re-use hero overlay token for consistency */
.promo-card::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,var(--hero-overlay, .35));
  pointer-events: none;
  z-index: 1;
}

/* centered copy (two lines) */
.promo-card .promo-meta {
  position: absolute; inset: 0; z-index: 2;
  display: grid;
  justify-items: center;  /* horizontal center of each line */
  align-content: center;  /* vertical center of the stack */
  text-align: center;
  padding: clamp(10px, 3vw, 18px);
}

.promo-card .promo-title {
  margin: 0;
  font-family: "Oswald", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.1rem, 2.6vw, 1.1rem);
  color: var(--orange);
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
  text-transform: uppercase;
}
.promo-card .promo-sub {
  margin: .1rem 0 0;
  font-size: clamp(.92rem, 2.2vw, 1rem);
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}


.promo-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(82,169,201,.35), var(--drop-shadow);
}

/* motion safety */
@media (prefers-reduced-motion: reduce) {
  .promo-card, .promo-card .bg img { transition: none !important; }
}

/* Give the card a height so absolutely-positioned children can render */
.promo-card {
  width: 100%;
  aspect-ratio: 3 / 1;            /* 450x150 proportion */
}

/* Fallback for older browsers without aspect-ratio support */
@supports not (aspect-ratio: 3 / 1) {
  .promo-card {
    height: 0;
    padding-bottom: 33.333%;      /* 1/3 of width = 3:1 ratio */
    position: relative;           /* already set, but safe */
  }
}

/* Optional: keep some minimum height on tiny phones */
@media (max-width: 360px) {
  .promo-card { min-height: 120px; }
}