/* ============================================================
   NameValet — design tokens & overrides for Sneat Bootstrap 5.
   Light mode is the default. Dark mode is opt-in via toggle.
   ============================================================ */

/* ---------- LIGHT MODE TOKENS ---------- */
:root,
[data-bs-theme="light"] {

  --nv-bg:                #f5f5f5;
  --nv-surface:           #ffffff;
  --nv-surface-elevated:  #ffffff;
  --nv-sidebar-bg:        #ffffff;

  --nv-border:            #e2e2e2;
  --nv-border-subtle:     #efefef;

  --nv-text-primary:      #1a1a1a;
  --nv-text-secondary:    #5f5b58;
  --nv-text-muted:        #8c8884;

  --nv-gold:              #d4af7a;        /* gold for backgrounds and accents */
  --nv-gold-text:         #9a6f2e;        /* darker gold for text on light bg (WCAG AA) */
  --nv-gold-hover:        #b8945f;
  --nv-gold-subtle:       rgba(212, 175, 122, 0.18);
  --nv-gold-rgb:          212, 175, 122;

  --nv-blue:              #2f6feb;
  --nv-blue-hover:        #2459cc;
  --nv-blue-subtle:       rgba(47, 111, 235, 0.10);
  --nv-blue-rgb:          47, 111, 235;

  --nv-success:           #1f9d55;
  --nv-success-subtle:    rgba(31, 157, 85, 0.10);
  --nv-danger:            #d94c46;
  --nv-danger-subtle:     rgba(217, 76, 70, 0.10);
  --nv-warning:           #d97706;
  --nv-warning-subtle:    rgba(217, 119, 6, 0.10);

  /* Sneat Bootstrap variable overrides */
  --bs-primary:           #d4af7a;
  --bs-primary-rgb:       212, 175, 122;
  --bs-secondary:         #2f6feb;
  --bs-secondary-rgb:     47, 111, 235;
  --bs-body-bg:           #f5f5f5;
  --bs-body-color:        #1a1a1a;
  --bs-border-color:      #e2e2e2;
  --bs-card-bg:           #ffffff;
}

/* ---------- DARK MODE TOKENS ---------- */
[data-bs-theme="dark"] {

  --nv-bg:                #080808;
  --nv-surface:           #101010;
  --nv-surface-elevated:  #191919;
  --nv-sidebar-bg:        #0d0d0d;

  --nv-border:            #252525;
  --nv-border-subtle:     #1e1e1e;

  --nv-text-primary:      #f4f2ee;
  --nv-text-secondary:    #888480;
  --nv-text-muted:        #555250;

  --nv-gold:              #d4af7a;
  --nv-gold-text:         #d4af7a;        /* same in dark mode */
  --nv-gold-hover:        #e8c99a;
  --nv-gold-subtle:       rgba(212, 175, 122, 0.10);
  --nv-gold-rgb:          212, 175, 122;

  --nv-blue:              #4f8ef7;
  --nv-blue-hover:        #6ba3ff;
  --nv-blue-subtle:       rgba(79, 142, 247, 0.10);
  --nv-blue-rgb:          79, 142, 247;

  --nv-success:           #4ade80;
  --nv-success-subtle:    rgba(74, 222, 128, 0.10);
  --nv-danger:            #f87171;
  --nv-danger-subtle:     rgba(248, 113, 113, 0.10);
  --nv-warning:           #fb923c;
  --nv-warning-subtle:    rgba(251, 146, 60, 0.10);

  /* Sneat Bootstrap variable overrides */
  --bs-primary:           #d4af7a;
  --bs-primary-rgb:       212, 175, 122;
  --bs-secondary:         #4f8ef7;
  --bs-secondary-rgb:     79, 142, 247;
  --bs-body-bg:           #080808;
  --bs-body-color:        #f4f2ee;
  --bs-border-color:      #252525;
  --bs-card-bg:           #101010;
}

/* ============================================================
   Theme: logo + toggle icon switching
   ============================================================ */
[data-bs-theme="light"] .nv-logo-dark   { display: none; }
[data-bs-theme="dark"]  .nv-logo-light  { display: none; }
[data-bs-theme="light"] .nv-theme-icon-sun  { display: none; }
[data-bs-theme="dark"]  .nv-theme-icon-moon { display: none; }

/* ============================================================
   Typography
   ============================================================ */
body, .menu-link, .form-control, .btn {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1.nv-hero-title, .nv-hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
}

/* ============================================================
   Buttons
   ============================================================ */
.nv-btn-gold {
  background-color: var(--nv-gold);
  border: 1px solid var(--nv-gold);
  color: #080808;
  font-weight: 600;
}
.nv-btn-gold:hover, .nv-btn-gold:focus {
  background-color: var(--nv-gold-hover);
  border-color: var(--nv-gold-hover);
  color: #080808;
}
.nv-btn-gold-outline {
  background: transparent;
  border: 1px solid var(--nv-gold);
  color: var(--nv-gold-text);
  font-weight: 600;
}
.nv-btn-gold-outline:hover {
  background: var(--nv-gold);
  color: #080808;
}

.nv-btn-blue {
  background-color: var(--nv-blue);
  border: 1px solid var(--nv-blue);
  color: #ffffff;
  font-weight: 600;
}
.nv-btn-blue:hover, .nv-btn-blue:focus {
  background-color: var(--nv-blue-hover);
  border-color: var(--nv-blue-hover);
  color: #ffffff;
}
.nv-btn-blue-outline {
  background: transparent;
  border: 1px solid var(--nv-blue);
  color: var(--nv-blue);
  font-weight: 600;
}
.nv-btn-blue-outline:hover {
  background: var(--nv-blue);
  color: #ffffff;
}

/* ============================================================
   Domain display
   ============================================================ */
.nv-domain-name {
  font-family: 'Courier New', 'Courier', monospace;
  font-weight: 600;
  color: var(--nv-text-primary);
  letter-spacing: -0.02em;
}
.nv-domain-name-lg { font-size: 2rem; }
.nv-domain-name-md { font-size: 1.4rem; }

.nv-price {
  color: var(--nv-gold-text);
  font-weight: 700;
  font-size: 1.15rem;
}
.nv-price-lg {
  font-size: 1.6rem;
}

.nv-domain-card {
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  border-radius: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.nv-domain-card:hover {
  border-color: var(--nv-gold);
  transform: translateY(-2px);
}

.nv-for-sale-banner {
  background: linear-gradient(90deg, var(--nv-gold) 0%, var(--nv-gold-hover) 100%);
  color: #080808;
  font-weight: 600;
  text-align: center;
  padding: 10px;
  font-size: 0.875rem;
}

/* ============================================================
   Marketing page layout
   ============================================================ */
.nv-hero {
  background: var(--nv-bg);
  padding: 90px 0 70px;
  text-align: center;
}
.nv-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--nv-text-primary);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.nv-hero p.lead {
  color: var(--nv-text-secondary);
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.nv-audience-card {
  border: 1px solid var(--nv-border);
  background: var(--nv-surface);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
}
.nv-audience-card.investor { border-top: 3px solid var(--nv-gold); }
.nv-audience-card.business { border-top: 3px solid var(--nv-blue); }

.nv-stats-bar {
  background: var(--nv-surface);
  border-top: 1px solid var(--nv-border);
  border-bottom: 1px solid var(--nv-border);
  padding: 24px 0;
}
.nv-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--nv-gold-text);
}
.nv-stat-label {
  font-size: 0.78rem;
  color: var(--nv-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nv-partner-bar {
  background: var(--nv-surface);
  border-bottom: 1px solid var(--nv-border);
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--nv-text-secondary);
  text-align: center;
}
.nv-partner-bar .name { color: var(--nv-text-primary); margin: 0 6px; }

.nv-feature-card {
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
  height: 100%;
}
.nv-feature-card:hover { transform: translateY(-2px); border-color: var(--nv-blue); }
.nv-feature-card.investor-feature:hover { border-color: var(--nv-gold); }
.nv-feature-card .feature-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.nv-feature-card.coming-soon { opacity: 0.7; }

.nv-cta-banner {
  background: linear-gradient(135deg, var(--nv-surface), var(--nv-surface-elevated));
  border-top: 1px solid var(--nv-border);
  border-bottom: 1px solid var(--nv-border);
  padding: 60px 0;
  text-align: center;
}

/* ============================================================
   Toolbar / Trust badges
   ============================================================ */
.nv-escrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.82rem;
  color: var(--nv-text-secondary);
}
.nv-escrow-badge i { color: var(--nv-success); }

/* ============================================================
   GDPR notice
   ============================================================ */
.nv-gdpr-notice {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--nv-surface-elevated);
  border-top: 1px solid var(--nv-border);
  padding: 14px 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--nv-text-secondary);
}
.nv-gdpr-notice.hidden { display: none; }

/* ============================================================
   Flash messages
   ============================================================ */
.nv-flash-container {
  position: fixed;
  top: 72px;
  right: 20px;
  z-index: 9000;
  width: 340px;
  max-width: calc(100vw - 40px);
}

/* ============================================================
   Theme toggle
   ============================================================ */
.nv-theme-toggle {
  background: transparent;
  border: 1px solid var(--nv-border);
  color: var(--nv-text-secondary);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.1rem;
  transition: all 0.15s ease;
}
.nv-theme-toggle:hover {
  border-color: var(--nv-gold);
  color: var(--nv-gold-text);
}

/* ============================================================
   Footer
   ============================================================ */
.nv-footer {
  background: var(--nv-surface);
  border-top: 1px solid var(--nv-border);
  padding: 50px 0 24px;
  margin-top: 60px;
}
.nv-footer h6 {
  color: var(--nv-text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.nv-footer a {
  color: var(--nv-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 4px 0;
}
.nv-footer a:hover { color: var(--nv-gold-text); }
.nv-footer .nv-footer-bottom {
  border-top: 1px solid var(--nv-border);
  margin-top: 32px;
  padding-top: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--nv-text-muted);
}

/* ============================================================
   Sidebar section dividers (dashboard layout)
   ============================================================ */
.menu-header.nv-section-gold .menu-header-text {
  border-left: 3px solid var(--nv-gold);
  padding-left: 8px;
}
.menu-header.nv-section-blue .menu-header-text {
  border-left: 3px solid var(--nv-blue);
  padding-left: 8px;
}

/* ============================================================
   Helpers
   ============================================================ */
.nv-text-gold { color: var(--nv-gold-text) !important; }
.nv-text-blue { color: var(--nv-blue) !important; }
.nv-bg-gold-subtle { background-color: var(--nv-gold-subtle); }
.nv-bg-blue-subtle { background-color: var(--nv-blue-subtle); }
.nv-divider {
  border-top: 1px solid var(--nv-border);
  margin: 2rem 0;
}
