/* Reset & Base */
:root {
    /* Color Palette - Mediterranean Luxury */
    --color-bg-light: #FAFAFA;
    /* Off-white/Cream */
    --color-bg-white: #FFFFFF;
    --color-text-dark: #1A1A2E;
    /* Deep Navy */
    --color-text-body: #4A4A4A;
    /* Soft Charcoal */
    --color-accent: #C5A059;
    /* Muted Gold/Bronze */
    --color-accent-light: #E0C996;
    --color-secondary: #F4F1EA;
    /* Warm Beige */

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

    /* Spacing */
    --spacing-section: 120px;
    --spacing-container: 20px;

    /* Shadows */
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-container);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-text-dark);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
}

.highlight {
    color: var(--color-accent);
    font-style: italic;
}

.highlight-navy {
    color: #000080;
    /* Navy Blue */
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 20px 0;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-image {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    /* White logo initially */
    transition: all 0.3s ease;
}

.navbar.scrolled .logo-image {
    filter: none;
    /* Original color or dark on scroll */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.navbar.scrolled .nav-link {
    color: var(--color-text-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    /* Mobile menu logic to be refined if needed */
}

/* Hero Section */
.hero {
    height: 100vh;
    height: 100dvh;
    /* Mobile viewport fix */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.4);
    /* Dark overlay for text readability */
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: #fff;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #fff;
    opacity: 0.8;
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.btn {
    padding: 15px 40px;
    border-radius: 0;
    /* Sharp edges for luxury feel, or slight radius */
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    border: 1px solid var(--color-accent);
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-accent);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: var(--color-text-dark);
}

/* About Section */
.about {
    padding: var(--spacing-section) 0;
    background: #ffffff;
    /* Pure White as requested */
    color: var(--color-text-dark);
}

/* Products Section */
.products {
    padding: var(--spacing-section) 0;
    background: var(--color-bg-light);
}

.products-grid {
    display: flex;
    justify-content: center;
}

.product-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: row;
    /* Horizontal layout for premium feel */
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.product-image {
    flex: 1;
    background: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.real-product-image {
    max-height: 400px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
    transition: transform 0.5s ease;
}

.product-card:hover .real-product-image {
    transform: scale(1.05);
}

.product-info {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.product-info h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-text-dark);
}

.product-info p {
    color: var(--color-text-body);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.product-specs {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.spec {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    font-weight: 600;
    border-bottom: 1px solid var(--color-accent-light);
    padding-bottom: 5px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-text-dark);
    color: var(--color-text-dark);
    align-self: flex-start;
}

.btn-outline:hover {
    background: var(--color-text-dark);
    color: #fff;
}

/* Product Details / Experience */
.product-details {
    padding: var(--spacing-section) 0;
    background: #fff;
}

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

.details-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.details-intro {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--color-text-body);
}

.heritage-section {
    border-left: 3px solid var(--color-accent);
    padding-left: 30px;
    margin-bottom: 50px;
}

.heritage-section h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--color-text-dark);
}

.product-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.benefit-card {
    padding: 20px;
    background: var(--color-bg-light);
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--color-accent);
}

.benefit-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--color-text-body);
}

/* Our Story Section */
.our-story {
    padding: var(--spacing-section) 0;
    background: var(--color-text-dark);
    color: #fff;
}

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

.our-story-text h2 {
    color: #fff;
    margin-bottom: 30px;
}

.our-story-text p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.mastiha-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mastiha-info h3 {
    color: var(--color-accent);
    margin-bottom: 20px;
}

.mastiha-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mastiha-benefit strong {
    display: block;
    color: #fff;
    margin-bottom: 5px;
}

.mastiha-benefit span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Merch Section Removed */

/* Footer */
.footer {
    background: #fff;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--color-text-body);
}

.footer-section ul li a:hover {
    color: var(--color-accent);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* --- DESIRE OPTIMIZATION --- */

/* 1. Static Perfection (No Tilt) */
.product-image {
    /* perspective removed */
    /* transform-style removed */
    cursor: default;
    /* No interaction hint needed */
    display: flex;
    justify-content: center;
    align-items: center;
}

.tilt-inner {
    position: relative;
    /* transform-style removed */
    /* transition removed */
    animation: breathe 6s ease-in-out infinite;
    /* Subtle life */
}

.real-product-image {
    /* transform removed */
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.25));
    /* Strong grounding shadow */
    transition: transform 0.3s ease;
}

/* Breathing Animation */
@keyframes breathe {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* 2. Status Badge (Apple Style) */
.status-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease;
}

.status-badge:hover {
    transform: scale(1.02);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #191970;
    /* Midnight Blue */
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(25, 25, 112, 0.2);
    animation: pulse-blue 2s infinite;
}

.status-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-dark);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 25, 112, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(25, 25, 112, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(25, 25, 112, 0);
    }
}

/* 3. Imperative CTA */
.btn-primary {
    background: var(--color-accent);
    color: #fff;
    border: none;
    font-weight: 700;
    letter-spacing: 2px;
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.3);
    /* Gold glow */
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(197, 160, 89, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0);
    }
}

/* 4. Hero Typography Dominance */
.hero-title {
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-subtitle-text {
    font-weight: 400 !important;
    letter-spacing: 3px;
    color: var(--color-accent-light);
}

/* --- EXCEPTIONAL POLISH --- */

/* 1. Noise Texture Overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 2. Custom Cursor */
body {
    cursor: none;
    /* Hide default cursor */
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border: 2px solid #000;
    /* High contrast border */
    background: rgba(255, 255, 255, 0.3);
    /* Subtle fill */
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
    /* Double border effect for visibility on dark */
}

.custom-cursor.hovered {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* 3. Editorial Layout Refinements */
.section-title {
    font-size: 4rem;
    /* Bigger, bolder */
    letter-spacing: -2px;
    margin-bottom: 100px;
}

.details-content,
.our-story-content {
    gap: 100px;
    /* More breathing room */
}

/* Zig-Zag Effect for Sections */
/* We'll alternate the order visually using grid areas or order property if needed, 
   but for now, simply increasing spacing and typography gives that editorial look. */

.details-text h2,
.our-story-text h2 {
    font-size: 3.5rem;
    line-height: 1.1;
}

/* 4. Product Shine Effect */
.tilt-inner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 60%,
            rgba(255, 255, 255, 0) 100%);
    transform: translateX(calc(var(--shine-pos, -100%) - 50%));
    /* Dynamic position */
    transition: transform 0.1s;
    /* JS will update this */
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Mega Footer Removed - Replaced by Footer Repair */

/* Reveal Animations */
.reveal-text {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.social-icon {
    width: 24px;
    height: 24px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.social-link:hover .social-icon {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: #999;
    font-size: 0.9rem;
}

/* Nutrition Modal - Refined */
.nutrition-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.nutrition-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.close-nutrition {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .product-card {
        flex-direction: column;
    }

    .product-image {
        height: 300px;
    }

    .details-content,
    .our-story-content,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nav-menu {
        display: none;
        /* Needs mobile menu JS implementation */
    }

    .nav-toggle {
        display: flex;
    }
}

/* --- GLOBAL APPLE POLISH --- */

/* 1. Global Rounded Corners & Buttons */
.btn,
.btn-primary,
.btn-secondary,
button {
    border-radius: 50px !important;
    /* Full pill shape */
}

/* 2. Cards & Containers - Apple Effect */
.product-card,
.benefit-card,
.testimonial-card,
.ingredient-item,
.mastiha-info,
.nutrition-content {
    border-radius: 30px !important;
    background: rgba(255, 255, 255, 0.6) !important;
    /* Translucent */
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05) !important;
    /* Ultra soft shadow */
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease !important;
}

.product-card:hover,
.benefit-card:hover,
.testimonial-card:hover,
.ingredient-item:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1) !important;
}

/* 3. Images inside cards */
.product-card img,
.benefit-card img,
.ingredient-item img {
    border-radius: 20px;
    /* Slightly less than container */
}

/* 4. Navbar Polish (Light & Clean) */
.navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    /* Light frosted glass */
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-logo {
    color: var(--color-text-dark) !important;
}

.nav-link {
    color: var(--color-text-dark) !important;
    border-radius: 20px;
    padding: 8px 16px;
    transition: background 0.3s ease;
}

.nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-accent) !important;
}

.nav-toggle {
    color: var(--color-text-dark) !important;
}

/* 5. Footer Repair (Clean & Simple) */
.footer {
    padding: 80px 0 40px;
    /* Reset padding */
    background: #f5f5f7;
    /* Apple-style light gray */
    color: var(--color-text-dark);
    position: relative;
    overflow: hidden;
}

.footer::before {
    display: none;
    /* Remove Mega Watermark */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* Clean responsive grid */
    gap: 40px;
    margin-bottom: 60px;
}

.footer-section h3 {
    font-size: 1.2rem;
    /* Standard size */
    margin-bottom: 20px;
    color: var(--color-text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--color-accent);
    padding-left: 0;
    /* Remove shift */
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(0, 0, 0, 0.4);
    font-size: 0.85rem;
}

/* 5. Section Softness */
.section-title {
    font-weight: 600;
    /* Slightly softer than bold */
    letter-spacing: -1px;
}

/* 6. Input Fields (Newsletter etc) */
input,
textarea,
select {
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    padding: 15px 25px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(10px);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent) !important;
    background: rgba(255, 255, 255, 0.9) !important;
}

/* Lenis Recommended Styles */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Optimization */
.reveal-text,
.product-card,
.btn {
    will-change: transform, opacity;
    backface-visibility: hidden;
    /* Hardware acceleration */
}