/* recycle.cafe - Cottagecore Wabi-Sabi Cafe */

:root {
    --amber-glow: #D4A574;
    --oat-milk: #F5E6C8;
    --espresso-board: #2C2416;
    --roast-dark: #3D2B1F;
    --chalk-white: #E8E0D0;
    --matcha: #7A9E7E;
    --terracotta: #B8734A;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Serif 4', serif;
    background-color: var(--oat-milk);
    color: var(--roast-dark);
    overflow-x: hidden;
}

.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
}

.section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* ========== SECTION 1: THE STOREFRONT ========== */

.section--storefront {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 50% 40%, #F5E6C8 0%, #D4A574 70%, #B8734A 100%);
    position: relative;
}

.storefront__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, rgba(245, 230, 200, 0.4) 0%, transparent 60%);
    pointer-events: none;
}

.condensation {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.droplet {
    position: absolute;
}

.storefront__content {
    text-align: center;
    z-index: 3;
    position: relative;
}

.storefront__title {
    font-family: 'Caveat', cursive;
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: var(--roast-dark);
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.storefront__subtitle {
    font-family: 'Overpass Mono', monospace;
    font-size: 0.85rem;
    color: var(--espresso-board);
    letter-spacing: 0.08em;
    opacity: 0.7;
}

.storefront__reverse-hint {
    position: absolute;
    bottom: 15%;
    right: 8%;
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: var(--roast-dark);
    opacity: 0.15;
    transform: scaleX(-1);
    pointer-events: none;
}

/* ========== SECTION 2: THE COUNTER ========== */

.section--counter {
    min-height: 100vh;
    background-color: var(--oat-milk);
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.section--counter::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
    opacity: 0.15;
    pointer-events: none;
}

.section__heading {
    font-family: 'Caveat', cursive;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--roast-dark);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.counter__scroll-area {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 1;
}

.counter__scroll-area::-webkit-scrollbar {
    height: 4px;
}

.counter__scroll-area::-webkit-scrollbar-track {
    background: rgba(61, 43, 31, 0.05);
}

.counter__scroll-area::-webkit-scrollbar-thumb {
    background: var(--terracotta);
    border-radius: 2px;
}

.counter__cards {
    display: flex;
    gap: 1.5rem;
    padding: 2rem 4rem;
    width: max-content;
}

.menu-card {
    min-width: 280px;
    max-width: 320px;
    flex-shrink: 0;
    scroll-snap-align: center;
    background: linear-gradient(135deg, #f0e0c8 0%, #e8d5b8 100%);
    border: 1px solid rgba(184, 115, 74, 0.2);
    padding: 2rem 1.5rem;
    position: relative;
    transition: transform 0.3s ease;
}

.menu-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.4;
}

.menu-card__inner {
    position: relative;
    z-index: 1;
}

.menu-card__label {
    font-family: 'Overpass Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--matcha);
    display: block;
    margin-bottom: 0.75rem;
}

.menu-card__title {
    font-family: 'Caveat', cursive;
    font-size: 1.6rem;
    color: var(--roast-dark);
    margin-bottom: 0.75rem;
}

.menu-card__story {
    font-family: 'Source Serif 4', serif;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--roast-dark);
    margin-bottom: 1rem;
}

.menu-card__origin {
    font-family: 'Overpass Mono', monospace;
    font-size: 0.75rem;
    color: var(--terracotta);
    display: block;
    border-top: 1px solid rgba(184, 115, 74, 0.15);
    padding-top: 0.75rem;
}

/* ========== SECTION 3: THE CHALKBOARD ========== */

.section--chalkboard {
    min-height: 100vh;
    background-color: var(--espresso-board);
    color: var(--chalk-white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 2rem;
}

.chalkboard__noise {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
    opacity: 0.15;
    pointer-events: none;
}

.chalkboard__content {
    max-width: 700px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.chalkboard__heading {
    font-family: 'Caveat', cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--chalk-white);
    margin-bottom: 2rem;
}

.chalkboard__text {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.8;
    color: var(--chalk-white);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.chalk-illustrations {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.chalk-drawing {
    opacity: 0.6;
}

.chalk-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 2s ease;
}

.chalk-drawing.drawn .chalk-line {
    stroke-dashoffset: 0;
}

/* ========== SECTION 4: THE WINDOW SEAT ========== */

.section--windowseat {
    min-height: 100vh;
    background-color: var(--oat-milk);
    padding: 6rem 4rem;
    display: flex;
    align-items: center;
}

.windowseat__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.windowseat__left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.coffee-ring {
    margin-bottom: 3rem;
    opacity: 0;
    transition: opacity 1s ease;
}

.coffee-ring.visible {
    opacity: 1;
}

.windowseat__quote {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: var(--roast-dark);
    text-align: center;
    line-height: 1.6;
    font-style: italic;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.windowseat__quote.visible {
    opacity: 0.8;
    transform: translateY(0);
}

.windowseat__right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.postcard {
    background: linear-gradient(135deg, #faf3e8 0%, #f0e6d4 100%);
    border: 1px solid rgba(184, 115, 74, 0.15);
    padding: 1.5rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.postcard.visible {
    opacity: 1;
    transform: translateY(0) rotate(var(--rotation, 0deg));
}

.postcard__stamp {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

.postcard__text {
    font-family: 'Source Serif 4', serif;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--roast-dark);
    margin-bottom: 0.75rem;
    padding-right: 3rem;
}

.postcard__address {
    font-family: 'Caveat', cursive;
    font-size: 0.95rem;
    color: var(--terracotta);
    display: block;
    text-align: right;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .windowseat__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section--windowseat {
        padding: 4rem 2rem;
    }

    .counter__cards {
        padding: 2rem;
    }

    .chalk-illustrations {
        gap: 2rem;
    }
}
