/**
 * Responsive CSS for Underten Auto Sales theme
 */

/* Large devices (desktops, 992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .vehicle-gallery-main {
        height: 400px;
    }
}

/* Medium devices (tablets, 768px to 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .usp-grid,
    .appraisal-benefits,
    .sell-steps,
    .finance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vehicle-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vehicle-details-grid {
        grid-template-columns: 1fr;
    }
    
    .vehicle-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .vehicle-gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Small devices (landscape phones, 576px to 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        flex-direction: column;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .main-navigation.active {
        display: flex;
    }
    
    .usp-grid,
    .vehicle-grid,
    .why-choose-grid,
    .contact-grid,
    .appraisal-benefits,
    .sell-steps,
    .calculator-main,
    .finance-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-buttons,
    .cta-buttons,
    .filter-actions {
        flex-direction: column;
    }
    
    .btn-secondary {
        margin-left: 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-bottom-links a {
        margin: 0 10px;
    }
    
    .vehicle-gallery-main {
        height: 300px;
    }
    
    .vehicle-gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-list ul {
        columns: 1;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .vehicle-gallery-thumbs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .specs-table th,
    .specs-table td {
        display: block;
        width: 100%;
    }
    
    .specs-table th {
        padding-bottom: 0;
    }
    
    .specs-table td {
        padding-top: 0;
    }
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .btn,
    .filter-section,
    .vehicle-sidebar,
    .cta-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}