/* ═══════════════════════════════════════════════
   NOIR ATLAS — CATEGORY SECTION
   Hero + Tight Grid · Obsidian · Champagne Gold
   DM Serif Display italic + Syne
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700&family=DM+Serif+Display:ital@1&display=swap');

/* ── SECTION WRAPPER ───────────────────────── */
.na-cat-section {
  padding: 56px 20px 64px;
  background: #0E0D0B;
  position: relative;
}

body:not(.dark-mode) .na-cat-section {
  background: #F5F1EA;
}

/* Gold hairline top */
.na-cat-section::before {
  content: '';
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.35), transparent);
}

/* ── SECTION HEADER ────────────────────────── */
.na-cat-header {
  margin-bottom: 40px;
}

.na-cat-eyebrow {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.na-cat-eyebrow::after {
  content: '';
  flex: 1;
  max-width: 48px;
  height: 1px;
  background: rgba(201,168,76,0.35);
}

.na-cat-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(30px, 6vw, 52px);
  font-weight: 400;
  color: #F0EBE0;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

body:not(.dark-mode) .na-cat-title {
  color: #1A140C;
}

body:not(.dark-mode) .na-cat-eyebrow {
  color: #8A6A20;
}

body:not(.dark-mode) .na-cat-eyebrow::after {
  background: rgba(138,106,30,0.30);
}

/* ── HERO ROW — top 3 featured ─────────────── */
.na-cat-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
  margin-bottom: 10px;
}

/* First card spans full width */
.na-cat-hero .na-card:first-child {
  grid-column: 1 / -1;
}

/* ── TIGHT GRID — remaining categories ──────── */
.na-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* ── BASE CARD ──────────────────────────────── */
.na-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  display: block;
  background: #161411;
  border: 1px solid rgba(201,168,76,0.10);
}

/* Hero card heights */
.na-cat-hero .na-card:first-child {
  height: 260px;
}

.na-cat-hero .na-card:not(:first-child) {
  height: 200px;
}

/* Tight grid card heights */
.na-cat-grid .na-card {
  height: 160px;
}

/* ── CARD IMAGE ─────────────────────────────── */
.na-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94),
              filter 0.55s ease;
  filter: brightness(0.96) saturate(0.92);
}

.na-card:hover img,
.na-card:active img {
  transform: scale(1.04);
  filter: brightness(0.95) saturate(1.0);
}

/* ── CARD OVERLAY ───────────────────────────── */
.na-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,9,7,0.75) 0%,
    rgba(10,9,7,0.10) 40%,
    transparent 100%
  );

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 16px;
  transition: background 0.3s ease;
}

.na-cat-hero .na-card:first-child .na-card-overlay {
  padding: 24px 22px;
}

/* ── CARD TEXT ──────────────────────────────── */
.na-card-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: #F0EBE0;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Hero first card — big title */
.na-cat-hero .na-card:first-child .na-card-name {
  font-size: 32px;
}

/* Hero secondary cards */
.na-cat-hero .na-card:not(:first-child) .na-card-name {
  font-size: 22px;
}

/* Tight grid cards */
.na-cat-grid .na-card .na-card-name {
  font-family: 'Syne', system-ui, sans-serif;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #F0EBE0;
}

/* ── GOLD CORNER ACCENT (featured cards) ────── */
.na-card-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 36px 36px 0;
  border-color: transparent #C9A84C transparent transparent;
  opacity: 0.85;
}

/* Tiny gold dot for tight grid cards */
.na-card-dot {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #C9A84C;
  opacity: 0.80;
}

/* ── GOLD BOTTOM LINE ON HOVER ──────────────── */
.na-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C9A84C, transparent);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.na-card:hover::after {
  opacity: 1;
}

/* ── DESKTOP ────────────────────────────────── */
@media (min-width: 769px) {
  .na-cat-section {
    padding: 80px 40px 88px;
  }

  .na-cat-section::before {
    left: 40px;
    right: 40px;
  }

  .na-cat-hero {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .na-cat-hero .na-card:first-child {
    grid-column: 1;
    grid-row: 1;
    height: 480px;
  }

  .na-cat-hero .na-card:not(:first-child) {
    height: 234px;
  }

  .na-cat-hero .na-card:first-child .na-card-name {
    font-size: 44px;
  }

  .na-cat-hero .na-card:not(:first-child) .na-card-name {
    font-size: 26px;
  }

  .na-cat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .na-cat-grid .na-card {
    height: 220px;
  }

  .na-cat-grid .na-card .na-card-name {
    font-size: 11px;
  }

  .na-card-overlay {
    padding: 22px 20px;
  }
}

@media (min-width: 1200px) {
  .na-cat-hero .na-card:first-child {
    height: 540px;
  }

  .na-cat-hero .na-card:not(:first-child) {
    height: 264px;
  }

  .na-cat-grid .na-card {
    height: 260px;
  }
}
@media (min-width: 769px) {
  .na-cat-hero {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
    margin-bottom: 12px;
  }

  .na-cat-hero .na-card:first-child {
    grid-column: 1;
    grid-row: 1 / 3;
    height: 480px;
  }

  .na-cat-hero .na-card:not(:first-child) {
    height: 234px;
  }
}
@media (max-width: 768px) {
  .na-cat-section {
    padding-bottom: 24px !important;
  }
}