/* ===== CUSTOM TEXT COLOR OVERRIDES ===== */
/* These set BASE defaults only. Section-level dark/gradient styles take priority. */
/* Edit values below to change default text colors globally. */
/* To disable: comment out or delete this entire file's content. */

/* Base defaults - ONLY apply when no section override is active */
body:not(.section-dark):not(.section-gradient) {
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-primary: #0ea5e9;
    --accent-secondary: #0284c7;
}

/* === SECTION DARK OVERRIDE (higher specificity) === */
.section-dark,
[data-theme="dark"] .section-dark,
[data-theme="midnight-blue"] .section-dark,
[data-theme="neon-tech"] .section-dark,
[data-theme="cyber-dark"] .section-dark,
[data-theme="emerald-night"] .section-dark {
    --text-primary: #ffffff !important;
    --text-secondary: rgba(255, 255, 255, 0.8) !important;
    --text-muted: rgba(255, 255, 255, 0.5) !important;
    --accent-primary: var(--accent-primary) !important;
}

/* === SECTION GRADIENT OVERRIDE (higher specificity) === */
.section-gradient,
[data-theme="gradient"] .section-gradient {
    --text-primary: #ffffff !important;
    --text-secondary: rgba(255, 255, 255, 0.8) !important;
    --text-muted: rgba(255, 255, 255, 0.5) !important;
    --accent-primary: #a78bfa !important;
}

/* === CARD CONTRAST FIXES FOR DARK/GRADIENT SECTIONS === */

/* Testimonial cards in dark sections */
.section-dark .testimonial-card,
.section-gradient .testimonial-card {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}
.section-dark .testimonial-card p,
.section-dark .testimonial-card strong,
.section-dark .testimonial-card small,
.section-dark .testimonial-card .testimonial-text,
.section-dark .testimonial-card .testimonial-author,
.section-gradient .testimonial-card p,
.section-gradient .testimonial-card strong,
.section-gradient .testimonial-card small,
.section-gradient .testimonial-card .testimonial-text,
.section-gradient .testimonial-card .testimonial-author {
    color: rgba(255, 255, 255, 0.9) !important;
}
.section-dark .testimonial-stars,
.section-gradient .testimonial-stars {
    color: #fbbf24 !important;
}
.section-dark .testimonial-avatar,
.section-gradient .testimonial-avatar {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

/* Generic cards in dark sections */
.section-dark .card,
.section-dark .glass-card,
.section-dark .service-card,
.section-dark .package-card,
.section-dark .faq-item,
.section-dark .news-card,
.section-gradient .card,
.section-gradient .glass-card,
.section-gradient .service-card,
.section-gradient .package-card,
.section-gradient .faq-item,
.section-gradient .news-card {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}
.section-dark .card h3,
.section-dark .card p,
.section-dark .card li,
.section-dark .card small,
.section-dark .card span,
.section-gradient .card h3,
.section-gradient .card p,
.section-gradient .card li,
.section-gradient .card small,
.section-gradient .card span {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Section subtitles in dark/gradient */
.section-dark .section-subtitle,
.section-gradient .section-subtitle {
    color: var(--accent-primary) !important;
}

/* Contact form inputs in dark sections */
.section-dark input,
.section-dark textarea,
.section-dark select,
.section-gradient input,
.section-gradient textarea,
.section-gradient select {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}
.section-dark input::placeholder,
.section-dark textarea::placeholder,
.section-gradient input::placeholder,
.section-gradient textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}
.section-dark label,
.section-gradient label {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* FAQ items in dark sections */
.section-dark .faq-item summary,
.section-dark .faq-item details,
.section-gradient .faq-item summary,
.section-gradient .faq-item details {
    color: #ffffff !important;
}

/* Stats/counters in dark sections */
.section-dark .stat-value,
.section-dark .stat-number,
.section-dark .counter,
.section-gradient .stat-value,
.section-gradient .stat-number,
.section-gradient .counter {
    color: #ffffff !important;
}
/* === NAVIGATION TEXT COLOR FIXES === */

/* SCROLLED navbar: ALWAYS white text (dark bg on all themes) */
.navbar.scrolled .nav-links a,
.navbar.scrolled .logo,
.navbar.scrolled .mobile-toggle,
.navbar.scrolled .btn-outline {
    color: #ffffff !important;
}
.navbar.scrolled .logo {
    -webkit-text-fill-color: initial !important;
    background: none !important;
    color: #ffffff !important;
}

/* UNSCROLLED navbar on LIGHT themes: dark text */
[data-theme="light"] .navbar:not(.scrolled) .nav-links a,
[data-theme="red-white-new"] .navbar:not(.scrolled) .nav-links a,
[data-theme="sunset-warm"] .navbar:not(.scrolled) .nav-links a,
[data-theme="ocean-breeze"] .navbar:not(.scrolled) .nav-links a,
[data-theme="forest-green"] .navbar:not(.scrolled) .nav-links a,
[data-theme="royal-purple"] .navbar:not(.scrolled) .nav-links a,
[data-theme="slate-modern"] .navbar:not(.scrolled) .nav-links a,
[data-theme="cherry-blossom"] .navbar:not(.scrolled) .nav-links a,
[data-theme="amber-gold"] .navbar:not(.scrolled) .nav-links a,
[data-theme="arctic-frost"] .navbar:not(.scrolled) .nav-links a,
[data-theme="minimal"] .navbar:not(.scrolled) .nav-links a,
[data-theme="corporate-blue"] .navbar:not(.scrolled) .nav-links a,
[data-theme="glass"] .navbar:not(.scrolled) .nav-links a {
    color: #1e293b !important;
}

/* UNSCROLLED navbar on DARK themes: white text */
[data-theme="dark"] .navbar:not(.scrolled) .nav-links a,
[data-theme="midnight-blue"] .navbar:not(.scrolled) .nav-links a,
[data-theme="neon-tech"] .navbar:not(.scrolled) .nav-links a,
[data-theme="cyber-dark"] .navbar:not(.scrolled) .nav-links a,
[data-theme="emerald-night"] .navbar:not(.scrolled) .nav-links a,
[data-theme="gradient"] .navbar:not(.scrolled) .nav-links a {
    color: #ffffff !important;
}

/* Top bar: always dark bg + white text */
.top-bar {
    background: #1a1a2e !important;
    color: rgba(255, 255, 255, 0.9) !important;
}
.top-bar a {
    color: rgba(255, 255, 255, 0.9) !important;
}
