/* ================================================
   ErgoAssess Pro - Responsive CSS
   ================================================ */

/* ================================================
   Mobile-First Responsive Design
   ================================================ */

/* Extra Small Devices (Portrait Phones) */
@media (max-width: 575.98px) {
    /* Disable animations on mobile for better performance */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Hero section mobile adjustments */
    .hero-section {
        padding-top: 120px;
        min-height: 80vh;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    padding-top: 150px;
}
    
    .hero-section h2 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-section p {
        font-size: 0.95rem;
    }
    
    /* Navigation adjustments */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Card spacing */
    .feature-card,
    .service-card,
    .element-card,
    .info-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    /* Process steps mobile layout */
    .process-step {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    /* Team member images */
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Contact form mobile adjustments */
    .contact-form .form-control {
        padding: 0.6rem;
    }
    
    /* Button adjustments */
    .btn-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Section padding reduction */
    .py-5 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    /* Price amount mobile size */
    .price-amount {
        font-size: 1.75rem;
    }
}

/* Small Devices (Landscape Phones) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Disable scroll animations on smaller tablets/large phones */
    [data-sal] {
        animation: none !important;
    }
    
    .hero-section {
        padding-top: 100px;
        min-height: 90vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 150px;
}
    
    .hero-section h2 {
        font-size: 1.4rem;
    }
    
    .team-member img {
        width: 90px;
        height: 90px;
    }
    
    .price-amount {
        font-size: 2rem;
    }
}

/* Medium Devices (Tablets) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding-top: 90px;
        min-height: 95vh;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Adjust grid spacing for tablets */
    .row > [class*="col-"] {
        margin-bottom: 1.5rem;
    }
}

/* Large Devices (Desktops) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section {
        padding-top: 80px;
    }
    
    /* Optimal spacing for larger screens */
    .container {
        max-width: 960px;
    }
}

/* Extra Large Devices (Large Desktops) */
@media (min-width: 1200px) {
    .hero-section {
        padding-top: 80px;
    }
    
    /* Prevent content from being too wide on very large screens */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large displays */
    .py-5 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* ================================================
   Footer High-Contrast Colors (No Gradients)
   ================================================ */
footer {
    background-color: #181c25 !important; /* Dark high-contrast background */
    color: #ffffff;
}

footer h5,
footer h6 {
    color: #ffffff !important;
    font-weight: 600;
}

footer .text-white-50 {
    color: #d3d7db !important; /* High contrast light gray */
}

footer .text-white-50:hover {
    color: #ffffff !important; /* Pure white on hover for maximum contrast */
}

footer a {
    color: #e1e5e8;
    text-decoration: none;
}

footer a:hover {
    color: #ffffff;
}

/* ================================================
   Accessibility Improvements
   ================================================ */

/* Focus indicators for better accessibility */
@media (min-width: 768px) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 2px solid #5476ee;
        outline-offset: 2px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0f4dc8;
        --secondary-color: #09766e;
        --text-dark: #000000;
        --text-muted: #444444;
        --border-color: #5e5e5e;
    }
    
    .card {
        border: 2px solid var(--border-color);
    }
}

/* ================================================
   Print Styles
   ================================================ */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .btn,
    footer,
    #gallery {
        display: none !important;
    }
    
    /* Optimize typography for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000000;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000000;
        page-break-after: avoid;
    }
    
    /* Prevent page breaks inside cards */
    .card,
    .feature-card,
    .service-card {
        page-break-inside: avoid;
        border: 1px solid #000000;
        margin-bottom: 1rem;
    }
    
    /* Show URLs for links */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
    }
    
    /* Remove box shadows and transitions for print */
    * {
        box-shadow: none !important;
        transition: none !important;
        animation: none !important;
    }
}

/* ================================================
   Landscape Orientation Adjustments
   ================================================ */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 60px;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    padding-top: 150px;
}
    
    .hero-section h2 {
        font-size: 1.25rem;
    }
}

/* ================================================
   Dark Mode Support (Optional)
   ================================================ */