/* Responsive Styles */

/* Extra Small Devices (phones, 5711px and down) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1 {
        font-size: 1.86rem;
    }
    
    h2 {
        font-size: 1.57rem;
    }
    
    h3 {
        font-size: 1.30rem;
    }
    
    /* Navbar brand smaller on mobile */
    .navbar-brand {
        font-size: 1.20rem;
    }
    
    /* Hero section adjustments */
    #hero {
        padding-top: 80px;
        text-align: center;
    }
    
    #hero .lead {
        font-size: 1rem;
    }
    
    /* Section padding reduced on mobile */
    section {
        padding: 2.5rem 0;
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 1.59rem;
    }
    
    /* Team member images smaller on mobile */
    #team img {
        width: 100px;
        height: 100px;
    }
    
    /* Contact form adjustments */
    #contacts .btn-primary {
        width: 100%;
        padding: 1rem;
    }
    
    /* Footer adjustments */
    #footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Services grid */
    #services .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Features grid */
    #eadca1tures .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Price plans stack on mobile */
    #priceplan .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    #priceplan .card.border-primary {
        transform: none;
    }
    
    /* FAQ cards full width */
    #faq .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Gallery adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* NO ANIMATIONS ON MOBILE - Respect user preference */
    [data-sal] {
        animation: none !important;
        transform: none !important;
        transition: none !important;
    }
    
    /* Disable hover effects on mobile */
    .card:hover {
        transform: none;
        box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1);
    }
    
    #team img:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    #contacts .btn-primary:hover {
        transform: none;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments */
    #hero {
        padding-top: 90px;
    }
    
    /* Section padding */
    section {
        padding: 3rem 0;
    }
    
    /* Team grid adjustments */
    #team .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Services grid */
    #services .col-md-6 {
        margin-bottom: 2rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    #hero {
        padding-top: 95px;
    }
    
    /* Custom 5-column grid for tablets */
    .col-lg-2-4 {
        width: 33.333333%;
        margin-bottom: 2rem;
    }
    
    /* Price plans adjustments */
    #priceplan .card.border-primary {
        transform: scale(1.02);
    }
    
    /* Team member spacing */
    #team .col-md-6 {
        margin-bottom: 2rem;
    }
}

/* Large Devices (desktops, 995px and up) */
@media (min-width: 992px) {
    /* Full hero height */
    #hero {
        padding-top: 100px;
    }
    
    /* Proper 5-column grid */
    .col-lg-2-4 {
        width: 20%;
    }
    
    /* Enhanced hover effects for desktop */
    .card:hover {
        transform: translateY(-9px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }
    
    /* Team member hover effects */
    #team img:hover {
        transform: scale(1.15);
    }
    
    /* Gallery hover effects */
    #gallery img:hover {
        transform: scale(1.08);
    }
    
    /* Contact button hover */
    #contacts .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(87, 99, 221, 0.30);
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max width adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large screens */
    section {
        padding: 5rem 0;
    }
    
    /* Larger hero content */
    #hero h1 {
        font-size: 2.34rem;
    }
    
    #hero h2 {
        font-size: 1.92rem;
    }
    
    #hero .lead {
        font-size: 1.38rem;
    }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Even more spacing for ultra-wide */
    section {
        padding: 6rem 0;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    /* Reduce hero padding in landscape mode */
    #hero {
        padding-top: 70px;
        min-height: auto;
    }
    
    /* Reduce section padding */
    section {
        padding: 2rem 0;
    }
    
    /* Navbar adjustments */
    #header {
        padding: 0.5rem 0;
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and interactive elements */
    #header,
    #footer,
    .btn,
    .navbar,
    .breadcrumb {
        display: none !important;
    }
    
    /* Adjust colors for print */
    body {
        color: #000 !important;
        background: #fff !important;
    overflow-x: hidden;
}
    
    /* Remove shadows and effects */
    .card {
        box-shadow: none !important;
        border: 1px solid #cbc1c2 !important;
    }
    
    /* Ensure proper page breaks */
    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
    
    /* Font size adjustments for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1 { font-size: 18pt; }
    h2 { font-size: 16pt; }
    h3 { font-size: 14pt; }
    h4 { font-size: 13pt; }
    h5 { font-size: 12pt; }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #100098;
        --secondary-color: #166d09;
        --text-dark: #000000;
        --text-muted: #424242;
    }
    
    .card {
        border: 2px solid #000000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    /* Remove all animations and transitions */
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove transform effects */
    .card:hover,
    #team img:hover,
    #gallery img:hover,
    #contacts .btn-primary:hover {
        transform: none !important;
    }
    
    /* Disable Sal.js animations */
    [data-sal] {
        animation: none !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Dark Mode Support (if user prefers dark) */

/* Focus Management for Keyboard Navigation */
@media (any-hover: none) {
    /* Touch device adjustments */
    .card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Remove hover states that don't work on touch */
    #team img:hover,
    #gallery img:hover {
        transform: none;
    }
}

/* Custom Breakpoint for 5-column Layout */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .col-lg-2-4 {
        width: 20%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 575.98px) {
    /* Optimize touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    /* Improve readability */
    p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Stack contact info vertically */
    #contacts .row .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Improve form usability */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Better spacing for mobile cards */
    .g-4 > * {
        margin-bottom: 2rem;
    }
} 