/* Responsive Styles */

/* Mobile First Approach */
@media (max-width: 575.98px) {
    /* Extra Small Devices */
    
    /* Typography */
    h1 {
        font-size: 1.84rem;
    }
    
    h2 {
        font-size: 1.62rem;
    }
    
    h3 {
        font-size: 1.35rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Header */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        text-align: center;
    }
    
    /* Hero Section */
    #hero {
        padding-top: 80px;
        min-height: 80vh;
    }
    
    #hero h1 {
        margin-bottom: 1rem;
    }
    
    #hero .lead {
        margin-bottom: 1.60rem;
    }
    
    /* Sections */
    section {
        padding: 2rem 0;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.57rem;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    /* Team Section */
    #team .col-lg-2 {
        margin-bottom: 1.69rem;
    }
    
    #team img {
        width: 120px;
        height: 120px;
    }
    
    /* Process Section */
    #process .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    #process .rounded-circle {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    /* Gallery */
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Contact Form */
    #contact .col-lg-8 {
        margin-bottom: 2rem;
    }
    
    /* Footer */
    footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Spacing Adjustments */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* NO ANIMATIONS ON MOBILE */
    * {
        animation: none;
        transition: none;
    }
    
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
    
    .card:hover .card-img-top {
        transform: none;
    }
    
    #team img:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    #contact .btn-primary:hover {
        transform: none;
    }
}

/* Small Devices */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    #hero {
        padding-top: 90px;
        min-height: 85vh;
    }
    
    /* Cards */
    .card-img-top {
        height: 180px;
    }
    
    /* Team Images */
    #team img {
        width: 130px;
        height: 130px;
    }
    
    /* Process Circles */
    #process .rounded-circle {
        width: 55px;
        height: 55px;
    }
}

/* Medium Devices */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    #hero {
        padding-top: 100px;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.87rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 190px;
    }
    
    /* Team Images */
    #team img {
        width: 140px;
        height: 140px;
    }
    
    /* Process Circles */
    #process .rounded-circle {
        width: 60px;
        height: 60px;
    }
    
    /* Gallery Adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1.57rem;
    }
}

/* Large Devices */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Standard desktop styles - mostly using default */
    
    /* Team Images */
    #team img {
        width: 145px;
        height: 145px;
    }
}

/* Extra Large Devices */
@media (min-width: 1200px) {
    /* Large desktop styles */
    
    .container {
        max-width: 1140px;
    }
    
    /* Typography */
    h1 {
        font-size: 2.32rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 100vh;
    }
    
    /* Cards */
    .card-img-top {
        height: 220px;
    }
    
    /* Sections */
    section {
        padding: 4rem 0;
    }
}

/* Landscape Orientation on Mobile */
@media (max-width: 991.98px) and (orientation: landscape) {
    #hero {
        min-height: 70vh;
        padding-top: 70px;
    }
    
    section {
        padding: 1.5rem 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Crisp images and borders for retina displays */
    .card {
        border-width: 0.5px;
    }
    
    #faq .card {
        border-left-width: 1.5px;
    }
    
    #reviews .card {
        border-left-width: 2px;
    }
}

/* Dark Mode Support */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    /* Remove all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    /* Remove hover effects */
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
    
    .card:hover .card-img-top {
        transform: none;
    }
    
    #team img:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    #contact .btn-primary:hover {
        transform: none;
        background-color: var(--color-primary);
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    footer,
    .btn,
    .breadcrumb {
        display: none;
    }
    
    /* Adjust layout for print */
    .container {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    /* Ensure text is black */
    body, h1, h2, h3, h4, h5, h6, p {
        color: #000;
    }
    
    /* Remove background colors */
    .bg-light,
    .card {
        background-color: transparent;
    }
    
    /* Simplify cards for print */
    .card {
        border: 1px solid #c7c7c7;
        box-shadow: none;
        margin-bottom: 1rem;
    }
    
    /* Hide images that are decorative */
    #hero img,
    #gallery img {
        display: none;
    }
}

/* Accessibility Improvements */
@media (max-width: 991.98px) {
    /* Larger touch targets on mobile */
    .navbar-nav .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    /* Form controls */
    .form-control {
        min-height: 44px;
    }
}

/* Focus Improvements for Mobile */
@media (max-width: 991.98px) {
    a:focus,
    button:focus,
    input:focus,
    textarea:focus,
    select:focus {
        outline: 3px solid var(--color-primary);
        outline-offset: 2px;
    }
}

/* Container Padding Adjustments */
@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Image Responsiveness */
img {
    max-width: 100%;
    height: auto;
}

/* Table Responsiveness */
@media (max-width: 767.98px) {
    .table-responsive {
        border: none;
    }
    
    table {
        font-size: 0.93rem;
    }
}

/* Form Improvements */
@media (max-width: 575.98px) {
    .form-label {
        font-weight: 600;
        margin-bottom: 0.62rem;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Navigation Improvements */
@media (max-width: 991.98px) {
    .navbar-toggler {
        border: 2px solid var(--color-primary);
        padding: 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(44, 143, 235, 0.25);
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--color-neutral-light);
    }
} 

body {
    overflow-x: hidden;
}