:root {
    --primary-color: #5c7a61; /* Sage Green */
    --secondary-color: #8b6b4a; /* Earthy Brown */
    --accent-color: #d4a373; /* Soft Gold/Orange */
    --bg-light: #f0f2eb; /* Light Cream */
    --bg-dark: #2f3e33; /* Dark Green */
    --text-main: #2c3e30; /* Dark Green/Black */
    --text-light: #f9f9f9;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--bg-dark);
}

p {
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

.narrow-container {
    max-width: 800px;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #fff;
    color: var(--secondary-color);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-dark {
    background-color: var(--bg-dark);
    color: #fff;
}

.btn-dark:hover {
    background-color: #1a261e;
}

.btn-outline {
    border: 1px solid var(--text-main);
    background: transparent;
}

.btn-nav {
    background-color: var(--bg-dark);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(240, 242, 235, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bg-dark);
}

.nav-links {
    display: none;
}

.nav-links a {
    margin-left: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        align-items: center;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background: url('img/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(47, 62, 51, 0.4), rgba(47, 62, 51, 0.8));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subtitle {
    display: block;
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 300;
    margin-top: 0.5rem;
}

.social-proof {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    gap: 15px;
}

.avatars {
    display: flex;
    align-items: center;
}

.avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin-left: -12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.avatar:first-child {
    margin-left: 0;
}

.book-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

.book-cover img {
    width: 130px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 5px;
    transition: transform 0.5s ease;
}

.book-cover img:hover {
    transform: translateY(-10px) rotateY(10deg);
}

.book-details {
    margin-top: 2rem;
    text-align: center;
}

.price-tag {
    margin-top: 1rem;
    font-family: var(--font-heading);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin: 5px 0;
}

.price-old {
    text-decoration: line-through;
    color: #e0e0e0;
    font-weight: 500;
    opacity: 0.9;
    font-size: 1.3rem;
    display: block;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.price-installment {
    font-family: var(--font-body);
    font-size: 0.9rem;
    opacity: 0.8;
}

.scarcity {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.arrow-down {
    margin-top: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* Banner Upsell */
.banner-upsell {
    background-color: #fff;
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

/* Text Section */
.text-section {
    padding: 50px 0;
    text-align: center;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 2rem;
}

.text-block p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Discovery Section */
.discovery-section {
    background-color: #e3e8e1; /* Pale Green */
    padding: 80px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.image-wrapper img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.content-wrapper h2 {
    color: var(--primary-color);
}

.discovery-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.discovery-list li i {
    margin-right: 15px;
    color: var(--secondary-color);
}

/* Quote Section */
.quote-section {
    padding: 40px 20px; /* Padding simétrico */
    min-height: 400px; /* Altura mínima para centralização vertical */
    background: url('https://images.unsplash.com/photo-1500468776705-d374e1e39e61?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover fixed no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47, 62, 51, 0.6);
}

.quote-section blockquote {
    position: relative;
    z-index: 2;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
}

/* Features */
.features-section {
    padding: 50px 0;
}

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

.feature-card {
    text-align: center;
    padding: 20px;
}

.feature-card i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Bundle Section */
.bundle-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
    color: #fff;
}

.bundle-card {
    background-color: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column-reverse;
    gap: 40px;
}

.bundle-content h2 {
    color: #fff;
}

.bundle-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.bundle-item i {
    margin-right: 10px;
    color: var(--accent-color);
    margin-top: 5px;
}

.bundle-note {
    font-style: italic;
    margin: 20px 0;
    color: var(--accent-color);
}

.bundle-image {
    position: relative;
    text-align: center;
}

.bundle-image img {
    max-width: 100%;
    border-radius: 10px;
}

.discount-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--accent-color);
    color: #000;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: rotate(15deg);
}

/* Testimonials */
.testimonials-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.testimonial-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}

.testimonial-card {
    min-width: 300px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    scroll-snap-align: center;
}

.stars {
    color: #ffc107;
    margin-bottom: 15px;
}

.author {
    margin-top: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

/* FAQ */
.faq-section {
    padding: 30px 0 80px; /* Reduzido padding superior ainda mais */
    background-color: var(--bg-dark);
    color: #fff;
}

.faq-section .section-header h2 {
    color: #fff; /* Garante que o título seja branco */
}

.faq-section .section-header p {
    color: rgba(255, 255, 255, 0.8); /* Subtítulo em branco semi-transparente */
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.accordion-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.accordion-header {
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    color: #fff;
    text-align: left;
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header i {
    transition: transform 0.3s;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    opacity: 0.8;
}

.accordion-content p {
    padding-bottom: 20px;
}

/* Footer */
.footer {
    padding: 80px 0 20px;
    background-color: #e3e8e1;
    text-align: center;
}

.footer-cta {
    max-width: 600px;
    margin: 0 auto 50px;
}

.footer-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.circle-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
}

.circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-links {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.social-links a {
    color: var(--bg-dark);
    font-size: 0.9rem;
}

/* Loading Animation */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading span {
    visibility: hidden;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Desktop Media Queries */
@media (min-width: 768px) {
    h1 { font-size: 4rem; }
    
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
    
    .bundle-card {
        flex-direction: row;
        align-items: center;
    }
    
    .hero-content {
        flex-direction: row;
        justify-content: center;
        gap: 50px;
        text-align: left;
    }

    .hero-content h1 {
        order: 1;
    }
    
    .book-showcase {
        order: 2;
        margin-top: 0;
    }
    
    .hero-content > div:first-child { /* Targets the text part wrapper if I added one, but I didn't wrap text separate from h1 in hero. Adjusting below */
        flex: 1;
    }
}

/* Fix for hero layout on desktop to match image better */
@media (min-width: 992px) {
    .hero-content {
        max-width: 1000px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        text-align: left;
        align-items: center;
    }

    .hero-content > h1, 
    .hero-content > .social-proof {
        grid-column: 1;
    }
    
    .book-showcase {
        grid-column: 2;
        grid-row: 1 / span 3;
    }
}

@media (max-width: 768px) {
    .social-links {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .social-links a {
        width: 100%;
        justify-content: center;
        padding: 10px;
        background: rgba(255,255,255,0.5);
        border-radius: 8px;
    }

    .footer-bottom {
        flex-direction: row;
        gap: 15px;
        padding-bottom: 20px;
        align-items: center;
    }
    
    .footer-bottom a {
        display: inline-block;
        padding: 5px;
    }
}

/* Guarantee Box - Alta Legibilidade */
.guarantee-box {
    background: rgba(255, 255, 255, 0.98) !important;
    padding: 40px !important;
    border-radius: 10px !important;
    color: #1a1a1a !important; /* Preto quase puro para máximo contraste */
    max-width: 800px !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 2 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

.guarantee-box h2 {
    color: var(--bg-dark) !important;
    font-weight: 600 !important;
}

.guarantee-box p {
    color: #1a1a1a !important;
    line-height: 1.8 !important;
    font-size: 1.05rem !important;
}

/* === Desktop Fixes for Version A === */
@media (min-width: 992px) {
    /* Restaurar padding e layout Hero */
    .hero {
        padding-top: 140px !important; /* Espaço para navbar desktop */
        height: 100vh;
        min-height: 700px;
        display: flex;
        align-items: center;
    }

    .hero .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: center;
        text-align: left;
        max-width: 1200px;
    }

    /* Elementos do Hero - Lado Esquerdo */
    .hero h1 {
        grid-column: 1;
        grid-row: 2;
        font-size: 3.5rem !important;
        margin-bottom: 20px !important;
    }

    .hero .social-proof {
        grid-column: 1;
        grid-row: 1;
        justify-content: flex-start;
        padding: 0 !important;
        margin-bottom: 20px !important;
    }
    
    .hero .social-proof span {
        font-size: 0.9rem !important;
    }

    /* Elementos do Hero - Lado Direito (Livro + CTA) */
    .book-showcase {
        grid-column: 2;
        grid-row: 1 / span 3;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .book-cover {
        margin-bottom: 20px !important;
    }

    .book-cover img {
        width: 240px !important; /* Restaurar tamanho desktop */
        height: auto !important;
    }

    .book-details {
        text-align: center;
    }

    .btn-primary {
        font-size: 1.1rem !important;
        padding: 15px 30px !important;
    }
    
    /* Restaurar visibilidade da navbar no desktop se necessário */
    .navbar {
        display: block !important;
    }
}
