/* ============================================
   CDL CONSULTANTS — DARK THEME
   Midnight Blue-Black + Rich Gold + Deep Amber
   Applied via [data-theme="dark"] on <html>
   ============================================ */

[data-theme="dark"] {

  /* ── Color tokens ── */
  --brand-primary:       #C9A227;
  --brand-primary-rgb:   201, 162, 39;
  --brand-primary-light: #D4AE3A;
  --brand-primary-pale:  #211A08;
  --brand-secondary:     #EF5350;
  --brand-secondary-light: #FF7043;
  --brand-accent:        #C9A227;
  --brand-accent-light:  #D4AE3A;
  --brand-cta:           #FF8F00;
  --brand-cta-hover:     #E65100;
  --brand-bg:            #142B3F;
  --brand-bg-blue:       #0E2133;
  --text-primary:        #F5F7FA;
  --text-body:           #C5CDD7;
  --text-muted:          #A7B3C2;

  color-scheme: dark;
}

/* ── Document background & text ── */
[data-theme="dark"] body {
  background: #0A1624;
  color: #C5CDD7;
}

/* ── Headings ── */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 { color: #F5F7FA; }

/* ── Topbar ── */
[data-theme="dark"] .topbar {
  background: #060E18;
  color: #C5CDD7;
  border-bottom: 1px solid #1A2D42;
}
[data-theme="dark"] .topbar a { color: rgba(197,205,215,0.85); }

/* ── Navbar ── */
[data-theme="dark"] .navbar {
  background: #0A1624;
  border-bottom: 3px solid #C9A227;
  box-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
[data-theme="dark"] .nav-links a { color: #C5CDD7; }
[data-theme="dark"] .nav-links a:hover {
  background: #142B3F;
  color: #C9A227;
}
[data-theme="dark"] .nav-links a.active { color: #C9A227; }
[data-theme="dark"] .nav-phone { color: #C9A227; }
[data-theme="dark"] .hamburger span { background: #C5CDD7; }

/* ── Mobile menu ── */
[data-theme="dark"] .mobile-menu {
  background: #0A1624;
  border-top: 1px solid #1A2D42;
}
[data-theme="dark"] .mobile-menu a {
  color: #C5CDD7;
  border-bottom-color: #142B3F;
}
[data-theme="dark"] .mobile-menu a:hover { background: #142B3F; }

/* ── Hero — deeper, richer darkness ── */
[data-theme="dark"] .hero {
  background:
    linear-gradient(135deg, rgba(6,14,24,0.96) 0%, rgba(10,22,36,0.92) 60%, rgba(20,43,63,0.90) 100%),
    url('../images/hero-consultants.jpg') center center / cover no-repeat !important;
}
[data-theme="dark"] .page-hero {
  background:
    linear-gradient(135deg, rgba(6,14,24,0.94) 0%, rgba(14,33,51,0.90) 100%),
    url('../images/hero-consultants.jpg') center center / cover no-repeat !important;
}
[data-theme="dark"] .hero h1,
[data-theme="dark"] .hero h2,
[data-theme="dark"] .hero h3,
[data-theme="dark"] .page-hero h1,
[data-theme="dark"] .page-hero h2,
[data-theme="dark"] .page-hero h3 { color: #FFFFFF !important; }
[data-theme="dark"] .hero p,
[data-theme="dark"] .page-hero p { color: rgba(245,247,250,0.85); }
[data-theme="dark"] .hero-eyebrow {
  background: rgba(201,162,39,0.18);
  color: #C9A227;
  border: 1px solid rgba(201,162,39,0.35);
}
[data-theme="dark"] .hero-stat strong { color: #FFFFFF; }
[data-theme="dark"] .hero-stat span { color: rgba(197,205,215,0.75); }
[data-theme="dark"] .page-hero .breadcrumb { color: rgba(197,205,215,0.65) !important; }
[data-theme="dark"] .page-hero .breadcrumb a { color: rgba(201,162,39,0.85) !important; }
[data-theme="dark"] .page-hero .breadcrumb a:hover { color: #C9A227 !important; }
[data-theme="dark"] .page-hero .section-label {
  background: rgba(201,162,39,0.15);
  color: #C9A227;
}

/* ── Trust bar ── */
[data-theme="dark"] .trust-bar {
  background: #142B3F;
  border-color: #22394D;
}
[data-theme="dark"] .trust-item { color: #A7B3C2; }
[data-theme="dark"] .trust-item i { color: #C9A227; }

/* ── Section backgrounds ── */
[data-theme="dark"] .bg-white,
[data-theme="dark"] section:not(.hero):not(.page-hero):not(.cta-banner):not(.trust-bar) {
  background: #0E2133;
}
[data-theme="dark"] .bg-light { background: #142B3F; }
[data-theme="dark"] .bg-primary { background: #0A1624; }
[data-theme="dark"] .section-accent { background: #0E2133; }

/* ── Cards ── */
[data-theme="dark"] .card {
  background: #142B3F;
  border-color: #22394D;
  color: #C5CDD7;
}
[data-theme="dark"] .card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  border-color: #C9A227;
}

/* ── Testimonial cards ── */
[data-theme="dark"] .testimonial-card {
  background: #142B3F;
  border-color: #22394D;
}
[data-theme="dark"] .testimonial-quote { color: #C5CDD7; }
[data-theme="dark"] .author-name { color: #F5F7FA; }

/* ── Blog cards ── */
[data-theme="dark"] .blog-card {
  background: #142B3F;
  border-color: #22394D;
}
[data-theme="dark"] .blog-card-title { color: #F5F7FA; }
[data-theme="dark"] .blog-card-excerpt { color: #A7B3C2; }
[data-theme="dark"] .blog-tag {
  background: #211A08;
  color: #C9A227;
}

/* ── Stat numbers ── */
[data-theme="dark"] .stat-number { color: #C9A227; }
[data-theme="dark"] .stat-label { color: #A7B3C2; }

/* ── Icon boxes ── */
[data-theme="dark"] .icon-box {
  background: #211A08;
  color: #C9A227;
}
[data-theme="dark"] .service-card:hover .icon-box {
  background: #C9A227;
  color: #0A1624;
}

/* ── Section labels ── */
[data-theme="dark"] .section-label {
  background: #211A08;
  color: #C9A227;
}
[data-theme="dark"] .section-sub { color: #A7B3C2; }
[data-theme="dark"] .text-muted { color: #A7B3C2; }

/* ── Process steps ── */
[data-theme="dark"] .process-steps::before { background: #22394D; }
[data-theme="dark"] .step-number {
  background: #C9A227;
  color: #0A1624;
  box-shadow: 0 0 0 2px #22394D;
  border-color: #0A1624;
}
[data-theme="dark"] .step-title { color: #F5F7FA; }
[data-theme="dark"] .step-desc { color: #A7B3C2; }

/* ── FAQ ── */
[data-theme="dark"] .faq-item {
  background: #142B3F;
  border-color: #22394D;
}
[data-theme="dark"] .faq-question { background: #142B3F; }
[data-theme="dark"] .faq-question span { color: #F5F7FA; }
[data-theme="dark"] .faq-icon {
  background: #211A08;
  color: #C9A227;
}
[data-theme="dark"] .faq-item.open { border-color: #C9A227; }
[data-theme="dark"] .faq-item.open .faq-icon {
  background: #C9A227;
  color: #0A1624;
}
[data-theme="dark"] .faq-answer { color: #C5CDD7; }
[data-theme="dark"] .faq-answer p { color: #C5CDD7 !important; }
[data-theme="dark"] .faq-answer ul,
[data-theme="dark"] .faq-answer li { color: #C5CDD7; }
[data-theme="dark"] .faq-category-label {
  color: #C9A227;
  border-bottom-color: #211A08;
}

/* ── CTA banner ── */
[data-theme="dark"] .cta-banner {
  background: linear-gradient(135deg, #060E18 0%, #0A1624 100%);
  border-top: 1px solid #22394D;
  border-bottom: 1px solid #22394D;
}
[data-theme="dark"] .cta-banner h2 { color: #FFFFFF; }
[data-theme="dark"] .cta-banner p { color: rgba(197,205,215,0.85); }
[data-theme="dark"] .cta-banner .btn-ghost {
  border-color: rgba(201,162,39,0.5);
  color: #C9A227;
}
[data-theme="dark"] .cta-banner .btn-ghost:hover {
  background: rgba(201,162,39,0.12);
}

/* ── CTA button — Deep Amber ── */
[data-theme="dark"] .btn-cta {
  background: #FF8F00;
  color: #FFFFFF;
}
[data-theme="dark"] .btn-cta:hover {
  background: #E65100;
  box-shadow: 0 6px 24px rgba(255,143,0,0.40);
}

/* ── Outline buttons ── */
[data-theme="dark"] .btn-outline {
  border-color: #C9A227;
  color: #C9A227;
}
[data-theme="dark"] .btn-outline:hover {
  background: #C9A227;
  color: #0A1624;
}

/* ── Urgency / violation badges ── */
[data-theme="dark"] .urgency-badge {
  background: #2A0E0E;
  color: #EF5350;
  border-color: #3D1414;
}
[data-theme="dark"] .result-badge-win {
  background: #0E2118;
  color: #4DB85C;
}
[data-theme="dark"] .result-badge-violation {
  background: #2A0E0E;
  color: #EF5350;
}

/* ── Forms — stay light ── */
[data-theme="dark"] .lead-form,
[data-theme="dark"] form.lead-form,
[data-theme="dark"] .inline-lead-form,
[data-theme="dark"] #consultForm,
[data-theme="dark"] #homeLeadForm {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 2rem;
}
[data-theme="dark"] .form-control {
  background: #FFFFFF;
  color: #1A1A1A;
  border-color: #D1D5DB;
}
[data-theme="dark"] .form-label { color: #1A1A1A; }

/* ── Footer ── */
[data-theme="dark"] .footer,
[data-theme="dark"] footer.footer {
  background: #060E18;
  border-top: 1px solid #1A2D42;
}
[data-theme="dark"] .footer-heading { color: #A7B3C2; }
[data-theme="dark"] .footer-col a { color: #A7B3C2; }
[data-theme="dark"] .footer-col a:hover { color: #C9A227; }
[data-theme="dark"] .footer-bottom { color: #6B7280; border-top-color: #1A2D42; }
[data-theme="dark"] .footer-logo-sub { color: #C9A227; }
[data-theme="dark"] .divider-accent {
  background: linear-gradient(90deg, #C9A227, #8C6A2B);
}

/* ── Stars ── */
[data-theme="dark"] .stars { color: #C9A227; }

/* ── Links ── */
[data-theme="dark"] a { color: #C9A227; }
[data-theme="dark"] a:hover { color: #D4AE3A; }
[data-theme="dark"] .nav-links a,
[data-theme="dark"] .footer-col a,
[data-theme="dark"] .mobile-menu a { color: inherit; }

/* ── Inline style overrides ── */
[data-theme="dark"] [style*="background:#fff"],
[data-theme="dark"] [style*="background: #fff"],
[data-theme="dark"] [style*="background:#FFFFFF"],
[data-theme="dark"] [style*="background: white"] {
  background: #142B3F !important;
}
[data-theme="dark"] [style*="color:#1C1C1C"],
[data-theme="dark"] [style*="color: #1C1C1C"],
[data-theme="dark"] [style*="color:#374151"],
[data-theme="dark"] [style*="color:#333333"],
[data-theme="dark"] [style*="color:#1A1A1A"] {
  color: #C5CDD7 !important;
}
