@media (max-width: 1100px) {

    .desktop-menu,
    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-grid,
    .sobre-conteudo,
    .card-front,
    .card-servico,
    .contato,
    .imovel-modal-content,
    .grupo-conteudo {
        grid-template-columns: 1fr;
    }

    .grupo-divider {
        display: none;
    }

    .hero-panel {
        max-width: 780px;
    }

    .card-front>img,
    .card-imoveis .card-front>img {
        height: 320px;
    }

    .imovel-modal-content {
        max-height: 92vh;
    }

    .imovel-slider {
        min-height: 320px;
        padding: 16px;
    }

    .imovel-slider img {
        max-height: 50vh;
        object-fit: contain;
    }

    .grupo-botoes {
        position: static;
        transform: none;
    }

    .grupo-card {
        padding-bottom: 32px;
    }
}

@media (max-width: 768px) {

    .menu-toggle,
    .menu-backdrop,
    #mobile-menu {
        display: none;
    }

    .desktop-menu,
    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .menu-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(2, 6, 23, 0.48);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--transition), visibility var(--transition);
        z-index: 1340;
    }

    #mobile-menu {
        position: fixed;
        top: 0;
        right: -360px;
        width: min(88vw, 340px);
        height: 100dvh;
        padding: 28px 24px;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
        box-shadow: -20px 0 60px rgba(2, 6, 23, 0.35);
        z-index: 1350;
        transition: right var(--transition);
        display: flex;
        flex-direction: column;
    }

    .header-shell {
        min-height: 80px;
    }

    .brand img {
        width: 58px;
        height: 58px;
    }

    .brand-kicker {
        font-size: 0.64rem;
    }

    .logo {
        font-size: 0.9rem;
        white-space: normal;
    }

    .hero {
        min-height: auto;
        padding: 72px 0 60px;
    }

    .hero {
        padding: 80px 0 56px;
    }

    .hero-images {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        margin-bottom: 28px;
    }

    .hero-images img {
        width: 62px;
        height: 62px;
        border-radius: 12px;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions a {
        width: 100%;
        text-align: center;
    }

    .social-links {
        flex-wrap: wrap;
    }

    .hero-panel-card {
        padding: 22px;
    }

    .hero-panel-card h2 {
        font-size: 1.5rem;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .card-buttons,
    .botoes-card,
    .imovel-buttons {
        flex-direction: column;
    }

    .hero-actions>*,
    .botoes-card>*,
    .imovel-buttons>* {
        width: 100%;
    }

    .cards-container {
        padding: 12px 12px 18px;
        gap: 18px;
    }

    .slider-btn {
        width: 35px;
        height: 180px;
        font-size: 2rem;
        background: rgba(0, 89, 255, 0.452);
    }

    .left-btn {
        left: 2px;
    }

    .right-btn {
        right: 2px;
    }

    .card {
        flex: 0 0 310px;
    }

    .card-imoveis {
        height: auto;
    }

    .card-imoveis .card-front {
        height: auto;
    }

    .card-imoveis .card-content {
        height: auto;
    }

    .card-imoveis .card-front>img {
        height: auto;
        max-height: 260px;
        object-fit: cover;
    }

    .imovel-buttons {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .imovel-buttons>* {
        width: 80%;
        flex: 0 0 40px;
    }

    .card-front {
        height: 550px;
    }

    .card-front>img {
        height: 240px;
    }

    .card-content,
    .card-servico-copy,
    .sobre-card,
    .sobre-visual,
    .contato-copy,
    .contact-card,
    .imovel-info,
    .grupo-card {
        padding: 22px;
    }

    .imovel-item {
        min-width: 260px;
        max-width: 260px;
    }

    .arrow {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2000;
        width: 44px;
        height: 44px;
        font-size: 1.6rem;
        font-weight: bold;
        border-radius: 50%;
        background: rgba(51, 96, 201, 0.733);
        color: #fff;
    }

    .left-arrow {
        top: 350px;
        left: 8px;
    }

    .right-arrow {
        top: 350px;
        right: 8px;
    }

    .left-arrow-outros,
    .right-arrow-outros {
        display: none;
    }

    .close-btn,
    .close-btn-outros {
        top: 18px;
        right: 18px;
    }

    .slider-content,
    .slider-content-outros {
        width: 350px;
        padding: 12px;
    }

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

    .whatsapp-container a {
        width: 60px;
        height: 60px;
    }

    .rodape {
        grid-template-columns: 1fr;
        padding: 0 25px;
    }

    .grupo-card {
        display: flex;
        flex-direction: column;
        padding: 36px;
        border-radius: 34px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: var(--shadow-lg);
        backdrop-filter: blur(18px);
    }

    .grupo-coluna {
        display: flex;
        flex-direction: column;
    }

    .grupo-img {
        width: 200px;
    }

    .grupo-conteudo {
        display: flex;
        flex-direction: column;
    }

    .grupo-carousel {
        width: 100%;
        display: block;
        margin-bottom: 12px;
    }

    .grupo-carousel+.grupo-carousel {
        margin-top: 8px;
    }

    .card-buttons {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 14px;
    }

    .card-buttons .btn,
    .card-buttons .btn-info,
    .card-buttons .btn-whats,
    .botoes-card .btn-info-outros,
    .botoes-card .btn-whats-outros {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-height: 20px;
        padding: 10px 12px;
        font-size: 0.82rem;
        line-height: 1.2;
        border-radius: 10px;
        text-align: center;
        gap: 8px;
    }

    .whatsapp-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .whatsapp-icon img {
        width: 16px;
        height: 16px;
    }

    .imovel-modal {
        padding: 12px;
    }

    .imovel-modal-content {
        width: 100%;
        max-height: 92vh;
        display: flex;
        flex-direction: column;
        border-radius: 20px;
        overflow: hidden;
    }

    .imovel-slider {
        position: relative;
        width: 100%;
        height: 260px;
        max-height: 260px;
        overflow: hidden;
        /* 🔥 impede a imagem de invadir */
        flex-shrink: 0;
    }

    .imovel-slider img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .imovel-info {
        max-height: 45vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 20px;
        scrollbar-width: thin;
        scrollbar-color: rgba(59, 130, 246, 0.85) rgba(226, 232, 240, 0.9);
    }
}

@media (max-width: 560px) {

    .section-heading h2,
    .hero h1,
    .card-content h3,
    .card-servico-copy h3,
    .imovel-info h3,
    .sobre h2,
    .contato-copy h2 {
        word-break: break-word;
    }

    .social-links {
        flex-wrap: wrap;
    }

    .social-links a {
        width: 50px;
        height: 50px;
    }
}