/* ============================================================
   CURATED EMAN — Homepage Only
   /assets/css/index.css
   Load on: index.html only
   ============================================================ */

/* ── INDEX: tighten gap between hero and card grid ── */
/* base.css sets section { padding: 24px 0 } globally.
   This pulls the cards closer to the hero on this page only. */
.section { padding-top: 8px; }

/* ── 21. CATEGORY CARDS ── */
.category-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 260px;
  text-decoration: none;
  display: block;
  transition: transform 0.35s ease;
}
.category-card:link,
.category-card:visited { color: inherit; }
.category-card:hover { transform: translateY(-2px); }
.category-card:hover .category-card-img { transform: scale(1.04); }

/* Photo layer */
.category-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.4s ease;
}

/* Warm light overlay */
.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(255, 248, 238, 0.28) 0%,
    rgba(205, 178, 148, 0.58) 100%
  );
  z-index: 1;
}

/* Fix 1: Bottom gradient for text legibility on busy photos */
.category-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(
    to top,
    rgba(10, 8, 4, 0.62) 0%,
    rgba(10, 8, 4, 0.22) 55%,
    transparent 100%
  );
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
}

/* Text content */
.category-card-body {
  position: relative;
  z-index: 2;
  padding: 22px 22px 20px;
  height: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}

.category-card h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #fff;
}

.category-eyebrow {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.80);
  font-family: var(--font-sans);
  font-weight: 500;
}

/* Fix: Stronger weight + white for legibility on dark gradient */
.category-sub {
  font-size: 0.74rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-sans);
  font-weight: 500;
  margin: 0;
  max-width: 72%;
}

/* CTA link inside each card */
.category-cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--font-sans);
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 1px;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.category-cta:link,
.category-cta:visited { color: rgba(255, 255, 255, 0.72); }
.category-cta:hover {
  border-color: rgba(255, 255, 255, 0.65);
  opacity: 1;
}

@media (max-width: 768px) {
  .category-cards { grid-template-columns: 1fr; gap: 12px; }
  .category-card { min-height: 200px; border-radius: 22px; }
  .category-card-body { min-height: 200px; padding: 18px 18px 16px; }
  .nav-pill-sep { display: none; }
}
