/* RESET E VARIÁVEIS */
:root {
    /* Cores - Livro 1 (Leve, saúde, luminoso) */
    --bg-light: #F7F9F6;
    --primary-color: #2A5A4A; /* Verde profundo */
    --secondary-color: #D4AF37; /* Dourado suave */
    --accent-color: #8BB39B; /* Verde suave */
    --text-color: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    
    /* Cores - Livro 2 (Sóbrio, premium, vinho) */
    --dark-bg: #1A1A1A;
    --dark-primary: #5C151B; /* Vinho / Bordô */
    --dark-gold: #C5A059;
    --dark-text: #F0E6D2; /* Bege/Areia */
    
    /* Fontes */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Outros */
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --border-radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

/* LOADER */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    color: var(--primary-color);
}

.loader-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: pulse 2s infinite ease-in-out;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-nav {
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 30px;
    color: var(--primary-color) !important;
}

.btn-nav::after {
    display: none;
}

.btn-nav:hover {
    background-color: var(--primary-color);
    color: var(--white) !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* BOTOES E BADGES */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(42, 90, 74, 0.3);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-gold {
    background-color: var(--dark-gold);
    color: var(--dark-bg);
    border: 2px solid var(--dark-gold);
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--dark-gold);
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(139, 179, 155, 0.2);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.badge-gold {
    background-color: rgba(197, 160, 89, 0.15);
    color: var(--dark-gold);
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background-color: #E6B96D;
    top: -100px;
    right: -100px;
    animation: float 15s infinite ease-in-out;
}

.circle-2 {
    width: 500px;
    height: 500px;
    background-color: #8BB39B;
    bottom: -150px;
    left: -150px;
    animation: float 18s infinite ease-in-out reverse;
}

.circle-3 {
    width: 300px;
    height: 300px;
    background-color: #E8F0EA;
    top: 30%;
    left: 40%;
    animation: float 20s infinite ease-in-out 2s;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -50px) rotate(10deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.book-mockup {
    max-width: 350px;
    border-radius: 4px;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.15), -2px -2px 10px rgba(255,255,255,0.8);
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
    z-index: 2;
}

.book-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 400px;
    background: radial-gradient(circle, rgba(230,185,109,0.4) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
}

/* SOBRE O LIVRO E CARDS */
.sobre-livro {
    background-color: var(--white);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.pillar-card {
    background-color: var(--bg-light);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: rgba(42, 90, 74, 0.1);
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: inline-block;
    transition: var(--transition);
}

.pillar-card:hover i {
    transform: scale(1.1);
    color: var(--primary-color);
}

.pillar-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.pillar-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ARVORE DA VIDA - COMPOSIÇÃO CIRCULAR */
.arvore-vida-section {
    background-color: var(--bg-light);
    overflow: hidden;
}

.arvore-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.tree-visual {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-tree {
    width: 120px;
    height: 120px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    box-shadow: 0 0 30px rgba(42, 90, 74, 0.3);
    position: relative;
}

.center-tree::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 1px solid rgba(42, 90, 74, 0.2);
    animation: ping 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.center-tree i {
    font-size: 4rem;
    color: var(--white);
}

.orbit-container {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px dashed rgba(42, 90, 74, 0.2);
    animation: rotate 60s linear infinite;
}

.orbit-item {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    top: 50%;
    left: 50%;
    margin-top: -30px;
    margin-left: -30px;
    color: var(--accent-color);
    font-size: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
}

.orbit-item:hover {
    transform: scale(1.2);
    color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.orbit-item i {
    /* Reverse rotation to keep icons upright */
    animation: rotate-reverse 60s linear infinite;
}

/* Positioning orbit items */
.item-1 { transform: rotate(0deg) translate(250px) rotate(0deg); }
.item-2 { transform: rotate(45deg) translate(250px) rotate(-45deg); }
.item-3 { transform: rotate(90deg) translate(250px) rotate(-90deg); }
.item-4 { transform: rotate(135deg) translate(250px) rotate(-135deg); }
.item-5 { transform: rotate(180deg) translate(250px) rotate(-180deg); }
.item-6 { transform: rotate(225deg) translate(250px) rotate(-225deg); }
.item-7 { transform: rotate(270deg) translate(250px) rotate(-270deg); }
.item-8 { transform: rotate(315deg) translate(250px) rotate(-315deg); }

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
    100% { transform: rotate(-360deg); }
}

.tree-text {
    flex: 1;
    max-width: 400px;
}

.tree-text h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

/* CHAMADA E FORMULÁRIO */
.lancamento {
    background-color: var(--white);
}

.cta-box {
    background-color: var(--primary-color);
    border-radius: 24px;
    padding: 60px;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(42, 90, 74, 0.2);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
}

.cta-box h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.cta-box p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.form-container, .success-message {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 0 auto;
}

.interest-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.2rem;
}

.input-group input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: none;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.input-group input:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.5);
}

.btn-submit {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-color);
    margin-top: 10px;
    padding: 18px;
    font-size: 1.1rem;
}

.btn-submit:hover {
    background-color: #c4a133;
    border-color: #c4a133;
    color: var(--text-color);
}

.success-message.hidden {
    display: none;
}

.success-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* SOBRE O AUTOR */
.autor {
    background-color: var(--bg-light);
}

.autor-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.autor-image {
    flex: 1;
    position: relative;
}

.autor-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}

.autor-image-bg {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    z-index: 1;
}

.autor-content {
    flex: 1;
}

.autor-content h2 {
    font-size: 2.8rem;
    margin-bottom: 24px;
}

.autor-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* PRÓXIMO LANÇAMENTO (LIVRO 2) */
.dark-theme {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

.teaser-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.teaser-content {
    flex: 1;
}

.teaser-title {
    color: var(--dark-gold);
    font-size: 3rem;
    margin-bottom: 8px;
}

.teaser-subtitle {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 24px;
}

.divider-gold {
    width: 60px;
    height: 2px;
    background-color: var(--dark-gold);
    margin-bottom: 24px;
}

.teaser-text {
    font-size: 1.1rem;
    color: rgba(240, 230, 210, 0.8);
    margin-bottom: 40px;
}

.teaser-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.book-mockup-dark {
    max-width: 350px;
    border-radius: 4px;
    box-shadow: 20px 20px 50px rgba(0,0,0,0.5);
    z-index: 2;
    position: relative;
}

.dark-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 400px;
    background: radial-gradient(circle, rgba(92,21,27,0.8) 0%, rgba(26,26,26,0) 70%);
    z-index: 1;
}

/* FOOTER */
.footer {
    background-color: var(--white);
    padding: 60px 0 30px;
    text-align: center;
}

.footer-mission {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.footer-mission h3 {
    font-size: 1.8rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* FAB WHATSAPP */
.fab-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: var(--transition);
}

.fab-whatsapp:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: #1EBE5D;
}

/* ANIMAÇÕES (REVEAL) */
.reveal {
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.fade-up { transform: translateY(40px); }
.fade-down { transform: translateY(-40px); }
.fade-left { transform: translateX(40px); }
.fade-right { transform: translateX(-40px); }
.scale-up { transform: scale(0.9); }
.fade-in { transform: none; }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }
.delay-7 { transition-delay: 0.7s; }
.delay-8 { transition-delay: 0.8s; }

/* RESPONSIVIDADE */
@media (max-width: 992px) {
    .hero-container, .arvore-container, .autor-container, .teaser-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .arvore-vida-section .tree-visual {
        margin: 0 auto 40px;
    }
    
    .arvore-container {
        flex-direction: column-reverse;
    }
    
    .tree-text {
        max-width: 100%;
    }
    
    .cta-box {
        padding: 40px 20px;
    }
    
    .autor-image-bg {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .tree-visual {
        width: 300px;
        height: 300px;
        transform: scale(0.8);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}
