/* =========================================================
   LÉO BARROS — HOME
   INDEX.CSS — ESTILOS ESPECÍFICOS DA PÁGINA INICIAL
========================================================= */


/* =========================================================
   01. HERO PRINCIPAL DA HOME
========================================================= */

.hero {
    min-height: 82vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 100px 20px 90px;

    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(212, 175, 55, 0.075),
            transparent 45%
        ),
        linear-gradient(
            180deg,
            #0b0b0b 0%,
            #101010 100%
        );

    border-bottom: 1px solid var(--border);
}


/* =========================================================
   02. ESTRUTURA DO HERO COM FOTO
========================================================= */

.hero:has(.hero-foto) .hero-conteudo {
    width: 100%;
    max-width: 1120px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        420px;

    align-items: center;

    gap: 70px;

    text-align: left;
}


/* =========================================================
   03. TEXTO DO HERO
========================================================= */

.hero-texto-container {
    max-width: 720px;
}

.hero h1 {
    font-family: var(--serif);

    font-size: clamp(3.2rem, 7vw, 6rem);

    margin-bottom: 22px;

    color: #f4f1e8;
}

.hero-subtitulo {
    color: var(--gold);

    text-transform: uppercase;

    letter-spacing: 0.18em;

    font-size: 0.9rem;

    margin-bottom: 25px;
}

.hero-texto {
    max-width: 780px;

    margin: 0 0 42px;

    color: #d0cbc1;

    font-size: 1.12rem;

    line-height: 1.9;
}


/* =========================================================
   04. FOTO PROFISSIONAL
========================================================= */

.hero:has(.hero-foto) .hero-foto {
    width: 100%;

    max-width: 420px;

    height: 540px;

    margin-left: auto;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 4px;

    position: relative;
}

.hero:has(.hero-foto) .hero-foto img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center 25%;

    border-radius: 4px;
}


/* =========================================================
   05. BOTÕES DO HERO
========================================================= */

.hero-botoes {
    display: flex;

    justify-content: flex-start;
    align-items: center;

    flex-wrap: wrap;

    gap: 16px;
}


/* =========================================================
   06. ÁREA DE PROJETOS
========================================================= */

.projetos-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(280px, 1fr)
        );

    gap: 24px;

    margin-top: 32px;
}

.projeto-card {
    background: var(--bg-card);

    border: 1px solid var(--border-soft);

    border-radius: 16px;

    padding: 28px;

    height: 100%;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.projeto-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.35);

    border-color: var(--border);

    background: var(--bg-card-hover);
}

.projeto-card h3 {
    color: var(--gold-light);

    margin-bottom: 12px;
}

.projeto-card p {
    color: var(--text-soft);

    margin-bottom: 0;
}


/* =========================================================
   07. SUBSEÇÃO DA COLEÇÃO EDITORIAL
========================================================= */

.titulo-subsecao {
    font-family: var(--serif);

    font-size: 1.6rem;

    color: var(--gold);

    margin: 48px 0 8px;
}


/* =========================================================
   08. CAPAS DOS LIVROS NA HOME
========================================================= */

.capa-livro {
    width: 220px;

    max-width: 100%;

    display: block;

    margin: 0 auto 25px;

    border-radius: 12px;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.45);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.capa-livro:hover {
    transform:
        translateY(-8px)
        scale(1.03);

    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.65);
}


/* =========================================================
   09. PRÓXIMO LIVRO
========================================================= */

.next-book {
    background: var(--bg-dark);

    padding: 75px 30px;

    margin-top: 50px;

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);

    text-align: center;
}

.next-book h2 {
    max-width: 800px;

    margin: 14px auto 24px;
}

.next-book p {
    max-width: 760px;

    margin: 0 auto 28px;
}


/* =========================================================
   10. ENCERRAMENTO DA HOME
========================================================= */

.encerramento {
    padding: 100px 20px 70px;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(212, 175, 55, 0.045),
            transparent 55%
        );
}

.frase-final {
    max-width: 780px;

    margin: 0 auto 35px;

    color: #d4b15a;

    font-family: var(--serif);

    font-size: 1.45rem;

    line-height: 1.8;

    font-style: italic;
}


/* =========================================================
   11. RESPONSIVO — TABLET
========================================================= */

@media (max-width: 900px) {

    .hero {
        min-height: 70vh;

        padding:
            80px
            20px
            65px;
    }

    .hero:has(.hero-foto) .hero-conteudo {
        grid-template-columns: 1fr;

        gap: 40px;

        text-align: center;
    }

    .hero-texto-container {
        max-width: 760px;

        margin: 0 auto;
    }

    .hero:has(.hero-foto) .hero-foto {
        width: min(100%, 400px);

        height: 500px;

        margin: 0 auto;
    }

    .hero-botoes {
        justify-content: center;
    }

    .projetos-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   12. RESPONSIVO — CELULAR
========================================================= */

@media (max-width: 600px) {

    .hero {
        min-height: 62vh;

        padding:
            65px
            18px
            55px;
    }

    .hero:has(.hero-foto) .hero-conteudo {
        gap: 35px;
    }

    .hero h1 {
        font-size: 2.45rem;
    }

    .hero-subtitulo {
        font-size: 0.8rem;

        letter-spacing: 1.7px;
    }

    .hero-texto {
        font-size: 1rem;

        line-height: 1.8;

        margin-bottom: 35px;
    }

    .hero:has(.hero-foto) .hero-foto {
        width: 100%;

        max-width: 340px;

        height: 440px;
    }

    .hero:has(.hero-foto) .hero-foto img {
        object-position: center 22%;
    }

    .hero-botoes {
        flex-direction: column;

        width: 100%;
    }

    .hero-botoes .botao {
        width: 100%;

        max-width: 330px;
    }

    .capa-livro {
        width: 170px;
    }

    .next-book {
        padding: 60px 20px;
    }

    .encerramento {
        padding: 75px 15px 55px;
    }

    .frase-final {
        font-size: 1.2rem;
    }

}


/* =========================================================
   FIM — INDEX.CSS
========================================================= */