/* CSS Reset & Root Variables */
:root {
    --sage: #9CAF88;
    --terracotta: #C17767;
    --cream: #FAF7F2;
    --champagne: #E8D5B7;
    --charcoal: #2C2C2C;
    --white: #FFFFFF;
    --gold: #D4AF37;
}

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

body {
    font-family: 'Optima', 'Georgia', serif;
    color: var(--charcoal);
    background: var(--cream) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M50 0L61.8 38.2L100 38.2L69.1 61.8L80.9 100L50 76.4L19.1 100L30.9 61.8L0 38.2L38.2 38.2L50 0Z" fill="rgb(232,213,183)" opacity="0.1"/></svg>');
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-button {
    padding: 18px 50px;
    background: linear-gradient(135deg, var(--sage), var(--terracotta));
    color: white;
    border: none;
    font-size: 14px;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
}

.logo {
    font-family: 'Didot Prime', serif;
    font-size: 24px;
    letter-spacing: 0.15em;
    color: var(--charcoal);
    text-decoration: none;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--charcoal);
    font-size: 14px;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

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

.header-icons {
    display: flex;
    gap: 25px;
    align-items: center;
}

.icon-svg {
    width: 20px;
    height: 20px;
    cursor: pointer;
    color: var(--charcoal);
    transition: color 0.3s ease, transform 0.3s ease;
}

.icon-svg:hover {
    color: var(--terracotta);
    transform: scale(1.1);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--charcoal);
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

.mobile-nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    list-style: none;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
}

.mobile-nav-links.active {
    display: flex;
    transform: translateX(0);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    animation: zoom 10s infinite alternate;
    backface-visibility: hidden;
}

@keyframes zoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 82px;
    font-weight: 600;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--charcoal), var(--sage));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1.5s ease;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--charcoal);
    margin-bottom: 40px;
    letter-spacing: 0.15em;
    animation: fadeInUp 1.7s ease;
    text-transform: uppercase;
}

/* Product Section */
.products, .nature-story, .newsletter {
    padding: 150px 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 48px;
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
    color: var(--charcoal);
}

.section-header p {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.product-card {
    background: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-card.fade-in {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    backface-visibility: hidden;
}

.product-image-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 10px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    backface-visibility: hidden;
}

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

.product-name {
    font-size: 20px;
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
    color: var(--charcoal);
}

.product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-price {
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: bold;
}

.add-to-cart {
    padding: 12px 30px;
    background: transparent;
    color: var(--charcoal);
    border: 1px solid var(--charcoal);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.add-to-cart:hover {
    background: var(--charcoal);
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Nature Story Section */
.nature-story {
    background: linear-gradient(135deg, var(--cream), rgba(232, 213, 183, 0.3));
    position: relative;
    overflow: hidden;
}

.nature-story-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M50 0L61.8 38.2L100 38.2L69.1 61.8L80.9 100L50 76.4L19.1 100L30.9 61.8L0 38.2L38.2 38.2L50 0Z" fill="rgb(156,175,136)" opacity="0.05"/></svg>');
    background-repeat: repeat;
    animation: parallax 20s linear infinite;
}

@keyframes parallax {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

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

.story-text h2 {
    font-size: 42px;
    font-family: 'Playfair Display', serif;
    margin-bottom: 30px;
    color: var(--charcoal);
}

.story-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.story-visual-container {
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.story-visual {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Newsletter Section */
.newsletter {
    padding: 80px 5%;
    background: linear-gradient(135deg, var(--sage), var(--terracotta));
    text-align: center;
    color: white;
}

.newsletter h2 {
    font-size: 36px;
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

.newsletter p {
    font-size: 16px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 14px;
    border-radius: 50px;
    text-align: center;
}

.newsletter-form input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.8);
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.7);
}

.newsletter-form button {
    padding: 15px 40px;
    background: white;
    color: var(--charcoal);
    border: none;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border-radius: 50px;
    text-transform: uppercase;
}

.newsletter-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    padding: 60px 5% 30px;
    background: var(--charcoal);
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 20px;
    color: var(--champagne);
}

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

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

.footer-column ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--champagne);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .header-icons {
        gap: 15px;
    }
    .menu-toggle {
        display: flex;
    }
    .hero h1 {
        font-size: 48px;
    }
    .story-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .story-visual-container {
        height: 300px;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form button {
        width: 100%;
    }
}

/* Ingredients Page Specific Styles */
.ingredients-page-section {
    padding: 150px 5% 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ingredients-page-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M50 20 Q 40 40 50 60 Q 60 40 50 20" stroke="rgb(193,119,103)" fill="none" stroke-width="0.5" opacity="0.1"/></svg>');
    background-repeat: repeat;
    animation: parallax 25s linear infinite;
}

.ingredients-page-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    color: var(--charcoal);
    margin-bottom: 20px;
}

.ingredients-page-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: var(--sage);
    margin-top: 80px;
    margin-bottom: 20px;
}

.ingredients-page-section p {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    max-width: 800px;
    margin: 0 auto;
}

.ingredient-benefit-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.ingredient-benefit-list li {
    background-color: var(--white);
    border: 1px solid var(--champagne);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0;
}

.ingredient-benefit-list li.fade-in {
    opacity: 1;
}

.ingredient-benefit-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.ingredient-benefit-list h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--terracotta);
    margin-bottom: 10px;
}

.ingredient-benefit-list p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.ingredient-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Story Page Content */
.story-page-section {
    padding: 150px 5% 120px;
    background: linear-gradient(135deg, var(--cream), rgba(232, 213, 183, 0.3));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.story-page-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" stroke="rgb(193,119,103)" fill="none" stroke-width="0.5" opacity="0.1"/></svg>');
    background-repeat: repeat;
    animation: parallax 30s linear infinite reverse;
}

.story-page-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    color: var(--charcoal);
    margin-bottom: 40px;
}

.story-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.story-content-grid p, .story-image {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.story-content-grid p.fade-in, .story-image.fade-in {
    opacity: 1;
}

.story-content-grid p {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
}

.story-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
