/* ==========================================================================
   Responsive Styles for Antigravity Batteries LLC
   Mobile-First Approach
   ========================================================================== */

/* Tablet Devices (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        height: 500px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Devices (up to 767px) */
@media (max-width: 767px) {
    /* Typography adjustments */
    body {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Header and Navigation */
    .top-bar-content {
        justify-content: center;
        text-align: center;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        width: 100%;
    }
    
    .social-links {
        justify-content: center;
        width: 100%;
    }
    
    .nav-wrapper {
        position: relative;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        gap: 0;
        align-items: flex-start;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 0;
        width: 100%;
    }
    
    /* Hero Section */
    .hero {
        height: 450px;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Features Section */
    .features {
        padding: var(--spacing-md) 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Products Section */
    .products {
        padding: var(--spacing-md) 0;
    }
    
    .product-category {
        margin-bottom: var(--spacing-md);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-image {
        height: 250px;
    }
    
    /* About Section */
    .about-preview {
        padding: var(--spacing-md) 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
    
    /* Order Form Section */
    .order-form-section {
        padding: var(--spacing-md) 0;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .order-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-md) 0 var(--spacing-sm);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-col ul {
        text-align: center;
    }
    
    .footer-contact li {
        justify-content: center;
        text-align: left;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Back to Top Button */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    /* Section spacing */
    .section-header {
        margin-bottom: var(--spacing-md);
    }
}

/* Small Mobile Devices (up to 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    .nav-menu {
        width: 90%;
    }
    
    .logo h1 {
        font-size: 1rem;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        height: 350px;
    }
    
    .nav-menu {
        padding-top: 60px;
    }
}

/* Print styles */
@media print {
    .header,
    .back-to-top,
    .order-form-section,
    .hero-buttons {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    .product-card,
    .feature-card {
        page-break-inside: avoid;
    }
}

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimized for retina displays */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Accessibility - 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;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Optional: Add dark mode styles if needed */
    /* Currently not implemented to maintain brand consistency */
}