/* 
 * Color Consistency Override
 * Ensures all pages use brand colors
 */

:root {
    /* Brand Colors - Emerald Green */
    --primary-color: #758a00 !important;
    --secondary-color: #8ea600 !important;
    --accent-color: #f3c623 !important;
    
    /* Remove old purple/teal colors */
    --tech-blue: #758a00 !important;
    --tech-cyan: #8ea600 !important;
    --tech-purple: #758a00 !important;
    --tech-pink: #8ea600 !important;
    
    /* Text colors */
    --text-color: #0F172A;
    --text-light: #475569;
    --light-gray: #F8FAFC;
    --dark-bg: #0F172A;
    --white: #ffffff;
    
    /* Gradients - All using brand colors */
    --gradient-1: linear-gradient(135deg, #758a00 0%, #8ea600 50%, #f3c623 100%) !important;
    --gradient-2: linear-gradient(45deg, #758a00 0%, #8ea600 50%, #f3c623 100%) !important;
    --gradient-3: linear-gradient(135deg, #758a00 0%, #8ea600 100%) !important;
    --gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

/* Override any hardcoded purple/teal backgrounds */
.module-header,
.whats-new-header,
.clients-header,
.solution-detail-header,
header[class*="header"] {
    background: linear-gradient(135deg, rgba(117, 138, 0, 0.95), rgba(142, 166, 0, 0.9)) !important;
}

/* Header Text Contrast - Force White Text */
.module-header h1,
.module-header h2,
.module-header h3,
.module-header p,
.whats-new-header h1,
.whats-new-header h2,
.whats-new-header p,
.clients-header h1,
.clients-header h2,
.clients-header p,
.solution-detail-header h1,
.solution-detail-header h2,
.solution-detail-header p,
header[class*="header"] h1,
header[class*="header"] h2,
header[class*="header"] h3,
header[class*="header"] p,
.header-content h1,
.header-content h2,
.header-content p {
    color: #ffffff !important;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3), 0 1px 5px rgba(0, 0, 0, 0.2) !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

/* Override any gradient text */
header h1[style*="background"],
header h2[style*="background"],
header h1[style*="gradient"],
header h2[style*="gradient"] {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

/* Override gradient backgrounds */
[style*="rgba(0, 168, 107"],
[style*="rgba(124, 58, 237"],
[style*="rgba(139, 92, 246"],
[style*="rgba(14, 165, 233"] {
    background: linear-gradient(135deg, rgba(117, 138, 0, 0.95), rgba(142, 166, 0, 0.9)) !important;
}

/* Buttons consistency */
.cta,
.booking-btn,
.primary-btn,
[class*="btn-primary"] {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

/* Links and accents */
a:hover,
.nav-link:hover,
.dropdown-item:hover {
    color: var(--primary-color) !important;
}

/* Badges and highlights */
.badge:not(.new),
.highlight,
[class*="badge-"] {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

/* Icons */
.icon,
[class*="icon-"] i,
.feature-icon {
    color: var(--primary-color) !important;
}

/* Borders and accents */
.border-accent,
[class*="border-primary"] {
    border-color: var(--primary-color) !important;
}

/* Shadows with brand color */
.shadow-primary {
    box-shadow: 0 4px 15px rgba(117, 138, 0, 0.3) !important;
}

/* Override any inline purple/teal styles */
*[style*="rgb(124, 58, 237)"],
*[style*="rgb(0, 168, 107)"],
*[style*="rgb(139, 92, 246)"] {
    color: var(--primary-color) !important;
}
