/* ============================================
   RESPONSIVE CSS - MOBILE & TABLET STYLES
   ============================================ */

/* ============================================
   TABLET STYLES (768px - 991px)
   ============================================ */

@media (max-width: 991px) {
    
    /* Typography adjustments */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    
    /* Hero section */
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        text-align: center;
    }
    
    /* Cards and components */
    .service-card,
    .price-card,
    .feature-card {
        margin-bottom: 2rem;
    }
    
    /* Team member grid */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Reviews slider */
    .review-card {
        margin: 0.5rem;
    }
    
    /* FAQ section */
    .accordion-item {
        margin-bottom: 0.5rem;
    }
    
    /* Gallery spacing */
    #gallery .row {
        margin: 0 -0.5rem;
    }
    
    #gallery .col-lg-3,
    #gallery .col-md-4 {
        padding: 0.5rem;
    }
}

/* ============================================
   MOBILE STYLES (576px - 767px)
   ============================================ */

@media (max-width: 767px) {
    
    /* Disable animations on mobile for better performance */
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
    
    /* Typography for mobile */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.1rem; }
    
    /* Hero section mobile */
    .hero-section {
        min-height: 80vh;
        padding-top: 80px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Reduce floating shapes complexity on mobile */
    .hero-bg-shapes .shape-1,
    .hero-bg-shapes .shape-2,
    .hero-bg-shapes .shape-3 {
        display: none;
    }
    
    /* Navigation mobile */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        border-radius: 10px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: var(--shadow-soft);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
        border-radius: 8px;
    }
    
    /* Section padding mobile */
    section {
        padding: 3rem 0;
    }
    
    .breadcrumb-section {
        padding: 5rem 0 1.5rem;
    }
    
    /* Cards mobile */
    .feature-card,
    .service-card,
    .price-card,
    .blog-card,
    .content-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Service cards mobile */
    .service-card img {
        height: 180px;
    }
    
    /* Price cards mobile */
    .price-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    .price-card .price {
        font-size: 1.8rem;
    }
    
    /* Team section mobile */
    .team-member img {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }
    
    .team-member h5 {
        font-size: 1rem;
    }
    
    .team-member p {
        font-size: 0.85rem;
    }
    
    /* Reviews mobile */
    .review-card {
        padding: 1.5rem;
        margin: 0.5rem 0;
    }
    
    .review-card p {
        font-size: 1rem;
    }
    
    /* Forms mobile */
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-control {
        padding: 0.75rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn-primary {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Gallery mobile */
    #gallery .col-6 {
        margin-bottom: 1rem;
    }
    
    .gallery-img {
        border-radius: 8px;
    }
    
    /* FAQ mobile */
    .accordion-button {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .accordion-body {
overflow-x: hidden;
        padding: 1rem;
    }
    
    /* Feature items mobile */
    .feature-item,
    .service-highlight,
    .quality-metric,
    .info-card {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-item i,
    .service-highlight i,
    .quality-metric i {
        font-size: 2rem;
    }
    
    /* Additional pages mobile */
    .planning-step,
    .tech-feature,
    .matching-factor,
    .resource-item {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .planning-step img {
        height: 150px;
    }
    
    .tech-feature i,
    .matching-factor i,
    .resource-item i {
        font-size: 2rem;
    }
    
    /* Space section mobile */
    #space {
        min-height: 250px;
        margin: 2rem 0;
    }
    
    /* Footer mobile */
    footer {
        text-align: center;
    }
    
    footer .col-lg-4,
    footer .col-lg-2,
    footer .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    footer h5,
    footer h6 {
        margin-bottom: 1rem;
    }
    
    footer .list-unstyled {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

/* ============================================
   SMALL MOBILE STYLES (Max 575px)
   ============================================ */

@media (max-width: 575px) {
    
    /* Further typography reduction */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    
    /* Hero very small screens */
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
    }
    
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Cards small mobile */
    .feature-card,
    .service-card,
    .price-card,
    .blog-card,
    .content-card {
        padding: 1.25rem;
    }
    
    /* Service grid small mobile */
    .service-card .price {
        font-size: 1.3rem;
    }
    
    /* Team very small screens */
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Forms very small */
    .contact-form {
        padding: 1.25rem;
    }
    
    /* Blog cards small */
    .blog-card img {
        height: 160px;
    }
    
    .blog-card .card-content {
        padding: 1.25rem;
    }
    
    /* Gallery very small */
    #gallery .col-6 {
        padding: 0.25rem;
    }
    
    /* Footer very small */
    footer .list-unstyled {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

/* ============================================
   LANDSCAPE MOBILE ORIENTATION
   ============================================ */

@media (max-height: 500px) and (orientation: landscape) {
    
    .hero-section {
        min-height: 100vh;
        padding-top: 70px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* ============================================
   HIGH DPI / RETINA DISPLAYS
   ============================================ */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    
    /* Sharper borders for high DPI */
    .feature-card,
    .service-card,
    .price-card,
    .blog-card,
    .content-card {
        border: 1px solid rgba(0,0,0,0.05);
    }
    
    /* Crisper shadows */
    .shadow-soft {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .shadow-medium {
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    
    /* Hide non-essential elements */
    .navbar,
    .hero-bg-shapes,
    .swiper-pagination,
    .btn,
    footer .list-unstyled {
        display: none !important;
    }
    
    /* Optimize for print */
    body {
overflow-x: hidden;
        font-size: 12pt;
        line-height: 1.4;
        color: #000 !important;
        background: #fff !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
        page-break-after: avoid;
    }
    
    p, li {
        orphans: 3;
        widows: 3;
    }
    
    .feature-card,
    .service-card,
    .price-card {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Focus indicators */
.navbar-nav .nav-link:focus,
.btn:focus,
.form-control:focus {
    outline: 2px solid var(--primary-lavender);
    outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-bg-shapes .shape-1,
    .hero-bg-shapes .shape-2,
    .hero-bg-shapes .shape-3 {
        animation: none;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .team-member:hover img {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-card,
    .service-card,
    .price-card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
} 