/* Responsive Design - Mobile First Approach */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
    /* Disable animations on mobile per requirements */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Typography adjustments */
    .display-4 {
        font-size: 2rem !important;
    }
    
    h1 {
        font-size: 1.88rem;
    }
    
    h2 {
        font-size: 1.61rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Spacing adjustments */
    section {
        padding: 3rem 0;
    }
    
    /* Hero section mobile */
    #hero {
        min-height: 80vh;
        text-align: center;
    }
    
    #hero .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Navigation mobile */
    .navbar-brand {
        font-size: 1.18rem !important;
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        margin: 0;
    }
    
    /* Cards mobile stacking */
    .card {
        margin-bottom: 1.64rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    /* Team images smaller */
    #team .card-img-top {
        width: 150px;
        height: 150px;
    }
    
    /* Process steps mobile */
    #process .col-md-6,
    #process .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Contact form mobile */
    #contact .form-control,
    #contact .form-select {
        margin-bottom: 1rem;
    }
    
    /* Footer mobile */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Pricing cards mobile */
    #priceplan .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Gallery mobile - single column */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* FAQ mobile */
    #faq .col-lg-6 {
        margin-bottom: 1.57rem;
    }
    
    /* Services mobile */
    #services .col-md-6,
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Button sizing */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Reduce padding on containers */
    .container {
        padding: 0 1rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    .display-4 {
        font-size: 2.32rem;
    }
    
    /* Hero adjustments */
    #hero {
        min-height: 90vh;
    }
    
    /* Team images */
    #team .card-img-top {
        width: 180px;
        height: 180px;
    }
    
    /* Cards */
    .card-img-top {
        height: 200px;
    }
    
    /* Spacing */
    section {
        padding: 4rem 0;
    }
    
    /* Gallery - 2 columns */
    #gallery .col-md-4:nth-child(3n) {
        margin-bottom: 1rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    .display-4 {
        font-size: 2.62rem;
    }
    
    /* Hero */
    #hero {
        min-height: 100vh;
    }
    
    /* Team images */
    #team .card-img-top {
        width: 200px;
        height: 200px;
    }
    
    /* Services grid */
    #services .col-lg-4:nth-child(3n) {
        margin-bottom: 2rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 992px) {
    /* Full desktop experience */
    .display-4 {
        font-size: 2.57rem;
    }
    
    /* Hero */
    #hero {
        min-height: 100vh;
    }
    
    /* Team images */
    #team .card-img-top {
        width: 200px;
        height: 200px;
    }
    
    /* Hover effects enabled */
    .card:hover {
        transform: translateY(-5px);
    }
    
    .card:hover .card-img-top {
        transform: scale(1.05);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp icons and images */
    .fa-3x, .fa-2x {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Landscape phone orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
    #hero {
        min-height: 70vh;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .btn,
    #gallery {
        display: none !important;
    }
    
    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
    }
}

/* Container max-width adjustments */
@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

/* Accessibility improvements */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #1053ad;
        --text-dark: #000000;
        --text-muted: #3f3f3f;
    }
    
    .card {
        border: 2px solid #000000;
    }
    
    .btn-primary {
        border: 2px solid #000000;
    }
}

/* Dark mode support */

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

/* Ensure proper spacing for mobile contact info */
@media (max-width: 767.98px) {
    #contact .row .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    #contact .fa-2x {
        font-size: 1.54rem;
    }
}

/* Mobile menu improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--white);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: var(--shadow);
    }
}

/* Ensure proper image sizing on all devices */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Mobile form improvements */
@media (max-width: 575.98px) {
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    #contact form .col-md-6 {
        margin-bottom: 1rem;
    }
    
    #contact .btn {
        width: 100%;
        margin-top: 1rem;
    }
} 
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
