/* Responsive Design - Mobile First Approach */

/* Large Tablets and Small Desktops (992px and down) */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h3 {
        font-size: 1.3rem;
    }
    
    .hero-section p {
        font-size: var(--font-size-base);
    }
    
    .navbar-brand {
    font-size: 12px !important;
        font-size: var(--font-size-base) !important;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .timeline-item::before {
        left: -50px !important;
    }
    
    .process-step {
        padding: var(--spacing-md);
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-lg);
    }
}

/* Small Tablets (768px and down) */
@media (max-width: 768px) {
    :root {
        --font-size-h1: 1.8rem;
        --font-size-h2: 1.5rem;
        --font-size-h3: 1.3rem;
        --font-size-h4: 1.1rem;
        --spacing-xl: 2rem;
    }
    
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-section h3 {
        font-size: 1.2rem;
        margin-bottom: var(--spacing-md);
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: var(--spacing-md);
    }
    
    .navbar-nav .nav-link {
    font-size: 10px !important;
        margin: var(--spacing-xs) 0;
    }
    
    .feature-card,
    .service-card .card-body,
    .price-card,
    .testimonial-card,
    .contact-form {
        padding: var(--spacing-lg);
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .testimonial-card::before {
        font-size: 3rem;
        top: -15px;
        left: 20px;
    }
    
    .gallery-image {
        height: 200px;
        margin-bottom: var(--spacing-md);
    }
    
    .timeline {
        margin-left: var(--spacing-lg);
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        width: calc(100% - 45px);
        margin-left: 45px !important;
    }
    
    .timeline-item::before {
        left: -35px !important;
    }
    
    /* Disable Swiper autoplay and effects on mobile */
    .swiper {
        overflow: visible;
    }
    
    .swiper-slide {
        width: 100% !important;
        margin-bottom: var(--spacing-md);
    }
    
    .swiper-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    /* Make cards stack on mobile */
    .col-md-6,
    .col-lg-4,
    .col-lg-3,
    .col-lg-2 {
        margin-bottom: var(--spacing-lg);
    }
    
    /* Adjust padding for mobile */
    section {
        padding: var(--spacing-xl) 0 !important;
    }
    
    .container {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
}

/* Mobile Phones (576px and down) */
@media (max-width: 576px) {
    :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;
        --font-size-h6: 0.9rem;
        --spacing-xl: 1.5rem;
    }
    
    .hero-section {
        min-height: 70vh;
        padding: var(--spacing-xl) 0;
    }
    
    .hero-section h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .hero-section h3 {
        font-size: 1.1rem;
    }
    
    .navbar {
        padding: var(--spacing-sm) 0;
    }
    
    .navbar-brand {
    font-size: 12px !important;
        font-size: 0.95rem !important;
    }
    
    .navbar-toggler {
        padding: var(--spacing-xs);
    }
    
    .feature-card,
    .service-card .card-body,
    .price-card,
    .testimonial-card,
    .case-study-card .card-body,
    .blog-card .card-body,
    .contact-form {
        padding: var(--spacing-md);
    }
    
    .service-card .card-img-top,
    .case-study-card .card-img-top,
    .blog-card .card-img-top {
        height: 150px;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }
    
    .price-amount {
        font-size: 1.8rem;
    }
    
    .price-card.featured {
        transform: none;
        margin-bottom: var(--spacing-lg);
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-base);
    }
    
    .testimonial-card::before {
        font-size: 2.5rem;
        top: -10px;
        left: 15px;
    }
    
    .testimonial-card p {
        font-size: var(--font-size-base);
    }
    
    .gallery-image {
        height: 180px;
    }
    
    .timeline {
        margin-left: var(--spacing-md);
    }
    
    .timeline::before {
        left: 10px;
        width: 2px;
    }
    
    .timeline-item {
        width: calc(100% - 30px);
        margin-left: 30px !important;
        font-size: var(--font-size-sm);
    }
    
    .timeline-item::before {
        left: -20px !important;
        width: 12px;
        height: 12px;
    }
    
    .accordion-button {
        padding: var(--spacing-md);
        font-size: var(--font-size-sm);
    }
    
    .accordion-body {
        padding: var(--spacing-md);
        font-size: var(--font-size-sm);
    }
    
    .form-control {
        padding: var(--spacing-sm);
        font-size: var(--font-size-base);
    }
    
    .btn-primary {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-base);
    }
    
    .contact-section i {
        font-size: 1.5rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer .col-md-6,
    .footer .col-lg-3 {
        margin-bottom: var(--spacing-lg);
    }
    
    /* Breadcrumb adjustments */
    .breadcrumb-nav {
        padding: var(--spacing-sm) 0;
        margin-top: 60px;
    }
    
    .breadcrumb-icon {
        width: 20px;
        height: 20px;
    }
    
    /* Space content adjustments */
    .space-content {
        margin-top: 60px;
        min-height: 50vh;
    }
    
    /* Additional page cards mobile styling */
    .planning-card,
    .prep-card,
    .practice-card,
    .process-card,
    .preservation-card,
    .technique-card,
    .strategy-card,
    .management-card,
    .technical-card,
    .excellence-card {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
        border-left-width: 3px;
    }
    
    .planning-card h6,
    .prep-card h6,
    .practice-card h6,
    .process-card h6,
    .preservation-card h6,
    .technique-card h6,
    .strategy-card h6,
    .management-card h6,
    .technical-card h6,
    .excellence-card h6 {
        font-size: var(--font-size-base);
    }
    
    .career-card {
        padding: var(--spacing-md);
        border-left-width: 3px;
    }
    
    .info-card {
        padding: var(--spacing-lg);
    }
    
    .info-card i {
        font-size: 1.5rem;
    }
}

/* Extra Small Devices (480px and down) */
@media (max-width: 480px) {
    :root {
        --font-size-base: 15px;
        --font-size-h1: 1.5rem;
        --font-size-h2: 1.3rem;
        --font-size-h3: 1.1rem;
        --spacing-xl: 1rem;
    }
    
    .container {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }
    
    .hero-section {
        min-height: 60vh;
    }
    
    .hero-section h1 {
        font-size: 1.4rem;
    }
    
    .navbar-brand {
    font-size: 12px !important;
        font-size: 0.9rem !important;
    }
    
    .feature-card,
    .service-card .card-body,
    .price-card,
    .testimonial-card,
    .contact-form {
        padding: var(--spacing-sm);
    }
    
    .service-card .price {
        font-size: var(--font-size-lg);
        padding: var(--spacing-sm);
    }
    
    .price-amount {
        font-size: 1.6rem;
    }
    
    .team-photo {
        width: 80px;
        height: 80px;
        border-width: 2px;
    }
    
    .gallery-image {
        height: 150px;
    }
    
    .contact-section .row.mt-5 {
        margin-top: var(--spacing-lg) !important;
    }
    
    .contact-section .col-md-4 {
        margin-bottom: var(--spacing-md);
    }
    
    .footer .container {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
}

/* High DPI/Retina Display Adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section::before {
        background-image: url('../CRA_images/hero-bg@2x.webp');
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
    }
    
    .navbar {
        padding: var(--spacing-xs) 0;
    }
    
    .navbar-brand {
    font-size: 12px !important;
        font-size: 0.85rem !important;
    }
    
    section {
        padding: var(--spacing-lg) 0 !important;
    }
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .navbar,
    .footer,
    .btn,
    .swiper-pagination,
    .gallery-section {
        display: none !important;
    }
    
    .hero-section,
    .contact-section {
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .container {
        width: 100% !important;
        max-width: none !important;
    }
    
    .col-md-6,
    .col-lg-4,
    .col-lg-3 {
        width: 100% !important;
        margin-bottom: 1rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --light-gray: #2d2d2d;
        --medium-gray: #cccccc;
        --primary-charcoal: #ffffff;
        --light-charcoal: #e0e0e0;
    }
    
    body {
        background-color: var(--dark-charcoal);
        color: var(--white);
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .testimonial-card,
    .case-study-card,
    .blog-card,
    .contact-form,
    .timeline-item,
    .career-card,
    .info-card,
    .planning-card,
    .prep-card,
    .practice-card,
    .process-card,
    .preservation-card,
    .technique-card,
    .strategy-card,
    .management-card,
    .technical-card,
    .excellence-card {
        background: var(--light-gray);
        color: var(--white);
    }
    
    .form-control {
        background: var(--light-gray);
        color: var(--white);
        border-color: var(--medium-gray);
    }
    
    .accordion-button {
        background: var(--light-gray);
        color: var(--white);
    }
    
    .accordion-body {
        background: var(--light-gray);
        color: var(--medium-gray);
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .swiper {
        animation: none;
    }
    
    .swiper-wrapper {
        transform: none !important;
    }
    
    .swiper-slide {
        transform: none !important;
    }
}

/* Focus Improvements for Keyboard Navigation */
@media (min-width: 768px) {
    .nav-link:focus,
    .btn:focus,
    .form-control:focus,
    .accordion-button:focus {
        outline: 3px solid var(--primary-gold);
        outline-offset: 2px;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-burgundy: #660000;
        --primary-emerald: #003300;
        --primary-gold: #996600;
        --primary-charcoal: #000000;
        --primary-coral: #990000;
        --white: #ffffff;
        --medium-gray: #666666;
    }
    
    .navbar,
    .hero-section,
    .footer {
        border: 2px solid var(--primary-charcoal);
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .testimonial-card {
        border: 1px solid var(--primary-charcoal);
    }
} 