/* ============================================
   REDVERS E-MOBILITY - RESPONSIVE STYLES
   ============================================ */

/* Extra Large Screens (1400px+) */
@media (min-width: 1400px) {
    :root {
        --container-max: 1320px;
    }
    
    .hero__title {
        font-size: 5rem;
    }
}

/* Large Screens (1200px - 1399px) */
@media (max-width: 1399px) {
    .hero__content {
        gap: var(--space-3xl);
    }
    
    .services-grid {
        gap: var(--space-lg);
    }
    
    .footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: var(--space-2xl);
    }
}

/* Medium-Large Screens (992px - 1199px) */
@media (max-width: 1199px) {
    .hero__content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
    
    .hero__title {
        font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    }
    
    .hero__stats {
        gap: var(--space-2xl);
    }
    
    .hero__stat-value {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        gap: var(--space-3xl);
    }
    
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2xl);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2xl);
    }
    
    .footer__brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
    :root {
        --space-4xl: 4rem;
    }
    
    /* Navigation */
    .navbar__menu {
        display: none;
    }
    
    .navbar__cta {
        display: none;
    }
    
    .navbar__toggle {
        display: flex;
    }
    
    /* Hero */
    .hero {
        min-height: auto;
        padding: 8rem 0 4rem;
    }
    
    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero__tagline {
        margin: 0 auto var(--space-lg);
    }
    
    .hero__description {
        margin: 0 auto var(--space-2xl);
    }
    
    .hero__actions {
        justify-content: center;
    }
    
    .hero__stats {
        justify-content: center;
    }
    
    .hero__visual {
        order: -1;
        margin-bottom: var(--space-2xl);
    }
    
    .hero__image-wrapper {
        max-width: 450px;
        margin: 0 auto;
    }
    
    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .about-grid--reverse {
        direction: ltr;
    }
    
    .about__content {
        max-width: 100%;
        text-align: center;
    }
    
    .about__features {
        align-items: center;
    }
    
    .about__image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .service-card {
        padding: var(--space-xl);
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    /* Steps */
    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2xl);
    }
    
    .steps::before {
        display: none;
    }
    
    .step__number {
        width: 70px;
        height: 70px;
        font-size: 1.25rem;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .contact-info {
        padding-right: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Timeline */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
        padding-left: 60px;
    }
    
    .timeline-item__content {
        width: 100%;
    }
    
    .timeline-item__dot {
        left: 20px;
    }
    
    /* Footer */
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) {
    :root {
        --space-4xl: 3rem;
        --container-padding: 1.25rem;
    }
    
    h1 { font-size: clamp(2rem, 6vw, 2.75rem); }
    h2 { font-size: clamp(1.75rem, 5vw, 2.25rem); }
    h3 { font-size: clamp(1.25rem, 4vw, 1.5rem); }
    
    /* Hero */
    .hero {
        padding: 7rem 0 3rem;
    }
    
    .hero__title {
        font-size: clamp(2rem, 7vw, 2.75rem);
    }
    
    .hero__description {
        font-size: 1.0625rem;
    }
    
    .hero__stats {
        flex-wrap: wrap;
        gap: var(--space-xl);
    }
    
    .hero__stat-value {
        font-size: 1.75rem;
    }
    
    .hero__actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero__actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Section Headers */
    .section-header {
        margin-bottom: var(--space-2xl);
    }
    
    .section-header__label::before,
    .section-header__label::after {
        width: 20px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .service-card__icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Stats */
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .stat-item__value {
        font-size: 2.25rem;
    }
    
    /* Steps */
    .steps {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Contact */
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer__brand {
        text-align: center;
    }
    
    .footer__social {
        justify-content: center;
    }
    
    .footer__legal {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    /* Page Header */
    .page-header {
        padding: 8rem 0 3rem;
    }
    
    /* CTA Section */
    .cta-section__actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-section__actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Pricing */
    .pricing-card--featured {
        transform: none;
    }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
    :root {
        --space-4xl: 2.5rem;
        --container-padding: 1rem;
    }
    
    /* Navigation */
    .navbar {
        padding: var(--space-sm) 0;
    }
    
    .navbar__logo img {
        height: 40px;
    }
    
    .navbar__logo-text {
        font-size: 1.25rem;
    }
    
    /* Hero */
    .hero {
        padding: 6rem 0 2.5rem;
    }
    
    .hero__tagline {
        padding: var(--space-xs) var(--space-md);
        font-size: 0.75rem;
    }
    
    .hero__stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .hero__stat {
        display: flex;
        align-items: center;
        gap: var(--space-md);
    }
    
    .hero__stat-value {
        font-size: 1.5rem;
    }
    
    .hero__stat-label {
        text-align: left;
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .btn--lg {
        padding: 1rem 2rem;
    }
    
    /* Service Cards */
    .service-card {
        padding: var(--space-lg);
    }
    
    .service-card__icon {
        width: 56px;
        height: 56px;
        margin-bottom: var(--space-md);
    }
    
    /* Product Cards */
    .product-card__specs {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Stats */
    .stats-bar {
        padding: var(--space-2xl) 0;
    }
    
    .stat-item__value {
        font-size: 2rem;
    }
    
    .stat-item__label {
        font-size: 0.8125rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: var(--space-lg);
    }
    
    .testimonial-card__text {
        font-size: 1rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: var(--space-lg);
    }
    
    /* FAQ */
    .faq-item__question {
        padding: var(--space-md);
        font-size: 1rem;
    }
    
    .faq-item__answer-content {
        padding: 0 var(--space-md) var(--space-md);
    }
    
    /* Gallery */
    .gallery-grid {
        gap: var(--space-sm);
    }
    
    /* Footer */
    .footer {
        padding: var(--space-3xl) 0 var(--space-lg);
    }
    
    .footer__logo img {
        height: 40px;
    }
    
    /* Mobile Menu */
    .mobile-menu {
        max-width: 100%;
        padding: var(--space-3xl) var(--space-lg);
    }
    
    .mobile-menu__link {
        font-size: 1.125rem;
        padding: var(--space-sm) 0;
    }
}

/* Very Small Screens (up to 380px) */
@media (max-width: 380px) {
    :root {
        --container-padding: 0.875rem;
    }
    
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    
    .hero__title {
        font-size: 1.875rem;
    }
    
    .stats-bar {
        grid-template-columns: 1fr;
    }
    
    .product-card__specs {
        grid-template-columns: 1fr;
    }
}

/* Landscape Mode on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 5rem 0 2rem;
    }
    
    .hero__content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    
    .hero__tagline {
        margin: 0 0 var(--space-md);
    }
    
    .hero__visual {
        order: 0;
        margin-bottom: 0;
    }
    
    .hero__actions {
        justify-content: flex-start;
    }
}

/* Reduced Motion */
@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__particle,
    .hero__glow {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary: #00FF7F;
        --gray-300: #CCCCCC;
        --gray-400: #999999;
    }
    
    .service-card,
    .product-card,
    .testimonial-card,
    .blog-card {
        border: 2px solid var(--gray-300);
    }
}

/* Dark Mode Support (if system prefers) */
@media (prefers-color-scheme: dark) {
    /* The site is already dark-themed, but this could be used for light mode pages */
}

/* Print Styles */
@media print {
    .navbar,
    .hero__glow,
    .hero__particles,
    .hero__bg-gradient,
    .hero__grid,
    .btn,
    .footer__social,
    .mobile-menu {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero,
    .section--dark {
        background: white !important;
        color: black !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
    }
    
    a {
        text-decoration: underline;
        color: black !important;
    }
    
    .section {
        padding: 2rem 0;
    }
}
