/**
 * Medacsi Care Child Theme - Responsive Styles
 * Ensures all sections are fully responsive across all devices
 * 
 * @package Medacsi Care Child
 */

/* ============================================
   GLOBAL RESPONSIVE SETTINGS
   ============================================ */

* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   TABLET LANDSCAPE (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .medacsicare-full-width,
    .medacsicare-inner,
    .trust-container,
    .comprehensive-container,
    .testimonials-container,
    .faq-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero-heading {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

/* ============================================
   TABLET PORTRAIT (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    /* Typography adjustments */
    h1, .hero-heading {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    h2, .section-title {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    /* Grid layouts become single column */
    .hero-features,
    .trust-features-grid,
    .categories-grid,
    .testimonials-grid,
    .faq-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    /* Spacing adjustments */
    section,
    .full-height-section,
    .trust-section,
    .comprehensive-section,
    .testimonials-container,
    .faq-section {
        padding: 40px 15px !important;
    }
    
    /* Header adjustments */
    .hero-tag,
    .section-tag,
    .trust-tag,
    .comprehensive-tag {
        font-size: 0.85rem;
        padding: 8px 20px;
    }
    
    /* Button adjustments */
    .buy-now-btn,
    .btn {
        width: 100%;
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    /* Feature cards */
    .feature-item,
    .trust-feature-card,
    .category-card,
    .testimonial-card {
        padding: 20px;
    }
    
    /* Images */
    .hero-image-section {
        margin-top: 30px;
        height: auto;
        min-height: 300px;
    }
}

/* ============================================
   MOBILE LARGE (max-width: 576px)
   ============================================ */
@media (max-width: 576px) {
    /* Even smaller typography */
    h1, .hero-heading {
        font-size: 1.75rem;
    }
    
    h2, .section-title {
        font-size: 1.5rem;
    }
    
    /* Tighter spacing */
    section,
    .full-height-section,
    .trust-section,
    .comprehensive-section,
    .testimonials-container,
    .faq-section {
        padding: 30px 10px !important;
    }
    
    /* Feature grids */
    .hero-features {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .feature-item {
        min-height: auto;
        padding: 15px;
    }
    
    /* Category cards */
    .category-card {
        padding: 20px 15px;
    }
    
    .category-image {
        width: 60px;
        height: 60px;
    }
    
    .category-title {
        font-size: 1.1rem;
    }
    
    /* Testimonial cards */
    .customer-info {
        flex-direction: column;
        text-align: center;
    }
    
    .customer-avatar {
        width: 50px;
        height: 50px;
    }
    
    /* FAQ items */
    .faq-question {
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer-column {
        min-width: 100%;
        text-align: center;
    }
    
    /* CTA sections */
    .cta-section,
    .faq-cta {
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
}

/* ============================================
   MOBILE SMALL (max-width: 375px)
   ============================================ */
@media (max-width: 375px) {
    h1, .hero-heading {
        font-size: 1.5rem;
    }
    
    h2, .section-title {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    p, .hero-subheading, .section-subtitle {
        font-size: 0.9rem;
    }
    
    section {
        padding: 20px 10px !important;
    }
    
    .feature-text,
    .category-description,
    .testimonial-text {
        font-size: 0.85rem;
    }
}

/* ============================================
   FOOTER RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    footer [style*="flex"] {
        flex-direction: column !important;
    }
    
    footer [style*="flex: 1"],
    footer [style*="flex: 1.5"] {
        flex: 1 1 100% !important;
        min-width: 100% !important;
        text-align: center;
    }
    
    footer hr {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    footer ul,
    footer .payment-icons,
    footer .social-icons {
        justify-content: center;
    }
}

/* ============================================
   CONTAINER MAX-WIDTH ADJUSTMENTS
   ============================================ */
@media (max-width: 1400px) {
    .medacsicare-inner,
    .trust-container,
    .comprehensive-container,
    .testimonials-container,
    .faq-container {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .medacsicare-inner,
    .trust-container,
    .comprehensive-container,
    .testimonials-container,
    .faq-container {
        max-width: 992px;
    }
}

@media (max-width: 992px) {
    .medacsicare-inner,
    .trust-container,
    .comprehensive-container,
    .testimonials-container,
    .faq-container {
        max-width: 768px;
    }
}

@media (max-width: 768px) {
    .medacsicare-inner,
    .trust-container,
    .comprehensive-container,
    .testimonials-container,
    .faq-container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    a, button, .feature-item, .testimonial-card, .category-card {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .feature-item:hover,
    .trust-feature-card:hover,
    .category-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
}

/* ============================================
   LANDSCAPE MODE ON MOBILE
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .full-height-section {
        min-height: auto;
        padding: 30px 20px;
    }
    
    .hero-image-section {
        max-height: 300px;
    }
}

/* ============================================
   HIGH DPI SCREENS (RETINA)
   ============================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .hero-tag,
    .section-tag,
    .buy-now-btn,
    .cta-section,
    footer,
    header {
        display: none;
    }
    
    * {
        background: white !important;
        color: black !important;
    }
}

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

/* ============================================
   DARK MODE SUPPORT (Optional)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Uncomment if you want dark mode support
    body {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    */
}
