/* ═══════════════════════════════════════
   CATALOG — Categories & Cards
═══════════════════════════════════════ */

.catalog {
  background: var(--black);
  padding: 72px 56px 80px;
}

.catalog-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Section eyebrow label */
.section-eyebrow {
  font-size: 15px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 48px;
}

.section-eyebrow em {
  font-style: normal;
  color: var(--teal);
}

/* ═══════════════════════════════════════
   CATEGORY BLOCK
═══════════════════════════════════════ */

.cat-block {
  margin-bottom: 64px;
  animation: fadeUp 0.5s ease both;
}

.cat-block:last-child {
  margin-bottom: 0;
}

.cat-block:nth-child(2) { animation-delay: 0.1s; }
.cat-block:nth-child(3) { animation-delay: 0.2s; }
.cat-block:nth-child(4) { animation-delay: 0.3s; }
.cat-block:nth-child(5) { animation-delay: 0.4s; }

.cat-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.cat-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
}

.cat-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.cat-count {
  font-size: 11px;
  color: var(--grey);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ═══════════════════════════════════════
   CARDS GRID
═══════════════════════════════════════ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ═══════════════════════════════════════
   CARD
═══════════════════════════════════════ */

.card {
  background: var(--black);
  padding: 28px 26px 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: background 0.22s;
}

/* Teal bottom border reveal on hover */
.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.card:hover {
  background: #111;
}

.card:hover::after {
  transform: scaleX(1);
}

/* Card internals */
.card-icon {
  font-size: 24px;
  margin-bottom: 4px;
  line-height: 1;
}

.card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.65;
  font-weight: 300;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.card-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}

.card-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.2s;
}

.card:hover .card-link {
  opacity: 1;
  transform: translateX(0);
}

/* ═══════════════════════════════════════
   CATALOG — RESPONSIVE
═══════════════════════════════════════ */

@media (max-width: 768px) {
  .catalog {
    padding: 48px 24px 60px;
  }
}
