/* Vintage Restoration Co. - Responsive Styles */

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography Adjustments */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4, h5 {
        font-size: 1.1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 140px 0 2rem 0;
        text-align: center;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    /* Process Numbers */
    .process-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    /* Team Images */
    .team img,
    img.rounded-circle {
        width: 80px;
        height: 80px;
    }
    
    /* Contact Form */
    .contact-info {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    /* Footer */
    footer .container {
        text-align: center;
    }
    
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Section Padding */
    section {
        padding: 2rem 0;
    }
    
    /* Remove hover effects on mobile */
    .card:hover {
        transform: none;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 120px 0 3rem 0;
    }
    
    /* Cards */
    .card-img-top {
        height: 190px;
    }
    
    /* Process Numbers */
    .process-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    /* Team Images */
    .team img,
    img.rounded-circle {
        width: 90px;
        height: 90px;
    }
    
    /* Section Padding */
    section {
        padding: 3rem 0;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-section {
        padding: 100px 0 4rem 0;
    }
    
    /* Cards */
    .card-img-top {
        height: 200px;
    }
    
    /* Process Numbers */
    .process-number {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    /* Team Images */
    .team img,
    img.rounded-circle {
        width: 100px;
        height: 100px;
    }
    
    /* Contact Form */
    .contact-info {
        margin-top: 1rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Standard desktop styles - most styles from main.css apply here */
    
    /* Process Numbers */
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    
    /* Team Images */
    .team img,
    img.rounded-circle {
        width: 110px;
        height: 110px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Enhanced spacing for large screens */
    .container {
        max-width: 1140px;
    }
    
    /* Typography enhancements */
    h1 {
        font-size: 2.75rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 120px 0 5rem 0;
    }
    
    /* Cards */
    .card-img-top {
        height: 220px;
    }
    
    /* Team Images */
    .team img,
    img.rounded-circle {
        width: 120px;
        height: 120px;
    }
    
    /* Section Padding */
    section {
        padding: 5rem 0;
    }
}

/* Mobile Navigation Fixes */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--light-cream);
        padding: 1rem;
        border-radius: 5px;
        margin-top: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .navbar-nav .nav-item {
        text-align: center;
        margin: 0.5rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: var(--primary-cream);
    }
}

/* Disable Animations on Mobile - No Scroll Animations */
@media (max-width: 768px) {
    /* Disable all Sal.js animations on mobile */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
    
    /* Disable scroll-triggered animations */
    .sal-animate {
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Disable card hover animations */
    .card {
        transition: none;
    }
    
    .card:hover {
        transform: none !important;
    }
    
    /* Disable button hover animations */
    .btn {
        transition: background-color 0.3s ease;
    }
    
    .btn:hover {
        transform: none !important;
    }
    
    /* Gallery hover effects disabled */
    #gallery img {
        transition: none;
    }
    
    #gallery img:hover {
        transform: none !important;
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and footer for printing */
    .navbar,
    footer {
        display: none !important;
    }
    
    /* Adjust colors for print */
    body {
        background-color: white !important;
        color: black !important;
    }
    
    .card {
        border: 1px solid #dfdfdf !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    /* Ensure text is readable */
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
    }
    
    /* Remove background colors */
    .bg-light,
    .hero-section {
        background: white !important;
    }
    
    /* Adjust spacing */
    section {
        padding: 1rem 0;
    }
    
    /* Hide images that aren't essential */
    .hero-section img {
        display: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    /* Increase contrast for accessibility */
    .card {
        border: 2px solid var(--primary-charcoal);
    }
    
    .btn-primary {
        background-color: var(--dark-burgundy);
        border: 2px solid var(--dark-burgundy);
    }
    
    .form-control {
        border: 2px solid var(--primary-charcoal);
    }
    
    .navbar {
        border-bottom: 2px solid var(--primary-charcoal);
    }
}

/* Dark Mode Support (if user prefers) */

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    /* Adjust hero section for landscape mobile */
    .hero-section {
        padding: 100px 0 2rem 0;
    }
    
    /* Reduce section padding */
    section {
        padding: 2rem 0;
    }
    
    /* Adjust navbar */
    .navbar {
        padding: 0.25rem 0;
    }
}

/* Focus and Accessibility Improvements */
@media (max-width: 768px) {
    /* Larger touch targets for mobile */
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Form improvements */
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-check-input {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* Container Adjustments */
@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Team Section Responsive Grid */
@media (max-width: 767.98px) {
    #team .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575.98px) {
    #team .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }
}

/* Services Grid Adjustments */
@media (max-width: 767.98px) {
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Process Section Mobile Layout */
@media (max-width: 767.98px) {
    #process .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }
}

/* Timeline Section Mobile Layout */
@media (max-width: 767.98px) {
    #timeline .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }
} 

.hero-section h1 {
    padding-top: 175px;
}