/* Responsive Design - Mobile and Tablet Optimizations */

/* Large Desktop (xl) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    padding-top: 100px;
}
    
    .hero-section h2 {
        font-size: 1.75rem;
    }
}

/* Desktop (lg) */
@media (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 100px;
}
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .service-card img,
    .blog-card img,
    .case-study-card img {
        height: 180px;
    }
}

/* Tablet (md) */
@media (max-width: 991.98px) {
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    padding-top: 100px;
}
    
    .hero-section h2 {
        font-size: 1.25rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0;
    }
    
    /* Content adjustments */
    .py-5 {
        padding: 3rem 0;
    }
    
    .service-card img,
    .blog-card img,
    .case-study-card img,
    .technique-card img,
    .heritage-card img {
        height: 160px;
    }
    
    .element-card img {
        height: 120px;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    .price-card.featured {
        transform: none;
        margin-top: 1rem;
    }
    
    /* Process and timeline adjustments */
    .step-number,
    .timeline-year {
        font-size: 1.25rem;
        width: 50px;
        height: 50px;
    }
    
    /* Contact form */
    .contact-form {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-info {
        padding: 1rem;
    }
}

/* Mobile Large (sm) */
@media (max-width: 767.98px) {
    body {
        padding-top: 70px;
    overflow-x: hidden;
}
    
    /* Disable all animations on mobile */
    * {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }
    
    /* Typography */
    h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.25rem;
        line-height: 1.3;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    h5 {
        font-size: 1rem;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        text-align: center;
    padding-top: 100px;
}
    
    .hero-section h2 {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .hero-section p {
        font-size: 1rem;
        text-align: center;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
    
    /* Hero section */
    .hero-section {
        padding: 1.5rem 0;
        text-align: center;
    }
    
    /* Sections */
    .py-5 {
        padding: 2.5rem 0;
    }
    
    section .row.text-center.mb-5 {
        margin-bottom: 2rem !important;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .review-card,
    .case-study-card,
    .blog-card,
    .faq-card,
    .info-card,
    .career-card {
        margin-bottom: 1.5rem;
    }
    
    .service-card img,
    .blog-card img,
    .case-study-card img {
        height: 150px;
    }
    
    .technique-card img,
    .heritage-card img {
        height: 130px;
    }
    
    .element-card img {
        height: 100px;
    }
    
    /* Team members */
    .team-member {
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Price cards */
    .price-card {
        margin-bottom: 1.5rem;
    }
    
    .price-card h3 {
        font-size: 2rem;
    }
    
    .price-card.featured {
        border-width: 1px;
    }
    
    /* Process steps */
    .process-step,
    .timeline-item {
        margin-bottom: 1.5rem;
        padding: 1rem 0.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .timeline-year {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Forms */
    .contact-form {
        padding: 1rem;
    }
    
    .contact-form .form-control {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .contact-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .contact-item i {
        font-size: 1.5rem !important;
    }
    
    /* Buttons */
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Footer */
    footer {
        padding: 2.5rem 0;
    }
    
    footer .col-lg-4 {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    footer h5 {
        font-size: 1.1rem;
    }
    
    footer p,
    footer a {
        font-size: 0.9rem;
    }
    
    /* Breadcrumb */
    .breadcrumb-section {
        padding: 90px 0 1rem;
        text-align: center;
    }
    
    .breadcrumb-image {
        height: 30px;
    }
    
    /* Gallery */
    #gallery .col-lg-3,
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Additional pages responsive */
    .element-card,
    .material-item,
    .support-item,
    .benefit-card,
    .delivery-option,
    .support-option {
        padding: 1rem 0.75rem;
        margin-bottom: 1rem;
    }
    
    .management-card,
    .payment-card {
        margin-bottom: 1rem;
    }
    
    .management-card .card-body,
    .payment-card .card-body {
        padding: 1rem;
    }
    
    /* Space section */
    #space {
        margin-top: 70px;
        min-height: 50vh;
    }
}

/* Mobile Small (xs) */
@media (max-width: 575.98px) {
    /* Further mobile optimizations */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Typography */
    .hero-section h1 {
        font-size: 1.75rem;
    padding-top: 100px;
}
    
    .hero-section h2 {
        font-size: 1rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1rem;
    }
    
    /* Sections */
    .py-5 {
        padding: 2rem 0;
    }
    
    /* Cards and content */
    .feature-card,
    .element-card,
    .material-item,
    .support-item,
    .benefit-card,
    .delivery-option,
    .support-option {
        padding: 0.75rem 0.5rem;
        text-align: center;
    }
    
    .service-card .card-body,
    .blog-card .card-body,
    .case-study-card .card-body,
    .technique-card .card-body,
    .heritage-card .card-body {
        padding: 1rem 0.75rem;
    }
    
    .service-card img,
    .blog-card img,
    .case-study-card img {
        height: 140px;
    }
    
    .technique-card img,
    .heritage-card img {
        height: 120px;
    }
    
    .element-card img {
        height: 90px;
    }
    
    /* Team */
    .team-member img {
        width: 70px;
        height: 70px;
    }
    
    /* Process */
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .timeline-year {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* Forms */
    .contact-form {
        padding: 0.75rem;
    }
    
    .contact-item {
        padding: 0.75rem;
    }
    
    .contact-item i {
        font-size: 1.25rem !important;
    }
    
    /* Price cards */
    .price-card h3 {
        font-size: 1.75rem;
    }
    
    .price-card h5 {
        font-size: 1rem;
    }
    
    /* Footer */
    footer .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    footer h5 {
        font-size: 1rem;
    }
    
    footer p,
    footer a {
        font-size: 0.85rem;
    }
    
    /* Gallery */
    #gallery .col-sm-6 {
        margin-bottom: 0.75rem;
    }
    
    /* Space */
    #space {
        min-height: 40vh;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-1: #4A2C17;
        --primary-1-light: #8B4513;
        --primary-1-dark: #2F1A0F;
        --text-dark: #000000;
        --text-light: #333333;
        --border-color: #CCCCCC;
    }
    
    .feature-card,
    .service-card,
    .review-card,
    .case-study-card,
    .blog-card,
    .faq-card,
    .info-card,
    .career-card {
        border: 1px solid var(--border-color);
    }
}

/* Print styles */
@media print {
    .navbar,
    .breadcrumb-section,
    footer,
    .btn,
    #gallery {
        display: none !important;
    }
    
    body {
        padding-top: 0;
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    .hero-section {
        background: none !important;
        padding: 1rem 0;
    }
    
    .py-5 {
        padding: 1rem 0;
    }
    
    .card {
        border: 1px solid #ddd;
        box-shadow: none;
        page-break-inside: avoid;
    }
}
