/* ===== RESPONSIVE DESIGN ===== */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    :root {
        --font-size-base: 0.9rem;
        --space-sm: 0.75rem;
        --space-md: 1rem;
        --space-lg: 1.5rem;
        --space-xl: 2rem;
    }
    
    .hero-section {
  padding-top: 50px;
        padding-top: 75.00px;
        min-height: 90vh;
    }
    
    .hero-section h1 {
        font-size: 2.11rem;
    }
    
    .hero-section h3 {
        font-size: 1.26rem;
    }
    
    .hero-section p {
        font-size: 1.05rem;
    }
    
    .navbar-brand {
        font-size: 1.26rem !important;
    }
    
    .service-card img {
        height: 150px;
    }
    
    .team-photo {
        width: 80px;
        height: 80px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.26rem;
    }
    
    .contact-form {
        padding: var(--space-lg);
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 50px !important;
        padding-right: 0 !important;
    }
    
    .timeline-item::before {
        left: 10px !important;
        right: auto !important;
    }
    
    .gallery-section img {
        height: 200px;
    }
    
    .price-card.featured {
        transform: none;
        margin-top: var(--space-md);
    }
    
    /* Disable Swiper autoplay and effects on mobile */
    .swiper {
        --swiper-theme-color: var(--color-primary);
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.59rem;
    }
    
    .service-card img {
        height: 180px;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    .gallery-section img {
        height: 220px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.90rem;
    }
    
    .timeline-item {
        width: 45%;
    }
    
    .timeline-item:nth-child(odd) {
        padding-right: var(--space-md);
    }
    
    .timeline-item:nth-child(even) {
        padding-left: var(--space-md);
    }
    
    .service-card img {
        height: 190px;
    }
    
    /* Disable autoplay and effects for tablets under 768px */
    .swiper {
        --swiper-autoplay-delay: 0;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section h1 {
        font-size: 3.24rem;
    }
    
    .service-card {
        margin-bottom: var(--space-lg);
    }
    
    .testimonials-swiper {
        padding: var(--space-xl) 0;
    }
    
    .gallery-section img {
        height: 280px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 3.52rem;
    }
    
    .hero-section p {
        font-size: 1.33rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .swiper-pagination,
    .gallery-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    .hero-section {
  padding-top: 50px;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .service-card,
    .price-card,
    .team-member {
        border: 1px solid #e1d9d9;
        page-break-inside: avoid;
        margin-bottom: 1.22rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section {
  padding-top: 50px;
        background-image: url('../images/hero-pattern@2x.webp');
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
  padding-top: 50px;
        min-height: 100vh;
        padding-top: 65.00px;
    }
    
    .hero-section h1 {
        font-size: 2.11rem;
        margin-bottom: 1.22rem;
    }
    
    .hero-section h3 {
        font-size: 1.14rem;
        margin-bottom: 1.22rem;
    }
    
    .hero-section p {
        font-size: 1.00rem;
        margin-bottom: 1.72rem;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-section,
    .service-card,
    .price-card,
    .testimonials-swiper {
        animation: none;
        transition: none;
    }
    
    .swiper {
        --swiper-autoplay-delay: 0;
    }
    
    .timeline-content {
        animation: none;
    }
}


/* Navigation Adjustments for Smaller Screens */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
        margin-top: var(--space-sm);
    }
    
    .nav-link {
        padding: var(--space-xs) 0;
        margin: 0;
    }
    
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        border-radius: var(--radius-sm);
        margin-top: var(--space-sm);
        padding: var(--space-sm);
    }
}

/* Contact Form Responsive Adjustments */
@media (max-width: 767.98px) {
    .contact-form .row .col-md-6 {
        margin-bottom: var(--space-sm);
    }
    
    .contact-section .col-md-4 {
        margin-bottom: var(--space-lg);
        text-align: center;
    }
}

/* Team Section Responsive Grid */
@media (max-width: 575.98px) {
    .team-section .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .team-section .col-lg-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Price Cards Responsive Layout */
@media (max-width: 991.98px) {
    .price-card.featured {
        transform: none;
        border-width: 2px;
        margin: var(--space-md) 0;
    }
}

/* Gallery Grid Adjustments */
@media (max-width: 575.98px) {
    .gallery-section .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .gallery-section .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Blog Grid Responsive */
@media (max-width: 767.98px) {
    .blog-section .col-lg-4 {
        margin-bottom: var(--space-lg);
    }
}

/* Accordion Responsive */
@media (max-width: 575.98px) {
    .accordion-button {
        font-size: 0.95rem;
        padding: var(--space-sm);
    }
    
    .accordion-body {
        padding: var(--space-sm);
    }
}

/* Footer Responsive */
@media (max-width: 767.98px) {
    .footer .col-lg-4 {
        text-align: center;
        margin-bottom: var(--space-lg);
    }
    
    .footer ul {
        display: inline-block;
        text-align: left;
    }
} 