:root {
    --bg-color: #000000; /* Fundo bem escuro */
    --text-color: #ffffff;
    --accent-color: #7bd27b; /* Verde principal (mais claro) */
    --accent-dark: #56b456;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    text-align: center;
}

.page {
    max-width: none;
    margin: 0;
    min-height: 100vh;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

.whatsapp-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.whatsapp-fab.visible {
    opacity: 1;
    pointer-events: auto;
}

.whatsapp-button {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    background: #25d366;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.whatsapp-button img {
    width: 30px;
    height: 30px;
}

.main-nav {
    padding: 14px 24px;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 40px;
    padding: 2px;
    border-radius: 999px;
    background: #05230e;
    overflow: hidden;
}
.nav-logo img,
.nav-logo video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 18px;
}

.nav-links a {
    margin: 0;
    padding-bottom: 6px;
    border-bottom: 3px solid transparent;
}

.main-nav a {
    color: #0b1a0b;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.main-nav a:hover {
    text-decoration: none;
}

.nav-links a.is-active {
    border-bottom-color: #0b1a0b;
}

.container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 50px 20px 70px;
}

.hero h1 {
    font-size: 2.6rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero h1 span {
    color: var(--accent-color);
}

.hero .view-title {
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.hero p {
    max-width: 760px;
    margin: 0 auto 25px;
}

.btn-primary {
    display: inline-block;
    text-decoration: none;
    background-color: var(--accent-color);
    color: #0b1a0b;
    border: none;
    padding: 15px 34px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--accent-dark);
}

.products {
    margin-top: 60px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.products-header {
    text-align: center;
    margin-bottom: 40px;
}

.products-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 700;
}

.products-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
}

.product-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    text-align: left;
    gap: 50px;
    padding: 0;
}

.product-item--long {
    align-items: flex-start;
    gap: 56px;
}

.product-item--long .product-text {
    flex: 1;
    max-width: 640px;
}

.product-item--long .product-img {
    flex: 0 0 36%;
    align-self: flex-start;
}

.product-item--long .product-img img {
    max-width: 380px;
}

.product-item--long h3 {
    color: var(--accent-color);
    font-size: 1.05rem;
    margin: 18px 0 8px 0;
}

.product-item--long ul {
    margin: 8px 0 14px 18px;
}

.product-item.reverse {
    flex-direction: row-reverse;
}

.product-text {
    flex: 0 0 55%;
    padding: 0;
}

.product-text h2 {
    margin-top: 0;
    color: var(--accent-color);
}

.product-text p {
    margin-bottom: 16px;
}

.product-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.product-buttons a {
    display: inline-block;
}

.product-img {
    flex: 0 0 40%;
}

.product-img img {
    max-width: 340px;
    height: auto;
    border-radius: 0;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.65));
}

.product-img--livro-quantico {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}
.product-img--livro-quantico img {
    flex: 1 1 200px;
}
.product-img--livro-quantico .product-img-mockup {
    max-width: 260px;
}

.btn-secondary {
    display: inline-block;
    text-decoration: none;
    background: var(--accent-color);
    border: none;
    color: #0b1a0b;
    padding: 14px 34px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 700;
    min-width: 180px;
    text-transform: uppercase;
}

.btn-secondary:hover {
    background: var(--accent-dark);
}

.authors {
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
}

.authors-text {
    flex: 1.2;
}

.authors h3 {
    margin-bottom: 10px;
    color: var(--accent-color);
}

.authors p {
    max-width: 520px;
    margin: 0;
}

.authors-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.authors img {
    max-width: 380px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Botão menu mobile (toggle) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    border: 0;
    background: rgba(5, 35, 14, 0.15);
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2.5px;
    width: 22px;
    background: #05230e;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
    .container {
        padding: 24px 16px 40px;
    }

    .main-nav {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        width: 100%;
        order: 99;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border-top: 1px solid rgba(5, 35, 14, 0.25);
        padding-top: 12px;
        margin-top: 4px;
    }

    .nav-links a {
        margin: 0;
        padding: 10px 0;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(5, 35, 14, 0.12);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-logo {
        width: 100px;
        height: 48px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .products {
        margin-top: 40px;
    }

    .product-item,
    .product-item.reverse {
        flex-direction: column;
        text-align: left;
    }

    /* em telas menores, sempre mostrar a imagem primeiro */
    .product-item.reverse .product-img {
        order: -1;
    }

    .authors {
        flex-direction: column;
        text-align: left;
    }

    .authors-image {
        justify-content: center;
    }
}

.cta-final {
    margin-top: 60px;
}

.cta-final h2 {
    color: var(--accent-color);
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page main {
    flex: 1;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

footer {
    padding: 20px;
    background: var(--accent-color);
    font-size: 0.85rem;
    color: #0b1a0b;
    font-weight: 600;
}

.footer-nav {
    margin-bottom: 6px;
}

.footer-nav a {
    margin: 0 10px;
    color: #0b1a0b;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.footer-nav a:hover {
    text-decoration: none;
}

/* ---------- Página Curso ---------- */
.view-curso .container-curso {
    max-width: 960px;
    padding-bottom: 80px; /* espaço para a barra fixa */
}

.view-curso .hero-curso {
    text-align: left;
}

.curso-abertura {
    font-size: 1.05rem;
    margin: 0 0 16px 0;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.curso-topo {
    display: flex;
    align-items: flex-start;
    gap: 36px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.curso-intro {
    flex: 1;
    min-width: 260px;
}

.curso-imagem-destaque {
    text-align: center;
    margin-bottom: 40px;
}

.curso-imagem-destaque img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.curso-lead {
    font-size: 1.1rem;
    margin: 0 0 24px 0;
    line-height: 1.65;
}

.hero-curso .btn-comprar-curso {
    margin-top: 16px;
    margin-bottom: 24px;
}

.curso-preco-box {
    background: rgba(10, 18, 12, 0.85);
    border: 1px solid rgba(123, 210, 123, 0.2);
    border-radius: 14px;
    padding: 28px 24px;
    margin-top: 32px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.curso-preco-box .price-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    margin: 0 0 16px 0;
    font-weight: 600;
}

.curso-preco-box .price-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    margin-bottom: 20px;
}

.curso-preco-box .price-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    min-width: 140px;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.curso-preco-box .price-option-destaque {
    background: rgba(123, 210, 123, 0.07);
    border: 1px solid rgba(123, 210, 123, 0.25);
}

.curso-preco-box .price-option-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.55);
}

.curso-preco-box .price-option-value {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.curso-preco-box .price-option-destaque .price-option-value {
    font-size: 1.15rem;
    color: var(--accent-color);
}

.curso-preco-box .price-divider {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

.btn-comprar-curso {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    margin-top: 8px;
}

.curso-imagem-wrap {
    flex: 0 0 320px;
    align-self: stretch;
}

.curso-imagem-wrap img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.curso-conteudo {
    max-width: 720px;
}

.curso-conteudo h3 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin: 28px 0 12px 0;
}

.curso-conteudo h3:first-child {
    margin-top: 0;
}

.curso-conteudo ul {
    margin: 0 0 16px 0;
    padding-left: 1.4rem;
}

.curso-conteudo li {
    margin-bottom: 8px;
}

.curso-modulos li {
    margin-bottom: 10px;
}

.curso-cta-final {
    margin-top: 36px;
    padding: 24px 0;
    border-top: 1px solid rgba(46, 204, 113, 0.25);
}

.curso-cta-final p {
    margin-bottom: 20px;
}

/* Barra fixa: Comprar agora sempre visível na página do curso */
.curso-cta-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(5, 10, 5, 0.97);
    border-top: 2px solid var(--accent-color);
    padding: 14px 20px;
    z-index: 30;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}

.curso-cta-bar-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.curso-cta-preco {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.05rem;
}

.curso-cta-bar .btn-comprar-curso {
    padding: 14px 32px;
    font-size: 1rem;
}

@media (max-width: 900px) {
    .curso-topo {
        flex-direction: column;
        gap: 24px;
    }

    .curso-imagem-wrap {
        flex: 0 0 auto;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    .curso-cta-bar-inner {
        flex-direction: column;
        gap: 12px;
    }

    .curso-imagem-destaque img {
        max-width: 300px;
    }
}

/* ---- Livro Detail Pages: Vertical Flowing Layout ---- */
.view-livro-detail .view-title {
    text-align: center;
    margin-bottom: 48px;
}

.view-livro-detail .hero {
    text-align: left;
}

.view-livro-detail .product-item,
.view-livro-detail .product-item.reverse {
    flex-direction: column;
    align-items: center;
    gap: 36px;
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    padding: 0 0 64px;
    border-bottom: 1px solid rgba(123, 210, 123, 0.1);
}

.view-livro-detail .product-item + .product-item {
    padding-top: 64px;
}

.view-livro-detail .product-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.view-livro-detail .product-img {
    flex: none;
    text-align: center;
    width: 100%;
}

.view-livro-detail .product-img img {
    max-width: 280px;
    border-radius: 8px;
}

.view-livro-detail .product-text {
    flex: none;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}

.view-livro-detail .product-text h2 {
    text-align: center;
    font-size: 1.55rem;
    margin-bottom: 20px;
}

.view-livro-detail .product-text p em {
    display: block;
    text-align: center;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
}

.view-livro-detail .product-text h3 {
    color: var(--accent-color);
    font-size: 1.08rem;
    margin-top: 32px;
    margin-bottom: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(123, 210, 123, 0.1);
}

.view-livro-detail .product-text > .btn-primary {
    display: block;
    width: fit-content;
    margin: 28px auto;
}

.view-livro-detail .product-text ul {
    padding-left: 0;
    list-style: none;
    margin: 16px 0 20px;
}

.view-livro-detail .product-text li {
    padding: 14px 18px;
    margin-bottom: 8px;
    background: rgba(123, 210, 123, 0.035);
    border-left: 3px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
    line-height: 1.65;
}

.view-livro-detail .product-text li strong {
    color: var(--accent-color);
}

@media (max-width: 900px) {
    .view-livro-detail .product-img img {
        max-width: 220px;
    }

    .view-livro-detail .product-item,
    .view-livro-detail .product-item.reverse {
        padding: 0 0 40px;
    }

    .view-livro-detail .product-item + .product-item {
        padding-top: 40px;
    }
}

