/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (Acolhedor & Alta Credibilidade para Pais)
   ========================================================================== */
:root {
    /* Color Palette */
    --color-bg-primary: #FCFBFA; /* Marfim quente super elegante */
    --color-bg-secondary: #F4F0EA; /* Bege claro acolhedor */
    --color-bg-glass: rgba(252, 251, 250, 0.85);
    --color-text-primary: #1B2A47; /* Azul Marinho Profundo (Confiança e Credibilidade) */
    --color-text-secondary: #5A6E85; /* Slate Blue suave */
    --color-accent-gold: #C5A880; /* Dourado Premium */
    --color-accent-gold-dark: #A88C64;
    --color-whatsapp: #25D366;
    --color-whatsapp-hover: #20ba59;
    --color-border: #EBDCD0; /* Borda suave bege */
    --color-border-glass: rgba(235, 220, 208, 0.4);
    
    /* Typography */
    --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Box Shadows */
    --shadow-sm: 0 2px 8px rgba(27, 42, 71, 0.02);
    --shadow-md: 0 8px 30px rgba(27, 42, 71, 0.04);
    --shadow-lg: 0 20px 40px rgba(27, 42, 71, 0.08);
    --shadow-glass: 0 8px 32px 0 rgba(27, 42, 71, 0.03);
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 24px;
    padding-left: 24px;
}

h1, h2, h3, h4 {
    font-family: var(--font-headings);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    font-weight: 400;
    color: var(--color-text-secondary);
}

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

/* ==========================================================================
   SHARED UI COMPONENTS
   ========================================================================== */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--color-bg-secondary);
    color: var(--color-accent-gold-dark);
    border: 1px solid var(--color-border);
    margin-bottom: 20px;
}

.badge-gold {
    background-color: rgba(197, 168, 128, 0.12);
    color: var(--color-accent-gold-dark);
    border-color: rgba(197, 168, 128, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-headings);
    font-weight: 600;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-xl {
    padding: 18px 40px;
    font-size: 1.15rem;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.3);
    width: 100%;
}

.btn-whatsapp {
    background-color: var(--color-whatsapp);
    color: #ffffff;
}

.btn-whatsapp:hover {
    background-color: var(--color-whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
}

.btn-dark {
    background-color: var(--color-text-primary);
    color: #ffffff;
}

.btn-dark:hover {
    background-color: #0b1424;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 42, 71, 0.15);
}

.icon-svg {
    width: 1.25rem;
    height: 1.25rem;
}

.btn-xl .icon-svg {
    width: 1.45rem;
    height: 1.45rem;
}

/* Pulse animation */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Sections */
.section {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.section-tag {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent-gold-dark);
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2rem;
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/* Scroll Reveal animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(252, 251, 250, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: var(--font-headings);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
}

.logo-gold {
    color: var(--color-accent-gold-dark);
}

.logo-light {
    color: var(--color-text-primary);
    margin-left: 2px;
}

/* ==========================================================================
   HERO & QUIZ SECTION
   ========================================================================== */
.hero-quiz-section {
    position: relative;
    padding-top: 130px;
    padding-bottom: 80px;
    background-color: var(--color-bg-primary);
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg-blur {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.12) 0%, rgba(252, 251, 250, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-quiz-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-intro {
    max-width: 550px;
}

.hero-title {
    font-size: 3.25rem;
    color: var(--color-text-primary);
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.hero-trust-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--color-bg-primary);
    object-fit: cover;
    margin-left: -8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, z-index 0s;
    cursor: pointer;
    position: relative;
}

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

.avatar-img:hover {
    transform: scale(1.15) translateY(-4px);
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.trust-text {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.trust-text p {
    margin: 0;
}

.trust-text strong {
    color: var(--color-text-primary);
    font-weight: 700;
}

.trust-badge-mini {
    display: inline-block;
    background-color: var(--color-accent-gold-light);
    color: var(--color-accent-gold-dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-benefits {
    list-style: none;
    margin-bottom: 36px;
}

.hero-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1rem;
}

.hero-benefits li span {
    color: var(--color-text-primary);
}

.check-icon {
    width: 20px;
    height: 20px;
    color: var(--color-accent-gold-dark);
    margin-top: 2px;
    flex-shrink: 0;
}

.rating-box {
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rating-stars {
    color: var(--color-accent-gold);
    font-size: 1.15rem;
}

.rating-text {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* QUIZ INTERFACE DESIGN */
.quiz-wrapper {
    width: 100%;
}

.quiz-container {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 36px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.quiz-header {
    margin-bottom: 24px;
}

.quiz-back-btn {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    display: none; /* Controlled by JS */
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 4px 0;
    transition: all 0.2s ease;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quiz-back-btn:hover {
    color: var(--color-accent-gold-dark);
}

.quiz-back-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.quiz-back-btn:hover svg {
    transform: translateX(-2px);
}

.quiz-step-indicator {
    font-family: var(--font-headings);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent-gold-dark);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 8px;
}

.quiz-progress-track {
    width: 100%;
    height: 6px;
    background-color: var(--color-bg-secondary);
    border-radius: 100px;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    background-color: var(--color-accent-gold);
    border-radius: 100px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.quiz-step.active {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz-question-title {
    font-size: 1.35rem;
    color: var(--color-text-primary);
    margin-bottom: 24px;
    font-weight: 700;
}

.quiz-step-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-top: -16px;
    margin-bottom: 20px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.quiz-option-btn {
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 16px 20px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition-smooth);
    width: 100%;
}

.quiz-option-btn:hover {
    border-color: var(--color-accent-gold);
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.option-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.option-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

/* Spinner Loader */
#quiz-loading-step {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.quiz-loader-content {
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--color-bg-secondary);
    border-top: 4px solid var(--color-accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

#quiz-loading-step h3 {
    font-size: 1.2rem;
    margin-top: 10px;
}

#quiz-loading-step p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* Result step styles */
#quiz-result-step {
    text-align: center;
}

.quiz-result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.quiz-result-content h2 {
    font-size: 1.6rem;
    color: var(--color-text-primary);
}

.result-text {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    max-width: 320px;
}

.result-box {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 16px;
    font-size: 0.85rem;
    color: var(--color-text-primary);
    text-align: left;
    margin-bottom: 8px;
}

.under-btn-text {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-top: -6px;
}

/* ==========================================================================
   COMPACT GALLERY SECTION (Social Proof)
   ========================================================================== */
.compact-gallery-section {
    background-color: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 15px 0;
    display: flex;
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 45s linear infinite;
}

.carousel-slide {
    flex-shrink: 0;
    width: 280px;
    padding: 0 10px;
    box-sizing: border-box;
}

.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-md);
}

.gallery-img-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(to top, rgba(27, 42, 71, 0.9) 0%, rgba(27, 42, 71, 0) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-img-container img {
    transform: scale(1.06);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-details {
    color: #ffffff;
}

.gallery-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent-gold);
    margin-bottom: 4px;
    display: block;
}

.gallery-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Marquee Themes */
.gallery-themes-marquee {
    background-color: var(--color-bg-primary);
    padding: 16px 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-top: 40px;
}

.marquee-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-accent-gold-dark);
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
    background-color: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    display: inline-block;
    justify-content: center;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Tablet Layout (1024px) */
@media (max-width: 1024px) {
    .hero-quiz-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-intro {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-benefits {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rating-box {
        align-items: center;
    }
    
    .quiz-wrapper {
        max-width: 580px;
        margin: 0 auto;
    }
}

/* Phablet/Mobile (768px) */
@media (max-width: 768px) {
    .hero-quiz-section {
        padding-top: 100px;
        padding-bottom: 50px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .quiz-container {
        padding: 24px;
        min-height: auto;
    }
    
    .carousel-slide {
        width: 220px;
    }
}

/* Extra Small Mobile (480px) */
@media (max-width: 480px) {
    .container {
        padding-right: 16px;
        padding-left: 16px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-benefits li {
        font-size: 0.9rem;
    }
    
    .quiz-question-title {
        font-size: 1.15rem;
        margin-bottom: 18px;
    }
    
    .quiz-option-btn {
        padding: 14px 16px;
        gap: 10px;
    }
    
    .option-icon {
        font-size: 1.25rem;
    }
    
    .option-text {
        font-size: 0.85rem;
    }
    
    .btn-xl {
        padding: 16px 28px;
        font-size: 1rem;
    }
}
