html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}

    .whatsapp-float img {
        width: 65px;
        height: 65px;
        border-radius: 50%;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
        transition: transform 0.2s ease;
    }

        .whatsapp-float img:hover {
            transform: scale(1.1);
        }

/* =========================================
   REGRAS DE RESPONSIVIDADE GLOBAIS (MEDIA QUERIES)
   Todo o comportamento de layout mobile fica aqui
   ========================================= */

/* --- DESKTOP (telas maiores que 991px) --- */
@media (min-width: 992px) {
    .hamburger-btn {
        display: none !important; /* Esconde o botão hamburger */
    }

    .mobile-menu {
        display: none !important; /* Impede o menu mobile de aparecer */
    }
}

/* --- MOBILE E TABLET (telas menores que 992px) --- */
@media (max-width: 991px) {

    /* CABEÇALHO E MENU MOBILE */
    .section-header-menu {
        display: none !important; /* Esconde os botões do desktop no celular */
    }

    .section-header .row {
        flex-direction: column;
        align-items: center; /* Centraliza tudo no cabeçalho */
        justify-content: center;
    }

    .section-header-image {
        display: none !important; /* ESCONDE A LOGO NO MOBILE */
    }

    .hamburger-btn {
        position: relative !important; /* Remove posicionamento absoluto */
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        margin: 0.5rem auto !important; /* Centraliza o botão do menu */
    }

    /* CABEÇALHO DO CARROSSEL EM BLOCOS */
    .section-carrousel-content {
        flex-direction: column !important;
        width: 100%;
        overflow: hidden;
    }

    .section-carrousel-image {
        width: 100%;
        display: flex;
        justify-content: center;
    }

        .section-carrousel-image img {
            max-width: 100%;
            height: auto;
        }

    .section-carrousel-blurbox {
        width: 90% !important;
        max-width: 100%;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: -2rem !important;
        box-sizing: border-box;
    }

    /* RODAPÉ E ALINHAMENTOS */
    .section-footer .row {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .section-footer-contato {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* TEXTOS E TÍTULOS */
    .section-form-title h1 {
        font-size: 2.5rem;
    }

    .section-carrousel-empreendimento h1,
    .section-empreendimento-blurbox h1,
    h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
        word-wrap: break-word !important;
        padding-left: 10px;
        padding-right: 10px;
        text-align: center;
    }

    .section-unidade-condicao h2,
    .section-empreendimento-blurbox h2 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        text-align: center;
    }

    .section-unidade-condicao h3 {
        font-size: 1.8rem;
    }

    /* CAIXAS BLUR E FORMULÁRIOS */
    .section-empreendimento-blurbox,
    .section-manoa-plantas-text, .section-alegro-plantas-text, .section-way-plantas-text {
        width: 100%;
        max-width: 100%;
        margin: 2rem 0 !important;
        padding: 1.5rem;
    }

    .section-empreendimento {
        justify-content: center;
        padding: 2rem 1rem;
    }

    /* SEÇÃO MANOA PLANTAS */
    .section-manoa-plantas-content, .section-alegro-plantas-content, .section-way-plantas-content {
        flex-direction: column;
        text-align: center;
    }

    .section-manoa-plantas, .section-alegro-plantas, .section-way-plantas {
        padding: 2rem 1rem;
    }

    .section-manoa-plantas-image img, .section-alegro-plantas-image img, .section-way-plantas-image img {
        max-width: 100%;
        height: auto;
    }

    /* SEÇÃO SOBRE MIM (CORREÇÃO DE EMPILHAMENTO) */
    .section-sobre-mim .row {
        flex-direction: column-reverse !important;
        align-items: center;
    }

    .section-sobre-mim-image {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 2rem;
    }

        .section-sobre-mim-image img {
            max-width: 80% !important;
            height: auto;
            border-radius: 12px;
        }

    .section-sobre-mim-text {
        padding: 1.5rem !important;
        text-align: justify;
    }

        .section-sobre-mim-text h1 {
            font-size: 1.8rem !important;
            text-align: center;
            margin-bottom: 1.5rem;
        }

    /* SEÇÃO PRIVACIDADE */
    .section-privacidade .row {
        flex-direction: column;
    }

    .section-privacidade-text {
        padding: 1rem;
    }

        .section-privacidade-text h1 {
            font-size: 1.4rem;
            margin-top: 1.5rem;
        }

        .section-privacidade-text li {
            margin-left: 0 !important;
            padding-left: 10px;
        }

    /* LIGHTBOX E GALERIAS */
    .close-lightbox {
        top: 15px;
        right: 15px;
        font-size: 35px;
    }

    #lightbox img {
        max-width: 95%;
        max-height: 95%;
    }

    .galeria {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 8px;
        padding: 0.5rem;
    }
}

/* --- SMARTPHONES PEQUENOS --- */
@media (max-width: 576px) {
    .section-carrousel-blurbox h2,
    .section-empreendimento-blurbox h2,
    .section-unidade-condicao h2 {
        font-size: 1.8rem !important;
    }

    .section-empreendimento-blurbox h1 {
        font-size: 1.5rem !important;
    }

    .whatsapp-float img {
        width: 50px;
        height: 50px;
    }

    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }

    .section-form-title h1 {
        font-size: 2rem;
    }

    .galeria {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .section-sobre-mim-text h1 {
        font-size: 1.3rem !important;
    }
}

/* =========================================
   CORREÇÕES DE EMPILHAMENTO E ALINHAMENTO DO MENU
   Adicione ao final do seu arquivo site.css
   ========================================= */

@media (max-width: 991px) {
    /* 1. Empilhar a seção de plantas do Manoa (Imagem em cima, texto embaixo) */
    .section-manoa-plantas-content, .section-alegro-plantas-content, .section-way-plantas-content {
        flex-direction: column !important;
        align-items: center !important;
        padding: 1.5rem !important;
        margin: 1rem !important;
        width: auto !important;
    }

    .section-manoa-plantas-image,
    .section-manoa-plantas-text,
    .section-alegro-plantas-image,
    .section-alegro-plantas-text,
    .section-way-plantas-image,
    .section-way-plantas-text {
        width: 100% !important;
        margin: 0 !important;
        padding: 1rem !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

        .section-manoa-plantas-image img, .section-alegro-plantas-image img, .section-way-plantas-image img {
            max-width: 100% !important;
            height: auto !important;
            display: block;
            margin: 0 auto;
        }

    /* 2. Corrigir desalinhamento do menu mobile (centralizar textos e itens) */
    .mobile-menu {
        align-items: center !important;
        text-align: center !important;
    }

        .mobile-menu a.mobile-item,
        .mobile-menu button.mobile-item {
            text-align: center !important;
            justify-content: center !important;
        }

    .mobile-accordion-toggle {
        justify-content: center !important;
        gap: 8px;
    }

    .mobile-accordion-body {
        padding-left: 0 !important;
        align-items: center !important;
        text-align: center !important;
    }

    .mobile-sub-item {
        text-align: center !important;
        display: block;
        width: 100%;
    }
}

/* =========================================
   RESPONSIVIDADE DA CENTRAL DE PRIVACIDADE / LGPD
   ========================================= */

@media (max-width: 640px) {
    /* Ajustes gerais do banner fixo na base */
    .lgpd-banner {
        padding: 1rem;
    }

    .lgpd-banner__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .lgpd-banner__icon {
        display: none; /* Oculta o ícone em telas muito pequenas para economizar espaço */
    }

    .lgpd-banner__text {
        font-size: 0.82rem;
        min-width: 0;
    }

    .lgpd-banner__actions {
        width: 100%;
        display: flex;
        flex-direction: column-reverse; /* Coloca o botão principal em destaque acima do secundário */
        gap: 0.5rem;
    }

        .lgpd-banner__actions .lgpd-btn {
            width: 100%;
            text-align: center;
            padding: 0.7rem 1rem;
        }

    /* Ajustes da Modal / Central de Privacidade */
    .lgpd-modal {
        width: 100vw;
        max-height: 90vh;
        border-radius: var(--lgpd-radius) var(--lgpd-radius) 0 0;
    }

    .lgpd-modal__header {
        padding: 1rem 1.2rem;
    }

    .lgpd-modal__title {
        font-size: 1.05rem;
    }

    .lgpd-modal__body {
        padding: 1rem 1.2rem;
    }

    .lgpd-category {
        padding: 0.85rem;
    }

    .lgpd-category__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    /* Alinha os botões de alternância (toggles) corretamente no mobile */
    .lgpd-toggle {
        align-self: flex-end;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .lgpd-modal__footer {
        flex-direction: column-reverse;
        padding: 1rem 1.2rem;
        gap: 0.5rem;
    }

        .lgpd-modal__footer .lgpd-btn {
            width: 100%;
            text-align: center;
            padding: 0.7rem 1rem;
        }
}

@media (max-width: 380px) {
    /* Ajustes finos para celulares ultra estreitos (ex: iPhone SE antigo) */
    .lgpd-banner {
        padding: 0.85rem;
    }

    .lgpd-banner__text {
        font-size: 0.78rem;
    }
}