/* Mobile First Responsive Design */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* No scroll animations on mobile as per rules */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Conservative font sizes for mobile */
    h1, .display-4, .display-5 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    h3, .h3, h4, .h4, h5, .h5 {
        font-size: 1.25rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navbar brand conservative size */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Hero section adjustments */
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-decoration {
        width: 200px;
        height: 200px;
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Process steps mobile layout */
    .process-step {
        width: 50px;
        height: 50px;
        font-size: 0.875rem;
    }
    
    /* Team member images smaller on mobile */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Form adjustments */
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Gallery grid adjustments */
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    /* Section padding reduction */
    section {
        padding: 2.5rem 0;
    }
    
    /* Contact info stacking */
    .contact-info-item {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* FAQ cards full width */
    .faq-card {
        margin-bottom: 1rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    h1, .display-4, .display-5 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.625rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    /* Process steps slightly larger */
    .process-step {
        width: 55px;
        height: 55px;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    h1, .display-4, .display-5 {
        font-size: 2.25rem;
    }
    
    h2, .h2 {
        font-size: 1.75rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    /* Hero section with proper spacing */
    .hero-section {
        padding-top: 120px;
    }
    
    /* Cards hover effects enabled */
    .card:hover {
        transform: translateY(-2px);
    }
    
    section {
        padding: 3.5rem 0;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    h1, .display-4, .display-5 {
        font-size: 2.5rem;
    }
    
    h2, .h2 {
        font-size: 1.875rem;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    /* Full hover effects */
    .card:hover {
        transform: translateY(-4px);
    }
    
    .rounded-circle:hover {
        transform: scale(1.05);
    }
    
    section {
        padding: 4rem 0;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    h1, .display-4, .display-5 {
        font-size: 2.75rem;
        max-width: none;
    }
    
    h2, .h2 {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    /* Maximum spacing and effects */
    section {
        padding: 5rem 0;
    }
    
    /* Container max width adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Hero decoration full size */
    .hero-decoration {
        width: 400px;
        height: 400px;
    }
}

/* Print styles */
@media print {
    /* Remove animations and decorations */
    [data-sal],
    .hero-decoration,
    .shadow,
    .shadow-sm,
    .shadow-lg {
        opacity: 1 !important;
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* Ensure readability */
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-dark {
        background: #fff !important;
        color: #000 !important;
    }
    
    .text-white {
        color: #000 !important;
    }
    
    /* Hide navigation and decorative elements */
    .navbar,
    .hero-decoration,
    .btn {
        display: none !important;
    }
    
    /* Ensure sections are visible */
    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
}

/* Accessibility improvements */
@media (max-width: 991.98px) {
    /* Larger touch targets for mobile */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Form elements larger touch targets */
    .form-control,
    .form-select {
        min-height: 44px;
    }
    
    /* Gallery items spacing */
    .gallery-item {
        margin-bottom: 1rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #1a4a2e;
        --color-secondary: #d18441;
        --color-neutral: #000;
        --color-light: #fff;
    }
    
    .card {
        border: 2px solid var(--color-neutral);
    }
    
    .btn {
        border-width: 2px;
    }
}

/* Reduced transparency for better readability */
@media (prefers-reduced-transparency: reduce) {
    .navbar {
        background-color: #fff !important;
        backdrop-filter: none;
    }
    
    .hero-decoration {
        opacity: 0.3;
    }
}

/* Focus management for keyboard navigation */
@media (any-hover: none) {
    /* Touch devices - remove hover effects that don't work */
    .card:hover,
    .rounded-circle:hover,
    .gallery-item:hover {
        transform: none;
    }
}

/* Landscape phone specific adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* Ultra-wide screen optimizations */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section .container {
        max-width: 1200px;
    }
}

/* Dark mode support (respecting system preferences) */

.hero-section h1 {
    padding-top: 275px;
}