/* =========================================
   VARIABLES & DESIGN SYSTEM (PuraBrisa)
========================================= */
:root {
    /* Colors */
    --color-bg: #FDFBF7; /* Ivory */
    --color-text: #2A2A2A; /* Charcoal */
    --color-sage: #5D736A; /* Muted Sage Green */
    --color-orange: #E07A5F; /* Soft Sunset Orange */
    --color-sand: #E6D5C3; /* Sand */
    --color-white: #FFFFFF;
    --color-danger: #8a2a2a; /* Reddish for parasite emphasis */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --container-max-width: 1200px;

    /* Shadows & Transitions */
    --shadow-sm: 0 2px 8px rgba(42, 42, 42, 0.08);
    --shadow-lg: 0 10px 30px rgba(42, 42, 42, 0.15);
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s ease-out;
}

/* =========================================
   RESET & BASE STYLES
========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background-color: var(--color-bg); color: var(--color-text); line-height: 1.7; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 400; line-height: 1.2; margin-bottom: var(--space-sm); color: var(--color-text); }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: var(--space-sm); }
a { color: var(--color-text); text-decoration: none; transition: color var(--transition-fast); }
ul { list-style: none; }
img, video { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: var(--container-max-width); margin: 0 auto; padding: 0 var(--space-sm); }
.text-center { text-align: center; }

/* =========================================
   COMPONENTS
========================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-md);
    font-family: var(--font-body); font-weight: 500; font-size: 1rem; letter-spacing: 0.5px; text-transform: uppercase;
    border: none; cursor: pointer; transition: background-color var(--transition-fast), transform var(--transition-fast); text-align: center;
}
.btn-primary { background-color: var(--color-sage); color: var(--color-white); }
.btn-primary:hover { background-color: #4A5D55; color: var(--color-white); }
.btn-secondary { background-color: transparent; color: var(--color-sage); border: 1px solid var(--color-sage); }
.btn-secondary:hover { background-color: var(--color-sage); color: var(--color-white); }
.btn-secondary.white-btn { color: var(--color-white); border-color: var(--color-white); }
.btn-secondary.white-btn:hover { background-color: var(--color-white); color: var(--color-text); }
.btn-full { width: 100%; }
.btn-large { font-size: 1.1rem; padding: 0 var(--space-lg); }
.btn-small { min-height: 48px; }
.shadow-large { box-shadow: var(--shadow-lg); }

/* =========================================
   ADVANCED ANIMATIONS
========================================= */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity var(--transition-slow), transform var(--transition-slow); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.fade-in-scale { opacity: 0; transform: scale(0.9); transition: opacity var(--transition-slow), transform var(--transition-slow); }
.fade-in-scale.visible { opacity: 1; transform: scale(1); }

.slide-in-left { opacity: 0; transform: translateX(-50px); transition: opacity var(--transition-slow), transform var(--transition-slow); }
.slide-in-left.visible { opacity: 1; transform: translateX(0); }

.slide-in-right { opacity: 0; transform: translateX(50px); transition: opacity var(--transition-slow), transform var(--transition-slow); }
.slide-in-right.visible { opacity: 1; transform: translateX(0); }

.slide-in-bottom { opacity: 0; transform: translateY(50px); transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.slide-in-bottom.visible { opacity: 1; transform: translateY(0); }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(224, 122, 95, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(224, 122, 95, 0); }
    100% { box-shadow: 0 0 0 0 rgba(224, 122, 95, 0); }
}
.pulse-anim { animation: pulse 2s infinite; background-color: var(--color-orange); color: white; }
.pulse-anim:hover { background-color: #d16b51; transform: translateY(-2px); }

/* Parallax Effect background */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* =========================================
   LAYOUT & PAGES (SPA)
========================================= */
.page-section { display: none; padding-top: 80px; min-height: 100vh; }
.page-section.active { display: block; animation: fadeInPage 0.5s ease-out; }
@keyframes fadeInPage { from { opacity: 0; } to { opacity: 1; } }

/* Header Navigation */
.main-header {
    position: fixed; top: 0; left: 0; width: 100%; height: 70px; background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px); display: flex; justify-content: space-between; align-items: center;
    padding: 0 var(--space-sm); z-index: 1000; border-bottom: 1px solid var(--color-sand);
}
.logo a { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; letter-spacing: -0.5px; }
.mobile-menu-toggle { background: none; border: none; cursor: pointer; color: var(--color-text); min-height: 48px; min-width: 48px; display: flex; align-items: center; justify-content: center; }
.main-nav { display: none; position: absolute; top: 70px; left: 0; width: 100%; background-color: var(--color-bg); border-bottom: 1px solid var(--color-sand); box-shadow: var(--shadow-sm); }
.main-nav.open { display: block; max-height: calc(100vh - 70px); overflow-y: auto; }
.main-nav ul { display: flex; flex-direction: column; }
.main-nav a { display: flex; align-items: center; min-height: 48px; padding: var(--space-xs) var(--space-sm); font-weight: 500; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }
.nav-cta { color: var(--color-orange) !important; font-weight: 700 !important; }

/* =========================================
   HOME PAGE
========================================= */
.hero { position: relative; height: calc(100vh - 70px); width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: var(--space-md); text-align: center; }
.hero-video { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 100%; min-height: 100%; width: auto; height: auto; object-fit: cover; z-index: -2; }
.hero-overlay { position: absolute; top:0; left:0; width: 100%; height: 100%; background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7)); }
.hero-content { color: var(--color-white); max-width: 1000px; display: flex; flex-direction: column; align-items: center; gap: var(--space-lg); text-align: center; padding: var(--space-md); }
.hero-text-col { flex: 1; }
.hero-img-col { flex: 0 0 200px; display: none; } /* Hidden on mobile by default if too cramped, but let's just resize it */
.hero-product-img { width: 100%; max-width: 150px; height: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.6)); transform: rotate(-5deg); margin: 0 auto; display: block; }

@media (min-width: 768px) {
    .hero-content { flex-direction: row; text-align: left; }
    .hero-img-col { display: block; flex: 0 0 250px; }
    .hero-product-img { max-width: 100%; }
}
.hero-title { color: var(--color-white); font-size: 3.5rem; margin-bottom: var(--space-sm); text-transform: uppercase; letter-spacing: 1px; }
.hero-subtitle { font-size: 1.25rem; margin-bottom: var(--space-md); opacity: 0.95; font-weight: 400; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }

/* Benefits */
.benefits { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.benefit-card { text-align: center; padding: var(--space-md); background-color: var(--color-white); border: 2px solid var(--color-sage); border-radius: 8px; position: relative; overflow: hidden; }
.benefit-card::before { content: ''; position: absolute; top:0; left:0; width: 100%; height: 4px; background-color: var(--color-sage); }
.benefit-icon { margin-bottom: var(--space-md); display: flex; justify-content: center; }
.benefit-card h3 { font-size: 1.5rem; margin-bottom: var(--space-sm); color: var(--color-sage); }

/* Lifestyle Panels */
.lifestyle-panel { display: flex; flex-direction: column; }
.lifestyle-image { width: 100%; height: 60vh; background-size: cover; background-position: center; background-color: var(--color-sand); }
.placeholder-lifestyle { background-image: url('photo.jpeg'); }
.placeholder-nature { background-image: url('https://images.unsplash.com/photo-1551632811-561732d1e306?auto=format&fit=crop&q=80'); }
.placeholder-texture { background-image: url('https://images.unsplash.com/photo-1616401784845-180882ba9ba8?auto=format&fit=crop&q=80'); }
.lifestyle-text { padding: var(--space-lg) var(--space-md); background-color: var(--color-bg); display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--color-sand); }
.lifestyle-text h2 { margin-bottom: var(--space-md); color: var(--color-sage); }
.lifestyle-text .btn { align-self: flex-start; margin-top: var(--space-sm); }

.quote-block { background-color: var(--color-sage); color: var(--color-white); padding: var(--space-xl) var(--space-sm); }
.quote-block h2 { color: var(--color-white); font-style: italic; font-size: 1.8rem; margin-bottom: var(--space-sm); font-weight: 300; line-height: 1.4; }
.quote-block p { color: var(--color-sand); text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; }

/* =========================================
   PRODUCT PAGE
========================================= */
.product-container { padding: var(--space-xl) var(--space-sm); display: flex; flex-direction: column; gap: var(--space-md); }
.main-product-image { width: 100%; height: 50vh; background: radial-gradient(circle, var(--color-white) 0%, var(--color-sand) 100%); background-image: url('product.png'); background-size: contain; background-repeat: no-repeat; background-position: center; border-radius: 8px; box-shadow: var(--shadow-lg); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.main-product-image:hover { transform: scale(1.05); }
.product-price { font-size: 2rem; font-weight: 600; color: var(--color-sage); margin-bottom: var(--space-sm); font-family: var(--font-heading); }
.product-description { font-size: 1.15rem; margin-bottom: var(--space-md); }
.product-details h3 { font-size: 1.4rem; margin-top: var(--space-lg); border-bottom: 2px solid var(--color-sage); padding-bottom: var(--space-xs); color: var(--color-sage); }
.ingredients-list { margin-top: var(--space-sm); margin-left: 1.5rem; list-style-type: disc; }
.ingredients-list li { margin-bottom: 0.8rem; }
.ingredients-highlight { margin-top: var(--space-xl); padding: var(--space-md); border: 1px solid var(--color-sand); border-radius: 8px; background-color: var(--color-white); display: flex; flex-direction: column; align-items: center; gap: var(--space-md); text-align: center; }
.ingredients-highlight img { width: 120px; height: auto; }
@media (min-width: 768px) {
    .ingredients-highlight { flex-direction: row; text-align: left; align-items: flex-start; }
}
.cta-btn { margin-top: var(--space-lg); width: 100%; height: 60px; font-size: 1.2rem; }

/* =========================================
   STORY & BLOG PAGES
========================================= */
.story-container, .article-container { padding: var(--space-xl) var(--space-sm); max-width: 800px; margin: 0 auto; }
.story-header { text-align: center; margin-bottom: var(--space-xl); }
.story-header .subtitle { font-family: var(--font-heading); font-style: italic; color: var(--color-sage); font-size: 1.5rem; }
.story-content p, .article-content p { font-size: 1.15rem; margin-bottom: var(--space-md); line-height: 1.8; }
.article-content h3 { margin-top: var(--space-lg); margin-bottom: var(--space-xs); color: var(--color-sage); }

/* Article Card Hover Effects */
.article-card { transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s; }
.article-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: var(--color-sage); }
.article-card-badge { background-color: var(--color-sage); color: white; padding: 3px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: bold; display: inline-block; margin-bottom: 10px; }

/* =========================================
   FAQ PAGE
========================================= */
.faq-container { padding: var(--space-xl) var(--space-sm); max-width: 900px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-sand); }
.faq-question { width: 100%; text-align: left; background: none; border: none; font-family: var(--font-heading); font-size: 1.3rem; color: var(--color-text); min-height: 70px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: var(--space-sm) 0; }
.faq-icon { font-size: 1.8rem; color: var(--color-sage); transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); font-weight: 300; }
.faq-item.active .faq-icon { transform: rotate(180deg); color: var(--color-text); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.faq-answer p { padding-bottom: var(--space-md); color: #444; font-size: 1.05rem; }

/* =========================================
   CHECKOUT PAGE
========================================= */
.checkout-container { padding: var(--space-xl) var(--space-sm); display: grid; grid-template-columns: 1fr; gap: var(--space-xl); max-width: var(--container-max-width); margin: 0 auto; }
.checkout-subtitle { margin-bottom: var(--space-lg); color: #666; font-size: 1.1rem; }
.form-group { margin-bottom: var(--space-sm); }
.form-row { display: flex; flex-direction: column; gap: var(--space-sm); }
label { display: block; font-weight: 500; margin-bottom: var(--space-xs); font-size: 0.95rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select { width: 100%; min-height: 54px; padding: 0 15px; border: 1px solid #ccc; background-color: var(--color-white); font-family: var(--font-body); font-size: 1rem; border-radius: 4px; transition: all var(--transition-fast); }
input:focus, select:focus { outline: none; border-color: var(--color-sage); box-shadow: 0 0 0 3px rgba(93, 115, 106, 0.2); transform: translateY(-2px); }
.checkbox-group { display: flex; align-items: flex-start; gap: 12px; margin: var(--space-lg) 0; }
.checkbox-group input[type="checkbox"] { width: 24px; height: 24px; margin-top: 2px; flex-shrink: 0; cursor: pointer; accent-color: var(--color-sage); }
.checkbox-group label { font-size: 0.9rem; font-weight: 400; line-height: 1.5; cursor: pointer; }
.checkbox-group a { text-decoration: underline; color: var(--color-sage); font-weight: 600; }
.checkout-summary-wrapper { background-color: var(--color-white); border: 2px solid var(--color-sage); padding: var(--space-lg); border-radius: 8px; position: sticky; top: 100px; box-shadow: var(--shadow-lg); }
.checkout-summary-wrapper h3 { border-bottom: 2px solid var(--color-sand); padding-bottom: var(--space-sm); margin-bottom: var(--space-md); color: var(--color-sage); }
.order-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-lg); }
.quantity-selector { display: flex; align-items: center; border: 1px solid #ccc; border-radius: 4px; margin-top: 8px; width: fit-content; overflow: hidden; }
.quantity-selector button { background: #f9f9f9; border: none; min-width: 45px; min-height: 45px; font-size: 1.2rem; cursor: pointer; transition: background var(--transition-fast); }
.quantity-selector button:hover { background: #eee; color: var(--color-sage); }
.quantity-selector input { width: 50px; border: none; border-left: 1px solid #ccc; border-right: 1px solid #ccc; text-align: center; padding: 0; min-height: 45px; font-weight: 600; -moz-appearance: textfield; }
.item-price { font-weight: 700; font-size: 1.3rem; }
.order-summary-row { display: flex; justify-content: space-between; margin-bottom: var(--space-xs); color: #555; font-size: 1.05rem; }
.order-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.5rem; margin-top: var(--space-md); padding-top: var(--space-md); border-top: 2px solid var(--color-sand); color: var(--color-sage); }
.payment-method { margin-top: var(--space-xl); }
.payment-option { display: flex; align-items: flex-start; gap: 12px; padding: var(--space-sm); border: 2px solid var(--color-sage); background-color: rgba(93, 115, 106, 0.05); border-radius: 6px; }
.payment-option input { margin-top: 5px; transform: scale(1.2); accent-color: var(--color-sage); }
.payment-option span { display: block; font-size: 0.9rem; color: #555; margin-top: 5px; line-height: 1.5; }

/* =========================================
   FOOTER (MASSIVE REAL WORLD)
========================================= */
.main-footer { background-color: #111; color: var(--color-white); padding: var(--space-xl) 0; padding-bottom: calc(var(--space-lg) + 80px); }
.footer-logo { font-family: var(--font-heading); font-size: 2.5rem; color: var(--color-white); }
.footer-nav-col ul li a:hover { color: var(--color-sage) !important; padding-left: 5px !important; transition: all var(--transition-fast); }

/* =========================================
   STICKY MOBILE CTA
========================================= */
.sticky-mobile-cta { position: fixed; bottom: 0; left: 0; width: 100%; padding: var(--space-sm); background-color: rgba(253, 251, 247, 0.98); backdrop-filter: blur(10px); border-top: 2px solid var(--color-sage); z-index: 999; display: block; transition: transform var(--transition-fast); box-shadow: 0 -4px 10px rgba(93, 115, 106, 0.1); }
.sticky-mobile-cta.hidden { transform: translateY(100%); }

/* =========================================
   COOKIE BANNER
========================================= */
.cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background-color: #111; color: var(--color-white); padding: var(--space-md) var(--space-sm); text-align: center; z-index: 1001; display: flex; flex-direction: column; align-items: center; gap: var(--space-md); transform: translateY(100%); transition: transform var(--transition-slow); border-top: 4px solid var(--color-sage); }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { margin: 0; font-size: 0.95rem; line-height: 1.5; max-width: 800px; }
.cookie-banner a { color: var(--color-sage); text-decoration: underline; font-weight: bold; }

/* =========================================
   MEDIA QUERIES (DESKTOP)
========================================= */
@media (min-width: 768px) {
    .mobile-menu-toggle { display: none; }
    .main-nav { display: block; position: static; background: none; border: none; box-shadow: none; width: auto; overflow: visible; }
    .main-nav ul { flex-direction: row; gap: var(--space-md); }
    .benefits { grid-template-columns: repeat(3, 1fr); }
    .lifestyle-panel { flex-direction: row; }
    .lifestyle-panel.reverse { flex-direction: row-reverse; }
    .lifestyle-image { width: 50%; height: auto; min-height: 60vh; }
    .lifestyle-text { width: 50%; padding: var(--space-xl); }
    .product-container { flex-direction: row; align-items: flex-start; }
    .main-product-image { width: 50%; height: 75vh; position: sticky; top: 100px; }
    .product-info { width: 50%; padding-left: var(--space-xl); }
    .checkout-container { grid-template-columns: 2fr 1fr; align-items: start; }
    .form-row { flex-direction: row; }
    .form-group.half { width: 50%; }
    .sticky-mobile-cta { display: none; }
    .main-footer { padding-bottom: var(--space-xl); }
    .cookie-banner { flex-direction: row; justify-content: center; padding: var(--space-sm); }
}
