/* 
 * 35 Livros de Colorir Cristãos - Styles
 * Responsive & Modern Design
 */

:root {
    /* Colors */
    --primary: #2563EB;      /* Modern Blue */
    --primary-dark: #1E40AF;
    --secondary: #F59E0B;    /* Warm Amber */
    --accent: #10B981;       /* Success Green */
    --danger: #EF4444;       /* Red for urgency */
    
    --text-main: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F3F4F6;
    --white: #FFFFFF;
    
    /* Crayon Colors */
    --crayon-red: #EF4444;
    --crayon-orange: #F97316;
    --crayon-yellow: #F59E0B;
    --crayon-green: #10B981;
    --crayon-blue: #3B82F6;
    --crayon-purple: #8B5CF6;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: --text-main;
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

section {
    padding: 4rem 1rem;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2.25rem; letter-spacing: -0.025em; }
h2 { font-size: 2rem; text-align: center; margin-bottom: 0.5rem; }
h3 { font-size: 1.25rem; }

.subtitle, .section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.section-subtitle { text-align: center; max-width: 600px; margin: 0 auto 3rem auto; }
.highlight { color: var(--primary); }

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.cta-button:active { transform: translateY(0); }

.center-btn { text-align: center; margin-top: 2rem; }

/* Notification */
.purchase-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--white);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-width: 320px;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: flex-start;
    border-left: 4px solid var(--accent);
}

.purchase-notification.show { transform: translateY(0); }

.close-btn {
    position: absolute;
    top: 5px;
    right: 8px;
    color: var(--text-light);
    font-size: 1.2rem;
    padding: 0 5px;
}

.notification-content { display: flex; gap: 12px; align-items: center; }
.customer-avatar {
    font-size: 2.5rem;
    color: var(--text-light);
    opacity: 0.5;
}

.notification-text { font-size: 0.9rem; }
.customer-name { font-weight: 700; color: var(--text-main); }
.purchase-info { color: var(--accent); font-weight: 500; font-size: 0.85rem; }
.location-time { font-size: 0.75rem; color: var(--text-light); margin-top: 2px; }

/* Hero Section */
.hero {
    padding: 2rem 0;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05) 0%, transparent 40%);
    overflow: hidden;
}

.hero .container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    align-self: flex-start;
}

.hero-content {
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;
}

.hero-text h1 { margin-bottom: 1rem; }
.hero-text .subtitle { font-size: 1.1rem; max-width: 500px; margin-bottom: 2rem; }

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-main);
}

.feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.hero-guarantee-mini {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.image-wrapper {
    position: relative;
    padding: 1rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.hero-book-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 8px;
}

.crayons {
    position: absolute;
    top: -10px;
    left: -10px;
    display: flex;
    gap: 4px;
    z-index: -1;
}

.crayon {
    width: 12px;
    height: 60px;
    border-radius: 4px;
}
.crayon.red { background: var(--crayon-red); transform: rotate(-15deg) translateY(10px); }
.crayon.orange { background: var(--crayon-orange); transform: rotate(-10deg) translateY(5px); }
.crayon.yellow { background: var(--crayon-yellow); transform: rotate(-5deg); }
.crayon.green { background: var(--crayon-green); }
.crayon.blue { background: var(--crayon-blue); transform: rotate(5deg); }
.crayon.purple { background: var(--crayon-purple); transform: rotate(10deg) translateY(5px); }

.floating-badge {
    position: absolute;
    bottom: 20px;
    right: -10px;
    background: var(--white);
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    transform: rotate(-3deg);
    border: 2px solid var(--secondary);
}

.floating-badge span { font-size: 1.5rem; font-weight: 800; color: var(--secondary); }
.floating-badge small { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }

/* Why Choose Section */
.why-choose { background: var(--bg-light); }

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.benefit {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.benefit:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem auto;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.benefit-icon.blue { background: var(--crayon-blue); box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3); }
.benefit-icon.purple { background: var(--crayon-purple); box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3); }
.benefit-icon.green { background: var(--crayon-green); box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3); }
.benefit-icon.orange { background: var(--crayon-orange); box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3); }

.benefit h3 { margin-bottom: 0.75rem; }
.benefit p { color: var(--text-light); font-size: 0.95rem; }

/* Products Carousel */
.products-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s ease-out;
}

.product-image-card {
    min-width: 250px;
    max-width: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.product-image-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-image-card:hover img { transform: scale(1.05); }

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    z-index: 10;
    flex-shrink: 0;
}

.carousel-btn:hover { background: var(--primary); color: var(--white); }

/* Testimonials */
.testimonials { overflow: hidden; }
.testimonials .rating { 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    gap: 0.5rem;
}

.testimonials .stars { color: var(--secondary); font-size: 1.25rem; }

.testimonials-carousel {
    position: relative;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.testimonials-viewport { overflow: hidden; padding: 1rem; }
.testimonials-track { display: flex; gap: 2rem; transition: transform 0.5s ease; }

.testimonial-chat {
    min-width: 280px;
    flex: 0 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
    transition: var(--transition);
    opacity: 0.7;
}

.testimonial-chat.active {
    transform: scale(1);
    opacity: 1;
    z-index: 5;
}

.testimonials-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    color: var(--text-main);
    border: none;
}
.testimonials-btn.prev { left: -20px; }
.testimonials-btn.next { right: -20px; }

/* Pricing Section */
.limited-offer {
    background: linear-gradient(180deg, var(--white) 0%, #EFF6FF 100%);
}

.offer-alert {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    width: 100%;
    justify-content: center;
}

.pricing-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    border: 1px solid var(--bg-light);
}

.pricing-card.premium {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, #FFFFFF 0%, #F0F9FF 100%);
}

.bestseller-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
}

.package-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--bg-light);
    margin-bottom: 1.5rem;
}

.package-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.pricing-card.premium .package-icon { color: var(--secondary); }

.package-desc { color: var(--text-light); font-size: 0.9rem; }

.pricing { text-align: center; margin-bottom: 2rem; }

.price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9rem;
}

.discount-badge {
    background: #DCFCE7;
    color: #166534;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.current-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.savings {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 5px;
}

.features-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }

.feature-item { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; }
.feature-item i { color: var(--accent); }

.included-banner {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.bonus-items {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px dashed var(--primary);
}

.bonus-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}
.bonus-item:last-child { margin-bottom: 0; }

.bonus-icon {
    width: 40px;
    height: 40px;
    background: #EFF6FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.bonus-details { display: flex; flex-direction: column; }
.bonus-details strong { font-size: 0.9rem; }
.bonus-value { font-size: 0.75rem; color: var(--accent); font-weight: 600; }

.buy-button {
    display: block;
    width: 100%;
    padding: 1.25rem;
    text-align: center;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition);
}

.buy-button.basic {
    background: var(--bg-light);
    color: var(--text-main);
}
.buy-button.basic:hover { background: #E5E7EB; }

.buy-button.premium {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}
.buy-button.premium:hover { transform: translateY(-2px); box-shadow: 0 15px 25px rgba(245, 158, 11, 0.4); }

.social-proof {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: var(--white);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--primary);
}

.faq-question[aria-expanded="true"] i { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #F9FAFB;
}

.faq-answer p { padding: 1.25rem; color: var(--text-light); }

/* Guarantee */
.guarantee { background: #F8FAFC; padding: 3rem 1rem; }
.guarantee .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.guarantee-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.guarantee-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--accent);
    box-shadow: var(--shadow-md);
}

.payment-methods {
    display: flex;
    gap: 1.5rem;
    font-size: 2rem;
    color: #9CA3AF;
}

/* Footer */
.footer {
    background: #111827;
    color: var(--white);
    padding: 2rem 0;
    font-size: 0.9rem;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a { color: #9CA3AF; text-decoration: none; transition: 0.2s; }
.footer-links a:hover { color: var(--white); }

/* Animations */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.pulse-btn { animation: pulse 2s infinite; }

/* Media Queries (Responsive) */
@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    
    .hero .container {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
    
    .hero-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .hero-text { max-width: 50%; }
    .product-image { max-width: 45%; }
    
    .features { grid-template-columns: repeat(2, 1fr); }
    
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    
    .products-carousel-container { gap: 2rem; }
    
    .pricing-cards { 
        flex-direction: row; 
        align-items: flex-end;
        justify-content: center; 
    }
    
    .pricing-card { width: 45%; }
    .pricing-card.premium { z-index: 10; transform: scale(1.05); }
    
    .guarantee .container {
        flex-direction: row;
        justify-content: space-around;
        text-align: left;
    }
    
    .guarantee-box { flex-direction: row; }
    
    .footer .container {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .features { grid-template-columns: repeat(4, 1fr); }
    .benefits-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Utility for animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
