/* ===================================
   ARV Motors - Responsive Stylesheet
   =================================== */

/* Tablet Landscape (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero {
        min-height: 70vh;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .sustainability-content {
        gap: 3rem;
    }

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

/* Tablet Portrait (max-width: 768px) */
@media (max-width: 768px) {
    /* Header & Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--shadow-xl);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        overflow-y: auto;
    }

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

    .nav-toggle {
        display: flex;
    }

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

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

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

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        padding: 0.75rem 0;
        width: 100%;
    }

    .btn-quote {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem;
    }

    /* Hero Section */
    .hero {
        min-height: 65vh;
        margin-top: 70px;
    }

    .hero-content {
        padding: 1.5rem;
    }

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

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

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

    /* Stats Section */
    .stats {
        padding: 3rem 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Section Spacing */
    .products,
    .why-arv,
    .applications,
    .sustainability,
    .contact-form-section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

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

    .product-card {
        max-width: 500px;
        margin: 0 auto;
    }

    /* Why ARV Section */
    .why-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Applications Section */
    .applications-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    /* Sustainability Section */
    .sustainability-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .sustainability-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Contact Form */
    .form-wrapper {
        padding: 2rem;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 0;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    /* Floating Buttons */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 1.75rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .scroll-top {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
        bottom: 1.5rem;
        left: 1.5rem;
    }

    /* Vehicle Detail Pages */
    .vehicle-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .vehicle-detail-image {
        position: relative;
        top: 0;
    }

    .vehicle-detail-info h2 {
        font-size: 1.75rem;
    }

    .vehicle-detail-info h3 {
        font-size: 1.25rem;
    }

    .vehicle-cta {
        flex-direction: column;
    }

    .vehicle-cta .btn {
        width: 100%;
    }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
    /* Typography */
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.625rem; }
    h3 { font-size: 1.25rem; }

    .container {
        padding: 0 1rem;
    }

    /* Header */
    .logo-text {
        font-size: 1.5rem;
    }

    .logo-tagline {
        font-size: 0.7rem;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    /* Hero Section */
    .hero {
        min-height: 60vh;
        margin-top: 65px;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-title {
        font-size: 1.625rem;
        margin-bottom: 1rem;
    }

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

    .hero-cta .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Stats Section */
    .stat-item {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* Product Cards */
    .product-image {
        height: 200px;
    }

    .product-content {
        padding: 1.5rem;
    }

    .product-content h3 {
        font-size: 1.15rem;
    }

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

    .product-features li {
        font-size: 0.85rem;
    }

    .btn-product {
        width: 100%;
        justify-content: center;
        padding: 0.675rem 1.25rem;
        font-size: 0.9rem;
    }

    /* Why ARV Section */
    .why-card {
        padding: 2rem 1.5rem;
    }

    .why-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .why-card h3 {
        font-size: 1.1rem;
    }

    .why-card p {
        font-size: 0.9rem;
    }

    /* Applications Section */
    .applications-grid {
        grid-template-columns: 1fr;
    }

    .app-card {
        padding: 1.75rem 1.5rem;
    }

    .app-card i {
        font-size: 2.5rem;
    }

    .app-card h4 {
        font-size: 1.05rem;
    }

    .app-card p {
        font-size: 0.85rem;
    }

    /* Sustainability Section */
    .sustainability-text h2 {
        font-size: 1.75rem;
    }

    .sustainability-text p {
        font-size: 0.95rem;
    }

    .sus-stat h3 {
        font-size: 2rem;
    }

    .sus-stat p {
        font-size: 0.85rem;
    }

    /* Contact Form */
    .form-wrapper {
        padding: 1.5rem;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
    }

    .btn-submit {
        padding: 0.875rem;
        font-size: 1rem;
    }

    .form-success {
        padding: 2rem 1rem;
    }

    .form-success i {
        font-size: 3rem;
    }

    .form-success h3 {
        font-size: 1.5rem;
    }

    .form-success p {
        font-size: 1rem;
    }

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

    .footer-col h3 {
        font-size: 1.25rem;
    }

    .footer-col h4 {
        font-size: 1.1rem;
    }

    .footer-tagline,
    .footer-col ul li a,
    .footer-contact li {
        font-size: 0.9rem;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }

    /* Floating Buttons */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 1rem;
        right: 1rem;
    }

    .scroll-top {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
        bottom: 1rem;
        left: 1rem;
    }
}

/* Extra Small Devices (max-width: 375px) */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.5rem;
    }

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

    .stat-item {
        padding: 1.25rem;
    }

    .product-content {
        padding: 1.25rem;
    }

    .why-card {
        padding: 1.75rem 1.25rem;
    }

    .app-card {
        padding: 1.5rem 1.25rem;
    }

    .form-wrapper {
        padding: 1.25rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .hero,
    .whatsapp-float,
    .scroll-top,
    .nav-toggle {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    h1 { font-size: 24pt; }
    h2 { font-size: 20pt; }
    h3 { font-size: 16pt; }

    .section-header,
    .products,
    .why-arv,
    .applications,
    .contact-form-section {
        page-break-inside: avoid;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-image img,
    .sustainability-image img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Landscape Orientation (Mobile) */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .hero-cta {
        gap: 0.75rem;
    }

    .hero-scroll {
        display: none;
    }
}

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

    .hero-content {
        animation: none;
    }

    .hero-scroll {
        animation: none;
    }
}

/* Dark Mode Preference */
@media (prefers-color-scheme: dark) {
    /* This is a placeholder for future dark mode implementation */
    /* Can be activated based on user preference */
}