/* ==========================================
   Responsive Styles - MSH Brand
   ========================================== */

/* ==========================================
   Tablet & Small Desktop (768px and up)
   ========================================== */

@media (min-width: 768px) {
    /* Typography */
    .slide-title {
        font-size: 56px;
    }

    .section-title {
        font-size: 40px;
    }

    /* Header */
    .nav-desktop {
        display: block;
    }

    .mobile-menu-toggle {
        display: none;
    }

    /* Hero */
    .carousel-prev {
        left: var(--spacing-2xl);
    }

    .carousel-next {
        right: var(--spacing-2xl);
    }

    /* Categories Grid */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* ==========================================
   Desktop (1024px and up)
   ========================================== */

@media (min-width: 1024px) {
    /* Container */
    :root {
        --container-padding: 2rem;
    }

    /* Typography */
    .slide-title {
        font-size: 64px;
    }

    /* Hero */
    .hero-carousel {
        height: 600px;
    }

    /* Categories Grid */
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

/* ==========================================
   Large Desktop (1440px and up)
   ========================================== */

@media (min-width: 1440px) {
    :root {
        --container-max-width: 1400px;
    }

    .hero-carousel {
        height: 700px;
    }
}

/* ==========================================
   Mobile Optimizations (up to 767px)
   ========================================== */

@media (max-width: 767px) {
    /* Typography */
    .slide-title {
        font-size: 32px;
    }

    .slide-description {
        font-size: var(--font-size-base);
    }

    .section-title {
        font-size: 28px;
    }

    /* Hero */
    .hero-carousel {
        height: var(--carousel-height-mobile);
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-base);
    }

    .carousel-prev {
        left: var(--spacing-sm);
    }

    .carousel-next {
        right: var(--spacing-sm);
    }

    .carousel-indicators {
        bottom: var(--spacing-md);
    }

    /* Cards */
    .card-content {
        padding: var(--spacing-lg);
    }

    .card-title {
        font-size: var(--font-size-lg);
    }

    .card-icon {
        font-size: 48px;
    }

    /* Feature Items */
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: var(--font-size-xl);
    }

    .feature-title {
        font-size: var(--font-size-lg);
    }

    /* FAQ */
    .faq-question {
        font-size: var(--font-size-base);
        padding: var(--spacing-md);
    }

    .faq-answer p {
        padding: 0 var(--spacing-md) var(--spacing-md);
    }

    /* Footer */
    .footer-column {
        margin-bottom: var(--spacing-xl);
    }

    /* WhatsApp Widget */
    .whatsapp-widget {
        width: 50px;
        height: 50px;
        font-size: 28px;
        bottom: var(--spacing-lg);
        right: var(--spacing-lg);
    }

    /* Sections Padding */
    .categories,
    .features,
    .faq,
    .footer {
        padding: var(--spacing-2xl) 0;
    }

    .section-header {
        margin-bottom: var(--spacing-2xl);
    }
}

/* ==========================================
   Small Mobile (up to 480px)
   ========================================== */

@media (max-width: 480px) {
    /* Typography */
    .logo-text {
        font-size: var(--font-size-xl);
    }

    .slide-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 24px;
    }

    /* Header */
    .header-content {
        height: 60px;
    }

    :root {
        --header-height: 60px;
    }

    /* Buttons */
    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-sm);
    }

    /* Hero */
    .hero-carousel {
        height: 250px;
    }

    .slide-text {
        padding: var(--spacing-lg);
    }

    /* Grid Gaps */
    .categories-grid,
    .features-grid {
        gap: var(--spacing-lg);
    }

    /* Payment Icons */
    .payment-icons {
        gap: var(--spacing-md);
        font-size: var(--font-size-xl);
    }
}

/* ==========================================
   Landscape Mobile
   ========================================== */

@media (max-width: 767px) and (orientation: landscape) {
    .hero-carousel {
        height: 350px;
    }

    .carousel-indicators {
        display: none;
    }
}

/* ==========================================
   Print Styles
   ========================================== */

@media print {
    .header,
    .carousel-btn,
    .carousel-indicators,
    .whatsapp-widget,
    .mobile-menu-toggle {
        display: none !important;
    }

    body {
        background-color: white;
        color: black;
    }

    .hero {
        margin-top: 0;
    }
}

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

    .whatsapp-widget {
        animation: none;
    }
}

/* ==========================================
   High Contrast Mode
   ========================================== */

@media (prefers-contrast: high) {
    .category-card,
    .faq-item {
        border-width: 2px;
    }

    .btn {
        border: 2px solid currentColor;
    }
}

/* ==========================================
   Dark Mode Support (System Preference)
   ========================================== */

@media (prefers-color-scheme: dark) {
    /* Already using dark theme by default */
}

@media (prefers-color-scheme: light) {
    /* Optional: Add light theme overrides if needed */
}
