/* ============================================
   VelaroCar - Responsive CSS
   Additional responsive styles and optimizations
   ============================================ */

/* ============================================
   LARGE SCREENS (1400px+)
   ============================================ */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero h1 {
        font-size: 4rem;
    }
}

/* ============================================
   TABLET LANDSCAPE (1024px - 1199px)
   ============================================ */
@media (max-width: 1199px) and (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero h1 {
        font-size: 3.25rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* ============================================
   TABLET PORTRAIT (768px - 1023px)
   ============================================ */
@media (max-width: 1023px) and (min-width: 768px) {
    .hero {
        min-height: 600px;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

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

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .section {
        padding: 4rem 0;
    }

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

    .section-header h2 {
        font-size: 2rem;
    }

    .page-header {
        height: 350px;
    }

    .page-header-content h1 {
        font-size: 2.5rem;
    }

    .product-card-image {
        height: 200px;
    }
}

/* ============================================
   MOBILE LANDSCAPE (480px - 767px)
   ============================================ */
@media (max-width: 767px) and (min-width: 480px) {
    .hero {
        min-height: 550px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

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

    .hero-stat h3 {
        font-size: 1.75rem;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .hero-stat {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }

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

    .products-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

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

    .section {
        padding: 3rem 0;
    }

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

    .section-header h2 {
        font-size: 1.75rem;
    }

    .page-header {
        height: 300px;
    }

    .page-header-content h1 {
        font-size: 2rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .why-card {
        padding: 1.5rem;
    }

    .product-card-body {
        padding: 1rem;
    }

    .product-card-features {
        gap: 0.25rem;
    }

    .product-feature-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}

/* ============================================
   MOBILE PORTRAIT (max 479px)
   ============================================ */
@media (max-width: 479px) {
    :root {
        --container-padding: 0.875rem;
    }

    /* Hero */
    .hero {
        min-height: 500px;
    }

    .hero h1 {
        font-size: 1.75rem;
        letter-spacing: -0.5px;
    }

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

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .hero-stat {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        text-align: left;
    }

    .hero-stat h3 {
        font-size: 1.5rem;
    }

    /* Sections */
    .section {
        padding: 2.5rem 0;
    }

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

    .section-header h2 {
        font-size: 1.5rem;
    }

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

    .section-badge {
        font-size: 0.65rem;
    }

    /* Page Header */
    .page-header {
        height: 250px;
    }

    .page-header-content h1 {
        font-size: 1.75rem;
    }

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

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 1.5rem;
    }

    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card-image {
        height: 200px;
    }

    .product-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .product-card-footer .btn {
        width: 100%;
        justify-content: center;
    }

    /* Why Us */
    .why-grid {
        grid-template-columns: 1fr;
    }

    /* Reviews */
    .review-card {
        padding: 1.5rem;
    }

    .review-card-text {
        font-size: 0.85rem;
    }

    /* FAQ */
    .faq-question {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .faq-answer-content {
        padding: 0 1rem 1rem;
        font-size: 0.85rem;
    }

    /* CTA */
    .cta-content h2 {
        font-size: 1.5rem;
    }

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

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

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

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

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

    .footer-social {
        gap: 0.5rem;
    }

    .footer-social a {
        width: 36px;
        height: 36px;
    }

    /* Modals */
    .modal-overlay {
        padding: 0.5rem;
        align-items: flex-end;
    }

    .modal {
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
    }

    .modal-body {
        padding: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Toast */
    .toast-container {
        top: auto;
        bottom: 1rem;
        right: 0.5rem;
        left: 0.5rem;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }

    /* Search */
    .search-container {
        padding: 0 0.5rem;
    }

    .search-input {
        font-size: 1rem;
        padding: 1rem 1rem 1rem 3rem;
    }

    /* Contact */
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Dashboard */
    .stat-cards {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ============================================
   VERY SMALL SCREENS (max 360px)
   ============================================ */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.35rem;
    }

    .page-header-content h1 {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stat-cards {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   LANDSCAPE MOBILE
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 4rem 0;
    }

    .page-header {
        height: 200px;
    }

    .navbar-nav {
        gap: 1.5rem;
    }
}

/* ============================================
   HOVER MEDIA QUERY (touch devices)
   ============================================ */
@media (hover: none) {
    .product-card:hover {
        transform: none;
    }

    .service-card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    .product-card:hover .product-card-image img {
        transform: none;
    }

    .why-card:hover .why-card-icon {
        transform: none;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale,
    .stagger > * {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .footer,
    .loader-overlay,
    .toast-container,
    .search-overlay,
    .cta-section,
    .back-to-top,
    .btn {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-overlay {
        display: none;
    }

    .hero-content {
        color: #000;
    }

    .hero h1 {
        color: #000;
        font-size: 2rem;
    }

    .section {
        padding: 1rem 0;
    }
}

/* ============================================
   DARK MODE SUPPORT (optional, future)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Can be enabled later with a toggle */
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
