/* ==========================================================================
   ADVOCACIA MATOS — REGRAS DE RESPONSIVIDADE (MOBILE & TABLET)
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-card-lead {
        max-width: 580px;
        margin-inline: auto;
    }

    .trust-card {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-item:nth-child(2) {
        border-right: none;
    }

    .trust-item:nth-child(1), .trust-item:nth-child(2) {
        border-bottom: 1px solid var(--border-subtle);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .associates-box {
        grid-template-columns: 1fr;
        padding: 30px 24px;
    }

    .pain-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-image {
        max-width: 500px;
        margin-inline: auto;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .cta-banner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 45px 30px;
    }
}

@media (max-width: 820px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        background: var(--navy-900);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 40px;
        gap: 20px;
        box-shadow: -15px 0 40px rgba(0, 0, 0, 0.4);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1050;
        overflow-y: auto;
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.05);
        margin-top: 8px;
        width: 100%;
    }

    .mobile-toggle {
        display: block;
        z-index: 1100;
    }

    .nav-actions .btn-wpp {
        display: none;
    }

    .topbar-content {
        justify-content: center;
        text-align: center;
    }

    .topbar-social {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 60px 0 80px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .trust-card {
        grid-template-columns: 1fr;
    }

    .trust-item {
        border-right: none !important;
        border-bottom: 1px solid var(--border-subtle);
    }

    .trust-item:last-child {
        border-bottom: none;
    }

    .pain-grid, .services-grid, .blog-grid, .steps-grid {
        grid-template-columns: 1fr;
    }

    .about-pillars {
        grid-template-columns: 1fr;
    }

    .about-badge-exp {
        position: static;
        margin-top: 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .pix-notice-head-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pix-notice-warn {
        text-align: center;
        max-width: none;
    }

    .pix-banner-inner {
        justify-content: center;
        text-align: center;
    }

    .pix-banner-copy {
        justify-content: center;
        font-size: 0.78rem;
    }

    .pix-banner-link {
        width: 100%;
        text-align: center;
    }

    .official-bar-inner {
        flex-direction: column;
        text-align: center;
    }

    .official-grid {
        grid-template-columns: 1fr;
    }

    .wpp-floating-container {
        bottom: 18px;
        right: 18px;
    }

    .wpp-tooltip {
        display: none;
    }

    .wpp-floating-btn {
        width: 56px;
        height: 56px;
        font-size: 1.7rem;
    }

    .brand-logo img,
    .brand-emblem {
        height: 50px;
    }

    .brand-title {
        font-size: 1.15rem;
    }

    .brand-subtitle {
        font-size: 0.60rem;
        letter-spacing: 0.1em;
    }

    .nav-wrapper {
        height: 78px;
    }
}

@media (max-width: 420px) {
    .brand-logo {
        gap: 10px;
    }

    .brand-logo img,
    .brand-emblem {
        height: 44px;
    }

    .brand-title {
        font-size: 1.02rem;
    }

    .brand-subtitle {
        font-size: 0.54rem;
        letter-spacing: 0.08em;
    }
}
