:root {
    /* Dale's Datil Palette */
    --color-black: #050505;
    --color-primary: #d32f2f; /* Deep Fiery Red */
    --color-accent: #ffab00; /* Golden Yellow */
    --color-white: #ffffff;
    --color-light: #f5f5f5;
    
    /* Typography */
    --font-script: 'Pacifico', cursive;
    --font-heading: 'Graduate', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1.5rem;
    --spacing-md: 3rem;
    --spacing-lg: 5rem;
    --spacing-xl: 8rem;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--color-light);
    color: var(--color-black);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scroll Tilt: sections settle from a tilted/scaled state into place as they scroll into view */
.scroll-tilt {
    --tilt: 0;
    transform: perspective(1400px) rotateX(calc((1 - var(--tilt)) * 14deg)) scale(calc(0.93 + var(--tilt) * 0.07));
    transform-origin: center top;
    opacity: calc(0.35 + var(--tilt) * 0.65);
    will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-tilt {
        transform: none;
        opacity: 1;
    }
}

/* Disable the 3D scroll-tilt on mobile: animating a perspective/rotateX transform
   on an ancestor of the autoplay <video> tanks scroll performance on phone GPUs. */
@media (max-width: 900px) {
    .scroll-tilt {
        transform: none;
        opacity: 1;
        will-change: auto;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-black { color: var(--color-black); }
.text-accent { color: var(--color-accent); }
.text-white { color: var(--color-white); }

/* --- Section Backgrounds --- */
.section-black { background-color: var(--color-black); color: var(--color-white); }
.section-primary { background-color: var(--color-primary); color: var(--color-white); }
.section-light { background-color: var(--color-light); color: var(--color-black); }
.section-dark { background-color: #111; color: var(--color-white); }
.section-beige { background-color: #fdfbf0; color: var(--color-black); }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #b71c1c;
}

/* --- Typography Helpers --- */
.section-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 2px;
}

.text-knockout {
    color: transparent;
    -webkit-text-stroke: 2px var(--color-white);
}

.text-knockout-white {
    color: transparent;
    -webkit-text-stroke: 2px var(--color-white);
}

.badge {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-black);
    font-weight: 900;
    padding: 5px 15px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-sm);
}

/* --- Navigation --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.top-banner {
    background: var(--color-white);
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.top-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-socials a {
    color: var(--color-black);
    text-decoration: none;
    font-weight: 900;
    margin-left: 20px;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.main-nav {
    background: var(--color-black);
    padding: var(--spacing-sm) 0;
    color: var(--color-white);
    /* Remove border-bottom from original */
}

/* Torn Paper Section Divider */
.section-tear {
    position: relative;
}

.section-tear::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 46px;
    background-color: var(--tear-color, transparent);
    -webkit-mask-image: url('torn-edge.svg');
    -webkit-mask-size: 400px 100%;
    -webkit-mask-repeat: repeat-x;
    -webkit-mask-position: top left;
    mask-image: url('torn-edge.svg');
    mask-size: 400px 100%;
    mask-repeat: repeat-x;
    mask-position: top left;
    z-index: 5;
    pointer-events: none;
}

@media (max-width: 900px) {
    .section-tear::before {
        height: 28px;
        -webkit-mask-size: 240px 100%;
        mask-size: 240px 100%;
    }
}

/* Fixed background watermark (light sections only) */
.bg-watermark {
    position: relative;
}

.bg-watermark::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('hero_slide_2.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.bg-watermark > .container {
    position: relative;
    z-index: 2;
}

/* background-attachment: fixed is a well-known scroll-jank source on mobile browsers */
@media (max-width: 900px) {
    .bg-watermark::after {
        background-attachment: scroll;
    }
}

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

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.3s;
    text-transform: uppercase;
}

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

.nav-logo {
    text-align: center;
    position: relative;
    top: 5px;
}

.logo-script {
    font-family: var(--font-script);
    color: var(--color-accent);
    font-size: 2rem;
    margin-bottom: -15px;
    position: relative;
    z-index: 2;
    transform: translateX(0);
}

.logo-marker {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 3.5rem;
    line-height: 1;
    margin: 0;
    letter-spacing: 2px;
}

.nav-btn {
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    padding: 10px 20px;
    border-radius: 50px;
}

/* --- Hero Carousel --- */
.hero-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    padding: var(--spacing-xl) 0;
    min-height: 80vh;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-text {
    flex: 1;
    padding-right: var(--spacing-lg);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-height: 600px;
    width: auto;
    object-fit: contain;
    transform: rotate(15deg);
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.carousel-indicators .dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-indicators .dot.active {
    background-color: white;
}

/* --- Layout Grids --- */
.section {
    padding: var(--spacing-xl) 0;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.grid-4-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

/* --- Story Section --- */
.story-content {
    padding-right: var(--spacing-md);
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.story-content p {
    margin-bottom: var(--spacing-sm);
}

.quote-block {
    border-left: 4px solid var(--color-primary);
    padding-left: 20px;
    margin: var(--spacing-md) 0;
    font-size: 1.5rem;
    font-weight: 900;
    font-style: italic;
    color: var(--color-primary);
}

.story-image img {
    width: 100%;
    box-shadow: 20px 20px 0 var(--color-black);
}

/* --- Schedule Section --- */
.schedule-section {
    padding: var(--spacing-xl) 0;
}

.align-center {
    align-items: center;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: var(--spacing-sm);
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #111;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 5px solid var(--color-accent);
    transition: transform 0.3s ease;
}

.schedule-item:hover {
    transform: translateX(10px);
}

.schedule-day {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-accent);
    min-width: 80px;
    text-transform: uppercase;
    text-align: right;
}

.schedule-details h3 {
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 5px;
    color: var(--color-white);
    text-transform: uppercase;
}

.schedule-time {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 1px;
}

/* --- Where To Buy Section --- */
.wheretobuy-section {
    padding: var(--spacing-lg) 0 0 0; /* Less padding on bottom to meet gallery */
}

.where-to-buy-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 2rem;
}

.where-to-buy-headline {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: clamp(3rem, 6vw, 4.5rem);
    position: relative;
    z-index: 1;
    margin-bottom: -50px; 
    line-height: 1;
}

.basket-image {
    position: relative;
    z-index: 2;
    max-width: 350px;
    margin: 0 auto;
    mix-blend-mode: multiply; /* Removes the white background against the beige container */
}

.locator-search {
    background: var(--color-white);
    border-radius: 50px;
    padding: 6px 6px 6px 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 3;
    margin-top: -40px; 
    border: 1px solid #eee;
}

.locator-search input {
    border: none;
    flex: 1;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--color-black);
    outline: none;
    background: transparent;
    font-size: 0.95rem;
}

.locator-search button {
    background-color: #0066cc; /* Blue to match reference */
    color: white;
    border: none;
    border-radius: 50px;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.locator-search button:hover {
    background-color: #004d99;
}

/* --- Gallery Section --- */
.gallery-section {
    padding: var(--spacing-lg) 0;
}

.container-fluid {
    width: 95%;
    max-width: 1800px;
    margin: 0 auto;
}

.gallery-img-wrapper {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    flex: 0 0 calc(25% - var(--spacing-md)); /* 4 items */
    min-width: 250px;
    scroll-snap-align: start;
}

.gallery-scroller {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}

.gallery-scroller::-webkit-scrollbar {
    height: 10px;
}
.gallery-scroller::-webkit-scrollbar-track {
    background: transparent;
}
.gallery-scroller::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}
.gallery-scroller::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-white);
}

.gallery-img-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-img-wrapper:hover img {
    transform: scale(1.05);
}

/* --- Merch Section --- */
.merch-section {
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-lg);
}

.section-header {
    margin-bottom: var(--spacing-xl);
}

.product-card {
    background-color: var(--color-white);
    color: var(--color-black);
    padding: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    background-color: #eee;
    padding: var(--spacing-md);
    text-align: center;
}

.product-image img {
    margin: 0 auto;
    max-height: 250px;
    object-fit: contain;
}

.product-info {
    padding: var(--spacing-md);
    text-align: left;
    border-top: 5px solid var(--color-accent);
}

.product-info h3 {
    font-weight: 900;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.product-info p {
    color: #666;
    font-weight: 700;
}

/* --- Neighborhood Section --- */
.neighborhood-section {
    padding: var(--spacing-xl) 0;
}

.neighborhood-content h2 {
    margin-bottom: var(--spacing-md);
}

/* --- Testimonials Section --- */
.testimonials-section .container {
    max-width: 900px;
}

.testimonial-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
    text-align: left;
}

.testimonial-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.testimonial-row.reverse {
    flex-direction: row-reverse;
    text-align: right;
}

.testimonial-row.reverse .testimonial-content {
    align-items: flex-end;
}

.testimonial-avatar {
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.testimonial-content {
    display: flex;
    flex-direction: column;
}

.testimonial-quote {
    font-size: 1.2rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 8px;
}

.testimonial-name {
    color: var(--color-primary);
    font-weight: 900;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .testimonial-row, .testimonial-row.reverse {
        flex-direction: column;
        text-align: center;
    }

    .testimonial-row.reverse .testimonial-content {
        align-items: center;
    }
}

/* --- Footer Grid --- */
.site-footer {
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1px 2fr;
    gap: var(--spacing-md);
    align-items: stretch;
    margin-bottom: var(--spacing-xl);
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links-col a {
    font-weight: 700;
    font-size: 0.9rem;
}

.footer-links-col a:hover {
    color: var(--color-accent);
}

.text-right {
    text-align: right;
    align-items: flex-end;
}

.brand-col {
    justify-content: space-between;
}

.all-brands-text {
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.brand-stamp {
    border: 1px solid var(--color-white);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 900;
    text-align: center;
    margin-top: auto;
}

.footer-divider {
    background-color: #333;
    width: 1px;
}

.footer-newsletter-col {
    padding-left: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.brand-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-weight: 900;
    font-size: 0.85rem;
    color: #888;
}

.footer-heading-small {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: 10px;
}

.newsletter-input-group {
    border: 1px solid var(--color-white);
    padding: 5px;
}

.input-minimal {
    background: transparent;
    border: none;
    color: var(--color-white);
    width: 100%;
    padding: 5px;
}

.input-minimal:focus {
    outline: none;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.social-label {
    font-weight: 900;
    font-size: 0.85rem;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: var(--spacing-md);
    font-size: 0.9rem;
    color: #666;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .nav-content {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .grid-2-col, .grid-3-col, .grid-4-col {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .hero {
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }

    .story-section {
        padding: var(--spacing-lg) 0;
    }

    .story-content {
        padding-right: 0;
    }

    .story-content .btn {
        width: 100%;
        text-align: center;
    }

    .story-image img {
        max-height: 320px;
        width: 100%;
        object-fit: cover;
        box-shadow: 10px 10px 0 var(--color-black);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-divider {
        display: none;
    }

    .footer-newsletter-col {
        padding-left: 0;
        align-items: center;
    }

    .text-right {
        text-align: center;
        align-items: center;
    }

    .brand-stamp {
        margin: var(--spacing-sm) auto 0;
    }
}

/* --- Lightbox --- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    background: var(--color-white);
    color: var(--color-black);
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    border-radius: 12px;
    position: relative;
    overflow-y: auto;
    padding: var(--spacing-md);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    text-align: left;
}

.lightbox-overlay.active .lightbox-content {
    transform: translateY(0);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    color: #999;
}

.lightbox-close:hover {
    color: var(--color-primary);
}

#lightbox-body h2 {
    font-family: var(--font-heading);
    color: var(--color-black);
    font-size: 2rem;
    margin-right: 30px;
    line-height: 1.1;
}

.lightbox-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin: var(--spacing-sm) 0;
}

.recipe-details h3 {
    color: var(--color-primary);
    margin: var(--spacing-sm) 0 10px 0;
    font-weight: 900;
    text-transform: uppercase;
}

.recipe-details ul, .recipe-details ol {
    padding-left: 20px;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    color: #444;
}

.recipe-details li {
    margin-bottom: 8px;
}

.view-recipe-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: var(--color-black);
    color: var(--color-white);
    font-weight: 900;
    font-size: 0.85rem;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.view-recipe-btn:hover {
    background: var(--color-primary);
}

/* --- Product Showcase Section --- */
.product-showcase {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.product-item {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    display: flex;
    justify-content: center;
}

.product-item img {
    height: 400px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.8));
}

.product-item:hover img {
    transform: scale(1.05) translateY(-10px);
}

/* --- Split Layout Sections --- */
.split-layout {
    display: flex;
    width: 100%;
    min-height: 500px;
}

.split-left, .split-right {
    flex: 1;
}

.split-left {
    overflow: hidden;
}

@media (max-width: 900px) {
    .split-layout {
        flex-direction: column;
    }
    .split-left, .split-right {
        min-height: auto !important;
        padding: var(--spacing-lg) !important;
    }
    .product-item img {
        height: 300px;
    }
}
