/* =============================================
   Arquitetura da Longevidade — Design System
   ============================================= */

:root {
    --cor-laranja: #f3911f;
    --cor-verde: #869a42;
    --cor-cream: #fff1e1;
    --cor-amarelo: #fde7b4;
    --cor-texto: #555454;
    --cor-texto-suave: rgba(85, 84, 84, 0.72);

    --cor-header-footer: var(--cor-laranja);
    --cor-botao: var(--cor-verde);
    --cor-texto-botao: var(--cor-cream);
    --cor-fundo-a: var(--cor-cream);
    --cor-fundo-b: var(--cor-amarelo);

    --header-height: clamp(4.5rem, 8vw, 5.5rem);

    --font-titulo: 'Montserrat', sans-serif;
    --font-subtitulo: 'Montserrat', sans-serif;
    --font-corpo: 'Montserrat', sans-serif;

    --container-max: 1080px;
    --section-py: clamp(3.5rem, 7vw, 5.5rem);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 8px 32px rgba(85, 84, 84, 0.08);
    --shadow-card: 0 4px 20px rgba(85, 84, 84, 0.06);
}

/* ---- Base ---- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: var(--font-corpo);
    font-weight: 400;
    font-size: 1.0625rem;
    color: var(--cor-texto);
    background-color: var(--cor-fundo-a);
    line-height: 1.75;
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.font-titulo {
    font-family: var(--font-titulo);
    font-weight: 800;
    color: var(--cor-texto);
    letter-spacing: -0.02em;
}

.font-subtitulo {
    font-family: var(--font-subtitulo);
    font-weight: 500;
}

p, li, .font-corpo {
    font-family: var(--font-corpo);
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-max);
}

/* ---- Seções ---- */

.section {
    padding: var(--section-py) 0;
    position: relative;
}

.section-fundo-a {
    background-color: var(--cor-fundo-a);
}

.section-fundo-b {
    background-color: var(--cor-fundo-b);
}

.section-fundo-laranja {
    background-color: var(--cor-laranja);
    color: var(--cor-cream);
}

.section-fundo-laranja h2,
.section-fundo-laranja p {
    color: var(--cor-cream);
}

/* Cabeçalho de seção reutilizável */
.section-header {
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section-header--center {
    text-align: center;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-subtitulo);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cor-laranja);
    margin-bottom: 0.75rem;
}

.section-fundo-b .section-eyebrow {
    color: var(--cor-verde);
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-lead {
    font-family: var(--font-subtitulo);
    font-weight: 500;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.6;
    color: var(--cor-texto-suave);
    margin-bottom: 0;
}

.section-divider {
    width: 48px;
    height: 3px;
    background: var(--cor-laranja);
    border-radius: 2px;
    margin: 1.25rem auto 0;
}

.section-header--center .section-divider {
    margin-left: auto;
    margin-right: auto;
}

.section-divider--left {
    margin-left: 0;
    margin-right: auto;
}

/* Bloco de texto legível */
.texto-prosa {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.texto-prosa p {
    margin-bottom: 1.1rem;
}

.texto-prosa p:last-child {
    margin-bottom: 0;
}

.texto-suave {
    color: var(--cor-texto-suave);
}

/* ---- Seções fullscreen (scroll-snap nativo) ---- */

.section-fullscreen {
    position: relative;
}

.snap-section {
    position: relative;
}

@media (min-width: 992px) {
    .snap-section {
        height: 100vh;
        height: 100dvh;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        overflow: hidden;
    }
}

.snap-section.section-fullscreen--hero {
    background-color: var(--cor-laranja);
    background-image: none;
}

.snap-section.section-fullscreen--hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background-image: var(--hero-bg-image);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    pointer-events: none;
}

.snap-section.section-fullscreen--hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(29, 29, 27, 0.2) 0%, transparent 22%);
    pointer-events: none;
}

.snap-section.section-fullscreen--overlay-a {
    background-color: var(--cor-fundo-a);
    background-image: none;
}

.snap-section.section-fullscreen--overlay-b {
    background-color: var(--cor-fundo-b);
    background-image: none;
}

.snap-section.section-fullscreen--overlay-laranja {
    background-color: var(--cor-laranja);
    background-image: none;
}

.section-panel {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto;
    padding: calc(var(--header-height) + 1.5rem) clamp(1rem, 3vw, 2rem) 4.5rem;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .section-panel {
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
    }
}

.section-panel--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    text-align: center;
    padding-top: calc(var(--header-height) + 1rem);
    padding-bottom: 3rem;
}

.section-fullscreen--overlay-laranja .section-eyebrow {
    color: rgba(255, 241, 225, 0.85);
}

.section-fullscreen--overlay-laranja h2,
.section-fullscreen--overlay-laranja p {
    color: var(--cor-cream);
}

.hero-section {
    position: relative;
    z-index: 2;
}

/* Navegação lateral (bolinhas) */
.snap-nav {
    position: fixed;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1020;
}

.snap-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.snap-nav li {
    margin: 0.55rem 0;
}

.snap-nav a {
    display: block;
    position: relative;
    width: 14px;
    height: 14px;
    margin: 0 auto;
}

.snap-nav a span {
    display: block;
    width: 10px;
    height: 10px;
    margin: 2px auto;
    border-radius: 50%;
    background: var(--cor-laranja);
    opacity: 0.45;
    transition: transform 0.2s, opacity 0.2s, background 0.2s;
}

.snap-nav a.active span,
.snap-nav a:hover span {
    background: var(--cor-verde);
    opacity: 1;
    transform: scale(1.25);
}

.snap-nav a::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(29, 29, 27, 0.85);
    color: var(--cor-cream);
    font-family: var(--font-subtitulo);
    font-size: 0.72rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.snap-nav a:hover::before {
    opacity: 1;
}

@media (max-width: 767.98px) {
    .snap-nav {
        display: none;
    }
}

/* ---- Header ---- */

.site-header--section {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: transparent;
    background-color: transparent;
    box-shadow: none;
}

.site-header .navbar {
    padding: 0;
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1.5rem, 5vw, 4rem);
}

.site-header .navbar-brand {
    color: var(--cor-texto);
}

.site-header .nav-link {
    color: var(--cor-texto);
}

.site-header .nav-link::after {
    background: var(--cor-texto);
}

.site-header .navbar-toggler {
    border: 1px solid rgba(85, 84, 84, 0.35);
}

.site-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2885, 84, 84, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.site-header .navbar-brand {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    line-height: 1.15;
}

.site-header .navbar-brand__title {
    font-family: var(--font-titulo);
    font-weight: 800;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    letter-spacing: -0.01em;
}

.site-header .navbar-brand__subtitle {
    font-family: var(--font-subtitulo);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
}

.site-header .nav-link {
    font-family: var(--font-subtitulo);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    padding: 0.45rem 1rem !important;
    position: relative;
    transition: opacity 0.2s;
}

.site-header .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.15rem;
    left: 1rem;
    right: 1rem;
    height: 1px;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.site-header .nav-link:hover {
    opacity: 1;
}

.site-header .nav-link:hover::after {
    transform: scaleX(1);
}

.site-header .navbar-toggler {
    padding: 0.35rem 0.5rem;
}

.site-header .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(243, 145, 31, 0.25);
}

@media (max-width: 991.98px) {
    .site-header__inner {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .site-header .navbar-collapse {
        flex-basis: 100%;
        margin-top: 0.75rem;
        padding: 1.25rem;
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.92);
        box-shadow: var(--shadow-card);
    }

    .site-header .navbar-collapse .nav-link {
        color: var(--cor-texto);
    }

    .site-header .navbar-collapse .nav-link::after {
        background: var(--cor-texto);
    }

    .site-header .nav-link::after {
        display: none;
    }
}

@media (min-width: 992px) {
    .site-header .navbar-collapse {
        margin-left: auto;
    }
}

/* ---- Header: tema na seção de compra (fundo laranja) ---- */

#compra .site-header .navbar-brand,
#compra .site-header .nav-link {
    color: var(--cor-cream);
}

#compra .site-header .nav-link::after {
    background: var(--cor-cream);
}

#compra .site-header .navbar-toggler {
    border-color: rgba(255, 241, 225, 0.45);
}

#compra .site-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 241, 225, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    #compra .site-header .navbar-collapse {
        background: rgba(0, 0, 0, 0.12);
    }

    #compra .site-header .navbar-collapse .nav-link {
        color: var(--cor-cream);
    }

    #compra .site-header .navbar-collapse .nav-link::after {
        background: var(--cor-cream);
    }
}

/* ---- Hero ---- */

/* ---- Intro ---- */

.intro-wide {
    width: 100%;
    height: 100%;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.intro-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.intro-tagline {
    font-family: var(--font-titulo);
    font-weight: 800;
    font-size: clamp(1.35rem, 2.8vw, 2rem);
    line-height: 1.35;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--cor-texto);
    margin: 0 auto 0.75rem;
    max-width: 52rem;
}

.intro-section .section-panel {
    padding-top: calc(var(--header-height) + 1.75rem);
    padding-bottom: 1rem;
}

@media (min-width: 992px) {
    .intro-section .section-panel {
        overflow-y: hidden;
    }
}

.intro-layout__media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.intro-layout__content {
    min-width: 0;
    flex: 1;
    min-height: 0;
}

.intro-livro-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(60vw, 440px);
    margin: 0 auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 12px 28px rgba(85, 84, 84, 0.15));
}

.intro-texto--col {
    max-width: none;
    margin: 0;
    text-align: left;
}

.intro-texto {
    color: var(--cor-texto);
}

.intro-section .intro-texto p {
    font-size: clamp(0.95rem, 1.25vw, 1.1rem);
    line-height: 1.65;
    margin-bottom: 0.85rem;
}

.intro-fecho {
    font-family: var(--font-subtitulo);
    font-weight: 500;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    padding: 0.85rem 1.1rem;
    background: rgba(255, 255, 255, 0.55);
    border-left: 4px solid var(--cor-laranja);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: 0.35rem;
}

.intro-cta {
    margin-top: 1.25rem;
    padding-bottom: 0;
    text-align: center;
}

.btn-compra--intro {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    padding: 1rem 2.5rem;
}

@media (min-width: 992px) {
    .intro-section .section-panel {
        display: block;
        padding-left: 0;
        padding-right: clamp(1.25rem, 3vw, 3rem);
        padding-top: calc(var(--header-height) + 2rem);
        padding-bottom: 1rem;
    }

    .intro-wide {
        width: 100%;
        max-width: none;
        padding: 0;
        height: 100%;
    }

    .intro-layout {
        display: grid;
        grid-template-columns: minmax(300px, 42vw) minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "tagline tagline"
            "media content";
        gap: 0.75rem clamp(1.25rem, 2.5vw, 2rem);
        align-items: stretch;
        height: calc(100dvh - var(--header-height) - 2.5rem);
    }

    .intro-layout__media {
        grid-area: media;
        align-self: stretch;
        align-items: center;
        justify-content: flex-start;
        padding-left: clamp(0.5rem, 1.5vw, 1.5rem);
        max-height: 100%;
    }

    .intro-tagline {
        grid-area: tagline;
        text-align: center;
        max-width: 52rem;
        margin: 0 auto 0.5rem;
        padding: 0 clamp(1rem, 3vw, 2rem);
        font-size: clamp(1.5rem, 2.5vw, 2.1rem);
        line-height: 1.35;
    }

    .intro-layout__content {
        grid-area: content;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 0;
        overflow: hidden;
        padding-right: clamp(0.5rem, 2vw, 1.5rem);
    }

    .intro-livro-img {
        width: auto;
        max-width: 100%;
        max-height: calc(100dvh - var(--header-height) - 2rem);
        margin: 0;
        object-fit: contain;
        object-position: left center;
    }

    .intro-section .intro-texto p {
        font-size: clamp(1rem, 1.15vw, 1.12rem);
        line-height: 1.7;
        margin-bottom: 1rem;
    }

    .intro-fecho {
        font-size: 1.1rem;
        padding: 1rem 1.25rem;
    }

    .intro-cta {
        margin-top: 1.5rem;
        text-align: left;
        flex-shrink: 0;
    }

    .btn-compra--intro {
        font-size: 1.1rem;
        padding: 1.1rem 2.75rem;
    }
}

@media (max-width: 991.98px) {
    .intro-layout {
        display: flex;
        flex-direction: column;
    }

    .intro-tagline {
        order: -2;
    }

    .intro-layout__media {
        order: -1;
    }

    .intro-cta {
        text-align: center;
    }
}

/* ---- Botões ---- */

.btn-compra {
    background-color: var(--cor-verde);
    color: var(--cor-cream) !important;
    font-family: var(--font-subtitulo);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    padding: 0.9rem 2.25rem;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: background-color 0.25s, transform 0.2s, box-shadow 0.25s;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 16px rgba(134, 154, 66, 0.3);
}

.btn-compra:hover,
.btn-compra:focus {
    background-color: #758535;
    color: var(--cor-cream) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(134, 154, 66, 0.35);
}

.btn-compra:disabled {
    background-color: #b0b89a;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-compra-sm {
    font-size: 0.8rem;
    padding: 0.55rem 1.15rem;
    box-shadow: 0 2px 10px rgba(134, 154, 66, 0.25);
}

.btn-compra--claro {
    background-color: var(--cor-cream);
    color: var(--cor-texto) !important;
    box-shadow: 0 4px 16px rgba(29, 29, 27, 0.15);
}

.btn-compra--claro:hover,
.btn-compra--claro:focus {
    background-color: #fff;
    color: var(--cor-texto) !important;
}

/* ---- Sobre ---- */

.sobre-conteudo {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.sobre-autora {
    margin: 0 auto 2rem;
    text-align: left;
}

.sobre-texto p {
    margin-bottom: 1.1rem;
    color: var(--cor-texto-suave);
}

.sobre-texto p:last-child {
    margin-bottom: 0;
}

.sobre-foto {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    max-width: 300px;
    margin: 0 auto;
}

.sobre-foto img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

@media (min-width: 768px) {
    .sobre-foto {
        max-width: none;
        margin: 0;
    }
}

.sobre-conteudo .section-header {
    margin-bottom: 1.5rem;
}

.sobre-conteudo .section-divider {
    margin-left: auto;
    margin-right: auto;
}

.sobre-citacao {
    font-family: var(--font-subtitulo);
    font-weight: 500;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.55;
    color: var(--cor-texto);
    padding: 1.25rem 0 1.25rem 1.5rem;
    margin: 1.75rem 0;
    max-width: none;
    text-align: left;
    border-left: 3px solid var(--cor-verde);
    background: linear-gradient(90deg, rgba(134, 154, 66, 0.08) 0%, transparent 100%);
}

.sobre-conteudo > p {
    margin-bottom: 1.1rem;
    color: var(--cor-texto-suave);
}

.sobre-conteudo p:last-of-type {
    margin-bottom: 0;
}

/* Cards de referência */
.referencia-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .referencia-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.referencia-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.75rem 1.5rem;
    height: 100%;
    border: 1px solid rgba(29, 29, 27, 0.06);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s, box-shadow 0.25s;
}

.referencia-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.referencia-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(243, 145, 31, 0.12);
    color: var(--cor-laranja);
    border-radius: 50%;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.referencia-card h4 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: var(--cor-texto);
}

.referencia-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--cor-texto-suave);
    margin-bottom: 0;
}

/* Galeria livros */
.galeria-livros--stack {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.galeria-livros--stack img {
    max-width: min(420px, 90%);
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 12px 28px rgba(85, 84, 84, 0.12));
}

.galeria-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cor-texto-suave);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

/* ---- Lógica do Cuidado ---- */

.logica-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .logica-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.logica-card {
    background: rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-md);
    padding: 0;
    border: 1px solid rgba(85, 84, 84, 0.08);
    height: 100%;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.logica-card.is-expanded {
    box-shadow: var(--shadow-card);
}

@media (hover: hover) {
    .logica-card:hover {
        box-shadow: var(--shadow-card);
    }

    .logica-card:hover .logica-card__body {
        max-height: 500px;
        opacity: 1;
        padding: 0 1.5rem 1.5rem;
    }

    .logica-card:hover .logica-card__arrow {
        transform: rotate(180deg);
    }

    .logica-card__toggle {
        cursor: default;
    }
}

@media (hover: none) {
    .logica-card.is-expanded .logica-card__body {
        max-height: 500px;
        opacity: 1;
        padding: 0 1.5rem 1.5rem;
    }

    .logica-card.is-expanded .logica-card__arrow {
        transform: rotate(180deg);
    }
}

.logica-card__toggle {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1.25rem 1.5rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.logica-card__toggle:focus {
    outline: none;
}

.logica-card__toggle:focus-visible {
    outline: 2px solid var(--cor-laranja);
    outline-offset: 2px;
    border-radius: var(--radius-md);
}

.logica-card__head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    flex: 1;
    min-width: 0;
}

.logica-card__body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 1.5rem;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.35s ease;
}

.logica-card__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    background: var(--cor-laranja);
    color: var(--cor-cream);
    border-radius: 50%;
    font-family: var(--font-titulo);
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.logica-card__title {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.35;
    margin: 0;
}

.logica-card__arrow {
    flex-shrink: 0;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--cor-laranja);
    transition: transform 0.3s ease;
}

.logica-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--cor-texto-suave);
    margin-bottom: 0.75rem;
}

.logica-card p:last-child {
    margin-bottom: 0;
}

.logica-label {
    font-family: var(--font-subtitulo);
    font-weight: 500;
    color: var(--cor-verde);
}

#logica .section-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 2rem;
}

#logica .section-header {
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

#logica .logica-grid {
    gap: 1rem;
}

/* ---- FAQ ---- */

.faq-section {
    background-color: var(--cor-fundo-a);
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 62%;
    z-index: 0;
    background-image: var(--faq-bg-image);
    background-size: auto 105%;
    background-position: left center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.faq-wide {
    width: 100%;
    height: 100%;
    padding: 0 clamp(1rem, 3vw, 2rem);
    position: relative;
    z-index: 1;
}

.faq-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-layout__header {
    margin-bottom: 0;
}

.faq-layout__content {
    min-width: 0;
    flex: 1;
    min-height: 0;
}

.faq-section .section-panel {
    padding-top: calc(var(--header-height) + 1rem);
    padding-bottom: 1rem;
}

@media (min-width: 992px) {
    .faq-section .section-panel {
        overflow-y: hidden;
    }
}

.faq-accordion-wrap {
    max-width: none;
    margin: 0;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.faq-cta {
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

.btn-compra--faq {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    padding: 1rem 2.5rem;
}

.faq-layout__media--mobile {
    display: none;
}

@media (min-width: 992px) {
    .faq-layout__media--mobile {
        display: none !important;
    }
}

.faq-ilustracao {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(85, 84, 84, 0.1));
}

@media (min-width: 992px) {
    .faq-section .section-panel {
        display: block;
        padding-left: 0;
        padding-right: clamp(1.25rem, 3vw, 3rem);
        padding-top: calc(var(--header-height) + 1.25rem);
        padding-bottom: 1rem;
    }

    .faq-wide {
        width: 100%;
        max-width: none;
        padding: 0;
        height: 100%;
    }

    .faq-layout--bg {
        display: grid;
        grid-template-columns: minmax(300px, 42vw) minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "header header"
            "spacer content";
        gap: 0.75rem clamp(1.25rem, 2.5vw, 2rem);
        align-items: start;
        height: calc(100dvh - var(--header-height) - 2rem);
    }

    .faq-layout__header {
        grid-area: header;
        max-width: 52rem;
        margin: 0 auto 0.25rem;
        text-align: center;
    }

    .faq-layout__header .section-divider {
        margin-left: auto;
        margin-right: auto;
    }

    .faq-layout__content {
        grid-area: content;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: 0;
        overflow: hidden;
        padding-right: clamp(0.5rem, 2vw, 1.5rem);
    }

    .faq-cta {
        margin-top: 0.75rem;
        margin-bottom: 1.5rem;
        text-align: left;
    }

    .btn-compra--faq {
        font-size: 1.1rem;
        padding: 1.1rem 2.75rem;
    }

    .faq-section .accordion-button {
        font-size: 1rem;
        padding: 1.05rem 1.25rem;
    }

    .faq-section .accordion-body {
        font-size: 0.95rem;
        line-height: 1.7;
        padding: 0 1.25rem 1.1rem;
    }

    .faq-section .accordion-item {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 991.98px) {
    .faq-section::before {
        display: none;
    }

    .faq-layout {
        display: flex;
        flex-direction: column;
    }

    .faq-layout__header {
        order: -1;
        text-align: center;
    }

    .faq-layout__header .section-divider {
        margin-left: auto;
        margin-right: auto;
    }

    .faq-layout__media--mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 1;
        margin-top: 1.25rem;
        padding-bottom: 1rem;
    }

    .faq-ilustracao {
        max-height: min(85vw, 480px);
    }
}

.faq-section .accordion-item {
    background: #fff;
    border: 1px solid rgba(29, 29, 27, 0.07);
    border-radius: var(--radius-sm) !important;
    margin-bottom: 0.6rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(29, 29, 27, 0.04);
}

.faq-section .accordion-button {
    font-family: var(--font-subtitulo);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--cor-texto);
    background: #fff;
    padding: 1.15rem 1.35rem;
    box-shadow: none;
}

.faq-section .accordion-button:not(.collapsed) {
    background: rgba(243, 145, 31, 0.08);
    color: var(--cor-texto);
}

.faq-section .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.faq-section .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f3911f'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-section .accordion-body {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--cor-texto-suave);
    padding: 0 1.35rem 1.25rem;
}

/* ---- CTA Compra + Footer unificado ---- */

.section-compra-footer {
    background-color: var(--cor-laranja);
    background-image: none !important;
}

.section-compra-footer .section-panel {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding-bottom: 0;
}

.cta-compra-block {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 0;
    color: var(--cor-cream);
}

.cta-compra-block .section-eyebrow {
    color: rgba(255, 241, 225, 0.85);
}

.cta-compra-block h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    margin-bottom: 0.65rem;
    color: var(--cor-cream);
}

.cta-livro-img {
    display: block;
    max-width: min(280px, 55vw);
    margin: 1rem auto 1.25rem;
    filter: drop-shadow(0 12px 28px rgba(29, 29, 27, 0.2));
}

.cta-compra-block p {
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    max-width: 480px;
    margin: 0 auto 1.25rem;
    line-height: 1.6;
    color: var(--cor-cream);
}

.cta-compra-block .btn-compra--claro {
    font-size: 0.85rem;
    padding: 0.7rem 1.75rem;
}

.cta-compra-block .container {
    width: 100%;
}

/* ---- Footer ---- */

.site-footer {
    color: var(--cor-cream);
    padding: 2.75rem 0 2rem;
}

.site-footer:not(.site-footer--merged) {
    background-color: var(--cor-laranja);
}

.site-footer.site-footer--merged,
.section-compra-footer .site-footer {
    margin-top: auto;
    flex-shrink: 0;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 2rem 0 1.75rem;
    border-top: 1px solid rgba(255, 241, 225, 0.15);
}

.site-footer h5 {
    font-family: var(--font-titulo);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--cor-cream);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.site-footer a {
    color: var(--cor-cream);
    transition: opacity 0.2s;
}

.site-footer a:hover {
    opacity: 0.8;
    color: var(--cor-cream);
}

.footer-contato {
    font-family: var(--font-subtitulo);
    font-weight: 500;
    font-size: 1rem;
}

.footer-contato i {
    margin-right: 0.5rem;
    opacity: 0.9;
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 0;
}

.footer-social-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 0.75rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    margin-right: 0.5rem;
    font-size: 1.1rem;
    transition: background 0.2s, transform 0.2s;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
    opacity: 1;
}

.footer-copy {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 241, 225, 0.2);
    font-size: 0.8rem;
    opacity: 0.75;
    text-align: center;
}

/* ---- Modal ---- */

.modal-compra .modal-content {
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(29, 29, 27, 0.2);
}

.modal-compra .modal-header {
    background-color: var(--cor-laranja);
    color: var(--cor-cream);
    border-bottom: none;
    padding: 1.25rem 1.5rem;
}

.modal-compra .modal-title {
    font-family: var(--font-titulo);
    font-weight: 800;
    font-size: 1.15rem;
}

.modal-compra .modal-body {
    padding: 1.5rem;
}

.modal-compra .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-compra .form-label {
    font-family: var(--font-subtitulo);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: var(--cor-texto-suave);
}

.modal-compra .form-control {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(29, 29, 27, 0.15);
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
}

.modal-compra .form-control:focus {
    border-color: var(--cor-verde);
    box-shadow: 0 0 0 0.2rem rgba(134, 154, 66, 0.2);
}

/* ---- Animações de entrada ---- */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */

@media (max-width: 767.98px) {
    body {
        font-size: 1rem;
    }

    .intro-livro-img {
        max-height: min(70vw, 420px);
    }

    .intro-texto--col {
        text-align: left;
    }

    .faq-cta {
        text-align: center;
    }
}

/* ---- Mobile: rolagem livre (sem snap) ---- */

@media (max-width: 991.98px) {
    html,
    body {
        height: auto;
        overflow-y: auto;
        scroll-snap-type: none;
    }

    #site-sections {
        height: auto;
        overflow: visible;
    }

    .snap-section {
        height: auto !important;
        min-height: 100dvh;
        max-height: none !important;
        overflow: visible !important;
        scroll-snap-align: none !important;
        scroll-snap-stop: normal !important;
    }

    .section-panel,
    .intro-section .section-panel,
    .faq-section .section-panel,
    .section-compra-footer .section-panel,
    #logica .section-panel {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        overscroll-behavior: auto !important;
    }

    .intro-wide,
    .faq-wide,
    .faq-accordion-wrap,
    .intro-layout__content {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
}
