/* Heritage3D - Responsive CSS File */

/* Mobile First Approach - Base styles for mobile */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    /* Hero section */
    .hero-section {
        min-height: 80vh;
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content p:first-of-type {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        margin-top: 1.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Disable animations on mobile for better performance */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .career-card:hover,
    .info-card:hover,
    .blog-card:hover,
    .faq-card:hover,
    .gallery-image:hover,
    .btn:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }
    
    /* Navbar brand size */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Card padding adjustments */
    .feature-card,
    .service-card .service-content,
    .pricing-card,
    .review-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Team photos */
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    /* Process steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Contact form */
    .contact-info {
        padding: 1rem 0;
        margin-top: 2rem;
    }
    
    /* Gallery spacing */
    .gallery-image {
        margin-bottom: 1rem;
    }
    
    /* Section padding */
    .py-5 {
        padding: 2rem 0;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        min-height: 85vh;
        padding-top: 90px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p:first-of-type {
        font-size: 1.15rem;
    }
    
    .hero-buttons .btn {
        display: inline-block;
        width: auto;
        margin-right: 1rem;
        margin-bottom: 0.5rem;
    }
    
    /* Disable hover animations on small devices */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .case-study-card:hover,
    .blog-card:hover {
        transform: none;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        min-height: 90vh;
        padding-top: 80px;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-content p:first-of-type {
        font-size: 1.2rem;
    }
    
    /* Team grid adjustments */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Service grid adjustments */
    .service-card {
        margin-bottom: 2rem;
    }
    
    /* Pricing cards */
    .pricing-card.featured {
        transform: none;
        margin-top: 0;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section {
        min-height: 95vh;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
    }
    
    /* Restore hover effects for larger screens */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .career-card:hover,
    .info-card:hover,
    .blog-card:hover,
    .faq-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    }
    
    .gallery-image:hover {
        transform: scale(1.05);
    }
    
    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p:first-of-type {
        font-size: 1.25rem;
    }
    
    /* Container max-width adjustments */
    .container {
        max-width: 1140px;
    }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    /* Larger spacing for ultra-wide screens */
    .py-5 {
        padding: 4rem 0;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 60px;
    }
    
    .hero-content {
        padding: 1rem 0;
    padding-top: 250px;
}
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content p:first-of-type {
        font-size: 1rem;
    }
    
    .hero-buttons {
        margin-top: 1rem;
    }
}

/* High DPI/Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize images and icons for high DPI displays */
    .feature-icon,
    .info-icon,
    .contact-icon {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print styles */
@media print {
    /* Hide interactive elements */
    .navbar,
    .hero-buttons,
    .btn,
    footer,
    .contact-form {
        display: none;
    }
    
    /* Optimize for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    overflow-x: hidden;
}
    
    .container {
        width: 100%;
        max-width: none;
    }
    
    /* Adjust headings for print */
    h1 {
        font-size: 18pt;
        page-break-after: avoid;
    }
    
    h2 {
        font-size: 16pt;
        page-break-after: avoid;
    }
    
    h3 {
        font-size: 14pt;
        page-break-after: avoid;
    }
    
    /* Ensure cards print properly */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .info-card,
    .blog-card,
    .faq-card {
        border: 1px solid #ddd;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    /* Remove shadows and transitions for print */
    * {
        box-shadow: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    /* Ensure images fit on page */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Accessibility: Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove hover transforms */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .career-card:hover,
    .info-card:hover,
    .blog-card:hover,
    .faq-card:hover,
    .gallery-image:hover,
    .btn:hover {
        transform: none !important;
    }
}

/* Dark mode support (if system preference) */

/* Focus management for keyboard navigation */
@media (any-hover: none) {
    /* Touch devices - remove hover effects */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .career-card:hover,
    .info-card:hover,
    .blog-card:hover,
    .faq-card:hover,
    .gallery-image:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }
}

/* Container queries support (future-proofing) */
@supports (container-type: inline-size) {
    .card-container {
        container-type: inline-size;
    }
    
    @container (max-width: 300px) {
        .feature-card,
        .service-card .service-content,
        .pricing-card {
            padding: 1rem;
        }
        
        .feature-icon {
            font-size: 2rem;
        }
    }
}

/* Ensure proper spacing on very small screens */
@media (max-width: 320px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .py-5 {
        padding: 1.5rem 0;
    }
} 