/* Chalta Network — Mobile overrides (loads after style.css) */

@media (max-width: 992px) {
    .header-inner {
        gap: 0.75rem;
    }

    .nav-toggle {
        display: flex !important;
    }

    .main-nav:not(.open) {
        display: none !important;
    }

    .main-nav.open {
        display: block !important;
        position: fixed;
        top: var(--header-h);
        left: 0.75rem;
        right: 0.75rem;
        z-index: 999;
        margin-left: 0;
        max-height: calc(100vh - var(--header-h) - 1rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: rgba(10, 10, 10, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        padding: 0.625rem;
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.25rem;
        padding: 0.375rem;
        border-radius: 12px;
    }

    .nav-item--portal {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 0.25rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-link {
        justify-content: center;
        padding: 0.8125rem 1rem;
        font-size: 0.9375rem;
        border-radius: 10px;
        white-space: normal;
    }

    .hero,
    .page-home .hero {
        min-height: auto;
        overflow: visible;
    }

    .hero-inner {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem 0 2rem;
    }

    .hero-visual {
        order: -1;
        width: 100%;
    }

    .hero-content {
        width: 100%;
    }

    .hero-subtitle {
        margin: 0 auto 1.5rem;
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
        width: 100%;
    }

    .hero-areas {
        justify-content: center;
    }

    .hero-banner-wrap,
    .banner-section {
        overflow: visible;
        width: 100%;
    }

    .banner-img--hero,
    .banner-img--wide {
        width: 100%;
        height: auto;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: unset !important;
        object-fit: contain !important;
        object-position: center;
    }

    .hero-banner-wrap .banner-placeholder,
    .banner-placeholder--hero,
    .banner-placeholder--wide {
        min-height: 0 !important;
        aspect-ratio: unset !important;
    }

    .services-grid,
    .plans-grid,
    .plans-grid--wide,
    .plans-grid--narrow {
        grid-template-columns: 1fr !important;
        max-width: 100%;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .coverage-grid,
    .contact-grid,
    .about-grid {
        grid-template-columns: 1fr !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .about-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 60px;
    }

    .container {
        width: min(1140px, 92%);
    }

    .logo-img,
    .footer-logo {
        height: 32px;
        width: auto;
    }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.35rem);
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
        white-space: normal;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .page-hero {
        padding-top: calc(var(--header-h) + 1.5rem);
        padding-bottom: 1.75rem;
    }

    .page-hero h1 {
        font-size: clamp(1.55rem, 7vw, 2rem);
    }

    section {
        padding: 2.75rem 0;
    }

    .section-header {
        margin-bottom: 1.75rem;
    }

    .section-title {
        font-size: clamp(1.45rem, 6vw, 1.85rem);
    }

    .features-grid,
    .footer-grid {
        grid-template-columns: 1fr !important;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.35rem;
    }

    .site-footer {
        padding: 2.5rem 0 5rem;
    }

    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }

    .cta-banner {
        padding: 1.75rem 1rem;
    }

    .contact-info-card,
    .contact-form-wrap,
    .about-card,
    .service-card,
    .plan-card {
        padding: 1.25rem;
    }

    .map-wrap,
    .map-wrap iframe,
    .map-placeholder {
        min-height: 240px;
        height: 240px;
    }

    .plan-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-bottom: 1.75rem;
    }

    .plan-tab {
        width: 100%;
        min-width: 0;
        padding: 0.65rem 0.5rem;
        font-size: 0.78rem;
    }

    .plan-speed {
        font-size: 1.5rem;
        word-break: break-word;
    }

    .area-list li {
        font-size: 0.9rem;
        padding: 0.875rem 1rem;
    }

    .poster-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(1140px, 94%);
    }

    .plan-tabs {
        grid-template-columns: 1fr;
    }

    .area-tag {
        font-size: 0.74rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.88rem;
    }
}

body.nav-open {
    overflow: hidden;
    touch-action: none;
}

main,
.site-header,
.site-footer,
.hero,
section {
    max-width: 100%;
}

table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}
