/* ═══════════════════════════════════════════════════════════════
   CONSOLIDATED RESPONSIVE CSS - Single Source of Truth
   Merged from: responsive_complete.css, responsive_fix.css, extreme-responsive.css
   ═══════════════════════════════════════════════════════════════ */

/* BASE: Prevent horizontal scroll */
html,
body {
    width: 100%;
    min-width: 320px !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

* {
    box-sizing: border-box;
    max-width: 100% !important;
}

/* EXCEPTION: Don't squash icons or fixed elements */
svg,
.social-links a,
.custom-checkbox,
.location-indicator,
.whatsapp-float {
    max-width: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   ULTRA-SMALL MOBILE (320px - 350px) - iPhone SE, Galaxy Fold
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 350px) {
    .nav-logo {
        padding-left: 10px !important;
        font-size: 1.05rem !important;
    }

    .hero-title,
    .hero h1 {
        font-size: 1.9rem !important;
        padding: 0 12px !important;
        line-height: 1.2 !important;
    }

    .hero-tagline,
    .hero-subtitle {
        font-size: 0.9rem !important;
        padding: 0 10px !important;
    }

    .pricing-grid {
        padding: 0 8px !important;
    }

    .price-card {
        padding: 1.2rem !important;
    }

    section {
        padding: 2rem 0.5rem !important;
    }

    .btn-primary {
        width: 100%;
        padding: 0.9rem 1rem !important;
        font-size: 0.95rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE (max-width: 480px)
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {

    /* Hero stats - Stack vertically */
    .hero-stats {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .stat {
        width: 100%;
    }

    /* Navbar - Compact */
    .nav-logo {
        font-size: 1.1rem !important;
    }

    /* Pricing cards full width */
    .pricing-grid {
        grid-template-columns: 1fr !important;
        padding: 0 0.5rem !important;
        gap: 1.5rem !important;
    }

    .price-card {
        max-width: none !important;
        width: 100% !important;
    }

    /* WhatsApp button positioning */
    .whatsapp-float {
        bottom: 100px !important;
        width: 50px !important;
        height: 50px !important;
    }

    .location-indicator {
        bottom: 240px !important;
        left: 10px !important;
        right: 10px !important;
        font-size: 0.7rem !important;
        padding: 0.4rem 0.6rem !important;
    }

    /* Footer centering */
    .social-links {
        justify-content: center !important;
    }

    .footer-col {
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    #google_translate_element {
        transform: scale(0.75) !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   TABLET (481px - 768px)
   ═══════════════════════════════════════════════════════════════ */

@media (min-width: 481px) and (max-width: 768px) {
    .location-indicator {
        bottom: 200px !important;
    }

    .whatsapp-float {
        bottom: 80px !important;
    }

    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ALL MOBILE (max-width: 768px) - COMPREHENSIVE FIXES
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* Hero stats responsive */
    .hero-stats {
        gap: 1.5rem 2rem;
        padding: 0 1rem;
    }

    .stat {
        min-width: 80px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }

    /* About section */
    .about-grid {
        gap: 2rem !important;
        text-align: center;
    }

    .about-content {
        text-align: center !important;
    }

    .about-quote {
        border-left: none !important;
        border-top: 4px solid var(--accent) !important;
        text-align: center;
    }

    /* Comparison table horizontal scroll */
    .comparison-table-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin: 0 -10px;
        padding: 0 10px;
    }

    .comparison-table-wrapper table {
        min-width: 600px;
        font-size: 0.85rem;
    }

    .comparison-table-wrapper th,
    .comparison-table-wrapper td {
        padding: 10px 8px !important;
    }

    /* Mobile menu */
    .mobile-menu-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .nav-links {
        display: none !important;
    }

    .nav-links.active {
        display: flex !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
        flex-direction: column !important;
        padding: 2rem !important;
        gap: 1.5rem !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
        z-index: 10001 !important;
        border-bottom: 3px solid #C4B454 !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   DESKTOP (min-width: 769px)
   ═══════════════════════════════════════════════════════════════ */

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }

    .location-indicator {
        bottom: 160px !important;
        right: 20px !important;
        left: auto !important;
    }

    .whatsapp-float {
        bottom: 30px !important;
        width: 60px !important;
        height: 60px !important;
    }

    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   4K TV / ULTRA-WIDE (2560px+)
   ═══════════════════════════════════════════════════════════════ */

@media (min-width: 2560px) {
    html {
        font-size: 20px;
    }

    .hero-title,
    .hero h1 {
        font-size: 5.5rem !important;
    }

    .hero-tagline,
    .hero-subtitle {
        font-size: 1.8rem !important;
    }

    .hero-badge {
        font-size: 1.3rem !important;
        padding: 1rem 2rem !important;
    }

    .btn-primary {
        font-size: 1.6rem !important;
        padding: 1.6rem 3.5rem !important;
    }

    .section-title {
        font-size: 4rem !important;
    }

    .section-subtitle {
        font-size: 1.5rem !important;
    }

    .price-card,
    .expertise-card,
    .testimonial-card {
        padding: 3rem !important;
    }

    .price {
        font-size: 4rem !important;
    }

    section {
        padding: 6rem 3rem !important;
    }

    .global-footer {
        padding: 5rem 3rem 3rem !important;
    }

    .footer-col h4 {
        font-size: 1.8rem !important;
    }

    .footer-col a,
    .footer-col p {
        font-size: 1.3rem !important;
    }

    .social-links a {
        width: 55px !important;
        height: 55px !important;
    }

    .social-links svg {
        width: 30px !important;
        height: 30px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   COMPONENT FIXES - Universal
   ═══════════════════════════════════════════════════════════════ */

/* Hero stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(2rem, 5vw, 4rem);
    margin: 3rem auto 2rem;
    max-width: 700px;
    flex-wrap: wrap;
}

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

.stat-number {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 15px rgba(196, 180, 84, 0.3);
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    color: var(--text);
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* About grid */
.about-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-image {
    width: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, rgba(99, 33, 72, 0.1), rgba(196, 180, 84, 0.1));
    border-radius: var(--border-radius);
    display: none;
}

.about-quote {
    background: var(--card-bg) !important;
    padding: 1.5rem 2rem !important;
    border-left: 4px solid var(--accent) !important;
    border-radius: var(--border-radius) !important;
    font-style: italic;
    color: var(--primary) !important;
    margin-top: 2rem !important;
    box-shadow: var(--shadow);
}

/* Grids - Responsive */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 2rem;
    padding: 0 1rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.expertise-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)) !important;
    gap: 1.5rem !important;
    padding: 0 1rem !important;
    width: 100% !important;
    max-width: 1200px !important;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

/* Cards */
.price-card,
.pricing-card {
    width: 100% !important;
    max-width: 450px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.expertise-card,
.testimonial-card {
    width: 100% !important;
}

/* Form elements */
.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
    box-sizing: border-box;
}

.custom-checkbox {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    accent-color: var(--primary);
    cursor: pointer;
    margin-top: 3px;
    flex-shrink: 0;
    margin-right: 8px;
}

/* Buttons */
.btn-primary {
    margin: 0.5rem !important;
    padding: 1rem 2rem !important;
    font-size: clamp(0.9rem, 2vw, 1.1rem) !important;
}

/* Location indicator & WhatsApp */
.location-indicator {
    position: fixed !important;
    bottom: 220px !important;
    left: 20px !important;
    z-index: 9997 !important;
    max-width: calc(100% - 40px) !important;
    font-size: 0.75rem !important;
    padding: 0.5rem 0.8rem !important;
}

.whatsapp-float {
    position: fixed !important;
    bottom: 90px !important;
    right: 20px !important;
    width: 55px !important;
    height: 55px !important;
}

/* Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid #C4B454 !important;
    outline-offset: 3px !important;
}

.nav-links a:focus {
    outline: 2px solid #C4B454 !important;
    outline-offset: 2px !important;
}

/* Interactive elements */
.mobile-menu-btn,
.theme-toggle,
.change-btn,
.btn-primary,
.whatsapp-float,
a,
button {
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Navbar controls */
.navbar {
    padding: 0.75rem 1rem !important;
}

.nav-logo {
    font-size: clamp(1.2rem, 3vw, 1.75rem) !important;
}

.theme-toggle {
    width: 44px !important;
    height: 44px !important;
    padding: 0.6rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        width: 48px !important;
        height: 48px !important;
        padding: 4px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        border-radius: 8px !important;
        z-index: 2000 !important;
        position: relative;
    }

    /* FIX: Ensure clicks pass through the icon to the button */
    .mobile-menu-btn svg {
        pointer-events: none !important;
    }
}

/* Images responsive */
img,
video,
iframe {
    max-width: 100% !important;
    height: auto !important;
}