/* ==========================================
   Truvana Premium Brand Theme Stylesheet
   ========================================== */

/* Design Tokens & Variables */
:root {
    --color-cream: #F9F6F0;
    --color-cream-dark: #F2EBE1;
    --color-forest: #1E3A27;
    --color-forest-light: #2A4D35;
    --color-forest-dark: #122418;
    --color-terracotta: #C2593F;
    --color-terracotta-dark: #A5432B;
    --color-gold: #C5A059;
    --color-gold-light: #DFCDA5;
    --color-text: #2C3630;
    --color-text-light: #5A695F;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 10px 30px rgba(30, 58, 39, 0.05);
    --shadow-medium: 0 20px 40px rgba(30, 58, 39, 0.08);
}

/* Reset and Base Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-cream);
    color: var(--color-text);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, .serif-title {
    font-family: var(--font-serif);
    color: var(--color-forest);
    font-weight: 600;
    line-height: 1.2;
}

p, .sans-text {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-text);
    font-weight: 300;
}

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

/* Badge Elements */
.section-badge {
    display: inline-block;
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-terracotta);
    margin-bottom: 12px;
}

.section-badge.text-gold {
    color: var(--color-gold);
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-terracotta);
    color: var(--color-cream);
    box-shadow: 0 8px 24px rgba(194, 89, 63, 0.25);
}

.btn-primary:hover {
    background-color: var(--color-terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(194, 89, 63, 0.35);
}

.btn-secondary {
    background-color: var(--color-forest);
    color: var(--color-cream);
    box-shadow: 0 8px 24px rgba(30, 58, 39, 0.15);
}

.btn-secondary:hover {
    background-color: var(--color-forest-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(30, 58, 39, 0.25);
}

.btn-nav {
    padding: 10px 24px;
    font-size: 0.85rem;
    background-color: transparent;
    border: 1px solid var(--color-forest);
    color: var(--color-forest);
}

.btn-nav:hover {
    background-color: var(--color-forest);
    color: var(--color-cream);
}

/* Navigation Header */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 24px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.brand-logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-forest);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: none; /* Mobile first hidden */
}

/* Hero Section (Strictly minimal above-the-fold) */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background-color: var(--color-cream);
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(249, 246, 240, 0.9) 0%, rgba(249, 246, 240, 0.7) 50%, rgba(249, 246, 240, 0.95) 100%);
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-forest);
    border-bottom: 2px solid var(--color-gold);
    padding-bottom: 6px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

/* Problem Section */
.problem-section {
    background-color: var(--color-cream-dark);
    padding: 100px 0;
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 80px;
}

.problem-card {
    background-color: var(--color-cream);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(30, 58, 39, 0.04);
    text-align: left;
    transition: var(--transition-smooth);
}

.problem-card:hover {
    box-shadow: var(--shadow-medium);
}

.problem-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(194, 89, 63, 0.08);
    color: var(--color-terracotta);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.problem-card h3 {
    font-size: 1.35rem;
    margin-bottom: 16px;
    line-height: 1.3;
}

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

.problem-statement {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--color-forest);
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

.statement-highlight {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-cream);
    font-weight: 400;
}

/* How It Works Section */
.how-works-section {
    padding: 100px 0;
    text-align: center;
    background-color: var(--color-cream);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.step-card {
    position: relative;
    padding: 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-gold);
    color: var(--color-cream);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.step-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.step-card p {
    font-size: 1rem;
    color: var(--color-text-light);
    max-width: 280px;
    margin: 0 auto;
}

/* Social Proof / Reviews Section */
.reviews-section {
    background-color: var(--color-cream-dark);
    padding: 100px 0;
    text-align: center;
}

.reviews-slider {
    position: relative;
    max-width: 700px;
    margin: 0 auto 30px;
    min-height: 220px;
}

.review-card {
    background-color: var(--color-cream);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    display: none;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.review-card.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.rating-stars {
    color: var(--color-gold);
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.review-quote {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-style: italic;
    line-height: 1.4;
    color: var(--color-forest);
    margin-bottom: 24px;
}

.reviewer-name {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-terracotta);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 60px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-gold-light);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background-color: var(--color-terracotta);
    transform: scale(1.2);
}

.rating-aggregate {
    display: inline-block;
    border-top: 1px solid rgba(30, 58, 39, 0.1);
    padding-top: 30px;
    width: 100%;
    max-width: 400px;
}

.rating-aggregate .stars {
    color: var(--color-gold);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.aggregate-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-forest);
}

/* Final CTA Section */
.final-cta-section {
    background: linear-gradient(135deg, var(--color-cream-dark) 0%, var(--color-cream) 100%);
    padding: 120px 0;
    text-align: center;
}

.cta-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
}

.cta-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

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

/* Footer styling */
.main-footer {
    background-color: var(--color-forest-dark);
    padding: 40px 0;
    color: var(--color-cream-dark);
    font-size: 0.8rem;
}

.main-footer p {
    color: var(--color-cream-dark);
    opacity: 0.7;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--color-gold);
}

/* Interactive Quiz Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 58, 39, 0.6);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--color-cream);
    width: 100%;
    max-width: 600px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-gold-light);
    position: relative;
    overflow: hidden;
    padding: 40px 30px;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-text-light);
    cursor: pointer;
}

.quiz-container {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.quiz-state.active {
    display: block;
}

/* Progress Bar */
.progress-bar-bg {
    width: 100%;
    height: 6px;
    background-color: var(--color-cream-dark);
    border-radius: 3px;
    margin-bottom: 12px;
}

#quiz-progress-fill {
    height: 100%;
    background-color: var(--color-terracotta);
    border-radius: 3px;
    transition: width 0.3s ease;
}

#quiz-progress-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-light);
    display: block;
    margin-bottom: 30px;
}

/* Question & Options */
#quiz-question-title {
    font-size: 1.6rem;
    margin-bottom: 24px;
}

.quiz-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    background-color: var(--color-cream-dark);
    border: 1px solid rgba(30, 58, 39, 0.05);
    padding: 16px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    text-align: left;
    transition: var(--transition-smooth);
}

.quiz-option:hover {
    background-color: var(--color-forest);
    color: var(--color-cream);
    transform: translateX(4px);
}

/* Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--color-cream-dark);
    border-top: 4px solid var(--color-terracotta);
    border-radius: 50%;
    margin: 0 auto 24px;
    animation: spin 1s linear infinite;
}

/* Results State */
.results-breakdown {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0 30px;
}

.deficiency-item {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 10px;
    align-items: center;
}

.def-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.def-bar {
    grid-column: 1 / 3;
    height: 8px;
    background-color: var(--color-cream-dark);
    border-radius: 4px;
    overflow: hidden;
}

.def-fill {
    height: 100%;
    background-color: var(--color-forest);
    border-radius: 4px;
}

.def-val {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-terracotta);
}

.protocol-card {
    background-color: var(--color-forest);
    padding: 24px;
    border-radius: 16px;
    color: var(--color-cream);
    margin-bottom: 30px;
}

.card-tag {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    font-weight: 600;
}

.protocol-name {
    font-size: 1.25rem;
    color: var(--color-cream);
    margin: 8px 0;
}

.protocol-desc {
    font-size: 0.85rem;
    color: var(--color-gold-light);
    margin-bottom: 16px;
}

.protocol-price {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
}

.price {
    color: var(--color-cream);
}

.shipping {
    color: var(--color-gold);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Responsive Styles for Desktop */
@media (min-width: 768px) {
    .main-header {
        padding: 30px 0;
    }

    .nav-links {
        display: flex;
        gap: 32px;
    }

    .nav-links a {
        font-size: 0.95rem;
        color: var(--color-forest);
        text-decoration: none;
        font-weight: 500;
        transition: var(--transition-smooth);
    }

    .nav-links a:hover {
        color: var(--color-terracotta);
    }

    .hero-section {
        padding-top: 0;
    }

    .hero-overlay {
        background: linear-gradient(to right, rgba(249, 246, 240, 0.95) 30%, rgba(249, 246, 240, 0.6) 70%, rgba(249, 246, 240, 0.1) 100%);
    }

    .hero-container {
        text-align: left;
        max-width: 650px;
        margin-left: 0;
        padding-left: 40px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .step-card::after {
        content: '';
        position: absolute;
        top: 25px;
        right: -50%;
        width: 100%;
        height: 1px;
        border-top: 1px dashed var(--color-gold);
        z-index: 1;
    }

    .step-card:last-child::after {
        display: none;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}
