:root {
    /* Core palette */
    --bg: #0B0B0B;
    --bg-2: #141414;
    --gold: #B08A4B;
    --gold-2: #D1B47A;
    --cream: #F4EFE6;
    --cream-muted: rgba(244, 239, 230, 0.78);
    --border-gold: rgba(176, 138, 75, 0.35);

    /* Legacy tokens mapped to the new palette */
    --forest-green: var(--bg-2);
    --pine-green: rgba(0, 0, 0, 0.65);
    --earth-brown: #5a3c1d;
    --warm-amber: var(--gold-2);
    --golden: var(--gold);
    --snow-white: var(--cream);
    --warm-gray: #7a7266;
    --sage-green: var(--cream-muted);
    --cream-2: var(--cream);

    --font-didone: 'Bodoni Moda', 'Libre Bodoni', Didot, 'Bodoni MT', 'Playfair Display', serif;
    --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--font-didone);
    background: var(--bg);
    color: var(--cream);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

.pre-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease-out, transform .5s ease-out;
}

.pre-animate.revealed,
section.revealed .pre-animate,
.card-hover.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .pre-animate { transition: none; opacity: 1; transform: none; }
}

/* Safety net: if anime.js or the observer never fires, content still shows */
.no-js .pre-animate { opacity: 1; transform: none; }

@keyframes scroll-indicator {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

.scroll-indicator {
    animation: scroll-indicator 1s ease-in-out 3;
    opacity: 0.8;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 12px;
    z-index: 20000;
    background: rgba(0, 0, 0, 0.85);
    color: var(--cream);
    padding: 10px 14px;
    border: 1px solid rgba(176, 138, 75, 0.6);
    border-radius: 10px;
}

.skip-link:focus {
    left: 12px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

h1, h2, h3, h4, h5, h6,
.brand-font,
.nav-font,
.playfair {
    font-family: var(--font-didone);
    letter-spacing: 0.06em;
}

.brand-font {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-font {
    font-weight: 500;
    letter-spacing: 0.12em;
}

.text-cream { color: var(--cream) !important; }
.text-snow-white { color: var(--cream) !important; }
.text-sage-green { color: var(--cream-muted) !important; }
.text-forest-green { color: var(--bg) !important; }
.text-golden { color: var(--gold-2) !important; }
.text-warm-amber { color: var(--warm-amber) !important; }
.bg-forest-green { background: var(--bg-2) !important; }
.bg-golden { background: linear-gradient(135deg, var(--gold), var(--gold-2)) !important; }
.border-golden { border-color: var(--border-gold) !important; }

.hours-standalone-media {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.65);
    background: rgba(0, 0, 0, 0.25);
}

.hours-standalone-caption {
    margin-top: 18px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Crop a few pixels off the bottom of hours.svg to hide the accidental artifact line */
.hours-art {
    display: block;
    width: 100%;
    height: auto;
    -webkit-clip-path: inset(0 0 14px 0);
    clip-path: inset(0 0 14px 0);
}

/* Crop the large empty bottom area in the SVG by giving it a fixed responsive height and covering from the top */
.hours-svg-img {
    display: block;
    width: 100%;
    height: clamp(420px, 60vw, 720px);
    object-fit: cover;
    object-position: top center;
}

.hours-standalone-media--home {
    height: auto !important;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.25);
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.65);
    max-width: 900px;
    margin: 0 auto;
}

.op-hours-section {
    position: relative;
    overflow: hidden;
    background-image: none;
}

.op-hours-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.op-hours-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.op-hours-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.65));
}

.op-hours-content {
    position: relative;
    z-index: 2;
}

.hours-svg-img--home {
    width: 100%;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block;
}

@media (min-width: 768px) {
    .hours-svg-img--home {
        width: 85%;
        margin: 0 auto;
    }
}

.hours-svg-img--location {
    height: auto !important;
    max-height: 80vh;
    object-fit: contain !important;
    object-position: center !important;
    width: 100%;
    display: block;
}

.hours-standalone-media:has(.hours-svg-img--location) {
    height: auto;
}

.highlight-cta-row {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: none;
    align-items: center;
    gap: 12px;
}

.highlight-cta-row .highlight-cta {
    position: static;
    display: inline-flex;
}

.click-hint {
    font-size: 0.85rem;
    line-height: 1;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0.9;
    white-space: nowrap;
}

@media (hover: none) and (pointer: coarse) {
    .highlight-cta-row {
        display: inline-flex;
    }
}

@media (max-width: 480px) {
    .click-hint {
        font-size: 0.8rem;
    }

    .highlight-cta-row {
        gap: 10px;
    }
}

@media (max-width: 360px) {
    .highlight-cta-row {
        flex-wrap: wrap;
    }
}

@media (min-width: 1024px) {
    .highlight-cta-row {
        display: none !important;
    }
}

.glass {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-gold);
    backdrop-filter: blur(10px);
}

.nav-glass {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-gold);
    position: relative;
    z-index: 10000;
    overflow: visible;
}

header,
nav,
.navbar,
.nav-header,
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
}

.nav-glass .nav-brand,
.nav-glass .nav-brand a,
.nav-glass a,
.nav-glass button {
    color: var(--cream) !important;
}

.nav-glass a:hover,
.nav-glass button:hover {
    color: var(--gold-2) !important;
}

.nav-brand-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.brand-logo {
    height: 56px;
    width: auto;
    display: block;
}

@media (max-width: 640px) {
    .brand-logo {
        height: 46px;
    }
}

.logo-m {
    position: relative;
    display: inline-block;
}

.nav-glass .container {
    position: relative;
    z-index: 1;
}

#interactive-map {
    scroll-margin-top: calc(var(--nav-height, 90px) + 16px);
}

#about-us {
    scroll-margin-top: 120px;
}

.about-text-col {
    position: relative;
}

.about-text-col::before {
    content: "";
    position: absolute;
    inset: -24px -16px -24px -24px;
    background: linear-gradient(90deg, rgba(15, 12, 8, 0.78) 0%, rgba(15, 12, 8, 0.45) 45%, rgba(15, 12, 8, 0) 100%);
    pointer-events: none;
    z-index: 0;
}

.about-story-wrap {
    position: relative;
    z-index: 1;
}

.about-story {
    max-width: 68ch;
}

.about-title {
    font-size: clamp(2.1rem, 1.6rem + 1.6vw, 3rem);
    line-height: 1.15;
}

.about-tagline {
    font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem);
}

.about-rule {
    width: 72px;
    height: 1px;
    background: rgba(176, 138, 75, 0.6);
    margin-bottom: 1.25rem;
}

.about-paragraph {
    font-size: clamp(1rem, 0.95rem + 0.4vw, 1.125rem);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.about-signature {
    margin-top: 1.5rem;
}

.about-lead {
    position: relative;
}

.about-lead-fade {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48px;
    background: linear-gradient(180deg, rgba(15, 12, 8, 0) 0%, rgba(15, 12, 8, 0.92) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.about-story-rest {
    overflow: hidden;
    max-height: none;
    opacity: 1;
    transition: max-height 0.45s ease, opacity 0.3s ease;
}

.about-toggle {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--gold-2);
    background: transparent;
    border: 1px solid rgba(176, 138, 75, 0.4);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.about-toggle:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.about-carousel {
    margin-top: 0;
}

#about-us .ig-stack-carousel,
#about-us #aboutCarousel {
    position: relative;
    isolation: isolate;
    overflow: visible;
}

#about-us .ig-stack-viewport,
#about-us .ig-stack-track {
    position: relative;
    z-index: 1;
}

#about-us .ig-stack-nav {
    position: absolute;
    top: 50%;
    z-index: 60;
    pointer-events: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

#about-us .ig-stack-nav.ig-prev,
#about-us .ig-stack-nav.ig-next {
    transform: translate3d(-50%, -50%, 180px);
    -webkit-transform: translate3d(-50%, -50%, 180px);
}

@media (min-width: 1024px) {
    #about-us .about-carousel-col {
        transform: translate3d(
            clamp(-96px, -5vw, -56px),
            clamp(140px, 14vh, 260px),
            0
        );
        will-change: transform;
    }
}

@media (max-width: 767px) {
    .about-text-col::before {
        inset: -16px -12px -16px -16px;
    }

    .about-story {
        max-width: 100%;
    }

    .about-lead-fade {
        display: block;
    }

    .about-story-rest {
        max-height: 0;
        opacity: 0;
    }

    .about-story.is-expanded .about-story-rest {
        opacity: 1;
    }

    .about-story.is-expanded .about-lead-fade {
        opacity: 0;
    }

    .about-carousel {
        margin: 1.5rem 0;
    }
}

@media (hover: none) and (pointer: coarse) {
    #about-us .ig-stack-nav {
        opacity: 1 !important;
        visibility: visible !important;
        display: inline-flex !important;
        width: 34px;
        height: 34px;
        border-radius: 999px;
        align-items: center;
        justify-content: center;
        padding: 0;
        line-height: 0;
        background: rgba(0, 0, 0, 0.55);
        border: 1px solid rgba(201, 168, 108, 0.55);
        backdrop-filter: blur(8px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        color: rgba(201, 168, 108, 0.95);
        font-size: 18px;
        line-height: 1;
    }
}

@media (max-width: 640px) {
    #interactive-map {
        scroll-margin-top: calc(var(--nav-height, 90px) + 4px);
    }
}

button,
input,
select,
textarea {
    font-family: var(--font-didone);
}

.dancing {
    font-family: var(--font-didone);
    font-style: italic;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: var(--bg);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(176, 138, 75, 0.28);
}

.seasonal-card {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-gold);
    transition: all 0.3s ease;
}

.seasonal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(176, 138, 75, 0.3);
}


.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.brewing-calculator {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-gold);
}

.roast-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    border: 1px solid var(--border-gold);
}

.light-roast { background: var(--gold-2); }
.medium-roast { background: var(--gold); }
.dark-roast { background: #3a2a15; }

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.category-tile {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-gold);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    backdrop-filter: blur(10px);
}

.category-tile img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.category-tile .category-caption {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.9rem;
}

.category-tile:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 18px 40px rgba(176, 138, 75, 0.25);
}

.menu-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.menu-item-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-gold);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.menu-item-card:hover,
.menu-item-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(176, 138, 75, 0.22);
    border-color: var(--gold);
}

.menu-item-card h3 {
    color: var(--gold-2);
}
