/* ============================================
   CDL MANAGER — DARK THEME
   Deep Graphite + Rich Teal + Copper Orange
   Applied via [data-theme="dark"] on <html>
   ============================================ */

[data-theme="dark"] {

  /* ── Color tokens ── */
  --brand-primary:       #0FA3B1;
  --brand-primary-rgb:   15, 163, 177;
  --brand-primary-light: #12B5C5;
  --brand-primary-pale:  #081A1D;
  --brand-secondary:     #0FA3B1;
  --brand-secondary-light: #12B5C5;
  --brand-accent:        #7B8A94;
  --brand-accent-light:  #9AAAB4;
  --brand-cta:           #E36414;
  --brand-cta-hover:     #C8550F;
  --brand-bg:            #1F2428;
  --brand-bg-teal:       #081A1D;
  --text-primary:        #F1F3F5;
  --text-body:           #C8D0D8;
  --text-muted:          #A0AAB3;

  color-scheme: dark;
}

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

/* ── Headings — Manrope for CDL Manager ── */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 { color: #F1F3F5; font-family: 'Manrope', 'Montserrat', sans-serif; }

/* ── Topbar ── */
[data-theme="dark"] .topbar {
  background: #0A0C0E;
  color: #C8D0D8;
  border-bottom: 1px solid #2C333A;
}
[data-theme="dark"] .topbar a { color: rgba(200,208,216,0.85); }

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

/* ── Mobile menu ── */
[data-theme="dark"] .mobile-menu {
  background: #121417;
  border-top: 1px solid #2C333A;
}
[data-theme="dark"] .mobile-menu a {
  color: #C8D0D8;
  border-bottom-color: #1F2428;
}
[data-theme="dark"] .mobile-menu a:hover { background: #1F2428; }

/* ── Hero — deepest graphite ── */
[data-theme="dark"] .hero,
[data-theme="dark"] .page-hero {
  background:
    linear-gradient(135deg, rgba(8,10,12,0.96) 0%, rgba(18,20,23,0.92) 60%, rgba(31,36,40,0.90) 100%),
    url('../images/hero-manager.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(241,243,245,0.85); }
[data-theme="dark"] .hero-eyebrow {
  background: rgba(15,163,177,0.15);
  color: #0FA3B1;
  border-color: rgba(15,163,177,0.30);
}
[data-theme="dark"] .hero-stat strong { color: #FFFFFF; }
[data-theme="dark"] .hero-stat span { color: rgba(200,208,216,0.75); }
[data-theme="dark"] .page-hero .section-label {
  background: rgba(15,163,177,0.15);
  color: #0FA3B1;
}
[data-theme="dark"] .page-hero .breadcrumb { color: rgba(200,208,216,0.65) !important; }
[data-theme="dark"] .page-hero .breadcrumb a { color: rgba(15,163,177,0.90) !important; }

/* ── Trust bar ── */
[data-theme="dark"] .trust-bar {
  background: #1F2428;
  border-color: #2C333A;
}
[data-theme="dark"] .trust-item { color: #A0AAB3; }
[data-theme="dark"] .trust-item i { color: #0FA3B1; }

/* ── Section backgrounds ── */
[data-theme="dark"] .bg-white,
[data-theme="dark"] section:not(.hero):not(.page-hero):not(.cta-banner):not(.trust-bar) {
  background: #171A1E;
}
[data-theme="dark"] .bg-light { background: #1F2428; }
[data-theme="dark"] .bg-primary { background: #121417; }
[data-theme="dark"] .section-accent { background: #081A1D; }

/* ── Cards ── */
[data-theme="dark"] .card {
  background: #1F2428;
  border-color: #2C333A;
  color: #C8D0D8;
}
[data-theme="dark"] .card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  border-color: #0FA3B1;
}

/* ── Testimonial cards ── */
[data-theme="dark"] .testimonial-card {
  background: #1F2428;
  border-color: #2C333A;
}
[data-theme="dark"] .testimonial-quote { color: #C8D0D8; }
[data-theme="dark"] .author-name { color: #F1F3F5; }

/* ── Plan cards ── */
[data-theme="dark"] .plan-card {
  background: #1F2428;
  border: 1px solid #2C333A;
}
[data-theme="dark"] .plan-card.featured {
  background: linear-gradient(135deg, #0D7A85 0%, #0FA3B1 100%);
  border-color: #0FA3B1;
}
[data-theme="dark"] .plan-card h3,
[data-theme="dark"] .plan-card h4,
[data-theme="dark"] .plan-card .plan-price { color: #F1F3F5; }
[data-theme="dark"] .plan-card.featured h3,
[data-theme="dark"] .plan-card.featured h4,
[data-theme="dark"] .plan-card.featured .plan-price { color: #FFFFFF; }

/* ── Blog cards ── */
[data-theme="dark"] .blog-card {
  background: #1F2428;
  border-color: #2C333A;
}
[data-theme="dark"] .blog-card-title { color: #F1F3F5; }
[data-theme="dark"] .blog-card-excerpt { color: #A0AAB3; }
[data-theme="dark"] .blog-tag {
  background: #081A1D;
  color: #0FA3B1;
}

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

/* ── Icon boxes ── */
[data-theme="dark"] .icon-box {
  background: #081A1D;
  color: #0FA3B1;
}
[data-theme="dark"] .service-card:hover .icon-box {
  background: #0FA3B1;
  color: #121417;
}

/* ── SaaS badge ── */
[data-theme="dark"] .saas-badge {
  background: #081A1D;
  color: #0FA3B1;
  border-color: rgba(15,163,177,0.25);
}

/* ── Monitor pill ── */
[data-theme="dark"] .monitor-pill {
  background: #081A1D;
  color: #0FA3B1;
}

/* ── Monitoring dot ── */
[data-theme="dark"] .monitoring-dot { background: #0FA3B1; }

/* ── Section labels ── */
[data-theme="dark"] .section-label {
  background: #081A1D;
  color: #0FA3B1;
}
[data-theme="dark"] .section-sub { color: #A0AAB3; }
[data-theme="dark"] .text-muted { color: #A0AAB3; }

/* ── Process steps ── */
[data-theme="dark"] .process-steps::before { background: #2C333A; }
[data-theme="dark"] .step-number {
  background: #0FA3B1;
  color: #121417;
  box-shadow: 0 0 0 2px #2C333A;
  border-color: #121417;
}
[data-theme="dark"] .step-title { color: #F1F3F5; }
[data-theme="dark"] .step-desc { color: #A0AAB3; }

/* ── FAQ ── */
[data-theme="dark"] .faq-item {
  background: #1F2428;
  border-color: #2C333A;
}
[data-theme="dark"] .faq-question { background: #1F2428; }
[data-theme="dark"] .faq-question span { color: #F1F3F5; }
[data-theme="dark"] .faq-icon {
  background: #081A1D;
  color: #0FA3B1;
}
[data-theme="dark"] .faq-item.open { border-color: #0FA3B1; }
[data-theme="dark"] .faq-item.open .faq-icon {
  background: #0FA3B1;
  color: #121417;
}
[data-theme="dark"] .faq-answer { color: #C8D0D8; }
[data-theme="dark"] .faq-answer p { color: #C8D0D8 !important; }
[data-theme="dark"] .faq-answer ul,
[data-theme="dark"] .faq-answer li { color: #C8D0D8; }
[data-theme="dark"] .faq-category-label {
  color: #0FA3B1;
  border-bottom-color: #081A1D;
}

/* ── CTA banner ── */
[data-theme="dark"] .cta-banner {
  background: linear-gradient(135deg, #0A0C0E 0%, #121417 100%);
  border-top: 1px solid #2C333A;
  border-bottom: 1px solid #2C333A;
}
[data-theme="dark"] .cta-banner h2 { color: #FFFFFF; }
[data-theme="dark"] .cta-banner p { color: rgba(200,208,216,0.85); }

/* ── CTA button — Copper Orange ── */
[data-theme="dark"] .btn-cta {
  background: #E36414;
  color: #FFFFFF;
}
[data-theme="dark"] .btn-cta:hover {
  background: #C8550F;
  box-shadow: 0 6px 24px rgba(227,100,20,0.40);
}

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

/* ── Forms — stay light ── */
[data-theme="dark"] .lead-form,
[data-theme="dark"] form.lead-form,
[data-theme="dark"] .inline-lead-form {
  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: #080A0C;
  border-top: 1px solid #2C333A;
}
[data-theme="dark"] .footer-heading { color: #A0AAB3; }
[data-theme="dark"] .footer-col a { color: #A0AAB3; }
[data-theme="dark"] .footer-col a:hover { color: #0FA3B1; }
[data-theme="dark"] .footer-bottom { color: #6B7280; border-top-color: #2C333A; }
[data-theme="dark"] .footer-logo-sub { color: #0FA3B1; }
[data-theme="dark"] .divider-accent {
  background: linear-gradient(90deg, #0FA3B1, #7B8A94);
}

/* ── Silver accents ── */
[data-theme="dark"] .accent-silver { color: #7B8A94; }
[data-theme="dark"] .bg-silver { background: #1F2428; }

/* ── Links ── */
[data-theme="dark"] a { color: #0FA3B1; }
[data-theme="dark"] a:hover { color: #12B5C5; }
[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: #1F2428 !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: #C8D0D8 !important;
}

/* ── Manager-specific hero inline override ── */
[data-theme="dark"] .hero.manager-hero,
[data-theme="dark"] section.hero[style] {
  background:
    linear-gradient(135deg, rgba(8,10,12,0.96) 0%, rgba(18,20,23,0.92) 100%),
    url('../images/hero-manager.jpg') center center / cover no-repeat !important;
}
