/* ================================================
   MOBILE CONTRAST FIXES
   ================================================ */

/* Fix hero CTA button contrast on mobile */
@media (max-width: 768px) {
    
    /* ===== HERO CONTENT CENTERING ===== */
    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    /* ===== HERO CTA BUTTON ===== */
    .cta-button {
        /* Solid background for better contrast */
        background: var(--secondary) !important;
        color: var(--primary) !important;
        border: 2px solid var(--secondary) !important;
        font-weight: 600;
        text-shadow: none;
        /* Fix alignment - center the button */
        display: inline-block !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: center !important;
        align-self: center !important;
    }

    .cta-button:hover,
    .cta-button:active {
        background: #FFD700 !important; /* Brighter gold */
        color: var(--primary) !important;
        border-color: #FFD700 !important;
    }

    /* ===== HERO SUBTITLE ===== */
    .subtitle {
        color: #FFD700 !important; /* Brighter gold for better contrast */
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
        font-weight: 700;
    }

    .subtitle::after {
        background: #FFD700 !important;
    }

    /* ===== HERO DESCRIPTION ===== */
    .description {
        color: #FFFFFF !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
        font-weight: 400;
    }

    /* ===== FOOTER CONTRAST FIXES ===== */
    .site-footer {
        background-color: #1a2332 !important; /* Slightly lighter for better contrast */
    }

    /* Center align footer on mobile */
    .footer-content {
        text-align: center !important;
    }

    .footer-section {
        text-align: center !important;
    }

    .footer-section h3 {
        color: #FFFFFF !important;
        font-weight: 700;
        text-align: center !important;
    }

    .footer-section ul {
        text-align: center !important;
        padding-left: 0 !important;
    }

    .footer-section a,
    .footer-section li {
        color: #E8E8E8 !important; /* Brighter text */
        font-weight: 400;
    }

    .footer-section a:hover {
        color: #FFD700 !important; /* Brighter gold */
    }

    /* Center social icons */
    .social-icons {
        justify-content: center !important;
    }

    .copyright {
        color: #D0D0D0 !important;
        background: #0f1419 !important;
        text-align: center !important;
    }

    /* ===== CONTACT PAGE FIXES ===== */
    
    /* Contact form on dark background - FULL FIX */
    .contact-form-container {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px);
    }

    /* Contact page hero subtitle */
    #contact-page .hero .subtitle {
        color: #FFD700 !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }

    /* Form title */
    .contact-form-container h2,
    .contact-form-container .section-title {
        color: var(--primary) !important;
        font-weight: 700;
    }

    /* Form labels - HIGH CONTRAST */
    .contact-form-container label,
    .form-group label {
        color: var(--primary) !important;
        font-weight: 600 !important;
        text-shadow: none !important;
    }

    /* Form inputs and textarea - HIGH CONTRAST */
    .contact-form-container input,
    .contact-form-container textarea,
    .form-group input,
    .form-group textarea {
        background: #FFFFFF !important;
        color: var(--text-main) !important;
        border: 2px solid #CCCCCC !important;
        font-weight: 500;
    }

    .contact-form-container input::placeholder,
    .contact-form-container textarea::placeholder {
        color: #666666 !important;
        opacity: 1;
    }

    .contact-form-container input:focus,
    .contact-form-container textarea:focus,
    .form-group input:focus,
    .form-group textarea:focus {
        border-color: var(--secondary) !important;
        background: #FFFFFF !important;
        outline: 2px solid rgba(184, 134, 11, 0.3);
    }

    /* Submit button */
    .contact-form-container .cta-button,
    .contact-form-container button[type="submit"] {
        background: var(--secondary) !important;
        color: var(--primary) !important;
        border: none !important;
        font-weight: 700;
    }

    .contact-form-container .cta-button:hover,
    .contact-form-container button[type="submit"]:hover {
        background: #FFD700 !important;
        color: var(--primary) !important;
    }

    /* Contact cards */
    .contact-card {
        background: #FFFFFF !important;
        border: 1px solid #E0E0E0;
    }

    .contact-card h3 {
        color: var(--primary) !important;
    }

    .contact-card p,
    .contact-card a {
        color: var(--text-main) !important;
    }

    .contact-icon {
        background: rgba(184, 134, 11, 0.1) !important;
        color: var(--secondary) !important;
        border: 2px solid var(--secondary);
    }

    /* ===== PAGE HERO FIXES ===== */
    .page-hero h1 {
        color: #FFFFFF !important;
        text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
        font-weight: 700;
    }

    .page-hero p,
    .page-hero .subtitle {
        color: #FFFFFF !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }

    /* ===== SECTION TITLES ===== */
    .section-title {
        color: var(--primary) !important;
        font-weight: 700;
    }

    /* ===== NAVIGATION LINKS ===== */
    .nav-links a {
        color: #FFFFFF !important;
        font-weight: 600;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: #FFD700 !important;
    }

    /* ===== FORM ERROR MESSAGES ===== */
    .error-message {
        color: #FF4444 !important;
        background: rgba(255, 68, 68, 0.1);
        padding: 5px 10px;
        border-radius: 4px;
        font-weight: 500;
    }

    .form-status {
        font-weight: 600;
    }

    /* ===== REQUIRED FIELD INDICATORS ===== */
    label span[aria-label="required"] {
        color: #FF4444 !important;
        font-weight: 700;
    }

    /* ===== BACK TO TOP BUTTON ===== */
    #back-to-top {
        background: rgba(255, 255, 255, 0.95) !important;
        color: var(--secondary) !important;
        border: 2px solid var(--secondary) !important;
        font-weight: 700;
        /* Move to left side to avoid WhatsApp button */
        right: auto !important;
        left: 20px !important;
        bottom: 20px !important;
    }

    #back-to-top:hover {
        background: var(--secondary) !important;
        color: #FFFFFF !important;
    }

    /* ===== WHATSAPP BUTTON POSITIONING ===== */
    .whatsapp-float {
        /* Keep on right side */
        right: 20px !important;
        bottom: 20px !important;
        left: auto !important;
    }

    /* ===== INDUSTRY/PRODUCT CARDS ===== */
    .industry-card h3,
    .product-card h3 {
        color: var(--primary) !important;
        font-weight: 700;
    }

    .industry-card p,
    .product-card p {
        color: var(--text-main) !important;
    }

    /* ===== CLIENT CAROUSEL ===== */
    .client-carousel {
        background: rgba(255, 255, 255, 0.95) !important;
    }

    /* ===== ENSURE ALL TEXT IS READABLE ===== */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* ===== HIGH CONTRAST MODE SUPPORT ===== */
    @media (prefers-contrast: high) {
        .cta-button {
            background: #FFD700 !important;
            color: #000000 !important;
            border: 3px solid #000000 !important;
        }

        .subtitle {
            color: #FFFF00 !important;
        }

        .footer-section a,
        .footer-section li {
            color: #FFFFFF !important;
        }
    }
}

/* ===== SMALL MOBILE ADDITIONAL FIXES ===== */
@media (max-width: 480px) {
    
    .cta-button {
        font-size: 1rem !important;
        padding: 16px 30px !important;
        font-weight: 700;
    }

    .subtitle {
        font-size: 1rem !important;
        font-weight: 700;
    }

    .description {
        font-size: 0.95rem !important;
        line-height: 1.6;
    }

    .footer-section h3 {
        font-size: 1.1rem !important;
        font-weight: 700;
    }

    .footer-section a,
    .footer-section li {
        font-size: 0.95rem !important;
    }
}

/* ===== LANDSCAPE MOBILE FIXES ===== */
@media (max-width: 768px) and (orientation: landscape) {
    
    .cta-button {
        background: var(--secondary) !important;
        color: var(--primary) !important;
        font-weight: 700;
    }

    .subtitle {
        color: #FFD700 !important;
        font-weight: 700;
    }
}
