@font-face {
    font-family: "Poppins";
    font-weight: 400;
    font-display: swap;
    src: url("fonts/poppins-latin-400-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Poppins";
    font-weight: 600;
    font-display: swap;
    src: url("fonts/poppins-latin-600-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Poppins";
    font-weight: 700;
    font-display: swap;
    src: url("fonts/poppins-latin-700-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Poppins";
    font-weight: 800;
    font-display: swap;
    src: url("fonts/poppins-latin-800-normal.woff2") format("woff2");
}

:root {
    --verde: #B6D908;
    --verde-escuro: #4E6600;
    --azul: #013456;
    --azul-profundo: #01263F;
    --azul-noite: #011A2C;
    --azul-abismo: #00111E;
    --cinza: #E9EDF1;
    --off: #F4F7EC;
    --raio: 24px;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Poppins", system-ui, sans-serif;
    color: #FFFFFF;
    background-color: var(--azul-abismo);
    background-image:
        radial-gradient(120% 60% at 50% -10%, var(--azul) 0%, transparent 60%),
        radial-gradient(80% 40% at 100% 100%, rgba(182, 217, 8, 0.08) 0%, transparent 70%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.pagina {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 16px 16px calc(32px + env(safe-area-inset-bottom));
}

/* Barra superior */
.barra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px;
}

.botao-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.2s;
}

.botao-icone:hover {
    background: rgba(255, 255, 255, 0.12);
}

.botao-icone svg {
    width: 20px;
    height: 20px;
}

/* Topo */
.topo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 0 28px;
}

.logo {
    display: block;
    width: 180px;
    height: auto;
    margin-bottom: 28px;
}

.foto {
    position: relative;
    width: 112px;
    height: 112px;
    margin-bottom: 16px;
}

.foto::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(from 200deg, var(--verde), var(--azul), var(--verde));
    animation: girar 8s linear infinite;
}

.foto img,
.foto .iniciais {
    position: relative;
    width: 100%;
    height: 100%;
    border: 4px solid var(--azul-noite);
    border-radius: 50%;
    object-fit: cover;
    background: var(--azul-profundo);
}

.foto .iniciais {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
    color: var(--verde);
}

@keyframes girar {
    to {
        transform: rotate(360deg);
    }
}

.nome {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.cargo {
    margin: 4px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.slogan {
    margin: 14px 0 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--verde);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.status .ponto {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8A99A8;
}

.status.aberto .ponto {
    background: var(--verde);
    box-shadow: 0 0 0 0 rgba(182, 217, 8, 0.6);
    animation: pulsar 2s infinite;
}

@keyframes pulsar {
    70% {
        box-shadow: 0 0 0 8px rgba(182, 217, 8, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(182, 217, 8, 0);
    }
}

/* Grade bento de links */
.titulo-secao {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 32px 4px 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.setas {
    display: flex;
    gap: 8px;
}

.setas .botao-icone {
    width: 36px;
    height: 36px;
}

.setas .botao-icone svg {
    width: 18px;
    height: 18px;
}

.setas .botao-icone:disabled {
    opacity: 0.3;
    cursor: default;
}

.bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bloco {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 132px;
    padding: 18px;
    overflow: hidden;
    border-radius: var(--raio);
    background: var(--azul-profundo);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.2s, border-color 0.2s;
    opacity: 0;
    transform: translateY(12px);
    animation: entrar 0.5s forwards;
}

.bloco:hover {
    border-color: rgba(182, 217, 8, 0.5);
}

.bloco:active {
    transform: scale(0.97);
}

@keyframes entrar {
    to {
        opacity: 1;
        transform: none;
    }
}

/* Telhado decorativo no canto, inspirado no símbolo */
.bloco::after {
    content: "";
    position: absolute;
    right: -18px;
    bottom: -34px;
    width: 92px;
    height: 92px;
    border-top: 12px solid currentColor;
    border-left: 12px solid currentColor;
    border-radius: 6px;
    transform: rotate(45deg);
    opacity: 0.08;
    pointer-events: none;
}

.bloco.largo {
    grid-column: span 2;
}

.bloco.alto {
    grid-row: span 2;
}

.bloco.verde {
    background: var(--verde);
    color: var(--azul-noite);
    border-color: transparent;
}

.bloco.verde::after {
    opacity: 0.14;
}

.bloco.azul {
    background: var(--azul);
}

.bloco.claro {
    background: var(--cinza);
    color: var(--azul-noite);
    border-color: transparent;
}

.bloco .icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--verde);
}

.bloco.verde .icone,
.bloco.claro .icone {
    background: var(--azul-noite);
    color: var(--verde);
}

.bloco .icone svg {
    width: 22px;
    height: 22px;
}

.bloco h2 {
    margin: 16px 0 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.bloco p {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.75;
}

.bloco .seta {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 18px;
    height: 18px;
    opacity: 0.6;
}

.bloco.largo.destaque {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    min-height: 96px;
    padding-right: 44px;
}

.bloco.largo.destaque h2 {
    margin: 0;
    font-size: 18px;
}

.bloco.largo.destaque .icone {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 18px;
}

.bloco.largo.destaque .icone svg {
    width: 28px;
    height: 28px;
}

/* Imóveis em destaque */
.vitrine {
    display: flex;
    gap: 12px;
    margin: 0 -16px;
    padding: 0 16px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

.vitrine.arrastando {
    cursor: grabbing;
    scroll-snap-type: none;
}

.vitrine.arrastando .imovel {
    pointer-events: none;
}

.vitrine img {
    -webkit-user-drag: none;
    user-select: none;
}

.vitrine::-webkit-scrollbar {
    display: none;
}

.imovel {
    position: relative;
    flex: 0 0 72%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--raio);
    background: var(--azul-profundo);
    scroll-snap-align: start;
    scroll-margin-left: 16px;
}

.imovel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.imovel:hover img {
    transform: scale(1.04);
}

.imovel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 40%, rgba(1, 26, 44, 0.95) 100%);
}

.imovel .codigo {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.imovel .preco {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 8px 12px;
    border-radius: 14px;
    background: var(--verde);
    color: var(--azul-noite);
    font-size: 13px;
    font-weight: 800;
    transform: rotate(-4deg);
}

.imovel .info {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2;
}

.imovel h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

.imovel .local {
    margin: 4px 0 12px;
    font-size: 12px;
    opacity: 0.75;
}

.imovel .chamada {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--verde);
}

.imovel .chamada svg {
    width: 14px;
    height: 14px;
}

.imovel.ver-todos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-basis: 48%;
    background: var(--verde);
    color: var(--azul-noite);
    text-align: center;
    font-weight: 700;
}

.imovel.ver-todos::before {
    display: none;
}

.imovel.ver-todos svg {
    width: 36px;
    height: 36px;
}

/* Rodapé */
.acoes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

.botao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: transparent;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.botao:hover {
    background: rgba(255, 255, 255, 0.08);
}

.botao svg {
    width: 18px;
    height: 18px;
}

.rodape {
    margin-top: 36px;
    text-align: center;
    font-size: 11px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.4);
}

.aviso {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 10;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--verde);
    color: var(--azul-noite);
    font-size: 13px;
    font-weight: 600;
    transform: translate(-50%, 80px);
    visibility: hidden;
    transition: transform 0.3s, visibility 0.3s;
}

.aviso.visivel {
    transform: translate(-50%, 0);
    visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before {
        animation: none !important;
        transition: none !important;
    }

    .bloco {
        opacity: 1;
        transform: none;
    }
}