/* CLM Header Redesign v2 — fix nav contrast, spacing, Explore Directory alignment */

.clm-header {
  background: #0F1720;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0;
  position: relative;
  z-index: 100;
}
.clm-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

/* Logo */
.clm-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.clm-logo-badge {
  width: 44px;
  height: 44px;
  background: #D4A017;
  color: #0F1720;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 24px;
}
.clm-logo-text {
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.15;
  color: #E8E8E6;
  text-transform: uppercase;
}
.clm-logo-dir {
  color: #D4A017;
  font-size: 13px;
  letter-spacing: 0.12em;
}

/* Nav — evenly spaced, white readable text, mega trigger first */
.clm-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: nowrap;
}
.clm-nav a {
  color: #FFFFFF !important;
  text-decoration: none;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 8px 4px;
  border-radius: 6px;
  transition: color 0.18s ease;
  white-space: nowrap;
  position: relative;
}
.clm-nav a:hover { color: #D4A017 !important; }
.clm-nav a:hover::after {
  content: '';
  position: absolute;
  left: 4px; right: 4px; bottom: 2px;
  height: 2px;
  background: #D4A017;
  border-radius: 2px;
}

/* Explore Directory megamenu trigger — prominent */
.clm-mm-trigger,
.clm-nav .clm-mm-trigger {
  background: rgba(212,160,23,0.15) !important;
  border: 1px solid rgba(212,160,23,0.4) !important;
  color: #D4A017 !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  font-family: Inter, sans-serif !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: background 0.18s ease, border-color 0.18s ease !important;
  white-space: nowrap !important;
}
.clm-mm-trigger:hover,
.clm-nav .clm-mm-trigger:hover {
  background: rgba(212,160,23,0.25) !important;
  border-color: rgba(212,160,23,0.6) !important;
}

/* Right side */
.clm-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.clm-saved {
  color: #B8B7B4;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.clm-saved:hover { color: #D4A017; }
.clm-search-cta {
  background: #D4A017;
  color: #0F1720 !important;
  border: none;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(212,160,23,0.25);
}
.clm-search-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212,160,23,0.35);
  color: #0F1720 !important;
}

/* Top utility bar */
.clm-topbar {
  background: #0A0F17;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.clm-topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: Inter, sans-serif;
  font-size: 12px;
  color: #B8B7B4;
}
.clm-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.clm-topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.clm-topbar-right a { color: #B8B7B4; text-decoration: none; }
.clm-topbar-right a:hover { color: #FFFFFF; }
.clm-topbar-right a.clm-cta {
  color: #D4A017;
  border: 1px solid rgba(212,160,23,0.4);
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 600;
}
.clm-topbar-right a.clm-cta:hover {
  background: #D4A017;
  color: #0F1720;
}

@media (max-width: 1100px) {
  .clm-nav { gap: 14px; }
  .clm-nav a { font-size: 13px; }
  .clm-header-inner { gap: 20px; }
}
@media (max-width: 900px) {
  .clm-header-inner { grid-template-columns: auto 1fr auto; padding: 12px 16px; }
  .clm-nav { display: none; }
  .clm-topbar-inner { padding: 6px 16px; font-size: 11px; }
}
