/**
 * HERO.CSS
 * Estilos específicos para a seção Hero
 * 100% conforme especificação em /docs/secoes/hero.md
 * Depende de tokens.css para variáveis CSS
 */

/* ===== HERO ===== */
.hero {
    /* tamanho e posição exatos do Figma */
    position: relative;
    width: 98%;
    height: 784px;
    margin: 24px auto 0;
    /* top = 24px; centralizado */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 88px 32px 0;

    /* imagem + gradientes (ordem importa) */
    background-image:
        linear-gradient(248.13deg, rgba(0, 0, 0, 0) 71.05%, rgba(0, 0, 0, 0.6) 100%),
        linear-gradient(180deg, rgba(34, 59, 90, 0) 0%, rgba(34, 59, 90, 0.8) 100%),
        url("../img/ImgHero.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: normal, multiply, normal;
    border-radius: 8px;

    /* borda bege EXATA como no Figma, sem "comer" layout */
    overflow: hidden;
    color: var(--sand);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid var(--sand);
    border-radius: 8px;
    pointer-events: none;
}

/* largura interna de 1328px (1392 - 32 - 32) */
.hero .container {
    width: calc(1392px - 32px * 2);
}

/* ==== FRAME 4 (top bar) ==== */
.hero__top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    /* do Figma */
    gap: 10px;
}

.hero__brand img {
    width: 188px;
    height: auto;
    object-fit: contain;
    /* garante proporção do logo */
}

/* Botão "Entre em contato" – Frame 3 */
.btn.btn--pill.btn--dark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 40px;
    padding: 8px 16px;
    min-width: 156px;
    background: var(--green);
    color: var(--sand);
    border-radius: 100px;
    font: 400 14px/22px var(--font-body);
    text-align: center;
    max-width: 300px;
    place-self: center;
}

/* ==== FRAME 44/6/8 (bloco título + CTA) ==== */
.hero__body {
    /* reserva vertical para posicionar como no Figma */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 32px;
    /* 354px de área; top padding 88px dentro do bloco do Figma */
    height: 354px;
    margin-top: 88px;
    margin-bottom: 88px;
}

.hero__title {
    width: 454px;
    height: 96px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--sand);
    font-size: 48px;
    line-height: 48px;
}


/* CTA "Conheça o Ecoville Club Residence" – Frame 1 */
.btn.btn--pill.btn--light {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 331px;
    height: 50px;
    padding: 13px 24px;
    background: var(--sand);
    color: var(--blue);
    border-radius: 100px;
    font: 500 16px/24px var(--font-body);
    text-align: center;
}

/* ==== BADGE (Frame 45) – 360m² ==== */
.hero__badge {
    position: absolute;
    right: 32px;
    bottom: 0;
    /* encosta na borda interna */
    transform: translateY(0);
    width: 239px;
    height: 162px;
    padding: 22px 48px;
    background: var(--accent);
    border-radius: 16px 16px 0 0;
    color: var(--sand);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.hero__badge small {
    font: 300 16px/22px var(--font-body);
    opacity: .95;
}

.hero__badge strong {
    display: block;
    font: 300 48px/1 var(--font-title);
}

/* ==== Acessibilidade e foco ==== */
.v2-skip-link,
.v2-btn:focus-visible,
.hero__brand:focus-visible {
    outline: 3px solid var(--sand);
    outline-offset: 2px;
}

/* Microinterações */
.hero .btn:hover {
    transform: translateY(-1px);
}

.hero__badge {
    transition: transform .25s ease;
}

.hero__badge:hover {
    transform: translateY(-2px);
}

/* ==== Responsivo (breakpoints) ==== */
@media (max-width: 1440px) {

    /* mantém o hero proporcional quando não couber 1392px */
    .hero {
        width: calc(100% - 32px);
        /* margem de segurança nas laterais */
    }

    .hero .container {
        width: calc(100% - 32px * 2);
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 60vh;
        padding: 20px 16px;
        margin: 0;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .hero .container {
        width: 100%;
        max-width: 100%;
        margin-top: 2rem;
    }

    .hero__top {
        width: 100%;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .hero__brand img {
        width: 150px;
        height: auto;
    }

    .hero__body {
        width: 100%;
        height: auto;
        margin: 0;
        align-items: center;
        justify-content: center;
        gap: 24px;
        text-align: center;
    }

    .hero__title {
        width: 100%;
        max-width: 320px;
        height: auto;
        margin: 0 auto;
    }

    .hero__line {
        font-size: 28px;
        line-height: 32px;
        display: block;
        margin-bottom: 8px;
    }

    .hero__badge {
        position: static;
        width: 100%;
        max-width: 200px;
        height: auto;
        margin: 20px auto 0;
        padding: 16px 20px;
        border-radius: 16px;
        transform: none;
    }

    .hero__badge small {
        font-size: 14px;
        line-height: 18px;
    }

    .hero__badge strong {
        font-size: 36px;
        line-height: 1;
    }
}

/* Mobile pequeno (até 480px) */
@media (max-width: 480px) {
    .hero {
        padding: 16px 12px;
        gap: 20px;
    }

    .hero__top {
        margin-bottom: 16px;
    }

    .hero__brand img {
        width: 200px;
    }

    .btn.btn--pill.btn--dark {
        min-width: 120px;
        height: 32px;
        padding: 6px 10px;
        font-size: 11px;
    }

    .hero__body {
        gap: 20px;
    }

    .hero__title {
        max-width: 280px;
    }

    .hero__line {
        font-size: 29px;
        line-height: 18px;
    }


    .hero__badge {
        max-width: 180px;
        padding: 14px 16px;
        margin-top: 16px;
    }

    .hero__badge small {
        font-size: 12px;
        line-height: 16px;
    }

    .hero__badge strong {
        font-size: 32px;
    }
}
