/* ============================================================
   responsivo-fix.css - Ajustes finais mobile/tablet
   ============================================================ */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
    height: auto;
}

/* Mobile: usa as classes atuais da navbar */
@media (max-width: 767px) {
    .mobile-hidden {
        display: none !important;
    }

    .desktop-hidden {
        display: inline-flex !important;
    }

    #main-navbar .h-20 {
        height: 72px !important;
    }

    #main-navbar .max-w-7xl {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    #main-navbar a[href="#inicio"] {
        gap: 8px !important;
        min-width: 0;
    }

    #main-navbar a[href="#inicio"] span {
        font-size: 13px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100vw - 120px);
    }

    #mobile-menu {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .hero-content {
        padding-top: 68px;
    }

    #inicio .hero-content > div[style*="max-width:680px"] {
        padding: 18px 16px !important;
    }

    #inicio .hero-content .flex.flex-col.sm\:flex-row > a {
        width: 100%;
        justify-content: center;
    }

    .services,
    .about,
    .contact,
    .portfolio {
        overflow-x: hidden;
    }

    .btn-topo {
        bottom: 18px;
        left: 14px;
        width: 44px;
        height: 44px;
    }

    .whatsapp-container {
        right: 14px;
        bottom: 16px;
    }
}

/* Celulares estreitos */
@media (max-width: 520px) {
    #main-navbar a[href="#inicio"] span {
        display: inline-block !important;
        max-width: calc(100vw - 130px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 12px !important;
    }

    #inicio h1 {
        line-height: 1.15 !important;
    }
}

/* Desktop/tablet grande */
@media (min-width: 768px) {
    .desktop-hidden,
    #mobile-menu-btn,
    #mobile-menu {
        display: none !important;
    }
}
