/* Car Momentum UK - Responsive Stylesheet */

/* Tablet Styles */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }

    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Cookie Modal */
    .cookie-modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .cookie-modal-buttons {
        flex-direction: column;
    }

    .cookie-modal-buttons .btn {
        width: 100%;
    }

    /* Thank You Page */
    .expectations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Header */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Sections */
    section {
        padding: 60px 0;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Reviews Grid */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* About Stats */
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    /* Newsletter Form */
    .form-group {
        flex-direction: column;
        gap: 1rem;
    }

    .form-group .btn {
        width: 100%;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section {
        padding: 1rem 0;
    }

    .social-links {
        justify-content: center;
    }

    /* Cookie Consent */
    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cookie-buttons .btn {
        width: 100%;
        font-size: 0.9rem;
        padding: 12px;
    }

    /* Cookie Modal */
    .cookie-modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
        max-height: calc(100vh - 2rem);
        padding: 1rem;
    }

    .cookie-category {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cookie-category div {
        margin-right: 0;
    }

    /* Legal Pages */
    .legal-content {
        padding: 100px 0 60px;
    }

    .legal-text {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .cookie-table {
        font-size: 0.9rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 8px;
    }

    /* Thank You Page */
    .thank-you {
        padding: 100px 0 60px;
    }

    .what-to-expect {
        padding: 2rem 1.5rem;
        margin: 0 1rem 2rem;
    }

    .next-steps {
        padding: 1.5rem;
        margin: 0 1rem 1.5rem;
    }

    .contact-info {
        padding: 1rem;
        margin: 0 1rem;
    }

    .thank-you-icon svg {
        width: 80px;
        height: 80px;
    }

    /* Utility Classes for Mobile */
    .btn {
        padding: 14px 20px;
        font-size: 1rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    /* Typography */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* Hero */
    .hero-text h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    /* Cards */
    .feature-card,
    .service-card,
    .review-card {
        padding: 1.5rem;
    }

    .product-card h3 {
        padding: 1rem 1rem 0;
    }

    .product-description,
    .product-price {
        padding: 0 1rem;
    }

    .product-card .btn {
        margin: 0 1rem 1rem;
        width: calc(100% - 2rem);
    }

    /* Newsletter */
    .newsletter-form {
        padding: 1.5rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    /* Cookie Elements */
    .cookie-consent {
        padding: 1rem;
    }

    .cookie-content h3 {
        font-size: 1.2rem;
    }

    .cookie-content p {
        font-size: 0.9rem;
    }

    /* Legal Text */
    .legal-text {
        padding: 1.5rem 1rem;
    }

    .legal-text h2 {
        font-size: 1.4rem;
    }

    .legal-text h3 {
        font-size: 1.2rem;
    }

    /* Contact Details */
    .contact-details {
        padding: 1rem;
    }

    /* Thank You Elements */
    .what-to-expect {
        padding: 1.5rem 1rem;
    }

    .next-steps {
        padding: 1rem;
    }

    .contact-info {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .thank-you-icon svg {
        width: 60px;
        height: 60px;
    }

    .expectation-item svg {
        width: 24px;
        height: 24px;
    }

    /* Table Responsiveness */
    .cookie-table {
        font-size: 0.8rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 6px;
        min-width: 120px;
    }
}

/* Large Desktop Styles */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .features-grid,
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-consent,
    .cookie-modal,
    .btn,
    .nav-toggle {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }

    .legal-content,
    .thank-you {
        padding: 0;
    }

    .legal-text,
    .what-to-expect,
    .next-steps {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }

    .legal-text h2 {
        border-bottom: 2px solid #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .cookie-table {
        border: 1px solid #000;
    }

    .cookie-table th,
    .cookie-table td {
        border: 1px solid #000;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background-color: #000;
        border-color: #000;
        color: #fff;
    }

    .btn-outline {
        border-color: #000;
        color: #000;
    }

    .feature-card,
    .product-card,
    .service-card,
    .review-card {
        border: 2px solid #000;
    }

    .footer {
        background-color: #000;
        color: #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-img {
        animation: none;
    }
}

/* Focus Styles for Accessibility */
@media (any-hover: hover) {
    .btn:focus,
    .nav-link:focus,
    input:focus,
    .social-links a:focus {
        outline: 2px solid #007bff;
        outline-offset: 2px;
    }
}
