/* Mobile-First Responsive Design */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Disable all animations on mobile */
    * {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Hero section mobile */
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-section .container .row {
        text-align: center;
    }
    
    /* Navigation mobile */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Process steps mobile */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Contact form mobile */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Team member images */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Button sizing */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Footer mobile */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Hide decorative elements on mobile */
    .hero-decoration {
        display: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        padding-top: 90px;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    .step-number {
        width: 55px;
        height: 55px;
    }
    
    .team-member img {
        width: 130px;
        height: 130px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding-top: 80px;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .team-member img {
        width: 140px;
        height: 140px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        padding-top: 0;
    }
    
    /* Enable hover effects on larger screens */
    .card:hover {
        transform: translateY(-5px);
    }
    
    .feature-card:hover {
        transform: translateY(-5px);
    }
    
    .pricing-card:hover {
        transform: scale(1.02);
    }
    
    #gallery img:hover {
        transform: scale(1.05);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
    }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section .container .row {
        min-height: 100vh;
        align-items: center;
    }
    
    .feature-card {
        padding: 2.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .hero-decoration {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    overflow-x: hidden;
}
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #8B0040;
        --color-secondary: #006B3F;
        --color-accent: #B8860B;
        --color-info: #4169E1;
        --color-warning: #FF4500;
    }
    
    .card {
        border: 2px solid var(--color-dark);
    }
    
    .btn {
        border-width: 2px;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Custom spacing for sections */
section {
    scroll-margin-top: 80px;
}

/* Ensure proper spacing */
.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Image responsiveness */
img {
    max-width: 100%;
    height: auto;
}

/* List styling */
ul {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Form improvements */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-check-label {
    font-size: 0.9rem;
}

/* Gallery lightbox compatibility */
.lightbox {
    z-index: 9999;
} 

.hero-section h1 {
    padding-top: 275px;
}