/* Moraga Creek Coffee - Vintage/Earthy Redesign */

/* Typography Imports */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;600&display=swap');

:root {
    /* Primary Color Palette */
    --color-bg-primary: #E8D6A8;
    /* Parchment Cream */
    --color-bg-secondary: #F2EBD9;
    /* Bone / Off-White */

    --color-brand-primary: #4F6B5A;
    /* Forest Green */
    --color-brand-secondary: #6A6E3A;
    /* Deep Olive Green */

    /* Text & Structural */
    --color-text-primary: #4A3A2A;
    /* Coffee Brown */
    --color-text-inverse: #F2EBD9;
    /* Bone */
    --color-footer: #2E2A24;
    /* Dark Charcoal */
    --color-border: #4A3A2A;
    /* Coffee Brown for borders */

    /* Accents */
    --color-accent-cta: #B76A2E;
    /* Rust Orange */
    --color-accent-subtle: #C9A24D;
    /* Muted Gold */

    /* Spacing & Layout */
    --container-max-width: 1200px;
    --border-radius-card: 4px;
    /* Slight rounding, mostly square for vintage feel */
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-brand-primary);
    color: var(--color-text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    /* Optional: Add a subtle grain texture if possible, relying on solid color for now as per instructions */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    color: var(--color-brand-primary);
    letter-spacing: 0.02em;
}

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

/* Header & Navigation */
header {
    /* background-color: var(--color-brand-primary); */
    padding: 0;
    text-align: center;
    position: relative;
    /* border-bottom: 4px solid var(--color-accent-subtle); */
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 10;
}

.main-logo {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    /* If png transparency works, this will look great */
}

.tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-bg-primary);
    margin-top: 1rem;
    font-weight: 600;
}

/* Main Layout */
main {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--color-brand-secondary);
}

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

.animated-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-brand-primary);
    line-height: 1.1;
}

.subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-style: italic;
    color: var(--color-text-primary);
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Features Band */
.features-band {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-brand-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Products Section */
.products {
    padding: 2rem 0;
    text-align: center;
}

.products h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--color-brand-primary);
    position: relative;
    display: inline-block;
}

/* Decorative lines around heading */
.products h2::before,
.products h2::after {
    content: '';
    display: inline-block;
    width: 50px;
    height: 1px;
    background-color: var(--color-brand-secondary);
    vertical-align: middle;
    margin: 0 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background-color: var(--color-bg-secondary);
    border: 1px solid rgba(74, 58, 42, 0.1);
    /* Subtle coffee border */
    border-radius: var(--border-radius-card);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--color-brand-secondary);
}

.product-image {
    width: 100%;
    height: 220px;
    background-color: #D6CDB8;
    /* Placeholder color matching palette */
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-brand-primary);
    border-radius: 2px;
}

.product-name {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.product-description {
    font-size: 0.95rem;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.product-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-brand-primary);
    display: block;
    margin-bottom: 1rem;
}

.buy-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--color-accent-cta);
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.buy-button:hover {
    background-color: #9A5824;
    /* Darker rust */
}

/* About Section */
.about {
    margin-top: 6rem;
    background-color: var(--color-brand-primary);
    color: var(--color-text-inverse);
    padding: 5rem 2rem;
    text-align: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    /* Full width breakout */
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    color: var(--color-bg-primary);
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

.about-content p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--color-bg-secondary);
}

/* Footer */
footer {
    background-color: var(--color-footer);
    color: #888;
    text-align: center;
    padding: 3rem 1rem;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 0.5rem;
}

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

    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Sparkle Effect */
.sparkle {
    position: absolute;
    background-color: #F2EBD9;
    /* Bone/Cream color */
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    filter: blur(1px);
    z-index: 20;
    /* Above logo */
    animation: sparkle-anim 2s ease-in-out forwards;
    box-shadow: 0 0 5px #fff, 0 0 10px #C9A24D;
    /* Glow */
}

@keyframes sparkle-anim {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }

    50% {
        transform: scale(1) rotate(180deg);
        opacity: 1;
    }

    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}