:root {
  --navy-950: #0b1324;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --steel-700: #1e3a5f;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --bg: #f1f5f9;
  --surface: #ffffff;
  --border: #cbd5e1;
  --text: #0f172a;
  --muted: #475569;
  --radius: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Header */
.site-header {
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-logo {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.brand-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-top: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--amber-500);
  color: var(--navy-950);
}

.btn-primary:hover {
  background: var(--amber-600);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-outline-light {
  background: transparent;
  color: #f8fafc;
  border-color: rgba(245, 158, 11, 0.6);
}

.btn-outline-light:hover {
  background: var(--amber-500);
  color: var(--navy-950);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--steel-700) 100%);
  color: #ffffff;
  padding: 40px 0 44px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber-500);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 780px;
}

.hero-sub {
  margin: 0 0 24px;
  font-size: 1.02rem;
  color: #cbd5e1;
  max-width: 680px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Context Band */
.context-band {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.context-grid {
  display: grid;
  gap: 20px;
}

.context-copy h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--navy-900);
}

.context-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.context-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.stat-val {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--steel-700);
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
  margin-top: 2px;
}

/* Directory Controls */
.directory-section {
  padding: 28px 0 56px;
}

.controls-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.search-wrap {
  position: relative;
}

.search-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 44px 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
}

.search-input:focus {
  outline: none;
  border-color: var(--steel-700);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.15);
}

.clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: var(--bg);
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--navy-800);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pill:hover {
  border-color: var(--steel-700);
}

.pill.active {
  background: var(--navy-900);
  color: #ffffff;
  border-color: var(--navy-900);
}

.results-meta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

/* Supplier Cards */
.supplier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.card-cat {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--steel-700);
  background: #e2e8f0;
  padding: 3px 8px;
  border-radius: 6px;
}

.card-loc {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
  color: var(--navy-900);
}

.card-summary {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  flex-grow: 1;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 2px 0 4px;
}

.tag-list li {
  font-size: 0.78rem;
  color: var(--navy-800);
  background: var(--bg);
  border: 1px solid #e2e8f0;
  padding: 2px 8px;
  border-radius: 6px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.card-link-web {
  background: var(--navy-900);
  color: #ffffff;
}

.card-link-web:hover {
  background: var(--steel-700);
}

.card-link-wa {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.card-link-wa:hover {
  background: #d1fae5;
}

/* Empty State */
.empty-state {
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 36px 20px;
}

.empty-state h3 {
  margin: 0 0 8px;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: #cbd5e1;
  padding: 28px 0;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.disclaimer {
  margin: 0;
  line-height: 1.5;
}

.disclaimer a {
  color: var(--amber-500);
  font-weight: 600;
}

.footer-meta {
  margin: 0;
  color: #94a3b8;
  font-size: 0.8rem;
}

/* Tablet & Desktop */
@media (min-width: 720px) {
  .context-grid {
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
  }

  .supplier-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .supplier-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
