/* ===== Responsive Design - Additional Mobile Optimizations ===== */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section {
        min-height: 100vh;
    }
    
    section {
        padding: 100px 0;
    }
}

/* Large Devices (1200px and up) */
@media (max-width: 1199.98px) {
    .navbar-brand {
        font-size: 1.43rem;
    }
    
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    .process-step,
    .timeline-item {
        margin-bottom: 2rem;
    }
}

/* Medium Devices (992px and down) */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        margin: 0;
    }
    
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    .hero-section .col-lg-6:last-child {
        margin-top: 2rem;
    }
    
    .feature-card,
    .service-card,
    .price-card {
        margin-bottom: 2rem;
    }
    
    .team-member {
        margin-bottom: 2rem;
    }
    
    .contact-section .col-lg-4 {
        margin-top: 2rem;
    }
    
    .footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* Small Devices (768px and down) */
@media (max-width: 767.98px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.34rem;
    }
    
    .hero-section {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    section {
        padding: 60px 0;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .timeline-item .year {
        font-size: 1.14rem;
    }
    
    .process-step,
    .timeline-item {
        margin-bottom: 2.68rem;
    }
    
    .gallery-section .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    .accordion-button {
        font-size: 1.02rem;
        padding: 1rem;
    }
    
    .contact-form .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .price {
        font-size: 1.55rem;
    }
    
    .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 1.10rem;
    }
}

/* Extra Small Devices (576px and down) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 1rem;
    }
    
    .navbar-brand {
        font-size: 1.20rem;
    }
    
    .hero-section {
        min-height: 60vh;
        padding: 1.5rem 0;
    }
    
    section {
        padding: 50px 0;
    }
    
    .card-body,
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-card,
    .blog-card {
        padding: 1.25rem;
    }
    
    .team-member img {
        width: 90px;
        height: 90px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 0.97rem;
    }
    
    .process-step h5,
    .timeline-item h6 {
        font-size: 1rem;
    }
    
    .process-step p,
    .timeline-item p {
        font-size: 0.94rem;
    }
    
    .timeline-item .year {
        font-size: 1rem;
    }
    
    .gallery-section .col-lg-3 {
        margin-bottom: 0.66rem;
    }
    
    .gallery-img {
        border-radius: 6px;
    }
    
    .accordion-button {
        font-size: 1.03rem;
        padding: 0.875rem;
    }
    
    .form-control {
        padding: 0.625rem;
        font-size: 1.02rem;
    }
    
    .btn-primary {
        padding: 0.625rem 1.25rem;
        font-size: 0.96rem;
    }
    
    .btn-outline-primary {
        padding: 0.5rem 1rem;
        font-size: 0.99rem;
    }
    
    .price {
        font-size: 1.39rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer .col-lg-6 {
        text-align: center;
    }
    
    .breadcrumb-img {
        width: 20px;
        height: 20px;
    }
}

/* Very Small Devices (400px and down) */
@media (max-width: 400px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .hero-section {
        min-height: 50vh;
    }
    
    :root {
        --font-size-h1: 1.6rem;
        --font-size-h2: 1.4rem;
        --font-size-h3: 1.2rem;
        --font-size-h4: 1.1rem;
        --font-size-h5: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.86rem;
    }
    
    .form-control {
        padding: 0.5rem;
    }
    
    .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.88rem;
    }
    
    .price {
        font-size: 1.23rem;
    }
}

/* Landscape Orientation Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 100px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    section {
        padding: 40px 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    .hero-section {
        min-height: auto;
        background: white;
        padding: 20px 0;
    }
    
    .hero-section::before {
        display: none;
    }
    
    section {
        padding: 20px 0;
        background: white;
        break-inside: avoid;
    }
    
    .card-body,
    .feature-card,
    .service-card,
    .price-card {
        border: 1px solid #d7d0d1;
        box-shadow: none;
        background: white;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}

/* Accessibility Improvements */
@media (prefers-contrast: high) {
    :root {
        --primary-coral: #e6455a;
        --primary-sage: #40a540;
        --primary-lavender: #7342c7;
        --primary-slate: #1f1f1f;
        --dark-slate: #000000;
        --light-cream: #FFFFFF;
    }
    
    .form-control {
        border-width: 3px;
    }
    
    .btn-primary,
    .btn-outline-primary {
        border-width: 3px;
    }
}

/* Reduce animations for users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-card,
    .blog-card,
    .gallery-img,
    .btn-primary {
        transition: none;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .review-card:hover,
    .case-card:hover,
    .blog-card:hover {
        transform: none;
    }
    
    .gallery-img:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
}

/* Focus Styles for Better Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus,
.navbar-brand:focus,
.accordion-button:focus {
    outline: 3px solid var(--primary-coral);
    outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-coral);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* High DPI / Retina Display Adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .gallery-img,
    .team-member img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support (if needed in future) */

.hero-section h1 {
    padding-top: 150px;
}