/* ==========================================================================
   ROASTRY BY CAFFEINE DREAM - DESIGN SYSTEM & STYLES
   ========================================================================== */

/* --- Custom Properties (CSS Variables) --- */
:root {
    --bg-primary: #151210;
    --bg-secondary: #211A16;
    --color-coffee: #5B3A29;
    --color-bean: #7A5232;
    --color-copper: #A36C39;
    --color-cream: #EADBC8;
    --color-white: #F9F5EF;
    --color-gold: #C5A880;
    --color-gold-dark: #A1825B;
    --color-muted: rgba(249, 245, 239, 0.6);
    --color-border: rgba(234, 220, 200, 0.1);
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    --header-height: 90px;
}

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

html {
    scroll-behavior: auto; /* Handled by Lenis */
    background-color: var(--bg-primary);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    position: relative;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-white);
}

p {
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.serif { font-family: var(--font-heading); }
.italic { font-style: italic; }
.gold { color: var(--color-gold); }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--color-coffee);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-copper);
}

/* --- Custom Cursor --- */
.custom-cursor {
    width: 8px;
    height: 8px;
    background-color: var(--color-gold);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.custom-cursor-follower {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.08s ease-out, width 0.3s, height 0.3s, border-color 0.3s;
}

/* Cursor Hover states */
body.hovered-interactive .custom-cursor {
    width: 4px;
    height: 4px;
    background-color: var(--color-white);
}
body.hovered-interactive .custom-cursor-follower {
    width: 64px;
    height: 64px;
    border-color: var(--color-gold);
    background-color: rgba(197, 168, 128, 0.05);
}

@media (max-width: 1024px) {
    .custom-cursor, .custom-cursor-follower {
        display: none !important;
    }
}

/* --- UI Components (Buttons & Details) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 0;
    transition: var(--transition-smooth);
    cursor: pointer;
    gap: 8px;
}

.btn i {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--bg-primary);
    border: 1px solid var(--color-gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-gold);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid rgba(249, 245, 239, 0.2);
}

.btn-secondary:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: 1px solid #25D366;
}

.btn-whatsapp:hover {
    background-color: transparent;
    color: #25D366;
}

.btn-nav {
    padding: 10px 20px;
    font-size: 0.75rem;
}

/* --- Preloader Screen --- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-primary);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), visibility 1s;
}

.loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    width: 80%;
    max-width: 500px;
}

.loader-sub {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--color-gold);
    display: block;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.loader-title-wrap {
    overflow: hidden;
    margin-bottom: 30px;
}

.loader-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-style: italic;
    font-weight: 300;
    transform: translateY(100%);
    animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.loader-progress {
    height: 1px;
    width: 100%;
    background-color: rgba(249, 245, 239, 0.1);
    position: relative;
    overflow: hidden;
}

.loader-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--color-gold);
    animation: progressFill 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    to { transform: translateY(0); }
}
@keyframes progressFill {
    to { width: 100%; }
}

/* --- Main Header Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    background-color: rgba(21, 18, 16, 0.85);
    backdrop-filter: blur(20px);
    border-color: var(--color-border);
    height: 80px;
}

.header-container {
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: var(--color-gold);
    margin-top: 4px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
    position: relative;
    padding: 10px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-gold);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-white);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 105;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 1px;
    background-color: var(--color-white);
    transition: var(--transition-fast);
}

/* Mobile Nav Open State */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-primary);
    z-index: 99;
    padding: 120px 40px 40px;
    transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    color: var(--color-white);
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu-toggle.open .bar:first-child {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.open .bar:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .nav-links, .header-actions .btn-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .header-container {
        padding: 0 25px;
    }
}

/* --- Section Layout Boilerplate --- */
section {
    padding: 160px 0;
    position: relative;
    width: 100vw;
    background-color: var(--bg-primary);
    overflow: hidden;
}

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

@media (max-width: 768px) {
    section {
        padding: 100px 0;
    }
    .section-container {
        padding: 0 20px;
    }
}

.chapter-number {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: var(--color-gold);
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 30px;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
}

/* --- CHAPTER ONE: HERO --- */
.hero-section {
    height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-bg-video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(21, 18, 16, 0.4) 0%,
        rgba(21, 18, 16, 0.75) 60%,
        var(--bg-primary) 100%
    );
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
    width: 100%;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .hero-container {
        padding: 0 25px;
    }
}

.hero-pre {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    color: var(--color-gold);
    display: block;
    margin-bottom: 25px;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 1.05;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 30px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    max-width: 550px;
    margin-bottom: 50px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.scroll-text {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background-color: rgba(249, 245, 239, 0.1);
    position: relative;
    overflow: hidden;
}

.scroll-line-fill {
    width: 100%;
    height: 30%;
    background-color: var(--color-gold);
    position: absolute;
    top: -30%;
    animation: scrollDownFlow 2s infinite ease-in-out;
}

@keyframes scrollDownFlow {
    0% { top: -30%; }
    50% { top: 100%; }
    100% { top: 100%; }
}

/* --- CHAPTER TWO: FROM BEAN TO CUP (HORIZONTAL SCROLL) --- */
.bean-to-cup-section {
    padding: 0;
    overflow: visible; /* Needed for pinning */
}

.pin-container {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.horizontal-scroll-wrap {
    display: flex;
    height: 100%;
    width: 700vw; /* 7 panels */
    will-change: transform;
}

.horizontal-slide {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    padding: 0 100px;
    border-right: 1px solid rgba(234, 220, 200, 0.05);
}

.slide-content {
    max-width: 600px;
}

.slide-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 25px;
}

.slide-desc {
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.scroll-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--color-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-hint i {
    width: 16px;
    height: 16px;
    animation: bounceRight 1.5s infinite;
}

@keyframes bounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.slide-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    width: 100%;
    max-width: 1200px;
    align-items: center;
}

.slide-img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease-out;
}

.horizontal-slide:hover .slide-img {
    transform: scale(1.05);
}

.slide-text {
    max-width: 450px;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-style: italic;
    color: var(--color-gold);
    opacity: 0.3;
    display: block;
    margin-bottom: 10px;
    line-height: 1;
}

.step-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 20px;
}

.step-desc {
    font-size: 1.05rem;
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .bean-to-cup-section {
        padding: 80px 0;
    }
    .pin-container {
        height: auto !important;
        overflow: visible !important;
    }
    .horizontal-scroll-wrap {
        width: 100% !important;
        height: auto !important;
        flex-direction: column !important;
        transform: none !important;
        position: relative;
        padding-left: 30px !important;
        box-sizing: border-box;
    }
    /* Glowing vertical timeline line */
    .horizontal-scroll-wrap::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 15px;
        width: 1px;
        background: linear-gradient(to bottom, var(--color-gold) 0%, rgba(197, 168, 128, 0.1) 100%);
    }
    .horizontal-slide {
        width: 100% !important;
        height: auto !important;
        padding: 60px 20px !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(234, 220, 200, 0.05);
        background-color: transparent !important;
        position: relative;
        /* Scroll reveal transition base states */
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    }
    /* Timeline glowing nodes */
    .horizontal-slide::before {
        content: '';
        position: absolute;
        left: -20px;
        top: 75px;
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background-color: var(--color-gold);
        border: 2px solid var(--bg-primary);
        box-shadow: 0 0 8px var(--color-gold);
        z-index: 2;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        transform: scale(0);
    }
    .horizontal-slide.reveal-active {
        opacity: 1;
        transform: translateY(0);
    }
    .horizontal-slide.reveal-active::before {
        transform: scale(1);
    }
    .slide-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .slide-img-wrap {
        aspect-ratio: 16/10;
        max-height: 35vh;
    }
}

/* --- CHAPTER THREE: THE ROASTERY (EDITORIAL) --- */
.roastery-section {
    background-color: var(--bg-primary);
}

.editorial-grid {
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    gap: 180px;
}

.editorial-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 100px;
    align-items: center;
}

.editorial-card.text-right {
    grid-template-columns: 0.8fr 1.2fr;
}

.editorial-img-wrap {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}

.editorial-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editorial-content {
    max-width: 420px;
}

.editorial-card.text-right .editorial-content {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
}

.editorial-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 25px;
}

.editorial-desc {
    font-size: 1.1rem;
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .editorial-grid {
        gap: 100px;
    }
    .editorial-card, .editorial-card.text-right {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .editorial-card.text-right .editorial-content {
        grid-column: unset;
        grid-row: unset;
        justify-self: start;
    }
    .editorial-img-wrap {
        aspect-ratio: 16/11;
    }
}

/* Parallax zoom effect support */
.parallax-img-wrap {
    overflow: hidden;
}
.parallax-img {
    height: 120%; /* Extra height to scroll through */
    width: 100%;
    object-fit: cover;
    margin-top: -10%;
}

/* --- CHAPTER FOUR: THE MENU --- */
.menu-section {
    background-color: var(--bg-secondary);
}

.menu-hero-visual {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}

.menu-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.menu-hero-slide.active {
    opacity: 1;
}

.menu-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(33, 26, 22, 0.2), rgba(33, 26, 22, 0.8));
    z-index: 1;
}

.menu-hero-caption {
    position: absolute;
    bottom: 30px;
    left: 40px;
    z-index: 2;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
}

/* Menu Tabs styling */
.menu-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 20px; /* Vertical and horizontal gap to separate wrapped lines */
    margin-bottom: 70px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 15px; /* Tighter padding bottom to fit the border */
}

.menu-tab-btn {
    background: transparent;
    border: none;
    color: var(--color-muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.menu-tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0; /* Align perfectly with the bottom of the button box */
    left: 20px; /* Margins matching the left/right padding */
    right: 20px;
    height: 2px;
    background-color: var(--color-gold);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scaleX(0); /* Standard hidden state */
    transform-origin: center;
}

.menu-tab-btn.active {
    color: var(--color-gold);
}

.menu-tab-btn.active::after {
    transform: scaleX(1); /* Full expand on active */
}

.menu-tab-btn:hover {
    color: var(--color-white);
}

.menu-tab-btn:hover::after {
    transform: scaleX(0.5); /* Subtle partial expand on float */
}

/* Menu Items Grid */
.menu-items-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 80px;
    min-height: 350px;
    transition: opacity 0.4s ease;
}

@media (max-width: 900px) {
    .menu-items-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.menu-item {
    display: flex;
    flex-direction: column;
    padding-bottom: 25px;
    border-bottom: 1px dashed rgba(234, 220, 200, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.menu-item-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--color-white);
    transition: var(--transition-fast);
}

.menu-item-price {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-gold);
    margin-left: 20px;
}

.menu-item-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 85%;
}

.menu-item:hover .menu-item-name {
    color: var(--color-gold);
}

/* --- CHAPTER FIVE: SIGNATURE CREATIONS --- */
.signatures-section {
    background-color: var(--bg-primary);
}

.signatures-wrap {
    display: flex;
    flex-direction: column;
    gap: 160px;
    margin-top: 100px;
}

.sig-row {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 100px;
    align-items: center;
}

.sig-row.reverse {
    grid-template-columns: 1.05fr 0.95fr;
}

.sig-info {
    max-width: 480px;
}

.sig-row.reverse .sig-info {
    grid-column: 2;
}

.sig-row.reverse .sig-visual {
    grid-column: 1;
    grid-row: 1;
}

.sig-cat {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--color-gold);
    margin-bottom: 20px;
    display: block;
}

.sig-title {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    margin-bottom: 25px;
}

.sig-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.sig-pairing {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-style: italic;
    color: var(--color-gold-dark);
    display: block;
    border-left: 2px solid var(--color-coffee);
    padding-left: 15px;
}

.sig-visual {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.sig-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.sig-row:hover .sig-img {
    transform: scale(1.06);
}

@media (max-width: 1024px) {
    .signatures-wrap {
        gap: 100px;
    }
    .sig-row, .sig-row.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .sig-row.reverse .sig-info {
        grid-column: unset;
    }
    .sig-row.reverse .sig-visual {
        grid-column: unset;
        grid-row: unset;
    }
    .sig-visual {
        aspect-ratio: 16/11;
    }
}

/* --- CHAPTER SIX: THE EXPERIENCE --- */
.experience-section {
    background-color: var(--bg-secondary);
}

.experience-showcase {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: center;
    margin-top: 80px;
}

.exp-left {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.exp-quote-wrap {
    border-left: 2px solid var(--color-gold);
    padding-left: 40px;
}

.quote-mark {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
    color: var(--color-gold);
    opacity: 0.3;
    display: block;
    margin-bottom: -20px;
}

.exp-quote {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-style: italic;
    line-height: 1.4;
    color: var(--color-white);
    margin-bottom: 20px;
}

.quote-author {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
}

.exp-img-small {
    width: 80%;
    aspect-ratio: 4/5;
}

.exp-img-large {
    width: 100%;
    aspect-ratio: 4/5;
    margin-bottom: 40px;
}

.exp-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exp-text-block {
    max-width: 480px;
}

.exp-text-block h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.exp-text-block p {
    font-size: 1.05rem;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .experience-showcase {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .exp-left {
        gap: 40px;
    }
    .exp-img-small {
        width: 100%;
        aspect-ratio: 16/11;
    }
    .exp-img-large {
        aspect-ratio: 16/11;
    }
}

/* --- CHAPTER SEVEN: THE GALLERY (HORIZONTAL REEL) --- */
.gallery-section {
    background-color: var(--bg-primary);
    padding-right: 0;
}

.gallery-header {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 40px;
}

.gallery-sub {
    font-size: 1.1rem;
    margin-top: 15px;
}

/*.gallery-track-outer styles optimized for touch */
.gallery-track-outer {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-left: 40px;
    padding-bottom: 20px;
    /* Hide scrollbar but keep scroll function */
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch; /* Momentum scrolling on touch devices */
}
.gallery-track-outer::-webkit-scrollbar {
    display: none;
}

.gallery-track {
    display: flex;
    gap: 30px;
    width: max-content;
}

.gallery-item {
    position: relative;
    width: 420px;
    height: 520px;
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
}

.gallery-img, .gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(21, 18, 16, 0.8), transparent);
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-white);
    transform: translateY(10px);
    opacity: 0;
    transition: var(--transition-fast);
    z-index: 2;
}

.gallery-item:hover .gallery-img, 
.gallery-item:hover .gallery-video {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-item-caption {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .gallery-track-outer {
        padding-left: 20px;
    }
    .gallery-item {
        width: 300px;
        height: 380px;
    }
}

/* --- CHAPTER EIGHT: COMMUNITY LOVE --- */
.reviews-section {
    background-color: var(--bg-secondary);
}

.reviews-rating-header {
    margin-bottom: 80px;
}

.rating-badge {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    padding: 35px 50px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
}

.rating-num {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1;
    color: var(--color-white);
    margin-bottom: 10px;
}

.stars {
    display: flex;
    gap: 5px;
    margin-bottom: 12px;
}

.stars i, .review-stars i {
    width: 18px;
    height: 18px;
}

.fill-gold {
    color: var(--color-gold);
    fill: var(--color-gold);
}

.half-gold {
    color: var(--color-gold);
    /* Simplified star color mapping */
    fill: var(--color-gold);
    opacity: 0.7;
}

.rating-count {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--color-muted);
    text-transform: uppercase;
}

/* Review Cards Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 900px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

.review-card {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--color-border);
    padding: 40px;
    transition: var(--transition-smooth);
}

.review-card:hover {
    border-color: rgba(197, 168, 128, 0.3);
    background-color: rgba(197, 168, 128, 0.02);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    align-items: baseline;
}

.reviewer-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-white);
}

.review-tag {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
    border: 1px solid rgba(197, 168, 128, 0.2);
    padding: 3px 10px;
}

.review-text {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.review-stars {
    display: flex;
    gap: 4px;
}

/* --- CHAPTER NINE: INSTAGRAM --- */
.instagram-section {
    background-color: var(--bg-primary);
}

.instagram-username {
    margin-bottom: 60px;
    font-family: var(--font-body);
    font-size: 1.2rem;
    letter-spacing: 0.05em;
}

.instagram-username i {
    width: 14px;
    height: 14px;
    margin-left: 2px;
}

.instagram-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.insta-item {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.insta-item.animate-tall {
    grid-row: span 2;
    aspect-ratio: 1/2;
}

.insta-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.insta-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(21, 18, 16, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: var(--transition-fast);
    padding: 30px;
    text-align: center;
}

.insta-hover i {
    width: 28px;
    height: 28px;
    color: var(--color-gold);
}

.insta-hover span {
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-white);
}

.insta-item:hover .insta-img {
    transform: scale(1.05);
}

.insta-item:hover .insta-hover {
    opacity: 1;
}

@media (max-width: 900px) {
    .instagram-masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .insta-item.animate-tall {
        grid-row: unset;
        aspect-ratio: 1/1;
    }
}

@media (max-width: 600px) {
    .instagram-masonry {
        grid-template-columns: 1fr;
    }
}

/* --- CHAPTER TEN: VISIT ROASTRY --- */
.contact-section {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--color-border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 80px;
    margin-top: 60px;
    align-items: stretch;
}

.contact-info-wrap {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-block {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--color-gold);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.info-val {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--color-white);
}

.info-link {
    border-bottom: 1px solid rgba(249, 245, 239, 0.2);
    padding-bottom: 2px;
}

.info-link:hover {
    color: var(--color-gold);
    border-color: var(--color-gold);
}

.info-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.contact-map {
    width: 100%;
    min-height: 450px;
    background-color: rgba(255,255,255,0.01);
    border: 1px solid var(--color-border);
    padding: 12px;
}

.map-wrapper {
    width: 100%;
    height: 100%;
    filter: invert(90%) hue-rotate(180deg) grayscale(100%) contrast(90%); /* Elegant dark map overlay */
    opacity: 0.8;
    transition: var(--transition-fast);
}

.map-wrapper:hover {
    opacity: 1;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .contact-map {
        min-height: 350px;
    }
}

/* --- FINAL SCENE (FOOTER) --- */
.final-scene {
    background-color: var(--bg-primary);
    position: relative;
    padding: 160px 0 60px;
    text-align: center;
    overflow: hidden;
}

.steam-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.15;
}

.footer-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-quote-wrap {
    margin-bottom: 60px;
}

.footer-quote {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    font-style: italic;
    color: var(--color-white);
    line-height: 1.25;
}

.footer-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 120px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--color-border);
    padding-top: 40px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--color-muted);
}

@media (max-width: 768px) {
    .final-scene {
        padding: 100px 0 40px;
    }
    .footer-actions {
        margin-bottom: 80px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

/* --- SCROLL REVEAL UTILITIES (Triggered by GSAP) --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-on-scroll {
    overflow: hidden;
}
.reveal-on-scroll img {
    opacity: 0;
    transform: scale(1.15);
    transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.active img {
    opacity: 1;
    transform: scale(1);
}
