/* MT Exims Global - Professional B2B Website Styles */

:root {
    --primary-color: #c9a96e;
    --primary-dark: #b8956a;
    --primary-light: #d4b87a;
    --gold-bright: #f4d03f;
    --bg-dark: #0f0f0f;
    --bg-dark-secondary: #1a1a1a;
    --bg-dark-tertiary: #2a2a2a;
    --text-light: #f5f5f5;
    --text-heading: #e8d5b7;
    --text-muted-light: #d0c4a8;
    --text-muted-dark: #c9a96e;
    --text-gold: #c9a96e;
    --border-dark: #333333;
    --gold-gradient: linear-gradient(135deg, #f4d03f 0%, #c9a96e 50%, #b8956a 100%);
    --dark-gradient: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    --card-dark: rgba(42, 42, 42, 0.8);
    --shadow-dark: 0 4px 15px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 4px 20px rgba(201, 169, 110, 0.4);
    --shadow-gold-lg: 0 8px 30px rgba(201, 169, 110, 0.3);
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--bg-dark);
    padding-top: 76px; /* Account for fixed navbar */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-heading);
}

.display-4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-heading);
}

.display-5 {
    color: var(--text-heading);
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-muted-light);
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(15, 15, 15, 0.95) !important;
    border-bottom: 1px solid var(--border-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand .brand-text h4 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-muted-light);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(201, 169, 110, 0.3);
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--gold-gradient);
    border-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b8956a 0%, #c9a96e 50%, #d4af37 100%);
    border-color: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-width: 2px;
}

.btn-outline-primary:hover {
    background: var(--gold-gradient);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Hero Section */
.hero-section {
    background: var(--dark-gradient);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23333333" stroke-width="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(201, 169, 110, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.trust-indicators .badge {
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-dark);
    height: 100%;
    background: var(--card-dark);
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
    border-color: var(--primary-color);
    background: rgba(42, 42, 42, 0.9);
}

.service-card:hover .service-icon i {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(201, 169, 110, 0.5);
}

.service-icon {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Process Steps */
.process-step {
    position: relative;
}

.step-number {
    font-size: 1.5rem;
    margin: 0 auto;
    background: var(--gold-gradient);
    border: none;
}

.process-number {
    background: var(--gold-gradient) !important;
    border: none;
}

/* Feature Icons */
.feature-icon {
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
}

/* Sections */
section {
    position: relative;
}

.bg-light {
    background: var(--bg-dark-secondary) !important;
}

/* Cards and Components */
.card {
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    background: var(--card-dark);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-dark);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

/* Form Styles */
.form-control {
    border: 2px solid var(--border-dark);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(201, 169, 110, 0.25);
    background: rgba(255, 255, 255, 0.98);
    color: #1a1a1a;
}

.form-control::placeholder {
    color: #666666;
}

.form-label {
    font-weight: 500;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.form-select {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--border-dark);
    color: #1a1a1a;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(201, 169, 110, 0.25);
    background: rgba(255, 255, 255, 0.98);
    color: #1a1a1a;
}

.form-select option {
    background: #ffffff;
    color: #1a1a1a;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%) !important;
}

footer h5, footer h6 {
    color: var(--primary-light) !important;
}

footer a:hover {
    color: white !important;
    text-decoration: underline !important;
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: var(--gold-gradient) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Gold accent elements */
.gold-accent {
    color: var(--primary-color);
}

.gold-bg {
    background: var(--gold-gradient);
}

/* Enhanced trust indicators */
.trust-indicators .badge {
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.2) 0%, rgba(244, 208, 63, 0.2) 100%);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    backdrop-filter: blur(10px);
    text-shadow: 0 0 8px rgba(201, 169, 110, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-section .container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    body {
        padding-top: 0;
        color: black;
        background: white;
    }
    
    .hero-section {
        background: white;
    }
}

/* Dark Theme Enhancements */
.text-muted {
    color: var(--text-muted-light) !important;
}

.lead {
    color: var(--text-muted-light) !important;
}

/* Accordion Dark Theme */
.accordion-item {
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
}

.accordion-button {
    background: var(--card-dark);
    color: var(--text-light);
    border: none;
}

.accordion-button:not(.collapsed) {
    background: var(--bg-dark-tertiary);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(201, 169, 110, 0.25);
}

.accordion-body {
    background: var(--bg-dark-tertiary);
    color: var(--text-muted-light);
}

/* Alert Dark Theme */
.alert-info {
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--text-light);
}

/* Enhanced Gold Effects */
.gold-glow {
    text-shadow: 0 0 10px rgba(201, 169, 110, 0.5);
}

.card-hover-gold:hover {
    box-shadow: 0 8px 25px rgba(201, 169, 110, 0.3);
    border-color: var(--primary-color);
}

/* Process Icons Enhancement */
.process-icon {
    background: rgba(201, 169, 110, 0.1) !important;
    border: 2px solid var(--primary-color);
}

/* Hero Image Enhancement */
.hero-image .bg-light {
    background: var(--card-dark) !important;
    border: 1px solid var(--border-dark);
}

/* Industry Cards Enhancement */
.industry-card {
    background: var(--card-dark) !important;
    border: 1px solid var(--border-dark) !important;
}

/* Commitment Items Enhancement */
.commitment-item {
    background: var(--card-dark) !important;
    border: 1px solid var(--border-dark);
}

/* Contact Items Enhancement */
.contact-item a {
    color: var(--primary-color) !important;
}

.contact-item a:hover {
    color: var(--primary-light) !important;
    text-shadow: 0 0 8px rgba(201, 169, 110, 0.3);
}

/* Scrollbar Dark Theme */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: var(--bg-dark);
}

/* Logo Enhancement */
.logo-img {
    filter: brightness(1.1) contrast(1.1);
    border-radius: 8px;
}

.navbar-brand:hover .logo-img {
    filter: brightness(1.2) contrast(1.2);
    box-shadow: 0 0 15px rgba(201, 169, 110, 0.3);
}

/* Enhanced Text Readability */
p {
    color: var(--text-light);
}

.text-dark {
    color: var(--text-light) !important;
}

/* Card Text Enhancement */
.card-body p,
.card-body li,
.card-body span {
    color: var(--text-muted-light);
}

.card-body h1,
.card-body h2,
.card-body h3,
.card-body h4,
.card-body h5,
.card-body h6 {
    color: var(--text-heading);
}

/* Service Card Text */
.service-card h5 {
    color: var(--text-heading);
}

.service-card p {
    color: var(--text-muted-light);
}

/* List Items */
ul li,
ol li {
    color: var(--text-muted-light);
}

/* Small Text */
small {
    color: var(--text-muted-light);
}

/* Footer Text Enhancement */
footer p,
footer li,
footer span {
    color: var(--text-muted-light) !important;
}

footer a {
    color: var(--primary-light) !important;
}

/* Process Steps Text */
.process-step h5,
.step h5 {
    color: var(--text-heading);
}

.process-step p,
.step p {
    color: var(--text-muted-light);
}

/* Feature Text */
.feature-icon + h5,
.feature-icon + h6 {
    color: var(--text-heading);
}

/* Industry Cards */
.industry-card h3,
.industry-card h5 {
    color: var(--text-heading);
}

.industry-card p,
.industry-card li {
    color: var(--text-muted-light);
}

/* Commitment Items */
.commitment-item h5,
.commitment-item h6 {
    color: var(--text-heading);
}

.commitment-item p {
    color: var(--text-muted-light);
}

/* Contact Items */
.contact-item h6 {
    color: var(--text-heading);
}

.contact-item p {
    color: var(--text-muted-light);
}

/* Alert Text */
.alert p,
.alert strong {
    color: var(--text-light) !important;
}

/* Table Text (if any) */
table,
th,
td {
    color: var(--text-light);
}

/* Form Check Labels */
.form-check-label {
    color: var(--text-muted-light);
}

/* Badge Text */
.badge {
    color: var(--primary-color) !important;
}

/* Breadcrumb */
.breadcrumb-item {
    color: var(--text-muted-light);
}

.breadcrumb-item.active {
    color: var(--primary-color);
}

/* Dropdown */
.dropdown-menu {
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
}

.dropdown-item {
    color: var(--text-light);
}

.dropdown-item:hover {
    background: var(--bg-dark-tertiary);
    color: var(--primary-color);
}

/* Enhanced Golden Text Classes */
.text-gold {
    color: var(--primary-color) !important;
}

.text-gold-light {
    color: var(--primary-light) !important;
}

.text-heading {
    color: var(--text-heading) !important;
}

/* Section Specific Enhancements */
.hero-section h1,
.hero-section h2 {
    color: var(--text-heading);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    color: var(--text-muted-light);
}

/* Trust Indicators Enhancement */
.trust-indicators .badge {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Better Contrast for Important Elements */
.fw-bold,
.fw-semibold {
    color: var(--text-heading);
}

/* Link Colors */
a {
    color: var(--primary-color);
}

a:hover {
    color: var(--primary-light);
}

/* Mark/Highlight */
mark {
    background: rgba(201, 169, 110, 0.3);
    color: var(--text-light);
}
/* Fix Text Contrast on Golden/Light Backgrounds */

/* Primary Button Text - Make it darker on golden background */
.btn-primary {
    color: #1a1a1a !important;
    font-weight: 700;
    text-shadow: none;
}

.btn-primary:hover {
    color: #000000 !important;
}

/* Text on Golden Gradient Backgrounds */
.bg-primary,
.bg-primary *,
.gold-bg,
.gold-bg * {
    color: #1a1a1a !important;
}

.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6 {
    color: #000000 !important;
    text-shadow: none;
}

.bg-primary p,
.bg-primary .lead {
    color: #2a2a2a !important;
}

/* Trust Indicators on Light Backgrounds */
.trust-indicators .badge {
    color: #2a2a2a !important;
    font-weight: 700;
    text-shadow: none;
}

/* Process Numbers - Dark text on golden background */
.step-number,
.process-number {
    color: #1a1a1a !important;
    font-weight: 800;
}

/* Any text inside golden gradient elements */
[style*="background: var(--gold-gradient)"] *,
[style*="background: linear-gradient"] * {
    color: #1a1a1a !important;
}

/* Light background sections - make text darker */
.bg-light h1,
.bg-light h2,
.bg-light h3,
.bg-light h4,
.bg-light h5,
.bg-light h6 {
    color: var(--text-heading) !important;
}

.bg-light p,
.bg-light .text-muted,
.bg-light .lead {
    color: var(--text-muted-light) !important;
}

/* Alert info boxes - better contrast */
.alert-info {
    color: var(--text-light) !important;
}

.alert-info strong,
.alert-info p {
    color: var(--text-light) !important;
}

/* Golden accent elements - dark text */
.gold-accent {
    color: #2a2a2a !important;
}

/* Process icons with golden background */
.process-icon {
    color: #2a2a2a !important;
}

/* Any element with golden background class */
.bg-warning,
.bg-warning * {
    color: #1a1a1a !important;
}

/* Specific fixes for sections that might have contrast issues */
.hero-section .bg-light,
.hero-section .bg-light * {
    color: var(--text-muted-light) !important;
}

.hero-section .bg-light h1,
.hero-section .bg-light h2,
.hero-section .bg-light h3,
.hero-section .bg-light h4,
.hero-section .bg-light h5,
.hero-section .bg-light h6 {
    color: var(--text-heading) !important;
}

/* Badge improvements */
.badge-light {
    background: rgba(42, 42, 42, 0.8) !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color);
}

/* Ensure buttons with golden backgrounds have dark text */
.btn[style*="background"] {
    color: #1a1a1a !important;
}

/* Fix any remaining contrast issues */
.text-warning {
    color: #ffc107 !important;
}

.bg-success,
.bg-success * {
    color: #ffffff !important;
}

.bg-info,
.bg-info * {
    color: #ffffff !important;
}

/* Specific class for dark text on light backgrounds */
.text-dark-contrast {
    color: #1a1a1a !important;
}

.text-dark-contrast h1,
.text-dark-contrast h2,
.text-dark-contrast h3,
.text-dark-contrast h4,
.text-dark-contrast h5,
.text-dark-contrast h6 {
    color: #000000 !important;
}

.text-dark-contrast p,
.text-dark-contrast .lead,
.text-dark-contrast .text-muted {
    color: #2a2a2a !important;
}

/* Override for any golden background elements */
*[class*="gold"]:not(.text-gold):not(.text-gold-light) {
    color: #1a1a1a !important;
}

/* Ensure readability on any light colored backgrounds */
.bg-light-custom,
.bg-light-custom * {
    color: #2a2a2a !important;
}

.bg-light-custom h1,
.bg-light-custom h2,
.bg-light-custom h3,
.bg-light-custom h4,
.bg-light-custom h5,
.bg-light-custom h6 {
    color: #1a1a1a !important;
}
/* Specific Contrast Fixes for Golden Background Elements */

/* Process Icons with bg-primary bg-opacity-10 */
.bg-primary.bg-opacity-10 {
    background: rgba(201, 169, 110, 0.15) !important;
}

.bg-primary.bg-opacity-10 h5,
.bg-primary.bg-opacity-10 h6 {
    color: var(--text-heading) !important;
}

.bg-primary.bg-opacity-10 p {
    color: var(--text-muted-light) !important;
}

/* Step numbers and process numbers - ensure dark text on golden background */
.step-number span,
.process-number span {
    color: #1a1a1a !important;
    font-weight: 800 !important;
}

/* CTA Sections with bg-primary - white text should be visible */
.bg-primary.text-white h1,
.bg-primary.text-white h2,
.bg-primary.text-white h3,
.bg-primary.text-white h4,
.bg-primary.text-white h5,
.bg-primary.text-white h6 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-primary.text-white p,
.bg-primary.text-white .lead {
    color: #f5f5f5 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Strategic Location box fix */
.bg-primary.bg-opacity-10 .text-primary {
    color: var(--primary-color) !important;
}

/* Trust indicators - make sure they're readable */
.trust-indicators .badge {
    background: rgba(201, 169, 110, 0.2) !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    font-weight: 700 !important;
}

/* Any light background sections that might have contrast issues */
.bg-light .text-muted {
    color: var(--text-muted-light) !important;
}

/* Process cards with light backgrounds */
.process-card h5 {
    color: var(--text-heading) !important;
}

.process-card p {
    color: var(--text-muted-light) !important;
}

/* Industry cards */
.industry-card h3 {
    color: var(--text-heading) !important;
}

.industry-card p {
    color: var(--text-muted-light) !important;
}

/* Service detail cards */
.service-detail h3 {
    color: var(--text-heading) !important;
}

.service-detail p {
    color: var(--text-muted-light) !important;
}

.service-detail li {
    color: var(--text-muted-light) !important;
}

/* Commitment items */
.commitment-item h5 {
    color: var(--text-heading) !important;
}

.commitment-item p {
    color: var(--text-muted-light) !important;
}

/* Contact cards */
.contact-item h6 {
    color: var(--text-heading) !important;
}

/* FAQ accordion */
.accordion-button {
    color: var(--text-light) !important;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color) !important;
}

/* Hero image enhancement */
.hero-image h5 {
    color: var(--text-heading) !important;
}

.hero-image p {
    color: var(--text-muted-light) !important;
}

/* Region icons */
.region-icon + h6 {
    color: var(--text-heading) !important;
}

.region-icon + h6 + p {
    color: var(--text-muted-light) !important;
}

/* Benefit items */
.benefit-item h6 {
    color: var(--text-heading) !important;
}

.benefit-item p {
    color: var(--text-muted-light) !important;
}

/* Override any remaining contrast issues */
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
    color: var(--text-heading) !important;
}

.card p, .card li, .card span:not(.badge) {
    color: var(--text-muted-light) !important;
}

/* Ensure all section headings are visible */
section h1, section h2, section h3, section h4, section h5, section h6 {
    color: var(--text-heading) !important;
}

/* Make sure all paragraph text is readable */
section p:not(.text-white):not(.bg-primary p) {
    color: var(--text-light) !important;
}

/* List items in sections */
section li:not(.nav-item) {
    color: var(--text-muted-light) !important;
}
/* Form Success/Error Messages */
.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    color: #28a745;
    border-radius: 8px;
    padding: 1rem;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    color: #dc3545;
    border-radius: 8px;
    padding: 1rem;
}

.form-message {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading button state */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
/* Fix Light Text on White/Light Backgrounds */

/* White background cards and sections */
.bg-white,
.bg-white * {
    color: #1a1a1a !important;
}

.bg-white h1,
.bg-white h2,
.bg-white h3,
.bg-white h4,
.bg-white h5,
.bg-white h6 {
    color: #1a1a1a !important;
}

.bg-white p,
.bg-white .text-muted,
.bg-white .lead,
.bg-white li {
    color: #333333 !important;
}

.bg-white .text-primary {
    color: var(--primary-color) !important;
}

/* Light background sections */
.bg-light,
.bg-light * {
    color: #1a1a1a !important;
}

.bg-light h1,
.bg-light h2,
.bg-light h3,
.bg-light h4,
.bg-light h5,
.bg-light h6 {
    color: #1a1a1a !important;
}

.bg-light p,
.bg-light .text-muted,
.bg-light .lead,
.bg-light li {
    color: #333333 !important;
}

.bg-light .text-primary {
    color: var(--primary-color) !important;
}

/* Service cards with white backgrounds */
.service-card {
    background: var(--card-dark) !important;
    color: var(--text-light) !important;
}

.service-card.bg-white {
    background: #ffffff !important;
    color: #1a1a1a !important;
}

.service-card.bg-white h5 {
    color: #1a1a1a !important;
}

.service-card.bg-white p {
    color: #333333 !important;
}

/* Cards with white backgrounds */
.card.bg-white,
.card.bg-white * {
    color: #1a1a1a !important;
}

.card.bg-white h1,
.card.bg-white h2,
.card.bg-white h3,
.card.bg-white h4,
.card.bg-white h5,
.card.bg-white h6 {
    color: #1a1a1a !important;
}

.card.bg-white p,
.card.bg-white .text-muted,
.card.bg-white li {
    color: #333333 !important;
}

/* Process cards and industry cards on light backgrounds */
.process-card,
.industry-card,
.service-detail {
    background: var(--card-dark) !important;
}

/* Override for any light background elements */
*[class*="bg-light"] h1,
*[class*="bg-light"] h2,
*[class*="bg-light"] h3,
*[class*="bg-light"] h4,
*[class*="bg-light"] h5,
*[class*="bg-light"] h6 {
    color: #1a1a1a !important;
}

*[class*="bg-light"] p,
*[class*="bg-light"] .text-muted,
*[class*="bg-light"] .lead,
*[class*="bg-light"] li {
    color: #333333 !important;
}

*[class*="bg-white"] h1,
*[class*="bg-white"] h2,
*[class*="bg-white"] h3,
*[class*="bg-white"] h4,
*[class*="bg-white"] h5,
*[class*="bg-white"] h6 {
    color: #1a1a1a !important;
}

*[class*="bg-white"] p,
*[class*="bg-white"] .text-muted,
*[class*="bg-white"] .lead,
*[class*="bg-white"] li {
    color: #333333 !important;
}

/* Form check labels on light backgrounds */
.form-check-label {
    color: var(--text-heading) !important;
}

/* Textarea styling */
textarea.form-control {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1a1a1a !important;
    border: 2px solid var(--border-dark) !important;
}

textarea.form-control:focus {
    background: rgba(255, 255, 255, 0.98) !important;
    color: #1a1a1a !important;
}
/* COMPREHENSIVE CONTRAST FIXES */

/* Add new color variables for better contrast */
:root {
    --text-dark-on-light: #1a1a1a;
    --text-muted-on-light: #333333;
    --text-light-on-dark: #f5f5f5;
    --text-muted-on-dark: #d0c4a8;
}

/* RESET ALL TEXT COLORS FIRST */
* {
    color: inherit;
}

/* DARK BACKGROUNDS - Light Text */
body,
.bg-dark,
.bg-dark-secondary,
.bg-dark-tertiary,
section:not(.bg-light):not(.bg-white),
.card:not(.bg-white):not(.bg-light),
.hero-section,
.navbar-dark {
    color: var(--text-light-on-dark) !important;
}

body h1, body h2, body h3, body h4, body h5, body h6,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
section:not(.bg-light):not(.bg-white) h1,
section:not(.bg-light):not(.bg-white) h2,
section:not(.bg-light):not(.bg-white) h3,
section:not(.bg-light):not(.bg-white) h4,
section:not(.bg-light):not(.bg-white) h5,
section:not(.bg-light):not(.bg-white) h6 {
    color: var(--text-heading) !important;
}

body p, body li, body span:not(.badge),
.bg-dark p, .bg-dark li, .bg-dark span:not(.badge),
section:not(.bg-light):not(.bg-white) p,
section:not(.bg-light):not(.bg-white) li,
section:not(.bg-light):not(.bg-white) span:not(.badge) {
    color: var(--text-muted-on-dark) !important;
}

/* LIGHT BACKGROUNDS - Dark Text */
.bg-light,
.bg-light *,
.bg-white,
.bg-white *,
.card.bg-light,
.card.bg-light *,
.card.bg-white,
.card.bg-white *,
.service-card.bg-light,
.service-card.bg-light *,
.service-card.bg-white,
.service-card.bg-white * {
    color: var(--text-dark-on-light) !important;
}

.bg-light h1, .bg-light h2, .bg-light h3, .bg-light h4, .bg-light h5, .bg-light h6,
.bg-white h1, .bg-white h2, .bg-white h3, .bg-white h4, .bg-white h5, .bg-white h6 {
    color: var(--text-dark-on-light) !important;
    font-weight: 700 !important;
}

.bg-light p, .bg-light li, .bg-light span:not(.badge),
.bg-white p, .bg-white li, .bg-white span:not(.badge),
.bg-light .text-muted,
.bg-white .text-muted,
.bg-light .lead,
.bg-white .lead {
    color: var(--text-muted-on-light) !important;
}

/* SPECIFIC SECTION FIXES */

/* Hero section - dark background */
.hero-section,
.hero-section * {
    color: var(--text-light-on-dark) !important;
}

.hero-section h1,
.hero-section h2 {
    color: var(--text-heading) !important;
}

.hero-section p,
.hero-section .lead {
    color: var(--text-muted-on-dark) !important;
}

/* Hero image box - light background */
.hero-image .bg-light,
.hero-image .bg-light * {
    color: var(--text-dark-on-light) !important;
}

.hero-image .bg-light h5 {
    color: var(--text-dark-on-light) !important;
    font-weight: 700 !important;
}

/* Service cards - keep dark background with light text */
.service-card {
    background: var(--card-dark) !important;
    color: var(--text-light-on-dark) !important;
}

.service-card h5 {
    color: var(--text-heading) !important;
}

.service-card p {
    color: var(--text-muted-on-dark) !important;
}

/* Process steps and cards */
.process-step,
.process-card {
    color: var(--text-light-on-dark) !important;
}

.process-step h5,
.process-card h5 {
    color: var(--text-heading) !important;
}

.process-step p,
.process-card p {
    color: var(--text-muted-on-dark) !important;
}

/* Industry cards */
.industry-card {
    background: var(--card-dark) !important;
    color: var(--text-light-on-dark) !important;
}

.industry-card h3 {
    color: var(--text-heading) !important;
}

.industry-card p,
.industry-card li {
    color: var(--text-muted-on-dark) !important;
}

/* Cards with specific backgrounds */
.card {
    background: var(--card-dark) !important;
    color: var(--text-light-on-dark) !important;
}

.card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
    color: var(--text-heading) !important;
}

.card p, .card li, .card span:not(.badge) {
    color: var(--text-muted-on-dark) !important;
}

/* Override for light background cards */
.card.bg-light,
.card.bg-white {
    background: #ffffff !important;
    color: var(--text-dark-on-light) !important;
}

.card.bg-light h1, .card.bg-light h2, .card.bg-light h3, .card.bg-light h4, .card.bg-light h5, .card.bg-light h6,
.card.bg-white h1, .card.bg-white h2, .card.bg-white h3, .card.bg-white h4, .card.bg-white h5, .card.bg-white h6 {
    color: var(--text-dark-on-light) !important;
}

.card.bg-light p, .card.bg-light li, .card.bg-light span:not(.badge),
.card.bg-white p, .card.bg-white li, .card.bg-white span:not(.badge) {
    color: var(--text-muted-on-light) !important;
}

/* Text utilities override */
.text-muted {
    color: var(--text-muted-on-dark) !important;
}

.bg-light .text-muted,
.bg-white .text-muted {
    color: var(--text-muted-on-light) !important;
}

.lead {
    color: var(--text-muted-on-dark) !important;
}

.bg-light .lead,
.bg-white .lead {
    color: var(--text-muted-on-light) !important;
}

/* Primary color text should always be visible */
.text-primary {
    color: var(--primary-color) !important;
}

/* Navigation */
.navbar-nav .nav-link {
    color: var(--text-muted-on-dark) !important;
}

/* Footer */
footer,
footer * {
    color: var(--text-muted-on-dark) !important;
}

footer h5, footer h6 {
    color: var(--primary-light) !important;
}

footer a {
    color: var(--primary-light) !important;
}

/* Accordion */
.accordion-button {
    color: var(--text-light-on-dark) !important;
    background: var(--card-dark) !important;
}

.accordion-body {
    color: var(--text-muted-on-dark) !important;
    background: var(--bg-dark-tertiary) !important;
}

/* Commitment items and other special sections */
.commitment-item {
    background: var(--card-dark) !important;
    color: var(--text-light-on-dark) !important;
}

.commitment-item h5, .commitment-item h6 {
    color: var(--text-heading) !important;
}

.commitment-item p {
    color: var(--text-muted-on-dark) !important;
}

/* Contact items */
.contact-item h6 {
    color: var(--text-heading) !important;
}

.contact-item p {
    color: var(--text-muted-on-dark) !important;
}

/* Benefit items */
.benefit-item h6 {
    color: var(--text-heading) !important;
}

.benefit-item p {
    color: var(--text-muted-on-dark) !important;
}

/* Service detail cards */
.service-detail {
    background: var(--card-dark) !important;
    color: var(--text-light-on-dark) !important;
}

.service-detail h3 {
    color: var(--text-heading) !important;
}

.service-detail p,
.service-detail li {
    color: var(--text-muted-on-dark) !important;
}

/* IMPORTANT: Force specific contrast for problematic areas */
.bg-light section,
.bg-white section {
    color: var(--text-dark-on-light) !important;
}

.bg-light section h1, .bg-light section h2, .bg-light section h3, .bg-light section h4, .bg-light section h5, .bg-light section h6,
.bg-white section h1, .bg-white section h2, .bg-white section h3, .bg-white section h4, .bg-white section h5, .bg-white section h6 {
    color: var(--text-dark-on-light) !important;
}

.bg-light section p, .bg-light section li,
.bg-white section p, .bg-white section li {
    color: var(--text-muted-on-light) !important;
}
/* FORCE PROPER CONTRAST FOR ALL BG-LIGHT SECTIONS */

/* All sections with bg-light class - keep dark theme but lighter */
section.bg-light {
    background: var(--bg-dark-secondary) !important;
    color: var(--text-light-on-dark) !important;
}

section.bg-light h1,
section.bg-light h2,
section.bg-light h3,
section.bg-light h4,
section.bg-light h5,
section.bg-light h6,
section.bg-light .fw-bold,
section.bg-light .fw-semibold {
    color: var(--text-heading) !important;
    font-weight: 700 !important;
}

section.bg-light p,
section.bg-light li,
section.bg-light span:not(.badge):not(.text-primary),
section.bg-light .text-muted,
section.bg-light .lead {
    color: var(--text-muted-on-dark) !important;
}

/* All divs with bg-light class - keep elegant dark theme */
.bg-light {
    background: var(--bg-dark-secondary) !important;
    color: var(--text-light-on-dark) !important;
}

.bg-light h1,
.bg-light h2,
.bg-light h3,
.bg-light h4,
.bg-light h5,
.bg-light h6,
.bg-light .fw-bold,
.bg-light .fw-semibold {
    color: var(--text-heading) !important;
    font-weight: 700 !important;
}

.bg-light p,
.bg-light li,
.bg-light span:not(.badge):not(.text-primary),
.bg-light .text-muted,
.bg-light .lead {
    color: var(--text-muted-on-dark) !important;
}

/* Trust indicators badges - elegant golden style */
.badge.bg-light {
    background: rgba(201, 169, 110, 0.2) !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    font-weight: 700 !important;
    backdrop-filter: blur(10px);
}

.badge.text-dark {
    color: var(--primary-color) !important;
}

/* Hero image section - elegant card style */
.hero-image .bg-light {
    background: var(--card-dark) !important;
    border: 1px solid var(--border-dark) !important;
}

.hero-image .bg-light h5 {
    color: var(--text-heading) !important;
    font-weight: 700 !important;
}

/* Commitment items with bg-light - elegant card style */
.commitment-item.bg-light {
    background: var(--card-dark) !important;
    color: var(--text-light-on-dark) !important;
    border: 1px solid var(--border-dark) !important;
}

.commitment-item.bg-light h5,
.commitment-item.bg-light h6 {
    color: var(--text-heading) !important;
    font-weight: 700 !important;
}

.commitment-item.bg-light p {
    color: var(--text-muted-on-dark) !important;
}

/* Process icons and approach sections */
.bg-light .text-center h5,
.bg-light .text-center h6 {
    color: var(--text-dark-on-light) !important;
    font-weight: 700 !important;
}

.bg-light .text-center p {
    color: var(--text-muted-on-light) !important;
}

/* Custom sourcing and other special boxes - elegant card style */
.bg-light.rounded-3 {
    background: var(--card-dark) !important;
    color: var(--text-light-on-dark) !important;
    border: 1px solid var(--border-dark) !important;
}

.bg-light.rounded-3 h3,
.bg-light.rounded-3 h4,
.bg-light.rounded-3 h5 {
    color: var(--text-heading) !important;
    font-weight: 700 !important;
}

.bg-light.rounded-3 p {
    color: var(--text-muted-on-dark) !important;
}

/* Alert info in bg-light sections */
.bg-light .alert-info {
    background: rgba(13, 110, 253, 0.1) !important;
    border: 1px solid #0d6efd !important;
    color: var(--text-dark-on-light) !important;
}

.bg-light .alert-info strong,
.bg-light .alert-info p {
    color: var(--text-dark-on-light) !important;
}

/* ELEGANT CONTRAST FOR BG-LIGHT SECTIONS */
.bg-light *:not(.text-primary):not(.btn):not(.badge) {
    color: var(--text-light-on-dark) !important;
}

.bg-light h1, .bg-light h2, .bg-light h3, .bg-light h4, .bg-light h5, .bg-light h6 {
    color: var(--text-heading) !important;
    font-weight: 700 !important;
}

/* Ensure section headers in bg-light maintain golden theme */
section.bg-light .container h1,
section.bg-light .container h2,
section.bg-light .container h3,
section.bg-light .container h4,
section.bg-light .container h5,
section.bg-light .container h6 {
    color: var(--text-heading) !important;
    font-weight: 700 !important;
}

section.bg-light .container p,
section.bg-light .container li,
section.bg-light .container .text-muted,
section.bg-light .container .lead {
    color: var(--text-muted-on-dark) !important;
}

/* DARK SECTIONS - Ensure light text */
section:not(.bg-light):not(.bg-white) {
    color: var(--text-light-on-dark) !important;
}

section:not(.bg-light):not(.bg-white) h1,
section:not(.bg-light):not(.bg-white) h2,
section:not(.bg-light):not(.bg-white) h3,
section:not(.bg-light):not(.bg-white) h4,
section:not(.bg-light):not(.bg-white) h5,
section:not(.bg-light):not(.bg-white) h6 {
    color: var(--text-heading) !important;
}

section:not(.bg-light):not(.bg-white) p,
section:not(.bg-light):not(.bg-white) li,
section:not(.bg-light):not(.bg-white) .text-muted,
section:not(.bg-light):not(.bg-white) .lead {
    color: var(--text-muted-on-dark) !important;
}