:root {
 --bg: #000000; /* Gray main background */
  --bg-light: #f5f0e8; /* UPDATED: warmer cream for cards/content boxes */
  --card: #fbfaf8; /* Slightly warmer card color */
  --text: #1c1917;
  --muted: #78716c;
  --line: #e7e5e4;
  --copper: #c98c5b;
  --copper-dark: #9e6d45;
  --copper-light: #d4a574;
  --copper-soft: #f5eae0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0b0a09;
  border-bottom: 1px solid rgba(201, 140, 91, 0.18);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 24px;
}

.logo-link {
  position: relative;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
}

.logo-link::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 30%, rgba(201,140,91,0.18), transparent 55%),
              radial-gradient(circle at 70% 70%, rgba(255,255,255,0.08), transparent 55%);
  animation: logoGlow 30s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

@keyframes logoGlow {
  0% { transform: translate(-6%, -6%) rotate(0deg); }
  50% { transform: translate(6%, 6%) rotate(180deg); }
  100% { transform: translate(-6%, -6%) rotate(360deg); }
}

#site-logo {
  height: 50px;
  display: block;
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-btn {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  transition: transform .15s ease, color .15s ease;
}

.nav-btn:hover {
  color: #c98c5b;
  transform: scale(1.05);
}

.search-icon {
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, color .15s ease;
}

.search-icon:hover {
  color: #c98c5b;
  transform: scale(1.1);
}

/* Active page highlighting - ALL PAGES */
body[data-page="sell"] .nav-btn[href="./sell.html"],
body[data-page="share"] .nav-btn[href="./share.html"],
body[data-page="about"] .nav-btn[href="./about.html"],
body[data-page="escrow"] .nav-btn[href="./escrow.html"],
body[data-page="dmv"] .nav-btn[href="./dmv.html"],
body[data-page="support"] .nav-btn[href="./support.html"],
body[data-page="legal"] .nav-btn[href="./legal.html"],
body[data-page="listing"] .nav-btn[href="./listing.html"],
body[data-page="home"] .nav-btn[href="/"],
body[data-page="index"] .nav-btn[href="/"] {
  color: #c98c5b;
}

@media (max-width: 768px) {
  .header-inner { 
    height: 40px; 
    padding: 0 16px; 
  }
  
  #site-logo { 
    height: 40px; 
  }
  
  .nav { 
    flex-wrap: wrap; 
    gap: 12px; 
    justify-content: flex-end; 
  }
  
  .nav-btn { 
    font-size: 11px; 
  }
  
  .search-icon { 
    width: 16px; 
    height: 16px; 
  }
}
