/* ==========================================
   WILLMOBILIÁRIA · MOBILE REDESIGN 2025
   Breakpoints: 1024px | 768px | 480px
 ========================================== */

@media (max-width: 1024px) {
    .nav {
        gap: 1.5rem;
    }

    .hero-grid {
        gap: 2rem;
    }

    .sobre-grid {
        gap: 3rem;
    }

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

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    /* Header & Nav */
    header {
        padding: 1rem 0;
    }

    .nav {
        display: none;
    }

    .btn-menu {
        display: flex;
    }

    .header-wa-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.7rem;
    }

    .logo__william {
        font-size: 1rem;
    }

    .logo__figueiredo {
        font-size: 1.1rem;
    }

    /* Hero */
    .section-hero {
        padding: 7rem 0 3rem;
        text-align: center;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-photo-container {
        order: -1;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 4rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    .hero-photo-main {
        width: 100%;
        max-width: 280px;
        height: auto;
        display: block;
        margin: 0 auto;
        border-radius: 12px;
    }

    .social-proof-badge {
        position: absolute;
        bottom: -0.75rem;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: max-content;
        max-width: 85%;
        font-size: 0.7rem;
        padding: 0.45rem 1rem;
        box-shadow: 0 10px 25px rgba(196, 30, 58, 0.4);
        z-index: 25;
        background: var(--color-crimson);
        color: white;
        border: none;
        border-radius: 50px;
        text-align: center;
        backdrop-filter: blur(5px);
        animation: hero-badge-float 3s ease-in-out infinite;
    }

    @keyframes hero-badge-float {

        0%,
        100% {
            transform: translateX(-50%) translateY(0);
        }

        50% {
            transform: translateX(-50%) translateY(-6px);
        }
    }

    .hero-title-main {
        font-size: 2.25rem;
        margin-bottom: 1.5rem;
    }

    .hero-desc-new {
        margin: 0 auto 2rem;
    }

    .hero-search-simple {
        margin: 0 auto 2.5rem;
        max-width: 100%;
    }

    .search-form-flat {
        padding: 0.15rem;
    }

    .search-form-flat input {
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
    }

    .hero-cta-group-new {
        flex-direction: column;
        gap: 1.25rem;
    }


    /* Layout Grids */
    .sobre-grid,
    .blog-grid,
    .imoveis-grid,
    .entrega-grid,
    .realizacoes-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
    }

    .entrega-photo {
        max-height: 300px;
        width: 100%;
        object-fit: cover;
    }

    .entrega-content {
        text-align: center;
    }

    .sobre-photo {
        max-width: 400px;
        margin: 0 auto;
    }

    .diferenciais-grid,
    .depoimentos-grid,
    .metricas-grid {
        grid-template-columns: 1fr;
    }

    /* Blog Modal / Carousel Mobile */
    .modal-content {
        width: 95% !important;
        margin: 1rem auto !important;
        padding: 1.5rem !important;
    }

    .carousel-container {
        height: 250px !important;
    }

    .modal-title {
        font-size: 1.5rem !important;
    }

    .modal-text {
        font-size: 0.9rem !important;
    }

    /* Processo */
    .processo-grid {
        flex-direction: column;
        gap: 4rem;
    }

    .process-line {
        display: none;
    }

    .step-number {
        font-size: 4rem;
        top: -2rem;
    }

    /* Métricas */
    .metrica-card {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 2.5rem 0;
    }

    .metrica-card:last-child {
        border-bottom: none;
    }

    /* Footer */
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

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

    .footer-brand,
    .footer-nav,
    .footer-contact {
        align-items: center;
    }

    /* Sticky WA */
    .sticky-wa-bar {
        bottom: 1.5rem;
        right: 0;
        left: 0;
        display: flex;
        justify-content: center;
        padding: 0 1.5rem;
        width: 100%;
    }

    .sticky-wa-btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    /* Espaçamento entre blocos visuais */
    .section-hero {
        padding-bottom: 6rem !important;
    }

    .section-credenciais {
        padding: 5rem 0 !important;
        background: #f8f9fa !important;
        /* Fundo cinza claro para quebrar o branco */
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .credencial-item {
        font-size: 1rem !important;
        justify-content: center;
        width: 100%;
        margin-bottom: 1rem;
    }

    .section-entrega {
        padding-top: 6rem !important;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 2.25rem;
    }

    .hero-title-main {
        font-size: 2rem;
    }

    .hero-photo-wrapper {
        margin-bottom: 2rem;
    }

    .hero-badge {
        padding: 0.8rem 1rem;
    }

    .hero-badge .number {
        font-size: 1.8rem;
    }
}