/* ===========================
   MOBILE COMPACT OVERRIDES
   Last Updated: January 17, 2025
   
   Purpose: Significantly reduce page length on mobile
   - Compact 2x4 features grid
   - Hide excess pain points
   - Hide excess testimonials
   - Hide bonus features (redundant)
   - Hide video demo section (redundant)
   =========================== */

/* ===========================
   CONTACT ICONS (WA + Email)
   =========================== */
.contact-icons {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.contact-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-icons a.wa-icon {
    color: #25D366;
    background: rgba(37, 211, 102, 0.1);
}

.contact-icons a.wa-icon:hover {
    background: #25D366;
    color: white;
    transform: translateY(-2px);
}

.contact-icons a.email-icon {
    color: var(--color-navy);
    background: rgba(26, 35, 126, 0.1);
}

.contact-icons a.email-icon:hover {
    background: var(--color-navy);
    color: white;
    transform: translateY(-2px);
}

.contact-icons a i {
    font-size: 1rem;
}

/* Header contact icons - smaller */
.nav-contact-icons {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    padding-right: 1rem;
    border-right: 1px solid #e0e0e0;
    margin-right: 0.5rem;
}

.nav-contact-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-contact-icons a.wa-icon {
    color: #25D366;
}

.nav-contact-icons a.wa-icon:hover {
    background: rgba(37, 211, 102, 0.15);
}

.nav-contact-icons a.email-icon {
    color: var(--color-navy);
}

.nav-contact-icons a.email-icon:hover {
    background: rgba(26, 35, 126, 0.1);
}

.nav-contact-icons a i {
    font-size: 1.1rem;
}

/* FAQ CTA with contact icons */
.faq-cta-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--color-light-gray);
    border-radius: 12px;
}

.faq-cta-box .contact-icons a {
    width: 40px;
    height: 40px;
}

.faq-cta-box .contact-icons a i {
    font-size: 1.25rem;
}

/* Mobile adjustments for contact icons */
@media (max-width: 768px) {
    .nav-contact-icons {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
        margin-bottom: 1rem;
        gap: 48px; /* 1.5x button width (32px) */
    }
    
    /* Increase gap between WA and Email buttons on mobile */
    /* 1.5x button width (28px) = 42px */
    .contact-icons {
        gap: 42px;
    }
}

/* ===========================
   LANGUAGE SWITCHER FLAGS
   =========================== */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.language-switcher button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 3px;
    overflow: hidden;
}

.language-switcher button:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

.language-switcher button.active {
    /* No special styling needed - position is the indicator */
}

.language-switcher button img {
    width: 32px !important;
    height: 24px !important;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* ===========================
   1. COMPACT FEATURES GRID (2x4)
   =========================== */

/* Desktop: Keep existing 4-column layout */
.features-grid-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.features-grid-compact .feature-item-compact {
    text-align: center;
    padding: 1rem;
}

.features-grid-compact .feature-icon-compact {
    width: 56px;
    height: 56px;
    background: var(--color-light-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.features-grid-compact .feature-icon-compact i {
    font-size: 1.5rem;
    color: var(--color-primary-green);
}

.features-grid-compact .feature-title-compact {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.features-grid-compact .feature-desc-compact {
    font-size: 0.875rem;
    color: var(--color-medium-gray);
    line-height: 1.4;
    margin: 0;
}

/* Tablet: 2 columns */
@media (max-width: 1024px) {
    .features-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Mobile: 2 columns, tighter */
@media (max-width: 768px) {
    .features-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .features-grid-compact .feature-item-compact {
        padding: 0.75rem 0.5rem;
    }
    
    .features-grid-compact .feature-icon-compact {
        width: 48px;
        height: 48px;
        margin-bottom: 0.5rem;
    }
    
    .features-grid-compact .feature-icon-compact i {
        font-size: 1.25rem;
    }
    
    .features-grid-compact .feature-title-compact {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .features-grid-compact .feature-desc-compact {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

/* ===========================
   2. HIDE BONUS FEATURES (Solution Section)
   =========================== */
.bonus-features {
    display: none !important;
}

/* ===========================
   3. PAIN POINTS - Show only 3 on mobile
   =========================== */
@media (max-width: 768px) {
    /* Hide cards 4, 5, 6 on mobile */
    .pain-points-grid .pain-point-card:nth-child(n+4) {
        display: none;
    }
    
    /* Keep the highlight card (6th) visible but move messaging elsewhere */
    .pain-points-grid .pain-point-highlight {
        display: none;
    }
    
    /* Tighter grid on mobile */
    .pain-points-grid {
        gap: 1rem;
    }
}

/* ===========================
   4. TESTIMONIALS - Show 2 on mobile
   =========================== */
@media (max-width: 768px) {
    /* Hide testimonials 3-6 by default */
    .testimonials-grid .testimonial-card:nth-child(n+3) {
        display: none;
    }
    
    /* When "show all" is active, reveal them */
    .testimonials-grid.show-all .testimonial-card:nth-child(n+3) {
        display: block;
    }
    
    /* Tighter spacing */
    .testimonials-grid {
        gap: 1rem;
    }
}

/* ===========================
   5. HIDE VIDEO DEMO SECTION
   =========================== */
.video-demo-section {
    display: none !important;
}

/* ===========================
   6. OLD FEATURES GRID (no longer needed - HTML replaced)
   These rules kept for backwards compatibility
   =========================== */
/* .features-grid-main - removed from HTML, no hiding needed */
/* .additional-features - removed from HTML, no hiding needed */

/* ===========================
   7. GENERAL MOBILE TIGHTENING
   =========================== */
@media (max-width: 768px) {
    /* Reduce section padding */
    .section {
        padding: 2.5rem 0;
    }
    
    /* Tighten section headers */
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    /* Reduce CTA spacing */
    .solution-cta,
    .testimonials-cta,
    .video-cta {
        margin-top: 1.5rem;
    }
    
    .cta-subtext {
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }
}
