@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   CSS VARIABLES & SYSTEM DESIGN
   ========================================================================== */
:root {
    /* Color Palette */
    --color-bg-beige: #FAF8F5;
    --color-bg-white: #FFFFFF;
    --color-sage: #6E8A78;
    --color-sage-light: #F0F4F1;
    --color-sage-dark: #3F5045;
    --color-burnt-orange: #D96B43;
    --color-burnt-orange-hover: #C55E38;
    --color-text-main: #2C3530;
    --color-text-muted: #5E6A62;
    --color-border: #E8ECE9;

    /* Typography */
    --font-title: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-hero: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);

    /* Shadows & Borders */
    --shadow-subtle: 0 4px 20px rgba(110, 138, 120, 0.04);
    --shadow-medium: 0 10px 30px rgba(110, 138, 120, 0.08);
    --radius-lg: 16px;
    --radius-md: 12px;
    
    /* Layout Constants */
    --container-width: 1100px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

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

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

/* ==========================================================================
   REUSABLE UTILITIES
   ========================================================================== */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

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

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-burnt-orange);
    color: var(--color-bg-white);
    padding: 16px 36px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(217, 107, 67, 0.2);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background-color: var(--color-burnt-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 107, 67, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--color-sage-dark);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.15rem;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(250, 248, 255, 0.0);
    border-bottom: 1px solid rgba(232, 236, 233, 0.0);
    transition: var(--transition-smooth);
}

/* Navbar active state on scroll */
.navbar.scrolled {
    background-color: rgba(250, 248, 255, 0.85);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled .container {
    padding: 8px 0;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-sage-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    font-weight: 400;
    color: var(--color-text-muted);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

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

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

.nav-cta {
    background-color: var(--color-sage-light);
    color: var(--color-sage-dark);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-cta:hover {
    background-color: var(--color-sage);
    color: var(--color-bg-white);
}

/* ==========================================================================
   HERO SECTION (THE FIRST VIEWPORT)
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(44, 53, 48, 0.45), rgba(44, 53, 48, 0.55)), url('hero_kitchen.jpg') no-repeat center center/cover;
    color: var(--color-bg-white);
    text-align: center;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    position: relative;
}

/* Fading elements styling */
.hero-phrase {
    font-family: var(--font-title);
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.25;
    opacity: 0;
    transform: translateY(15px);
    transition: var(--transition-hero);
    position: absolute;
    width: 100%;
    pointer-events: none;
}

.hero-phrase.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Final screen components */
.hero-final {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(15px);
    transition: var(--transition-hero);
    pointer-events: none;
    position: absolute;
    width: 100%;
}

.hero-final.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.hero-final h1 {
    font-size: 3.2rem;
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-final p {
    color: rgba(250, 248, 255, 0.9);
    font-size: 1.2rem;
    max-width: 620px;
    margin-bottom: 36px;
    line-height: 1.6;
    font-weight: 300;
}

/* Scroll indicator animation */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-indicator.visible {
    opacity: 0.7;
}

.scroll-indicator::after {
    content: '';
    width: 1px;
    height: 40px;
    background-color: var(--color-bg-white);
    animation: scroll-line 2s infinite ease-in-out;
    transform-origin: top;
}

@keyframes scroll-line {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }
    50% {
        transform: scaleY(1);
        opacity: 0.8;
    }
    100% {
        transform: scaleY(0);
        transform-origin: bottom;
        opacity: 0;
    }
}

/* ==========================================================================
   PHILOSOPHY SECTION
   ========================================================================== */
.philosophy {
    background-color: var(--color-bg-beige);
    position: relative;
}

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

.philosophy-text h2 {
    font-size: 2.6rem;
    color: var(--color-sage-dark);
    margin-bottom: 24px;
    line-height: 1.2;
}

.philosophy-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.philosophy-illustration {
    background-color: var(--color-sage-light);
    padding: 50px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: var(--shadow-subtle);
}

.ill-card {
    background: var(--color-bg-white);
    padding: 24px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-sage);
    box-shadow: var(--shadow-subtle);
}

.ill-card h4 {
    font-size: 1.1rem;
    color: var(--color-sage-dark);
    margin-bottom: 6px;
}

.ill-card p {
    font-size: 0.95rem;
}

/* ==========================================================================
   THE 21-DAY JOURNEY (PROGRAMA)
   ========================================================================== */
.journey {
    background-color: var(--color-bg-white);
}

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

.journey-card {
    background-color: var(--color-bg-beige);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.journey-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
    border-color: var(--color-sage);
}

.journey-week {
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-sage);
    margin-bottom: 12px;
}

.journey-card h3 {
    font-size: 1.6rem;
    color: var(--color-sage-dark);
    margin-bottom: 20px;
}

.journey-list {
    list-style: none;
    margin-top: auto;
}

.journey-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    font-size: 0.98rem;
    color: var(--color-text-muted);
}

.journey-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-sage);
    font-weight: 700;
    font-size: 1.1rem;
}

.journey-list li:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   WHAT IS INCLUDED SECTION
   ========================================================================== */
.included {
    background-color: var(--color-bg-beige);
}

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

.included-item {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    display: flex;
    gap: 24px;
    transition: var(--transition-smooth);
}

.included-item:hover {
    box-shadow: var(--shadow-subtle);
    border-color: var(--color-sage-light);
}

.included-icon {
    font-size: 2.2rem;
    line-height: 1;
    display: flex;
    align-items: flex-start;
}

.included-content h3 {
    font-size: 1.3rem;
    color: var(--color-sage-dark);
    margin-bottom: 10px;
}

.included-content p {
    font-size: 0.98rem;
    line-height: 1.5;
}

/* ==========================================================================
   SCIENTIFIC BASIS SECTION
   ========================================================================== */
.science {
    background-color: var(--color-sage-dark);
    color: var(--color-bg-white);
}

.science .section-header h2 {
    color: var(--color-bg-white);
}

.science .section-header p {
    color: rgba(250, 248, 255, 0.85);
}

.science-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.science-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.science-text p {
    color: rgba(250, 248, 255, 0.85);
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.science-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stat-box {
    background-color: rgba(250, 248, 255, 0.08);
    border: 1px solid rgba(250, 248, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: var(--transition-smooth);
}

.stat-box:hover {
    background-color: rgba(250, 248, 255, 0.12);
}

.stat-num {
    font-family: var(--font-title);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-burnt-orange);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-box h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.stat-box p {
    font-size: 0.9rem;
    color: rgba(250, 248, 255, 0.75);
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials {
    background-color: var(--color-bg-white);
}

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

.testimonial-card {
    background-color: var(--color-bg-beige);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.testimonial-rating {
    color: var(--color-burnt-orange);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-size: 1rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-sage-light);
}

.testimonial-info h4 {
    font-size: 1rem;
    color: var(--color-sage-dark);
}

.testimonial-info span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq {
    background-color: var(--color-bg-beige);
}

.faq-list {
    max-width: 780px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-question {
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-sage-dark);
    user-select: none;
}

.faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
    transition: var(--transition-smooth);
}

.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--color-sage);
    transition: var(--transition-smooth);
}

.faq-icon::before {
    top: 11px;
    left: 4px;
    width: 16px;
    height: 2px;
}

.faq-icon::after {
    top: 4px;
    left: 11px;
    width: 2px;
    height: 16px;
}

.faq-item.active .faq-icon {
    transform: rotate(135deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
    padding: 0 30px 24px 30px;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* ==========================================================================
   FINAL CALL TO ACTION SECTION
   ========================================================================== */
.final-cta {
    background: linear-gradient(to bottom, var(--color-bg-beige), var(--color-sage-light));
    text-align: center;
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    box-shadow: var(--shadow-medium);
}

.cta-box h2 {
    font-size: 2.8rem;
    color: var(--color-sage-dark);
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.cta-pricing {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.pricing-value {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.pricing-value span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.pricing-sub {
    font-size: 0.9rem;
    color: var(--color-sage-dark);
    font-weight: 500;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--color-bg-beige);
    border-top: 1px solid var(--color-border);
    padding: 60px 0 40px 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-sage-dark);
}

.footer-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

.footer-links a:hover {
    color: var(--color-sage);
}

.footer-copy {
    border-top: 1px solid var(--color-border);
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .section-padding {
        padding: 90px 0;
    }
    
    .philosophy-grid,
    .science-grid {
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .journey-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .included-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .philosophy-grid,
    .science-grid {
        grid-template-columns: 1fr;
    }
    
    .philosophy-illustration {
        order: -1;
        padding: 30px;
    }
    
    .hero-final h1 {
        font-size: 2.4rem;
    }
    
    .hero-phrase {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none; /* simple hidden for mobile mockup, or can be hamburger */
    }
    
    .cta-box {
        padding: 40px 20px;
    }
    
    .cta-box h2 {
        font-size: 2rem;
    }
    
    .science-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}
