/* Responsive Design - Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.911px) {
    /* Typography adjustments */
    h1, .h1 {
        font-size: 1.89rem;
    }
    
    h2, .h2 {
        font-size: 1.61rem;
    }
    
    h3, .h3 {
        font-size: 1.33rem;
    }
    
    /* Hero section */
    .hero h1 {
        font-size: 2rem;
    padding-top: 175px;
}
    
    .hero h2 {
        font-size: 1.60rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        margin: 0;
        text-align: center;
    }
    
    /* Spacing adjustments */
    section {
        padding: 2rem 0;
    }
    
    .hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    /* Cards */
    .card-body {
        padding: 1rem;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: 0.72rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    /* Forms */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Team grid */
    .team .col-lg-2 {
        margin-bottom: 1rem;
    }
    
    /* Process steps */
    .process-step .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.13rem;
    }
    
    /* Timeline */
    .timeline::before {
        left: 1rem;
    }
    
    .timeline-item::before {
        left: 1rem;
    }
    
    .timeline-item .card {
        margin-left: 2rem;
    }
    
    /* Gallery */
    .gallery img {
        height: 120px;
    }
    
    /* Footer */
    footer {
        text-align: center;
        padding: 2rem 0 1rem;
    }
    
    footer .col-lg-3 {
        margin-bottom: 1.69rem;
    }
    
    /* Contact info */
    .contact-info {
        margin-bottom: 1.67rem;
    }
    
    /* Accordion */
    .accordion-button {
        font-size: 1.00rem;
        padding: 0.75rem 1rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
    
    /* Hide decorative elements on mobile */
    .hero::before {
        opacity: 0.2;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        text-align: center;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments */
    .hero h1 {
        font-size: 2.31rem;
    padding-top: 175px;
}
    
    .hero h2 {
        font-size: 1.79rem;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    /* Cards in grid */
    .card-columns {
        column-count: 2;
    }
    
    /* Timeline */
    .timeline::before {
        left: 2rem;
    }
    
    .timeline-item::before {
        left: 2rem;
    }
    
    .timeline-item .card {
        margin-left: 3rem;
    }
    
    /* Forms */
    .btn {
        width: auto;
        min-width: 150px;
    }
    
    /* Gallery */
    .gallery img {
        height: 140px;
    }
    
    /* Process steps */
    .process-step .step-number {
        width: 55px;
        height: 55px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    .hero h1 {
        font-size: 2.54rem;
    padding-top: 175px;
}
    
    .hero h2 {
        font-size: 2rem;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 180px;
    }
    
    /* Timeline restoration */
    .timeline::before {
        left: 50%;
    }
    
    .timeline-item::before {
        left: 50%;
    }
    
    .timeline-item .card {
        margin-left: 0;
    }
    
    /* Gallery */
    .gallery img {
        height: 160px;
    }
    
    /* Team images */
    .team img {
        height: 180px;
    }
    
    /* Sections */
    section {
        padding: 2.5rem 0;
    }
    
    /* Process steps */
    .process-step .step-number {
        width: 60px;
        height: 60px;
    }
}

/* Large devices (desktops, 994px and up) */
@media (min-width: 995px) and (max-width: 1199.98px) {
    /* Full desktop experience */
    .hero h1 {
        font-size: 3rem;
    padding-top: 175px;
}
    
    .hero h2 {
        font-size: 2.36rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 200px;
    }
    
    /* Gallery */
    .gallery img {
        height: 180px;
    }
    
    /* Team images */
    .team img {
        height: 200px;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    /* Hero full height */
    .hero {
        min-height: 100vh;
    }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Maximum design fidelity */
    .hero h1 {
        font-size: 3.53rem;
    padding-top: 175px;
}
    
    .hero h2 {
        font-size: 2.60rem;
    }
    
    /* Container max-width enhancement */
    .container {
        max-width: 1200px;
    }
    
    /* Cards */
    .card-img-top {
        height: 220px;
    }
    
    /* Gallery */
    .gallery img {
        height: 200px;
    }
    
    /* Team images */
    .team img {
        height: 220px;
    }
    
    /* Enhanced shadows on larger screens */
    .card:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced hero */
    .hero h1 {
        font-size: 4rem;
    padding-top: 175px;
}
    
    .hero h2 {
        font-size: 3rem;
    }
    
    /* Larger cards */
    .card-img-top {
        height: 250px;
    }
    
    /* Gallery */
    .gallery img {
        height: 220px;
    }
    
    /* Team images */
    .team img {
        height: 250px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.65rem;
    padding-top: 175px;
}
    
    .hero h2 {
        font-size: 1.63rem;
        margin-bottom: 0.70rem;
    }
    
    .hero p {
        font-size: 0.99rem;
        margin-bottom: 1rem;
    }
    
    section {
        padding: 1.5rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders and shadows */
    .card {
        border-width: 0.5px;
    }
    
    .btn {
        border-width: 1px;
    }
    
    /* Enhanced text rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Dark mode support */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .hero::before {
        animation: none;
    }
    
    .fade-in-up {
        animation: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    .gallery img:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    /* Override for print */
    .hero {
        min-height: auto;
        padding: 1rem 0;
        background: none;
        color: #000;
    }
    
    .hero::before {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #b3afaf;
        break-inside: avoid;
    }
    
    .btn {
        display: none;
    }
    
    .navbar {
        display: none;
    }
    
    footer {
        background: none;
        color: #000;
        border-top: 1px solid #bdb1b3;
    }
    
    /* Ensure proper spacing */
    section {
        padding: 1rem 0;
    }
    
    /* Typography for print */
    h1, h2, h3, h4, h5, h6 {
        color: #000;
    }
    
    p {
        color: #2b2b2b;
    }
    
    /* Images for print */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Accessibility enhancements */
@media (prefers-contrast: high) {
    /* Enhanced contrast for accessibility */
    .btn-primary {
        background-color: #000;
        border-color: #000;
    }
    
    .btn-primary:hover {
        background-color: #232323;
        border-color: #3d3838;
    }
    
    .text-primary {
        color: #000;
    }
    
    .card {
        border-color: #000;
    }
}

/* Focus improvements for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        transition: outline 0.2s ease;
    }
}

/* Hover device support */
@media (hover: hover) {
    .card:hover {
        transform: translateY(-2px);
    }
    
    .btn:hover {
        transform: translateY(-1px);
    }
    
    .nav-link:hover {
        transform: none;
    }
}

/* No hover device support (touch devices) */
@media (hover: none) {
    .card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    /* Enhance touch targets */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .form-control {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
}

/* Specific fixes for different viewport heights */
@media (max-height: 500px) {
    .hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    section {
        padding: 1rem 0;
    }
}

/* Container responsive adjustments */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Responsive utilities */
.d-none-mobile {
    display: none;
}

@media (min-width: 768px) {
    .d-none-mobile {
        display: block;
    }
}

.d-mobile-only {
    display: block;
}

@media (min-width: 768px) {
    .d-mobile-only {
        display: none;
    }
}

/* Responsive spacing utilities */
@media (max-width: 767.98px) {
    .px-mobile-2 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .py-mobile-2 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .mb-mobile-3 {
        margin-bottom: 1.63rem;
    }
    
    .mt-mobile-3 {
        margin-top: 1.60rem;
    }
}

/* Responsive text utilities */
@media (max-width: 575.98px) {
    .text-center-mobile {
        text-align: center;
    }
}

@media (min-width: 768px) {
    .text-left-tablet {
        text-align: left;
    }
}

/* Grid system enhancements */
@media (max-width: 575.98px) {
    .col-mobile-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .col-sm-6-custom {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Performance optimizations */
@media (max-width: 767.98px) {
    /* Reduce expensive operations on mobile */
    .card {
        transition: none;
    }
    
    .hero::before {
        opacity: 0.1;
    }
    
    /* Simplify shadows */
    .card {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .card:hover {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
} 