/* ─────────────────────────────────────────────────────────────────────
   AVENU — shop-by-occasion
   Section head: title only ("Shop by Occasion") + a one-line subtitle.
   Body: 4-column grid of tall (3:4) portrait tiles. Each tile is a
   full-bleed image with a bottom-to-top dark gradient overlay; label
   sits centered horizontally near the bottom in white Space Grotesk.
   Hover scales the image (1.04) and brightens the overlay slightly.

   Responsive at 1440 / 768 / 375 — 4-up desktop, 2-up tablet/mobile.
   ───────────────────────────────────────────────────────────────────── */

.av-occasion {
  background: var(--color-bg);
}

/* ── Head ────────────────────────────────────────────────────────────── */
.av-occasion__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-5);
}
.av-occasion__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--color-text);
  margin: 0;
}
.av-occasion__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* ── Grid ────────────────────────────────────────────────────────────── */
.av-occasion__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

/* ── Tile ────────────────────────────────────────────────────────────── */
.av-occasion__tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  isolation: isolate;
}

.av-occasion__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: 1;
}
.av-occasion__img--placeholder {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.av-occasion__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.18) 55%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
  transition: opacity var(--transition-base);
}

.av-occasion__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--space-5);
  z-index: 3;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  line-height: 1.1;
  padding: 0 var(--space-3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.av-occasion__tile:hover .av-occasion__img {
  transform: scale(1.04);
}
.av-occasion__tile:hover .av-occasion__overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.05) 100%);
}

/* ── Tablet (≤ 1024px) ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .av-occasion__title { font-size: var(--text-2xl); }
  .av-occasion__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
  }
  .av-occasion__label { font-size: 20px; }
}

/* ── Mobile (≤ 768px) ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .av-occasion__head { margin-bottom: var(--space-4); }
  .av-occasion__title { font-size: var(--text-2xl); }
  .av-occasion__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
  }
  .av-occasion__label {
    font-size: 18px;
    bottom: var(--space-4);
  }
}

/* ── Small mobile (≤ 480px) ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .av-occasion__grid {
    gap: var(--space-2);
  }
  .av-occasion__label {
    font-size: 16px;
    bottom: var(--space-3);
  }
}
