/* Mobile-First Responsive Design */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography Adjustments */
    .display-5 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navbar Adjustments */
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        border-top: 1px solid var(--background-dark);
        padding-top: 1rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    #hero .col-lg-6:first-child {
        order: 1;
        margin-bottom: 2rem;
    }
    
    #hero .col-lg-6:last-child {
        order: 2;
    }
    
    /* Disable animations on mobile (following requirements) */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .hero-shapes::before {
        display: none;
    }
    
    /* Section Spacing */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Card Adjustments */
    .card {
        margin-bottom: 1rem;
    }
    
    .card:hover {
        transform: none;
    }
    
    /* Button Adjustments */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Form Adjustments */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Team Images */
    #team img {
        width: 120px;
        height: 120px;
    }
    
    /* Process Steps */
    .bg-primary.text-white.rounded-circle {
        width: 50px !important;
        height: 50px !important;
        font-size: 0.875rem;
    }
    
    /* Gallery Adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    /* Footer Adjustments */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    #footer .col-md-6 {
        text-align: center;
    }
    
    /* Fixed header adjustment */
    body {
        padding-top: 60px;
    overflow-x: hidden;
}
    
    /* Contact Info Layout */
    #contacts .col-md-4 {
        margin-bottom: 2rem;
    }
    
    /* Services Grid */
    #services .col-md-6.col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Pricing Cards */
    #priceplan .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* FAQ Layout */
    #faq .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Blog Grid */
    #blog_grid .col-lg-4 {
        margin-bottom: 1.5rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-5 {
        font-size: 2.25rem;
    }
    
    /* Hero adjustments */
    #hero {
        min-height: 85vh;
    }
    
    /* Team Images */
    #team img {
        width: 130px;
        height: 130px;
    }
    
    /* Process Steps */
    .bg-primary.text-white.rounded-circle {
        width: 55px !important;
        height: 55px !important;
    }
    
    /* Card hover effects disabled on mobile */
    .card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    /* No animations on mobile */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    .display-5 {
        font-size: 2.375rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 90vh;
    }
    
    /* Team Images */
    #team img {
        width: 140px;
        height: 140px;
    }
    
    /* Process Steps */
    .bg-primary.text-white.rounded-circle {
        width: 58px !important;
        height: 58px !important;
    }
    
    /* Enable hover effects on tablets */
    .card:hover {
        transform: translateY(-2px);
    }
    
    #gallery img:hover {
        transform: scale(1.02);
    }
    
    /* Reduced animations on tablets */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Full typography restored */
    .display-5 {
        font-size: 2.5rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 100vh;
    }
    
    /* Team Images */
    #team img {
        width: 150px;
        height: 150px;
    }
    
    /* Full hover effects */
    .card:hover {
        transform: translateY(-2px);
    }
    
    #gallery img:hover {
        transform: scale(1.02);
    }
    
    #team img:hover {
        transform: scale(1.05);
    }
    
    /* Animations enabled on desktop */
    [data-sal] {
        opacity: 0;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for larger screens */
    .py-5 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    /* Larger hero text */
    .display-5 {
        font-size: 2.75rem;
    }
}

/* Extra Extra Large Devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .display-5 {
        font-size: 3rem;
    }
}

/* Landscape Mobile Devices */
@media (max-height: 600px) and (orientation: landscape) {
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .py-5 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    /* Disable animations in landscape mobile */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders and shadows for retina displays */
    .card {
        border-width: 0.5px;
    }
    
    .shadow-sm {
        box-shadow: 0 0.5px 1px 0 rgb(0 0 0 / 0.05);
    }
}

/* Dark Mode Support (respects user preference) */

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .card:hover {
        transform: none !important;
    }
    
    #gallery img:hover {
        transform: none !important;
    }
    
    #team img:hover {
        transform: none !important;
    }
    
    .btn-primary:hover {
        transform: none !important;
    }
    
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    #footer,
    .breadcrumb {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .py-5 {
        padding: 1rem 0;
    }
    
    .card {
        border: 1px solid #ccc;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
} 