/**
 * Light mode readability enhancements
 * Ensures all text is well-readable with high contrast (WCAG AA compliant)
 */

[data-theme="light"] {
    /* Very dark/black text for maximum readability on light backgrounds */
    --text-primary: #000000;
    --text-secondary: #0d0a08;
    
    /* Cleaner backgrounds for better contrast */
    --bg-primary: linear-gradient(135deg, #FFFBF5 0%, #F8F2E8 50%, #F0E8DC 100%);
    --bg-secondary: rgba(255, 255, 255, 0.98);
    --bg-card: rgba(255, 255, 255, 0.98);
    
    /* Stronger borders for clarity */
    --border-color: rgba(61, 46, 31, 0.2);
    --shadow-color: rgba(61, 46, 31, 0.08);
}

/* Ensure all text elements use deep black/dark colors */
[data-theme="light"] body,
[data-theme="light"] span,
[data-theme="light"] div,
[data-theme="light"] a:not(.cta-button):not(.btn-primary):not(.btn-secondary) {
    color: #000000;
}

[data-theme="light"] p,
[data-theme="light"] li {
    line-height: 1.8;
    font-weight: 500;
    color: #050403;
}

[data-theme="light"] .service-card p,
[data-theme="light"] .service-card li,
[data-theme="light"] .feature-card p,
[data-theme="light"] .content-section p,
[data-theme="light"] .blog-content p,
[data-theme="light"] .legal-section p {
    color: #0d0a08;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    color: #000000;
    font-weight: 800;
}

/* Form inputs - ensure readable text and placeholders */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select {
    color: #000000;
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(61, 46, 31, 0.3);
}

[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
    color: #1a1410;
    opacity: 0.85;
}

[data-theme="light"] .form-group label {
    color: #000000;
    font-weight: 700;
}

/* Cards and content boxes */
[data-theme="light"] .service-card,
[data-theme="light"] .feature-card,
[data-theme="light"] .content-section,
[data-theme="light"] .blog-content,
[data-theme="light"] .legal-section {
    background: var(--bg-card);
}

[data-theme="light"] .service-card h3,
[data-theme="light"] .feature-card h4 {
    color: #000000;
}

/* Links - ensure they're visible and distinguishable */
[data-theme="light"] .nav-links a,
[data-theme="light"] a:not(.cta-button):not(.btn-primary):not(.btn-secondary) {
    color: #000000;
}

/* Footer has dark background - keep links light */
[data-theme="light"] .footer-section a,
[data-theme="light"] .footer-section h3,
[data-theme="light"] .footer-section p {
    color: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .nav-links a:hover {
    color: var(--bronze);
}

[data-theme="light"] .footer-section a:hover {
    color: var(--bronze);
}

/* Hero and intro text */
[data-theme="light"] .hero-title,
[data-theme="light"] .hero-description,
[data-theme="light"] .intro-title,
[data-theme="light"] .intro-description,
[data-theme="light"] .section-title {
    color: #000000;
}

/* Blog-specific */
[data-theme="light"] .blog-card-title,
[data-theme="light"] .blog-title,
[data-theme="light"] .blog-hero p {
    color: #000000;
}

[data-theme="light"] .blog-card-excerpt,
[data-theme="light"] .blog-content p,
[data-theme="light"] .blog-content li {
    color: #0d0a08;
}

/* Legal-specific */
[data-theme="light"] .legal-hero h1,
[data-theme="light"] .legal-hero p,
[data-theme="light"] .legal-section h2 {
    color: #000000;
}

[data-theme="light"] .legal-section p,
[data-theme="light"] .legal-section li,
[data-theme="light"] .last-updated {
    color: #0d0a08;
}

/* Sitemap cards */
[data-theme="light"] .card a,
[data-theme="light"] .card h2 {
    color: #000000;
}

[data-theme="light"] .subtitle {
    color: #0d0a08;
}

/* Hero subtitle, read-more links, highlights */
[data-theme="light"] .hero-subtitle,
[data-theme="light"] .read-more,
[data-theme="light"] .highlight {
    color: #000000;
}

[data-theme="light"] .read-more:hover {
    color: var(--bronze);
}

/* Mega menu text in light mode */
[data-theme="light"] .mega-menu a,
[data-theme="light"] .mega-menu h4 {
    color: #000000;
}

[data-theme="light"] .mega-menu p {
    color: #0d0a08;
}

/* Top bar stays dark for brand consistency - override if needed */
[data-theme="light"] .top-bar {
    background: var(--dark-brown);
    color: var(--light-text);
}

/* Ensure body background uses light gradient */
[data-theme="light"] body {
    background: var(--bg-primary);
}

/* Contact section and testimonial */
[data-theme="light"] .contact-section h2,
[data-theme="light"] .testimonial-text,
[data-theme="light"] .testimonial-author,
[data-theme="light"] .feature-content h3 {
    color: #000000;
}

[data-theme="light"] .testimonial-location {
    color: #3d2e1f;
}

[data-theme="light"] .feature-content p {
    color: #0d0a08;
}
