:root {
    --primary-color: #FFC107; /* Saffron/Marigold Yellow */
    --secondary-color: #A04000; /* Deep, rich brown */
    --text-color: #333333; /* Dark Charcoal */
    --background-color: #FDF8F0; /* Light Cream */
    --white-color: #FFFFFF;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

body.no-scroll {
    overflow: hidden;
}

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

h1, h2, h3 {
    font-family: var(--heading-font);
    color: var(--secondary-color);
    font-weight: 700;
}

/* --- Header & Navigation --- */
.main-header {
    background-color: rgba(253, 248, 240, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* --- Marquee --- */
.marquee {
    background-color: var(--secondary-color);
    color: var(--background-color);
    padding: 0.5rem 0;
    white-space: nowrap;
    overflow: hidden;
    position: fixed;
    top: 74px; /* Adjust based on header height */
    width: 100%;
    z-index: 999;
    font-size: 0.9rem;
    font-weight: 500;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 30s linear infinite;
}

.marquee-separator {
    color: var(--primary-color);
    margin: 0 1.5rem;
    font-family: var(--heading-font);
}


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

.logo {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    color: var(--secondary-color);
    text-decoration: none;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
    z-index: 1001;
}

/* --- Hero Section --- */
#hero {
    padding-top: 74px; /* To offset fixed header */
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    padding: 0 20px;
    min-height: 100vh;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 8vw, 6rem); /* Responsive font size */
    color: var(--white-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content h1 span {
    display: inline-block; /* Allows transform to be applied */
    opacity: 0;
    transform: translateY(20px);
    animation: revealWord 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Stagger the animation for each word */
.hero-content h1 span:nth-child(1) { animation-delay: 0.1s; }
.hero-content h1 span:nth-child(2) { animation-delay: 0.2s; }
.hero-content h1 span:nth-child(3) { animation-delay: 0.3s; }
.hero-content h1 span:nth-child(4) { animation-delay: 0.4s; }
.hero-content h1 span:nth-child(5) { animation-delay: 0.5s; }
.hero-content h1 span:nth-child(6) { animation-delay: 0.7s; } /* Delay for the second line */
.hero-content h1 span:nth-child(7) { animation-delay: 0.8s; }
.hero-content h1 span:nth-child(8) { animation-delay: 0.9s; }


@keyframes revealWord {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}


.hero-content .subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: transform 0.3s ease, color 0.4s ease;
    display: inline-block;
    border: 2px solid var(--primary-color);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ffca2c;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-3px);
}

/* --- General Section Styling --- */
.section-wrapper {
    padding: 6rem 0;
    background-color: var(--background-color);
}

.section-wrapper:nth-of-type(even) {
    background-color: var(--white-color);
}

/* Animation base styles */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    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);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sticky Section Layout */
.sticky-parent {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.sticky-title {
    position: sticky;
    top: 120px; /* Header height + marquee height + some padding */
    text-align: left;
    font-size: 2.8rem;
}

.section-subtitle { /* Now inside the content wrapper */
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
    font-size: 1.1rem;
}

/* --- Story Section   --- */
#story .container {
    max-width: 1000px;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 3rem;
    text-align: left;
}

.story-deco-text {
    font-family: var(--heading-font);
    font-size: 15rem;
    color: var(--primary-color);
    opacity: 0.2;
    line-height: 1;
    text-align: center;
    grid-row: 1 / 3; /* Span across title and paragraph */
}

/* --- Featured Snacks Section --- */
.snacks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.snack-card {
    background: var(--background-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-align: center;
    padding: 2rem;
    border-top: 5px solid var(--primary-color);
}

/* Staggered animation delays */
.snack-card.animate-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.snack-card.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }

.snack-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.snack-card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.snack-card-content { /* No longer needed, but keeping for structure */
    padding: 0;
}

.snack-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.snack-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.cta-container {
    text-align: center;
    margin-top: 4rem;
}

/* --- Promise Section --- */
.promise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.promise-item {
    .promise-item.animate-on-scroll:nth-child(2) { transition-delay: 0.15s; }
    .promise-item.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
}

.promise-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.promise-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* --- Full Menu Section --- */
.menu-columns {
    columns: 3;
    -webkit-columns: 3;
    -moz-columns: 3;
    column-gap: 3rem;
}

.menu-columns ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: inline-block; /* Prevents items from breaking across columns */
    width: 100%;
}

.menu-columns li {
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    align-items: baseline;
    counter-increment: menu-item;
}

.menu-columns li::before {
    content: "0" counter(menu-item);
    font-family: var(--heading-font);
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 1rem;
    min-width: 25px; /* Ensures alignment */
}

.menu-columns li {
    margin-bottom: 0.75rem;
    font-weight: 500;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--text-color);
    color: var(--background-color);
    padding: 4rem 0;
    text-align: center;
}

.main-footer .logo {
    color: var(--white-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-info {
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--background-color);
    font-size: 1.5rem;
    margin: 0 0.75rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.copyright {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .marquee {
        top: 66px; /* Adjust for smaller header */
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--background-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        padding-top: 60px; /* Space for header */
    }

    .main-header.nav-open .main-nav {
        transform: translateX(0);
    }

    .main-nav a {
        margin-left: 0;
        font-size: 1.5rem;
    }

    .nav-toggle { display: block; }
    .hero-content .subtitle { font-size: 1rem; }
    .section-wrapper { padding: 4rem 0; }

    /* Disable sticky layout on tablets and below */
    .sticky-parent {
        display: block;
    }
    .sticky-title {
        position: static;
        text-align: center;
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    .section-subtitle {
        margin-bottom: 3rem;
    }
    .menu-columns { columns: 2; -webkit-columns: 2; -moz-columns: 2; }

    .story-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .story-deco-text {
        grid-row: 1;
        font-size: 8rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .menu-columns { columns: 1; -webkit-columns: 1; -moz-columns: 1; }
    .sticky-parent { gap: 2rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .marquee { display: none; } /* Hide marquee on very small screens to save space */
}