/* Exarh — Industries grid + per-industry pages */

/* ===== Category filter strip ===== */
.ind-cats {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 6px;
  background: var(--brand-cream-2);
  border: 1px solid var(--brand-gold-line);
  border-radius: 16px;
  margin-bottom: 24px;
}
.ind-cat {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  border-radius: 12px;
  background: transparent;
  border: none;
  font-family: 'Crimson Pro', serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.005em;
  white-space: nowrap;
  flex-shrink: 0;
}
.ind-cat:hover { color: var(--text-primary); background: rgba(196,147,63,0.06); }
.ind-cat.active {
  background: var(--brand-blue);
  color: var(--brand-cream);
  font-weight: 600;
}
.ind-cat-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(196,147,63,0.16);
  color: var(--brand-gold);
  letter-spacing: 0.04em;
}
.ind-cat.active .ind-cat-count {
  background: rgba(196,147,63,0.32);
  color: #E3B765;
}
.ind-cat-desc {
  font-family: 'Crimson Pro', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: -0.005em;
  padding: 18px 4px 4px;
  border-top: 1px dashed var(--brand-gold-line);
  margin-top: 20px;
}

[data-theme="dark"] .ind-cats { background: rgba(255,255,255,0.025); }

/* Dark mode: fix active pill (--brand-blue flips to cream in dark → pill becomes white → gold badge invisible) */
[data-theme="dark"] .ind-cat.active {
  background: #2D537A;  /* explicit mid-navy, same feel as light-mode navy */
  color: #F0E6D2;
}
[data-theme="dark"] .ind-cat.active .ind-cat-count {
  background: rgba(227,183,101,0.28);
  color: #F5D98A;
}
/* Inactive badge: already fine, but standardise on dark-mode gold values */
[data-theme="dark"] .ind-cat-count {
  background: rgba(227,183,101,0.14);
  color: #E3B765;
}

/* ===== Grid 4-col (responsive) ===== */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) { .ind-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .ind-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .ind-grid { grid-template-columns: 1fr; } }

.ind-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid var(--brand-gold-line);
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1), box-shadow 0.22s;
}
.ind-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.ind-tile-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.ind-tile:hover .ind-tile-img { transform: scale(1.06); }

.ind-tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(13,27,42,0.92) 100%);
  padding: 18px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #FAF7F0;
}
.ind-tile-name {
  font-family: 'Crimson Pro', serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.ind-tile-short {
  font-size: 12px;
  color: rgba(250,247,240,0.72);
  margin-top: 4px;
  line-height: 1.4;
}

/* ===== CTA card under grid ===== */
.ind-cta {
  margin-top: 64px;
  padding: 48px 32px;
  background: linear-gradient(135deg, var(--brand-cream-2) 0%, rgba(196,147,63,0.08) 100%);
  border: 1px solid var(--brand-gold-line);
  border-radius: 22px;
  text-align: center;
}
[data-theme="dark"] .ind-cta {
  background: linear-gradient(135deg, rgba(255,255,255,0.025) 0%, rgba(227,183,101,0.10) 100%);
}

/* ===== Industry detail hero ===== */
.ind-hero {
  position: relative;
  min-height: 520px;
  padding: 140px 0 80px;
  overflow: hidden;
}
.ind-hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.ind-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(13,27,42,0.92) 0%, rgba(13,27,42,0.65) 50%, rgba(13,27,42,0.45) 100%);
  display: flex; align-items: center;
  padding: 60px 0;
}
