/* BizWebFix theme variables — dark (default) and light */

:root {
  --black: #0b0b0b;
  --white: #ffffff;
  --off-white: #f5f2ed;
  --cream: #e8e3db;
  --accent: #e63946;
  --accent-dark: #c1121f;
  --charcoal: #1a1a1a;
  --gold: #f0c040;
  --gray-700: #444;
  --gray-500: #777;
  --gray-400: #999;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --border: rgba(255,255,255,0.06);
  --nav-bg: rgba(11,11,11,0.92);
  --text-muted: rgba(255,255,255,0.5);
  --text-dimmer: rgba(255,255,255,0.3);
  --card-bg: rgba(255,255,255,0.03);
  --card-border: rgba(255,255,255,0.06);
}

[data-theme="light"] {
  --black: #ffffff;
  --white: #0f0f0f;
  --off-white: #f0f0f0;
  --cream: #e0e0e0;
  --charcoal: #f0f0f0;
  --gray-700: #bbb;
  --gray-500: #888;
  --gray-400: #666;
  --surface: #f7f7f7;
  --surface-2: #ebebeb;
  --border: rgba(0,0,0,0.08);
  --nav-bg: rgba(255,255,255,0.95);
  --text-muted: rgba(0,0,0,0.5);
  --text-dimmer: rgba(0,0,0,0.35);
  --card-bg: rgba(0,0,0,0.03);
  --card-border: rgba(0,0,0,0.08);
}

/* ─── Theme toggle button ─── */
.theme-toggle {
  background: none;
  border: 1.5px solid var(--card-border);
  border-color: rgba(128,128,128,0.3);
  border-radius: 100px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  color: inherit;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: rgba(128,128,128,0.6);
  background: var(--card-bg);
}
.theme-toggle .toggle-icon { font-size: 1rem; }
.theme-toggle .toggle-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: none;
}
@media (min-width: 768px) {
  .theme-toggle .toggle-label { display: inline; }
}

/* ─── Related links section (blog posts) ─── */
.related { max-width: 700px; margin: 0 auto; padding: 0 2.5rem 4rem; }
.related h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; }
.related a { display: block; color: var(--accent); text-decoration: none; font-size: 0.95rem; margin-bottom: 0.6rem; }
.related a:hover { text-decoration: underline; }
@media (max-width: 768px) { .related { padding-left: 1.5rem; padding-right: 1.5rem; } }

[data-theme="light"] .related h3 { color: rgba(0,0,0,0.4); }

/* ─── CTA box (blog posts) ─── */
[data-theme="light"] .cta-box { background: #fff !important; border-color: rgba(230,57,70,0.2) !important; }
[data-theme="light"] .cta-box h2,
[data-theme="light"] .cta-box h3 { color: #0f0f0f !important; }
[data-theme="light"] .cta-box p { color: rgba(0,0,0,0.6) !important; }

/* ─── Niche CTA section ─── */
[data-theme="light"] .cta-section { background: #ebebeb !important; }
[data-theme="light"] .cta-section h2 { color: #0f0f0f !important; }
[data-theme="light"] .cta-section p { color: rgba(0,0,0,0.6) !important; }

/* ─── Light mode overrides for rgba hardcodes ─── */
/* nav */
[data-theme="light"] nav {
  background: var(--nav-bg) !important;
  border-bottom-color: rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .nav-logo { color: #0f0f0f !important; }
[data-theme="light"] .nav-links a { color: rgba(0,0,0,0.55) !important; }
[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active { color: #0f0f0f !important; }
[data-theme="light"] .nav-hamburger { color: #0f0f0f !important; }
[data-theme="light"] .nav-links {
  background: rgba(255,255,255,0.98) !important;
  border-bottom-color: rgba(0,0,0,0.08) !important;
}

/* nav-cta in dark uses border outline style on some pages */
[data-theme="light"] .nav-cta:not(.btn-accent) {
  color: #0f0f0f !important;
  border-color: rgba(0,0,0,0.4) !important;
}
[data-theme="light"] .nav-cta:not(.btn-accent):hover {
  background: #0f0f0f !important;
  color: #fff !important;
}

/* body bg */
[data-theme="light"] body { background: #f7f7f7; color: #0f0f0f; }

/* hero text */
[data-theme="light"] .hero-sub,
[data-theme="light"] .hero p { color: rgba(0,0,0,0.55) !important; }
[data-theme="light"] .hero h1,
[data-theme="light"] .hero h2 { color: #0f0f0f; }

/* sections with dark bg */
[data-theme="light"] .how-it-works,
[data-theme="light"] .cta-strip,
[data-theme="light"] .faq-section { background: #ebebeb; }

/* blog cards */
[data-theme="light"] .blog-card {
  background: #fff !important;
  border-color: rgba(0,0,0,0.08) !important;
  color: #0f0f0f;
}
[data-theme="light"] .blog-card h2,
[data-theme="light"] .blog-card h3 { color: #0f0f0f !important; }
[data-theme="light"] .blog-card p { color: rgba(0,0,0,0.55) !important; }
[data-theme="light"] .card-date { color: rgba(0,0,0,0.35) !important; }

/* niche/article pages */
[data-theme="light"] .niche-header,
[data-theme="light"] .article-header { color: #0f0f0f; }
[data-theme="light"] .niche-header p,
[data-theme="light"] .article-header p { color: rgba(0,0,0,0.55) !important; }

/* sections */
[data-theme="light"] section h2,
[data-theme="light"] .section-title { color: #0f0f0f; }
[data-theme="light"] .section-desc,
[data-theme="light"] .section-sub { color: rgba(0,0,0,0.55) !important; }

/* feature/benefit cards */
[data-theme="light"] .feature-card,
[data-theme="light"] .benefit-card,
[data-theme="light"] .reason-card,
[data-theme="light"] .step-card,
[data-theme="light"] .stat-card {
  background: #fff !important;
  border-color: rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .feature-card h3,
[data-theme="light"] .benefit-card h3,
[data-theme="light"] .reason-card h3,
[data-theme="light"] .step-card h3 { color: #0f0f0f !important; }
[data-theme="light"] .feature-card p,
[data-theme="light"] .benefit-card p,
[data-theme="light"] .reason-card p,
[data-theme="light"] .step-card p { color: rgba(0,0,0,0.55) !important; }

/* Process / how-it-works steps */
[data-theme="light"] .process { background: #ebebeb; }
[data-theme="light"] .step h3,
[data-theme="light"] .process h2 { color: #0f0f0f !important; }
[data-theme="light"] .step p { color: rgba(0,0,0,0.6) !important; }
[data-theme="light"] .how-it-works h2,
[data-theme="light"] .how-it-works h3 { color: #0f0f0f !important; }
[data-theme="light"] .how-it-works p { color: rgba(0,0,0,0.6) !important; }

/* Portfolio, offer, and any section using var(--black) as text color */
[data-theme="light"] .portfolio,
[data-theme="light"] .offer-section,
[data-theme="light"] .testimonials,
[data-theme="light"] .portfolio-section { color: #0f0f0f !important; background-color: #f0f0f0; }
[data-theme="light"] .portfolio h2,
[data-theme="light"] .offer-section h2,
[data-theme="light"] .offer-h2,
[data-theme="light"] .offer-section h3 { color: #0f0f0f !important; }

/* Offer main card — always dark regardless of theme (intentionally inverted) */
[data-theme="light"] .offer-main-card {
  background: #111111 !important;
  color: #ffffff !important;
}

/* Offer side steps card */
[data-theme="light"] .offer-step strong { color: #0f0f0f !important; }
[data-theme="light"] .offer-steps { background: #fff !important; border-color: rgba(0,0,0,0.1) !important; }
[data-theme="light"] .offer-step { border-bottom-color: rgba(0,0,0,0.08) !important; }

/* Offer quote block */
[data-theme="light"] .offer-quote-block {
  background: #fff !important;
  border-color: rgba(0,0,0,0.1) !important;
}
[data-theme="light"] .offer-quote-block blockquote { color: #0f0f0f !important; }
[data-theme="light"] .offer-alex-name { color: rgba(0,0,0,0.5) !important; }

/* Testimonials / quotes */
[data-theme="light"] blockquote { color: #0f0f0f !important; }
[data-theme="light"] .testimonial-card { background: #fff !important; border-color: rgba(0,0,0,0.08) !important; }
[data-theme="light"] .testimonial-card blockquote,
[data-theme="light"] .testimonial-card p { color: rgba(0,0,0,0.7) !important; }
[data-theme="light"] .testimonial-card .reviewer { color: rgba(0,0,0,0.45) !important; }

/* Stat cards */
[data-theme="light"] .stat-card { background: #fff !important; }
[data-theme="light"] .stat-card .stat-num { color: var(--accent) !important; }
[data-theme="light"] .stat-card p,
[data-theme="light"] .stat-card span { color: rgba(0,0,0,0.6) !important; }

/* Section tags / labels */
[data-theme="light"] .section-tag { color: var(--accent) !important; }

/* Generic: any element using var(--black) as text in light should be dark */
[data-theme="light"] [style*="color: var(--black)"],
[data-theme="light"] [style*="color:var(--black)"] { color: #0f0f0f !important; }

/* FAQ */
[data-theme="light"] .faq { background: #ebebeb !important; color: #0f0f0f !important; }
[data-theme="light"] .faq h2 { color: #0f0f0f !important; }
[data-theme="light"] .faq-item { border-bottom-color: rgba(0,0,0,0.1) !important; }
[data-theme="light"] .faq-q,
[data-theme="light"] .faq-question { color: #0f0f0f !important; }
[data-theme="light"] .faq-a,
[data-theme="light"] .faq-answer { color: rgba(0,0,0,0.6) !important; }

/* footer */
[data-theme="light"] footer {
  background: #1a1a1a !important;
  border-top-color: rgba(255,255,255,0.08) !important;
}
/* Keep footer always-dark — don't invert it in light mode */

/* Ghost buttons */
[data-theme="light"] .btn-ghost {
  color: #0f0f0f !important;
  border-color: rgba(0,0,0,0.25) !important;
}
[data-theme="light"] .btn-ghost:hover {
  border-color: rgba(0,0,0,0.55) !important;
}

/* Article/blog post body text */
[data-theme="light"] .article-body,
[data-theme="light"] .post-content,
[data-theme="light"] .prose { color: #1a1a1a !important; }
[data-theme="light"] .article-body h2,
[data-theme="light"] .article-body h3,
[data-theme="light"] .post-content h2,
[data-theme="light"] .post-content h3 { color: #0f0f0f !important; }
[data-theme="light"] .article-body p,
[data-theme="light"] .post-content p { color: rgba(0,0,0,0.7) !important; }

/* Pricing / CTA sections */
[data-theme="light"] .pricing-card {
  background: #fff !important;
  border-color: rgba(0,0,0,0.1) !important;
}
[data-theme="light"] .pricing-card h3,
[data-theme="light"] .pricing-card .price { color: #0f0f0f !important; }
[data-theme="light"] .pricing-card p,
[data-theme="light"] .pricing-card li { color: rgba(0,0,0,0.6) !important; }
