/* ===== RESPONSIVE DESIGN ===== */

/* ===== MOBILE FIRST - BASE STYLES ===== */
/* These styles apply to all screen sizes unless overridden */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    :root {
        --h1-size: 1.75rem;
        --h2-size: 1.5rem;
        --h3-size: 1.25rem;
        --h4-size: 1.125rem;
        --h5-size: 1rem;
        --h6-size: 0.875rem;
        --font-size-base: 0.875rem;
    }
    
    body {
        padding-top: 64.00px;
    }
    
    /* Header adjustments */
    .navbar-brand {
        font-size: 1.39rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0 !important;
        text-align: center;
    }
    
    /* Hero section mobile */
    .hero-section {
  padding-top: 50px;
        text-align: center;
        padding: 3rem 0;
    }
    
    .hero-section .container {
        padding: 0 1rem;
    }
    
    .hero-section h1 {
        font-size: 1.82rem;
        margin-bottom: 1.23rem;
    }
    
    .hero-section h2 {
        font-size: 1.39rem;
        margin-bottom: 1.23rem;
    }
    
    .hero-section p {
        font-size: 1.03rem;
    }
    
    /* Section spacing */
    section {
        padding: 3rem 0;
    }
    
    /* Cards mobile adjustments */
    .service-card,
    .price-card,
    .blog-card {
        margin-bottom: 2.19rem;
        padding: 1.5rem;
    }
    
    .service-card img {
        height: 150px;
    }
    
    /* Team members mobile */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Contact form mobile */
    .contact-info {
        margin-top: 2.14rem;
        padding: 1.5rem;
    }
    
    /* Review cards mobile */
    .review-card {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    /* FAQ mobile */
    .accordion-button,
    .accordion-body {
        padding: 1rem;
    }
    
    /* Footer mobile */
    footer .col-lg-4 {
        margin-bottom: 2.19rem;
        text-align: center;
    }
    
    /* Disable animations on mobile for reduced motion */
    .swiper-slide {
        animation: none !important;
    }
    
    /* Button adjustments */
    .btn-primary {
        width: 100%;
        margin-top: 1.17rem;
    }
}

/* ===== SMALL DEVICES (landscape phones, 576px and up) ===== */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography adjustments */
    :root {
        --h1-size: 2rem;
        --h2-size: 1.75rem;
        --h3-size: 1.5rem;
        --h4-size: 1.25rem;
    }
    
    .hero-section h1 {
        font-size: 2.10rem;
    }
    
    .hero-section h2 {
        font-size: 1.60rem;
    }
    
    /* Card adjustments */
    .service-card img {
        height: 180px;
    }
    
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    /* Two column layout for some cards */
    .service-card,
    .price-card {
        margin-bottom: 2.19rem;
    }
}

/* ===== MEDIUM DEVICES (tablets, 768px and up) ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Disable autoplay and effects for Swiper on tablets */
    .swiper {
        --swiper-navigation-size: 24px;
    }
    
    /* Hero section tablet */
    .hero-section {
  padding-top: 50px;
        text-align: left;
    }
    
    .hero-section .row {
        align-items: center;
    }
    
    /* Service cards grid */
    .service-card {
        height: 100%;
    }
    
    .service-card img {
        height: 200px;
    }
    
    /* Team members in rows */
    .team-member {
        margin-bottom: 2.19rem;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Contact form tablet */
    .contact-info {
        margin-top: 0;
    }
    
    /* FAQ tablet */
    .accordion-item {
        margin-bottom: 0.71rem;
    }
    
    /* Footer tablet */
    footer .col-lg-4 {
        text-align: left;
    }
}

/* ===== LARGE DEVICES (desktops, 992px and up) ===== */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Full desktop experience */
    .hero-section {
  padding-top: 50px;
        padding: 0;
    }
    
    .hero-section .container {
        padding: 0 15px;
    }
    
    /* Service cards in 3 columns */
    .service-card img {
        height: 220px;
    }
    
    /* Team members in row */
    .team-member {
        margin-bottom: 1.23rem;
    }
    
    /* Review slider full functionality */
    .reviews-swiper {
        padding: 3rem 0;
    }
    
    .review-card {
        margin: 1rem;
    }
}

/* ===== EXTRA LARGE DEVICES (large desktops, 1200px and up) ===== */
@media (min-width: 1200px) {
    /* Optimal desktop experience */
    .container {
        max-width: 1140px;
    }
    
    /* Hero section full desktop */
    .hero-section h1 {
        font-size: 2.58rem;
    }
    
    .hero-section h2 {
        font-size: 2.10rem;
    }
    
    /* Service cards optimal sizing */
    .service-card img {
        height: 240px;
    }
    
    /* Team members optimal sizing */
    .team-member img {
        width: 140px;
        height: 140px;
    }
    
    /* Review cards optimal */
    .review-card {
        padding: 2.5rem;
    }
    
    /* Section spacing optimal */
    section {
        padding: 6rem 0;
    }
}

/* ===== ULTRA WIDE DISPLAYS (1400px and up) ===== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Larger typography for ultra-wide */
    .hero-section h1 {
        font-size: 3.09rem;
    }
    
    .hero-section h2 {
        font-size: 2.26rem;
    }
    
    /* Enhanced spacing */
    section {
        padding: 7rem 0;
    }
    
    /* Cards with more breathing room */
    .service-card,
    .price-card,
    .blog-card {
        padding: 2.5rem;
    }
}

/* ===== SWIPER RESPONSIVE SETTINGS ===== */
@media (max-width: 767.98px) {
    /* Disable autoplay and effects on mobile */
    .swiper {
        --swiper-pagination-bullet-size: 8px;
    }
    
    .swiper-slide {
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Single slide visible on mobile */
    .reviews-swiper .swiper-slide {
        width: 100% !important;
    }
}

@media (min-width: 768px) {
    /* Enable full functionality on larger screens */
    .reviews-swiper .swiper-slide {
        width: auto !important;
    }
}

/* ===== ACCESSIBILITY RESPONSIVE FEATURES ===== */
@media (max-width: 767.98px) {
    /* Larger touch targets on mobile */
    .btn,
    .nav-link,
    .accordion-button {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improved form elements */
    .form-control {
        min-height: 44px;
        font-size: 1.03rem; /* Prevent zoom on iOS */
    }
    
    /* Better spacing for mobile interactions */
    .navbar-nav .nav-item {
        margin-bottom: 0.71rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    /* Hide unnecessary elements when printing */
    .navbar,
    .btn,
    .swiper-pagination,
    .swiper-navigation,
    footer {
        display: none !important;
    }
    
    /* Optimize text for printing */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    /* Ensure readable text */
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    /* Avoid breaking content */
    .service-card,
    .price-card,
    .blog-card,
    .review-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #cfcfcf;
    }
    
    /* Hide background images/gradients */
    * {
        background-image: none !important;
        background-color: transparent !important;
    }
}

/* ===== LANDSCAPE ORIENTATION ADJUSTMENTS ===== */
@media (max-height: 500px) and (orientation: landscape) {
    /* Reduce hero section height on landscape mobile */
    .hero-section {
  padding-top: 50px;
        min-height: auto;
        padding: 2rem 0;
    }
    
    /* Reduce section padding */
    section {
        padding: 2rem 0;
    }
    
    /* Smaller team images */
    .team-member img {
        width: 80px;
        height: 80px;
    }
}


/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    /* Enhanced contrast for accessibility */
    .service-card,
    .price-card,
    .blog-card {
        border: 2px solid var(--dark-gray);
    }
    
    .btn-primary {
        border: 2px solid var(--white);
    }
    
    .form-control {
        border-width: 2px;
    }
} 