/* Caminho no servidor: /home/usuario_hostgator/public_html/assets/css/layout.css
   Containers, grids, header, footer. Mobile-first sempre. */

.container {
    width: 100%;
    max-width: var(--tl-container);
    margin: 0 auto;
    padding-left: var(--tl-space-2);
    padding-right: var(--tl-space-2);
}
@media (min-width: 768px) {
    .container { padding-left: var(--tl-space-4); padding-right: var(--tl-space-4); }
}

/* === CABECALHO === */
.cabecalho {
    background-color: var(--tl-pergaminho);
    border-bottom: 1px solid var(--tl-areia);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow var(--tl-transition-base);
}
.cabecalho.is-scrolled { box-shadow: var(--tl-shadow-soft); }
.cabecalho__interno {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tl-space-2);
    padding: var(--tl-space-2) var(--tl-space-2);
    min-height: 64px;
}
@media (min-width: 768px) {
    .cabecalho__interno { padding: var(--tl-space-2) var(--tl-space-4); min-height: 72px; }
}
/* Logo horizontal oficial (imagem unica - casinha + TETO LIVRE)              */
/* v29: voltamos a usar imagem PNG conforme melhor pratica de identidade visual */
.cabecalho__logo-img { height: 40px; width: auto; display: block; }
@media (min-width: 768px) { .cabecalho__logo-img { height: 44px; } }
@media (max-width: 540px) { .cabecalho__logo-img { height: 34px; } }

.cabecalho__nav { display: none; }
.cabecalho__acoes { display: none; }
@media (min-width: 1024px) {
    .cabecalho__nav {
        display: flex;
        gap: var(--tl-space-3);
        align-items: center;
    }
    .cabecalho__link {
        color: var(--tl-carvao);
        font-size: 14px;
        font-weight: 500;
        padding: var(--tl-space-1) 0;
        position: relative;
    }
    .cabecalho__link::after {
        content: '';
        position: absolute;
        left: 0; right: 0; bottom: 0;
        height: 2px;
        background-color: var(--tl-terracota);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform var(--tl-transition-base);
    }
    .cabecalho__link:hover::after { transform: scaleX(1); }
    .cabecalho__acoes { display: flex; gap: var(--tl-space-1); align-items: center; }
}

/* Botao menu mobile */
.cabecalho__menu-mobile {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 44px;
    height: 44px;
    padding: 10px;
}
.cabecalho__menu-mobile span {
    display: block;
    height: 2px;
    background-color: var(--tl-carvao);
    border-radius: var(--tl-radius-pill);
    transition: transform var(--tl-transition-base);
}
@media (min-width: 1024px) { .cabecalho__menu-mobile { display: none; } }

/* Drawer mobile (ativado por JS) */
.cabecalho__nav.is-aberto {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 64px 0 0 0;
    background-color: var(--tl-pergaminho);
    padding: var(--tl-space-4) var(--tl-space-2);
    gap: var(--tl-space-3);
    z-index: 99;
}
.cabecalho__nav.is-aberto .cabecalho__link {
    font-size: 24px;
    font-family: var(--tl-font-display);
    color: var(--tl-carvao);
    padding: var(--tl-space-2) 0;
    border-bottom: 1px solid var(--tl-areia);
}

/* === RODAPE === */
.rodape {
    background-color: var(--tl-bordo);
    color: var(--tl-pergaminho);
    margin-top: var(--tl-space-12);
    padding: var(--tl-space-8) 0 var(--tl-space-3);
}
.rodape__interno {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--tl-space-6);
}
@media (min-width: 768px) {
    .rodape__interno { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--tl-space-4); }
}
.rodape__bloco { display: flex; flex-direction: column; gap: var(--tl-space-1); }
.rodape__marca { gap: var(--tl-space-2); }
.rodape__slogan {
    font-family: var(--tl-font-display);
    font-size: 18px;
    font-style: italic;
    color: var(--tl-pergaminho);
    margin-top: var(--tl-space-1);
}
.rodape__titulo {
    font-family: var(--tl-font-ui);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tl-mostarda);
    margin-bottom: var(--tl-space-1);
}
.rodape a { color: var(--tl-pergaminho); font-size: 14px; }
.rodape a:hover { color: var(--tl-mostarda); }
.rodape__copy {
    text-align: center;
    margin-top: var(--tl-space-6);
    padding-top: var(--tl-space-3);
    border-top: 1px solid rgba(245, 240, 232, 0.15);
    color: rgba(245, 240, 232, 0.7);
    font-size: 13px;
}


/* === BARRA SLIM (institucional, acima do cabecalho principal) === */
.cabecalho-slim {
    background-color: var(--tl-bordo);
    color: var(--tl-pergaminho);
    border-bottom: 1px solid rgba(245,240,232,0.08);
    font-size: 13px;
}
.cabecalho-slim__interno {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    padding: 8px var(--tl-space-2);
    min-height: 36px;
}
@media (min-width: 768px) {
    .cabecalho-slim__interno { padding: 8px var(--tl-space-4); }
}
.cabecalho-slim__link {
    color: rgba(245,240,232,0.85);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 6px;
    transition: color 200ms ease, background-color 200ms ease;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.cabecalho-slim__link:hover {
    color: var(--tl-mostarda);
    background-color: rgba(245,240,232,0.06);
}
.cabecalho-slim__sep {
    color: rgba(245,240,232,0.35);
    font-size: 11px;
    user-select: none;
}
@media (max-width: 540px) {
    .cabecalho-slim__interno { gap: 2px; padding: 6px 12px; min-height: 32px; }
    .cabecalho-slim__link { padding: 4px 8px; font-size: 12px; }
    .cabecalho-slim__sep { display: none; }
}


/* === MENU MOBILE COM TRANSFORMACAO X (sobrescreve regras anteriores) === */
.cabecalho__menu-mobile {
    position: relative;
    z-index: 200;
    width: 44px;
    height: 44px;
    padding: 12px 10px;
    border-radius: var(--tl-radius-sm);
    transition: background-color 200ms ease;
}
.cabecalho__menu-mobile:hover { background-color: var(--tl-areia); }
.cabecalho__menu-mobile span {
    display: block;
    height: 2.5px;
    background-color: var(--tl-carvao);
    border-radius: var(--tl-radius-pill);
    transition: transform 350ms cubic-bezier(0.22,1,0.36,1),
                opacity 200ms ease,
                background-color 200ms ease;
    transform-origin: center;
}
.cabecalho__menu-mobile span + span { margin-top: 5px; }
.cabecalho__menu-mobile.is-aberto span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
    background-color: var(--tl-terracota);
}
.cabecalho__menu-mobile.is-aberto span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.cabecalho__menu-mobile.is-aberto span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    background-color: var(--tl-terracota);
}

/* === DRAWER MOBILE MELHORADO === */
.cabecalho__nav.is-aberto {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 100px 0 0 0;
    background-color: var(--tl-pergaminho);
    padding: var(--tl-space-4) var(--tl-space-3);
    gap: 0;
    z-index: 150;
    overflow-y: auto;
    box-shadow: inset 0 8px 16px -8px rgba(45,45,45,0.08);
    animation: drawerEntra 300ms cubic-bezier(0.22,1,0.36,1);
}
@keyframes drawerEntra {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}
.cabecalho__nav.is-aberto .cabecalho__link {
    font-size: 22px;
    font-family: var(--tl-font-display);
    color: var(--tl-carvao);
    padding: var(--tl-space-3) var(--tl-space-1);
    border-bottom: 1px solid var(--tl-areia);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 200ms ease, padding-left 200ms ease;
}
.cabecalho__nav.is-aberto .cabecalho__link::after {
    content: '→';
    font-family: var(--tl-font-ui);
    color: var(--tl-terracota);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 200ms ease;
}
.cabecalho__nav.is-aberto .cabecalho__link:hover,
.cabecalho__nav.is-aberto .cabecalho__link:focus {
    color: var(--tl-terracota);
    padding-left: var(--tl-space-2);
}
.cabecalho__nav.is-aberto .cabecalho__link:hover::after,
.cabecalho__nav.is-aberto .cabecalho__link:focus::after {
    opacity: 1;
    transform: translateX(0);
}


/* === DRAWER MOBILE PREMIUM (sobrescreve estilos antigos) === */
.cabecalho__nav-cabeca,
.cabecalho__nav-rodape {
    display: none;
}

.cabecalho__nav.is-aberto {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    inset: 100px 0 0 0;
    background:
        radial-gradient(circle at 100% 0%, rgba(232,169,61,0.08), transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(196,99,59,0.08), transparent 50%),
        var(--tl-pergaminho);
    padding: var(--tl-space-3) 0 var(--tl-space-6);
    gap: 0;
    z-index: 150;
    overflow-y: auto;
    box-shadow: inset 0 8px 16px -8px rgba(45,45,45,0.08);
    animation: drawerEntra 350ms cubic-bezier(0.22,1,0.36,1);
}
@keyframes drawerEntra {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cabeca emocional dentro do drawer */
.cabecalho__nav.is-aberto .cabecalho__nav-cabeca {
    display: block;
    padding: 0 var(--tl-space-3) var(--tl-space-3);
    border-bottom: 1px solid var(--tl-areia);
    margin-bottom: var(--tl-space-2);
    opacity: 0;
    animation: itemEntra 500ms 50ms cubic-bezier(0.22,1,0.36,1) forwards;
}
.cabecalho__nav.is-aberto .cabecalho__nav-cabeca small {
    display: block;
    font-family: var(--tl-font-ui);
    font-size: 11px;
    color: var(--tl-pedra);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    margin-bottom: 6px;
}
.cabecalho__nav.is-aberto .cabecalho__nav-cabeca strong {
    display: block;
    font-family: var(--tl-font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--tl-bordo);
    letter-spacing: -0.015em;
    line-height: 1.2;
}

/* Cada link como CARD interativo com stripe colorida */
.cabecalho__nav.is-aberto .cabecalho__link {
    --cor-link: var(--tl-terracota);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 18px var(--tl-space-3) 18px 32px;
    border: none;
    border-bottom: 1px solid rgba(229,222,209,0.5);
    background: transparent;
    text-decoration: none;
    transition: background-color 250ms ease, padding-left 300ms cubic-bezier(0.22,1,0.36,1);
    opacity: 0;
    transform: translateX(-12px);
    animation: itemEntra 450ms cubic-bezier(0.22,1,0.36,1) forwards;
}
.cabecalho__nav.is-aberto .cabecalho__link:nth-child(2) { animation-delay: 120ms; }
.cabecalho__nav.is-aberto .cabecalho__link:nth-child(3) { animation-delay: 200ms; }
.cabecalho__nav.is-aberto .cabecalho__link:nth-child(4) { animation-delay: 280ms; }
.cabecalho__nav.is-aberto .cabecalho__link:nth-child(5) { animation-delay: 360ms; }
@keyframes itemEntra {
    to { opacity: 1; transform: translateX(0); }
}

/* Stripe colorida da intencao (cresce no hover/focus/active) */
.cabecalho__nav.is-aberto .cabecalho__link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0.4);
    width: 5px;
    height: 70%;
    background: var(--cor-link);
    border-radius: 0 5px 5px 0;
    transition: transform 350ms cubic-bezier(0.22,1,0.36,1), width 250ms ease;
    transform-origin: center;
}

/* Titulo da intencao */
.cabecalho__nav.is-aberto .cabecalho__link {
    color: var(--tl-carvao);
    font-family: var(--tl-font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.15;
    transition: background-color 250ms ease, padding-left 300ms cubic-bezier(0.22,1,0.36,1), color 250ms ease;
}

/* Descricao em cinza abaixo (vem do data-desc) */
.cabecalho__nav.is-aberto .cabecalho__link::after {
    content: attr(data-desc);
    display: block;
    font-family: var(--tl-font-ui);
    font-size: 13.5px;
    font-weight: 400;
    color: var(--tl-pedra);
    margin-top: 5px;
    letter-spacing: 0;
    line-height: 1.4;
    transition: color 250ms ease;
}

/* Hover/focus/active feedback rico */
.cabecalho__nav.is-aberto .cabecalho__link:hover,
.cabecalho__nav.is-aberto .cabecalho__link:focus,
.cabecalho__nav.is-aberto .cabecalho__link:active {
    background: linear-gradient(90deg, rgba(245,240,232,0) 0%, rgba(229,222,209,0.5) 100%);
    padding-left: 40px;
    color: var(--cor-link);
}
.cabecalho__nav.is-aberto .cabecalho__link:hover::before,
.cabecalho__nav.is-aberto .cabecalho__link:focus::before,
.cabecalho__nav.is-aberto .cabecalho__link:active::before {
    transform: translateY(-50%) scaleY(1);
    width: 7px;
}
.cabecalho__nav.is-aberto .cabecalho__link:hover::after,
.cabecalho__nav.is-aberto .cabecalho__link:focus::after {
    color: var(--tl-carvao-suave);
}

/* Cores das intencoes (via data-attribute) */
.cabecalho__nav.is-aberto .cabecalho__link[data-intencao="morar"] { --cor-link: #C4633B; }
.cabecalho__nav.is-aberto .cabecalho__link[data-intencao="curtir"] { --cor-link: #E8A93D; }
.cabecalho__nav.is-aberto .cabecalho__link[data-intencao="empreender"] { --cor-link: #1F5F6B; }
.cabecalho__nav.is-aberto .cabecalho__link[data-intencao="conquistar"] { --cor-link: #5C8A4E; }

/* CTA destacado no rodape do drawer */
.cabecalho__nav.is-aberto .cabecalho__nav-rodape {
    display: block;
    padding: var(--tl-space-3) var(--tl-space-3) 0;
    margin-top: var(--tl-space-3);
    opacity: 0;
    animation: itemEntra 500ms 440ms cubic-bezier(0.22,1,0.36,1) forwards;
}
.cabecalho__nav.is-aberto .cabecalho__nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--tl-terracota), var(--tl-bordo));
    color: var(--tl-pergaminho);
    border-radius: 14px;
    font-family: var(--tl-font-ui);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(196,99,59,0.25);
    transition: transform 250ms cubic-bezier(0.22,1,0.36,1), box-shadow 250ms ease;
}
.cabecalho__nav.is-aberto .cabecalho__nav-cta:hover,
.cabecalho__nav.is-aberto .cabecalho__nav-cta:focus,
.cabecalho__nav.is-aberto .cabecalho__nav-cta:active {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(196,99,59,0.35);
    color: var(--tl-pergaminho);
}


/* === HOVER PREMIUM DESKTOP NAV (sobrescreve estilos antigos) === */
@media (min-width: 1024px) {
    .cabecalho__link {
        --cor-link: var(--tl-terracota);
        color: var(--tl-carvao) !important;
        position: relative !important;
        padding: 10px 6px !important;
        font-size: 14px;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        gap: 0;
        transition: color 280ms cubic-bezier(0.22,1,0.36,1),
                    transform 280ms cubic-bezier(0.22,1,0.36,1),
                    gap 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
        text-decoration: none;
        letter-spacing: 0.005em;
    }
    .cabecalho__link[data-intencao="morar"] { --cor-link: #C4633B; }
    .cabecalho__link[data-intencao="curtir"] { --cor-link: #E8A93D; }
    .cabecalho__link[data-intencao="empreender"] { --cor-link: #1F5F6B; }
    .cabecalho__link[data-intencao="conquistar"] { --cor-link: #5C8A4E; }

    /* Bolinha decorativa antes do texto */
    .cabecalho__link::before {
        content: '';
        display: inline-block;
        width: 0; height: 6px;
        border-radius: 50%;
        background: var(--cor-link);
        opacity: 0;
        transform: scale(0);
        transition: opacity 250ms ease,
                    transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1),
                    width 250ms ease;
        flex-shrink: 0;
    }

    /* Sublinha que cresce do centro */
    .cabecalho__link::after {
        content: '' !important;
        position: absolute !important;
        left: 50% !important;
        right: auto !important;
        bottom: 2px !important;
        width: 0 !important;
        height: 2.5px !important;
        background: var(--cor-link) !important;
        border-radius: 2px !important;
        transform: none !important;
        transition: width 380ms cubic-bezier(0.22,1,0.36,1),
                    left 380ms cubic-bezier(0.22,1,0.36,1) !important;
    }

    /* Estado hover */
    .cabecalho__link:hover,
    .cabecalho__link:focus-visible {
        color: var(--cor-link) !important;
        transform: translateY(-2px);
        gap: 8px;
    }
    .cabecalho__link:hover::before,
    .cabecalho__link:focus-visible::before {
        opacity: 1;
        transform: scale(1);
        width: 6px;
    }
    .cabecalho__link:hover::after,
    .cabecalho__link:focus-visible::after {
        width: calc(100% - 12px) !important;
        left: 6px !important;
    }
}

/* === SLIM BAR HOVER PREMIUM === */
.cabecalho-slim__link {
    position: relative;
}
.cabecalho-slim__link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 1.5px;
    background: var(--tl-mostarda);
    border-radius: 2px;
    transition: width 320ms cubic-bezier(0.22,1,0.36,1),
                left 320ms cubic-bezier(0.22,1,0.36,1);
}
.cabecalho-slim__link:hover::after,
.cabecalho-slim__link:focus-visible::after {
    width: calc(100% - 20px);
    left: 10px;
}


/* ============================================================
   DRAWER MOBILE v4 - ANIMACOES CONTINUAS + ICONES + RIPPLE
   (sobrescreve regras anteriores)
   ============================================================ */

/* Esconde icones, desc e arrow no DESKTOP */
.cabecalho__link-icon,
.cabecalho__link-arrow,
.cabecalho__link-textos > .cabecalho__link-desc {
    display: none;
}
@media (min-width: 1024px) {
    .cabecalho__link-textos { display: contents; }
    .cabecalho__link-titulo { display: inline; }
}

/* Mobile drawer - mostra TUDO com novo layout */
@media (max-width: 1023px) {
    .cabecalho__nav.is-aberto .cabecalho__link {
        --cor-link: var(--tl-terracota);
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 16px !important;
        padding: 18px 20px 18px 28px !important;
        border: none !important;
        border-bottom: 1px solid rgba(229,222,209,0.5) !important;
        background: transparent !important;
        text-decoration: none !important;
        position: relative !important;
        font-family: var(--tl-font-display) !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        color: var(--tl-carvao) !important;
        overflow: hidden !important;
        -webkit-tap-highlight-color: transparent !important;
        opacity: 0;
        transform: translateX(-12px);
        animation: itemEntra 500ms cubic-bezier(0.22,1,0.36,1) forwards;
    }
    .cabecalho__nav.is-aberto .cabecalho__link[data-intencao="morar"] { --cor-link: #C4633B; }
    .cabecalho__nav.is-aberto .cabecalho__link[data-intencao="curtir"] { --cor-link: #E8A93D; }
    .cabecalho__nav.is-aberto .cabecalho__link[data-intencao="empreender"] { --cor-link: #1F5F6B; }
    .cabecalho__nav.is-aberto .cabecalho__link[data-intencao="conquistar"] { --cor-link: #5C8A4E; }

    /* Stripe lateral pulsante */
    .cabecalho__nav.is-aberto .cabecalho__link::before {
        content: '' !important;
        position: absolute !important;
        left: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 4px !important;
        height: 60% !important;
        background: var(--cor-link) !important;
        border-radius: 0 4px 4px 0 !important;
        box-shadow: 0 0 12px var(--cor-link), 0 0 4px var(--cor-link) !important;
        animation: stripePulse 2.4s ease-in-out infinite !important;
        opacity: 0.85 !important;
    }
    @keyframes stripePulse {
        0%, 100% { opacity: 0.7; box-shadow: 0 0 8px var(--cor-link); }
        50% { opacity: 1; box-shadow: 0 0 16px var(--cor-link), 0 0 6px var(--cor-link); }
    }

    /* Anula content do ::after antigo (era a descricao via attr) */
    .cabecalho__nav.is-aberto .cabecalho__link::after {
        content: '' !important;
        display: none !important;
    }

    /* Icone Lucide com fundo glassmorphism */
    .cabecalho__nav.is-aberto .cabecalho__link-icon {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 44px; height: 44px;
        border-radius: 12px;
        background: rgba(229,222,209,0.4);
        color: var(--cor-link);
        transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1),
                    background-color 250ms ease,
                    box-shadow 350ms ease;
    }
    .cabecalho__nav.is-aberto .cabecalho__link:active .cabecalho__link-icon,
    .cabecalho__nav.is-aberto .cabecalho__link:hover .cabecalho__link-icon {
        background: var(--cor-link);
        color: var(--tl-pergaminho);
        transform: scale(1.08) rotate(-6deg);
        box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    }

    /* Textos: titulo + descricao */
    .cabecalho__nav.is-aberto .cabecalho__link-textos {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        flex: 1;
    }
    .cabecalho__nav.is-aberto .cabecalho__link-titulo {
        display: block !important;
        font-family: var(--tl-font-display);
        font-size: 19px;
        font-weight: 600;
        color: var(--tl-carvao);
        letter-spacing: -0.015em;
        line-height: 1.1;
        transition: color 250ms ease;
    }
    .cabecalho__nav.is-aberto .cabecalho__link-desc {
        display: block !important;
        font-family: var(--tl-font-ui);
        font-size: 13px;
        font-weight: 400;
        color: var(--tl-pedra);
        line-height: 1.3;
    }
    .cabecalho__nav.is-aberto .cabecalho__link:active .cabecalho__link-titulo,
    .cabecalho__nav.is-aberto .cabecalho__link:hover .cabecalho__link-titulo {
        color: var(--cor-link);
    }

    /* Seta direita com pulse continuo */
    .cabecalho__nav.is-aberto .cabecalho__link-arrow {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 28px; height: 28px;
        font-family: var(--tl-font-ui);
        font-size: 22px;
        font-weight: 400;
        color: var(--cor-link);
        opacity: 0.5;
        animation: arrowPulse 1.8s ease-in-out infinite;
        transition: transform 300ms cubic-bezier(0.22,1,0.36,1), opacity 250ms ease;
    }
    @keyframes arrowPulse {
        0%, 100% { transform: translateX(0); opacity: 0.45; }
        50% { transform: translateX(4px); opacity: 0.85; }
    }
    .cabecalho__nav.is-aberto .cabecalho__link:active .cabecalho__link-arrow,
    .cabecalho__nav.is-aberto .cabecalho__link:hover .cabecalho__link-arrow {
        animation: none;
        transform: translateX(8px);
        opacity: 1;
    }

    /* RIPPLE EFFECT no tap */
    .cabecalho__nav.is-aberto .cabecalho__link:active {
        background: linear-gradient(90deg,
            rgba(255,255,255,0) 0%,
            rgba(229,222,209,0.7) 100%) !important;
    }

    /* Stagger delays */
    .cabecalho__nav.is-aberto .cabecalho__link:nth-of-type(1) { animation-delay: 100ms; }
    .cabecalho__nav.is-aberto .cabecalho__link:nth-of-type(2) { animation-delay: 180ms; }
    .cabecalho__nav.is-aberto .cabecalho__link:nth-of-type(3) { animation-delay: 260ms; }
    .cabecalho__nav.is-aberto .cabecalho__link:nth-of-type(4) { animation-delay: 340ms; }

    /* CTA "Anunciar imovel" com glow PULSANTE continuo */
    .cabecalho__nav.is-aberto .cabecalho__nav-cta {
        animation: ctaGlow 2.5s ease-in-out infinite, itemEntra 500ms 440ms cubic-bezier(0.22,1,0.36,1) forwards;
        opacity: 0;
    }
    @keyframes ctaGlow {
        0%, 100% { box-shadow: 0 8px 24px rgba(196,99,59,0.25); }
        50% { box-shadow: 0 12px 32px rgba(196,99,59,0.5), 0 0 24px rgba(232,169,61,0.3); }
    }
    .cabecalho__nav.is-aberto .cabecalho__nav-cta svg {
        transition: transform 300ms cubic-bezier(0.22,1,0.36,1);
    }
    .cabecalho__nav.is-aberto .cabecalho__nav-cta:hover svg,
    .cabecalho__nav.is-aberto .cabecalho__nav-cta:active svg {
        transform: translateX(6px);
    }
}


/* ============================================================
   CTA "ANUNCIAR IMOVEL" NO HEADER - ANIMACOES CONTINUAS
   ============================================================ */
@media (min-width: 1024px) {
    .cabecalho__acoes .botao--secundario {
        position: relative;
        overflow: hidden;
        isolation: isolate;
        font-weight: 600;
        letter-spacing: 0.005em;
        animation: ctaPulseBorda 3s ease-in-out infinite;
        transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1),
                    background 350ms ease,
                    color 350ms ease,
                    border-color 350ms ease,
                    box-shadow 350ms ease;
    }

    /* Pulse contínuo na borda externa */
    @keyframes ctaPulseBorda {
        0%, 100% {
            box-shadow: 0 0 0 0 rgba(196,99,59,0);
        }
        50% {
            box-shadow: 0 0 0 6px rgba(196,99,59,0.12);
        }
    }

    /* Sweep luminoso passando pelo botão */
    .cabecalho__acoes .botao--secundario::before {
        content: '';
        position: absolute;
        top: 0; left: -100%;
        width: 100%; height: 100%;
        background: linear-gradient(110deg,
            transparent 30%,
            rgba(232,169,61,0.35) 50%,
            transparent 70%);
        animation: ctaSweep 3.5s ease-in-out infinite;
        pointer-events: none;
        z-index: 1;
    }
    @keyframes ctaSweep {
        0% { left: -100%; }
        45% { left: 100%; }
        100% { left: 100%; }
    }

    /* Conteúdo do botão acima do sweep */
    .cabecalho__acoes .botao--secundario > * {
        position: relative;
        z-index: 2;
    }

    /* Hover: fill com gradiente terracota → bordô + lift */
    .cabecalho__acoes .botao--secundario:hover,
    .cabecalho__acoes .botao--secundario:focus-visible {
        background: linear-gradient(135deg, var(--tl-terracota), var(--tl-bordo)) !important;
        color: var(--tl-pergaminho) !important;
        border-color: transparent !important;
        transform: translateY(-3px) scale(1.02);
        box-shadow:
            0 14px 32px rgba(196,99,59,0.4),
            0 0 0 4px rgba(232,169,61,0.18);
        animation: none;
    }
    .cabecalho__acoes .botao--secundario:active {
        transform: translateY(-1px) scale(1);
    }

    /* Reduce motion: tira animacoes infinitas mantendo hover */
    @media (prefers-reduced-motion: reduce) {
        .cabecalho__acoes .botao--secundario {
            animation: none;
        }
        .cabecalho__acoes .botao--secundario::before {
            display: none;
        }
    }
}


/* ============================================================
   HOVER ULTRA EXPRESSIVO NOS ITENS DO MENU MOBILE
   (sobrescreve as regras anteriores)
   ============================================================ */
@media (max-width: 1023px) {

    .cabecalho__nav.is-aberto .cabecalho__link {
        will-change: transform, padding;
        transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1) !important,
                    padding 350ms cubic-bezier(0.22,1,0.36,1) !important,
                    background 350ms ease !important,
                    box-shadow 350ms ease !important;
    }

    /* Background colorido translucido que cresce no hover */
    .cabecalho__nav.is-aberto .cabecalho__link::after {
        content: '' !important;
        position: absolute !important;
        inset: 6px 16px 6px 12px !important;
        border-radius: 14px !important;
        background: linear-gradient(135deg,
            color-mix(in srgb, var(--cor-link) 18%, transparent),
            color-mix(in srgb, var(--cor-link) 6%, transparent)) !important;
        opacity: 0 !important;
        transform: scale(0.94) !important;
        transition: opacity 350ms ease, transform 400ms cubic-bezier(0.22,1,0.36,1) !important;
        z-index: 0 !important;
        display: block !important;
        pointer-events: none !important;
    }

    /* Hover/active: background aparece + item escala + sombra colorida */
    .cabecalho__nav.is-aberto .cabecalho__link:hover,
    .cabecalho__nav.is-aberto .cabecalho__link:active,
    .cabecalho__nav.is-aberto .cabecalho__link:focus {
        background: transparent !important;
        padding-left: 36px !important;
        transform: translateX(4px) scale(1.01);
        box-shadow: 0 8px 24px color-mix(in srgb, var(--cor-link) 22%, transparent) !important;
        border-bottom-color: transparent !important;
    }
    .cabecalho__nav.is-aberto .cabecalho__link:hover::after,
    .cabecalho__nav.is-aberto .cabecalho__link:active::after,
    .cabecalho__nav.is-aberto .cabecalho__link:focus::after {
        opacity: 1 !important;
        transform: scale(1) !important;
    }

    /* Stripe lateral cresce para 100% no hover (era 60%) */
    .cabecalho__nav.is-aberto .cabecalho__link::before {
        transition: height 400ms cubic-bezier(0.22,1,0.36,1),
                    width 250ms ease,
                    box-shadow 350ms ease,
                    opacity 250ms ease !important;
    }
    .cabecalho__nav.is-aberto .cabecalho__link:hover::before,
    .cabecalho__nav.is-aberto .cabecalho__link:active::before,
    .cabecalho__nav.is-aberto .cabecalho__link:focus::before {
        height: 100% !important;
        width: 6px !important;
        opacity: 1 !important;
        animation: none !important;
        box-shadow: 0 0 24px var(--cor-link), 0 0 8px var(--cor-link) !important;
    }

    /* Icone vai mais longe no hover */
    .cabecalho__nav.is-aberto .cabecalho__link:hover .cabecalho__link-icon,
    .cabecalho__nav.is-aberto .cabecalho__link:active .cabecalho__link-icon,
    .cabecalho__nav.is-aberto .cabecalho__link:focus .cabecalho__link-icon {
        background: var(--cor-link) !important;
        color: var(--tl-pergaminho) !important;
        transform: scale(1.18) rotate(-10deg) !important;
        box-shadow:
            0 10px 24px color-mix(in srgb, var(--cor-link) 50%, transparent),
            0 0 0 4px color-mix(in srgb, var(--cor-link) 12%, transparent) !important;
    }

    /* Titulo muda de cor + slide leve */
    .cabecalho__nav.is-aberto .cabecalho__link-titulo {
        transition: color 280ms ease, transform 350ms cubic-bezier(0.22,1,0.36,1) !important;
    }
    .cabecalho__nav.is-aberto .cabecalho__link:hover .cabecalho__link-titulo,
    .cabecalho__nav.is-aberto .cabecalho__link:active .cabecalho__link-titulo,
    .cabecalho__nav.is-aberto .cabecalho__link:focus .cabecalho__link-titulo {
        color: var(--cor-link) !important;
        transform: translateX(2px);
    }

    /* Descricao tambem muda */
    .cabecalho__nav.is-aberto .cabecalho__link-desc {
        transition: color 280ms ease, transform 350ms cubic-bezier(0.22,1,0.36,1) !important;
    }
    .cabecalho__nav.is-aberto .cabecalho__link:hover .cabecalho__link-desc,
    .cabecalho__nav.is-aberto .cabecalho__link:active .cabecalho__link-desc,
    .cabecalho__nav.is-aberto .cabecalho__link:focus .cabecalho__link-desc {
        color: var(--tl-carvao) !important;
        transform: translateX(2px);
    }

    /* Seta maior no hover, com glow */
    .cabecalho__nav.is-aberto .cabecalho__link:hover .cabecalho__link-arrow,
    .cabecalho__nav.is-aberto .cabecalho__link:active .cabecalho__link-arrow,
    .cabecalho__nav.is-aberto .cabecalho__link:focus .cabecalho__link-arrow {
        animation: none !important;
        transform: translateX(12px) scale(1.3) !important;
        opacity: 1 !important;
        text-shadow: 0 0 12px var(--cor-link) !important;
    }

    /* Garantir que o conteudo fique acima do background animado */
    .cabecalho__nav.is-aberto .cabecalho__link-icon,
    .cabecalho__nav.is-aberto .cabecalho__link-textos,
    .cabecalho__nav.is-aberto .cabecalho__link-arrow {
        position: relative !important;
        z-index: 1 !important;
    }
}


/* === LOGO OFICIAL (imagem PNG) + SLOGAN ALINHADO (v29) ===                    */
/* Logo horizontal (casinha + TETO LIVRE) eh imagem unica - controle 100%.      */
/* Slogan posicionado abaixo, com padding-left calibrado pra alinhar abaixo     */
/* do texto TETO LIVRE (ignorando a casinha que ocupa ~30% da largura do logo). */
.cabecalho__logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-decoration: none;
    line-height: 1;
}
.cabecalho__slogan {
    font-family: var(--tl-font-display, 'Fraunces', Georgia, serif);
    font-style: italic;
    font-weight: 500;
    font-size: 11px;
    color: var(--tl-bordo, #8B3A1F);
    letter-spacing: 0.005em;
    line-height: 1;
    opacity: 0.85;
    /* Offset visual = largura da casinha do logo horizontal (~32% de 160px = ~52px) */
    padding-left: 52px;
    transition: opacity 250ms ease, color 250ms ease;
}
.cabecalho__logo:hover .cabecalho__slogan {
    opacity: 1;
    color: var(--tl-terracota, #C4633B);
}
@media (min-width: 768px) {
    .cabecalho__slogan { font-size: 12px; padding-left: 58px; }
}
@media (max-width: 540px) {
    .cabecalho__slogan { font-size: 10px; padding-left: 44px; }
}
