/* =========================================================
   CAMADAS DE PERCEPÇÃO
   CSS ESPECÍFICO DA PÁGINA
========================================================= */


/* =========================================================
   HERO DO LIVRO
========================================================= */

.book-hero {
    padding: 75px 0 80px;
    border-bottom: 1px solid var(--border-soft);
}

.book-hero-grid {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 780px);
    gap: 65px;
    align-items: center;
}

.book-cover {
    width: 320px;
    max-width: 100%;
    margin: 0 auto;
}

.book-cover img {
    width: 100%;
    height: auto;
    display: block;

    border-radius: 14px;

    border: 1px solid var(--border);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.55);
}

.book-hero-content {
    max-width: 780px;
}

.book-hero-content h1 {
    font-family: var(--serif);

    font-size: clamp(2.8rem, 6vw, 4.8rem);

    line-height: 1.08;

    color: #f4f1e8;

    margin-bottom: 22px;
}

.book-subtitle {
    max-width: 760px;

    margin-bottom: 28px;

    font-family: var(--serif);

    font-size: 1.4rem;

    line-height: 1.5;

    color: var(--gold-light);
}

.book-description {
    max-width: 780px;

    margin-bottom: 0;

    color: var(--text-soft);

    font-size: 1rem;

    line-height: 1.9;
}


/* =========================================================
   BOTÕES DO HERO
========================================================= */

.book-hero .book-actions {
    display: flex;

    justify-content: flex-start;

    align-items: center;

    flex-wrap: wrap;

    gap: 18px;

    margin-top: 34px;

    /* respiro antes do próximo bloco */
    margin-bottom: 12px;
}


/* =========================================================
   SOBRE O LIVRO
========================================================= */

.book-about {
    padding: 80px 0;
}

.book-about .container {
    max-width: 900px;
}

.book-about h2 {
    max-width: 850px;

    margin-bottom: 30px;
}

.book-about p {
    max-width: 850px;

    margin-bottom: 20px;

    color: var(--text-soft);

    line-height: 1.9;
}

.book-about p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   HIPÓTESE CENTRAL
========================================================= */

.book-excerpt {
    padding: 80px 0;

    background:
        radial-gradient(
            circle at center,
            rgba(212, 175, 55, 0.045),
            transparent 55%
        ),
        var(--bg-card);
}

.book-excerpt .container {
    max-width: 900px;
}

.book-excerpt h2 {
    margin-bottom: 34px;
}

.excerpt-block {
    margin: 0 0 32px;

    padding: 34px 38px;

    border-left: 4px solid var(--gold);

    border-radius: 0 14px 14px 0;

    background: #181818;

    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.25);
}

.excerpt-block p {
    margin-bottom: 18px;

    color: #ece8e1;

    font-family: var(--serif);

    font-size: 1.3rem;

    line-height: 1.7;

    font-style: italic;
}

.excerpt-block p:last-child {
    margin-bottom: 0;
}

.excerpt-note {
    max-width: 820px;

    margin: 0;

    color: var(--text-muted);

    font-size: 0.96rem;

    line-height: 1.85;
}


/* =========================================================
   TEMAS DA OBRA
========================================================= */

.book-topics {
    padding: 80px 0;
}

.book-topics h2 {
    margin-bottom: 0;
}

.topics-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;

    margin-top: 42px;
}

.topic-card {
    padding: 30px;

    background: var(--bg-card);

    border: 1px solid var(--border-soft);

    border-radius: 16px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.topic-card:hover {
    transform: translateY(-4px);

    border-color: var(--border);

    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.35);
}

.topic-card h3 {
    margin-bottom: 12px;

    color: var(--gold-light);
}

.topic-card p {
    margin: 0;

    color: var(--text-soft);

    line-height: 1.75;
}


/* =========================================================
   ORIGEM DO PROJETO
========================================================= */

.book-history {
    padding: 80px 0;
}

.history-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(300px, 1fr);

    gap: 65px;

    align-items: center;
}

.history-content {
    max-width: 700px;
}

.history-content h2 {
    margin-bottom: 30px;
}

.history-content p {
    margin-bottom: 20px;

    color: var(--text-soft);

    line-height: 1.9;
}

.history-content p:last-child {
    margin-bottom: 0;
}

.history-image {
    width: 100%;

    max-width: 500px;

    margin: 0 auto;
}

.history-image img {
    width: 100%;

    display: block;

    border-radius: 18px;

    border: 1px solid var(--border);

    box-shadow: var(--shadow);
}


/* =========================================================
   AQUISIÇÃO
========================================================= */

.book-purchase {
    padding: 90px 0;

    background:
        radial-gradient(
            circle at center,
            rgba(212, 175, 55, 0.055),
            transparent 55%
        ),
        #0b0b0b;
}

.book-purchase .purchase-box {
    max-width: 850px;

    margin: 0 auto;

    padding: 60px 45px;

    text-align: center;

    border: 1px solid var(--border);

    border-radius: 20px;

    background: #111;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.3);
}

.book-purchase h2 {
    margin-bottom: 25px;
}

.book-purchase .purchase-box > p {
    max-width: 720px;

    margin: 0 auto 28px;

    color: var(--text-soft);

    line-height: 1.8;
}


/* =========================================================
   BOTÕES DA AQUISIÇÃO
========================================================= */

.book-purchase .purchase-actions {
    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 18px;

    margin-top: 34px;

    /* espaço entre os botões e a observação abaixo */
    margin-bottom: 26px;
}

.book-purchase .purchase-note {
    margin-top: 0;

    color: var(--text-muted);

    font-size: 0.88rem;
}


/* =========================================================
   NAVEGAÇÃO ENTRE OBRAS
========================================================= */

.next-book {
    padding: 90px 0;

    text-align: center;

    background: var(--bg-dark);

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);
}

.next-book .container {
    max-width: 900px;
}

.next-book h2 {
    margin: 14px auto 24px;
}

.next-book > .container > p:not(.eyebrow) {
    max-width: 760px;

    margin: 0 auto;

    color: var(--text-soft);

    line-height: 1.9;
}


/* =========================================================
   BOTÕES FINAIS
========================================================= */

.next-book .book-actions {
    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 18px;

    margin-top: 38px;
}


/* =========================================================
   FOOTER ESPECÍFICO
========================================================= */

.site-footer {
    padding: 45px 20px 55px;

    text-align: center;

    border-top: 1px solid var(--border);

    background: var(--bg-dark);
}

.site-footer p {
    max-width: 850px;

    margin: 8px auto;

    color: #a9a297;

    font-size: 0.9rem;

    line-height: 1.7;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .book-hero {
        padding: 60px 0 65px;
    }

    .book-hero-grid {
        grid-template-columns: 1fr;

        gap: 42px;

        text-align: center;
    }

    .book-cover {
        width: 280px;
    }

    .book-hero-content {
        max-width: 800px;

        margin: 0 auto;
    }

    .book-subtitle,
    .book-description {
        margin-left: auto;
        margin-right: auto;
    }

    .book-hero .book-actions {
        justify-content: center;
    }

    .topics-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .history-grid {
        grid-template-columns: 1fr;

        gap: 42px;
    }

    .history-content {
        max-width: 800px;
    }

    .history-image {
        max-width: 520px;
    }

}


/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 600px) {

    .book-hero {
        padding: 45px 0 50px;
    }

    .book-hero-grid {
        gap: 34px;
    }

    .book-cover {
        width: 220px;
    }

    .book-hero-content h1 {
        font-size: 2.45rem;

        line-height: 1.08;
    }

    .book-subtitle {
        font-size: 1.15rem;

        line-height: 1.55;
    }

    .book-description {
        font-size: 0.98rem;

        line-height: 1.8;
    }

    .book-hero .book-actions,
    .book-purchase .purchase-actions,
    .next-book .book-actions {
        flex-direction: column;

        width: 100%;

        gap: 14px;

        margin-top: 30px;
    }

    .book-hero .btn,
    .book-purchase .btn,
    .next-book .btn {
        width: 100%;

        max-width: 330px;
    }

    .book-about,
    .book-excerpt,
    .book-topics,
    .book-history,
    .book-purchase,
    .next-book {
        padding: 60px 0;
    }

    .book-about h2,
    .book-excerpt h2,
    .book-topics h2,
    .book-history h2,
    .book-purchase h2,
    .next-book h2 {
        font-size: 2.1rem;
    }

    .excerpt-block {
        padding: 25px 22px;

        margin-bottom: 28px;
    }

    .excerpt-block p {
        font-size: 1.15rem;

        line-height: 1.65;
    }

    .topics-grid {
        grid-template-columns: 1fr;

        gap: 18px;

        margin-top: 32px;
    }

    .topic-card {
        padding: 24px;
    }

    .book-purchase .purchase-box {
        padding: 42px 22px;
    }

}