:root {
    /* Color Palette - Nature/Farm Theme */
    --color-primary: #14532d;
    /* Deep Moss Green */
    --color-secondary: #15803d;
    /* Green */
    --color-accent: #b45309;
    /* Sienna/Leather */
    --color-text: #1f2937;
    /* Near Black / Dark Cool Grey */
    --color-bg: #f9fdf9;
    /* Off-white/Mint tint */
    --color-white: #ffffff;
    --color-black: #000000;

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    /* Switched to Inter */
    --font-body: 'Inter', sans-serif;
    /* Switched to Inter */
    --font-ui: 'Inter', sans-serif;

    /* Colors */
    --color-graphite: #1f2937;
    /* Reusing Dark Grey for consistency */
    --color-bright-green: #4ade80;
    /* Keeping Hero Button Pop */
    --color-paper-ink: #374151;
    /* Slightly lighter grey for paragraph text */

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    /* Old Paper Background */
    background: url('../assets/images/old_paper_texture.png') center center repeat fixed;
    background-color: var(--color-bg);
    /* Fallback */
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.btn:hover {
    background-color: var(--color-secondary);
}

/* Header */
header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: -0.05em;
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--color-accent);
}

/* Mobile Elements (Hidden on Desktop) */
.mobile-menu-btn {
    display: none;
}

.mobile-nav {
    display: none;
}

.mobile-hero-bg {
    display: none;
}

/* Hero Scroll Animation */
.hero-scroll-wrapper {
    height: 300vh;
    padding-top: 1px;
    display: grid;
    /* Stack children on top of each other */
    grid-template-areas: "hero-stack";
    align-items: start;
    /* Critical: Allows sticky children to stick by not stretching them to full height */
}

/* Ensure all direct children overlap */
.hero-scroll-wrapper>* {
    grid-area: hero-stack;
}

/* Canvas is sticky inside wrapper again */
#hero-canvas {
    position: sticky;
    top: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
    /* Lowest level, but above background */
}

.sticky-container {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: block;
    /* Removed flex */
    /* text-align center handled by content */
}

.hero-content {
    position: sticky;
    /* Changed from fixed to active sticky behavior within wrapper */
    top: 15vh;
    /* 15% of viewport height */
    margin-left: auto;
    margin-right: 5vw;
    /* Align to right side */
    width: 45%;
    max-width: 600px;
    z-index: 20;
    /* Higher z-index to stay on top of everything */

    background: rgba(0, 0, 0, 0.2);
    padding: var(--spacing-xl);
    border-radius: 8px;
    backdrop-filter: blur(2px);
    color: var(--color-white);
    /* Hero Text White */
    opacity: 1;
    /* Removed opacity transition since we want it to hold */
    text-align: right;
    float: right;
    /* Helper to force it to the right within the flow if needed, though margins handle it */
}

/* Specific button style for Hero to use the previous Bright Green */
.hero-content .btn {
    background-color: var(--color-bright-green);
    color: var(--color-white);
    /* Keeping text white as requested */
    font-weight: 800;
}

.hero-content .btn-outline {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    /* Thinner, slightly transparent border */
    color: rgba(255, 255, 255, 0.9);
    /* Slightly softer white */
    font-weight: 500;
    /* Less bold than primary */
}

.hero-content .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.hero-btn-group {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    /* Align right since hero text is right-aligned */
}

/* Logic to fade out content as we scroll could be added in JS */
.hero-content h1 {
    font-family: var(--font-ui);
    /* Keep Hero easy to read or switch to Caveat if preferred */
    font-weight: 800;
    font-size: 3.5rem;
    color: var(--color-white);
    /* Hero Heading White */
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Section General */
section {
    padding: 2rem 0;
    /* Reduced from --spacing-xl (4rem) to tighter 2rem */
    /* Ensure transparency so body background shows through */
    background-color: transparent;
}

/* Footer */
footer {
    background-color: var(--color-white);
    color: var(--color-primary);
    /* Forest Green Text */
    padding: var(--spacing-lg) 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

footer p {
    color: var(--color-primary);
    /* Forest Green Text */
    font-weight: 500;
}

footer a {
    color: var(--color-secondary);
    /* Lighter green for links */
    font-weight: 600;
}

/* Handwriting Effect Classes */
/* Handwriting Effect Classes - Deprecated but keeping class for structure, mapping to Inter */
.handwritten {
    font-family: var(--font-heading);
    color: var(--color-graphite);
    font-size: 1.1rem;
    /* Adjusted down from 1.5rem since Inter is larger/clearer */
    font-weight: 400;
    line-height: 1.6;
}

h2,
h3 {
    font-family: var(--font-heading);
    color: var(--color-graphite);
    font-weight: 700;
}

p {
    color: var(--color-paper-ink);
}

p {
    color: var(--color-paper-ink);
}

/* Image Slideshow */
.image-slideshow {
    position: relative;
    width: 100%;
    height: 300px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Default State (Hidden/Waiting) */
    transform: translateX(100%);
    /* Start hidden on the right */
    transition: none;
    /* No transition when resetting */
    z-index: 1;
}

.image-slideshow img.active {
    transform: translateX(0);
    /* Slide to center */
    transition: transform 1.2s ease-in-out;
    /* Only animate when entering */
    z-index: 2;
    /* On top */
}

.image-slideshow img.exit {
    transform: translateX(0);
    /* Stay at center */
    transition: none;
    z-index: 1;
    /* Move to background to be covered */
}


/* Product Cards Logic */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Stretch to fill grid cell */
    background: transparent;
    /* or white if desired */
}

/* Push button to bottom */
.product-card .btn {
    margin-top: auto;
    align-self: flex-start;
    /* Or center/stretch */
}

/* Animation: Reveal text */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: Make intro text more readable if background is busy */
.intro .container {
    /* removed white background to let "paper" texture show */
    width: 100%;
    /* Removed fixed height/min-height to fix gap */
    margin-bottom: 2rem;
}

.story-hero-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Ensure center zoom */
}

.story-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-xl);
    padding-bottom: 4rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.story-hero-content h1 {
    color: var(--color-white);
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

/* Editorial Layout for Story Page */
.story-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    margin-bottom: var(--spacing-xl);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.story-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editorial-section {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 6rem;
}

.editorial-section.reversed {
    flex-direction: row-reverse;
}

.editorial-text {
    flex: 1 1 60%;
}

.editorial-image {
    flex: 1 1 35%;
    position: relative;
    max-width: 400px;
}

.editorial-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.editorial-image img:hover {
    transform: scale(1.01);
}

/* Feature Block (Axie & Rick) */
.feature-block {
    background-color: rgba(20, 83, 45, 0.03);
    /* Extremely subtle green tint */
    border-left: 4px solid var(--color-primary);
    border-left: 4px solid var(--color-primary);
    padding: 3rem;
    margin: 4rem 0;
    border-radius: 4px;
    position: relative;
}

.feature-block::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 8rem;
    color: rgba(20, 83, 45, 0.05);
    font-family: serif;
    line-height: 1;
}

/* Responsive */
/* Responsive */
@media (max-width: 768px) {

    /* Navigation */
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1100;
        padding: 0;
    }

    .mobile-menu-btn span {
        width: 100%;
        height: 3px;
        background-color: var(--color-primary);
        border-radius: 3px;
        transition: 0.3s;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .mobile-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--color-white);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 6rem 2rem 2rem 2rem;
        transition: 0.3s ease;
        z-index: 1000;
    }

    .mobile-nav.active {
        right: 0;
    }

    .mobile-nav a {
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--color-primary);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 0.5rem;
    }

    /* Mobile Hero (Home) */
    .hero-scroll-wrapper {
        height: 100vh;
        /* Disable scroll-jacking height */
        display: block;
        /* Remove grid for simple stacking */
    }

    #hero-canvas {
        display: none;
        /* Hide canvas on mobile */
    }

    .sticky-container {
        position: static;
        /* Let content flow naturally */
        height: auto;
    }

    .mobile-hero-bg {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }

    .hero-content {
        position: absolute;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 2rem;
        top: auto;
        bottom: 0px;
        left: 0;
        right: 0;
        text-align: center;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
        border-radius: 0;
        backdrop-filter: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        /* Smaller font */
        text-align: center;
    }

    .hero-btn-group {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-btn-group .btn {
        width: 100%;
        text-align: center;
    }

    /* General Spacing */
    .intro .container {
        margin-bottom: 0rem;
    }

    section {
        padding: 1.5rem 0;
    }

    .editorial-section,
    .editorial-section.reversed {
        flex-direction: column;
        gap: 2rem;
    }

    .story-hero,
    .story-hero-full {
        height: 40vh !important;
        /* Force smaller height */
        min-height: 250px;
    }

    .story-hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Modal Styling */
.modal-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent black */
    z-index: 2000;
    /* Top of everything */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: #fdfbf7;
    /* Use paper color directly or var if fails */
    padding: 2.5rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #1f2937;
    line-height: 1;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-input {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}