/* ===================================
   recycle.cafe - Retro Cafe Styles
   =================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --retro-red: #C44536;
    --retro-blue: #3D6B8B;
    --retro-yellow: #D4A040;
    --cafe-cream: #F5ECD8;
    --chalkboard-green: #2D4A3E;
    --cork-brown: #A08060;
    --espresso-dark: #2C1F14;
    --muted-tan: #C0B8A8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Bitter', Georgia, serif;
    font-weight: 400;
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.7;
    color: var(--espresso-dark);
    background: var(--cafe-cream);
    overflow-x: hidden;
}

/* --- Grid-line underlay --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--muted-tan) 1px, transparent 1px),
        linear-gradient(90deg, var(--muted-tan) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

/* ============================
   CAFE FRONT (Hero)
   ============================ */
.cafe-front {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--cafe-cream);
    overflow: hidden;
    z-index: 1;
}

/* Grain overlay */
.grain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* --- Awning Icons --- */
.awning {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 24px 20px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(196,69,54,0.12) 0%, transparent 100%);
    border-bottom: 3px solid var(--retro-red);
}

.awning-icon {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.awning-icon.visible {
    opacity: 1;
    transform: translateX(0);
}

.awning-icon svg {
    display: block;
    width: 36px;
    height: 36px;
}

/* --- Wordmark --- */
.wordmark-container {
    text-align: center;
    z-index: 2;
    position: relative;
}

.wordmark {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(48px, 12vw, 120px);
    text-transform: uppercase;
    color: var(--espresso-dark);
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 8px;
}

.underline-swash {
    display: block;
    width: clamp(240px, 50vw, 500px);
    height: 30px;
    margin: 0 auto;
}

.underline-swash path {
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
    transition: stroke-dashoffset 1.2s ease;
}

.underline-swash.drawn path {
    stroke-dashoffset: 0;
}

/* --- Tagline --- */
.tagline {
    font-family: 'Patrick Hand', cursive;
    font-size: clamp(18px, 3vw, 28px);
    color: var(--retro-blue);
    margin-top: 16px;
    z-index: 2;
    position: relative;
}

/* --- Scroll Hint --- */
.scroll-hint {
    position: absolute;
    bottom: 32px;
    z-index: 2;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ============================
   CHALKBOARD MENU
   ============================ */
.menu-board {
    position: relative;
    z-index: 1;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    background: var(--espresso-dark);
}

.chalkboard {
    background: var(--chalkboard-green);
    border-radius: 4px;
    padding: clamp(24px, 5vw, 60px);
    max-width: 800px;
    width: 100%;
    box-shadow:
        inset 0 2px 8px rgba(0,0,0,0.3),
        0 0 0 8px #3a2a1a,
        0 0 0 12px #2C1F14;
    position: relative;
}

/* Chalk noise texture */
.chalkboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='cn'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23cn)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.chalkboard-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(32px, 5vw, 56px);
    text-transform: uppercase;
    color: var(--cafe-cream);
    text-align: center;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.chalkboard-subtitle {
    font-family: 'Patrick Hand', cursive;
    font-size: clamp(14px, 2vw, 20px);
    color: var(--retro-yellow);
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

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

/* --- Individual Menu Items --- */
.menu-item {
    border-bottom: 1px dashed rgba(245, 236, 216, 0.2);
    margin-bottom: 4px;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 3px;
    user-select: none;
}

.menu-item-header:hover {
    background: rgba(245, 236, 216, 0.06);
}

.menu-item-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.menu-item-name {
    font-family: 'Patrick Hand', cursive;
    font-size: clamp(20px, 3vw, 28px);
    color: var(--cafe-cream);
    flex: 1;
}

.menu-item-toggle {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: var(--retro-yellow);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.menu-item.active .menu-item-toggle {
    transform: rotate(45deg);
}

/* Progressive disclosure content */
.menu-item-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 8px;
}

.menu-item.active .menu-item-content {
    max-height: 400px;
}

.menu-item-content ul {
    list-style: none;
    padding: 0 0 8px 36px;
}

.menu-item-content ul li {
    font-family: 'Patrick Hand', cursive;
    font-size: clamp(15px, 2vw, 19px);
    color: rgba(245, 236, 216, 0.85);
    padding: 3px 0;
    position: relative;
}

.menu-item-content ul li::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--retro-yellow);
}

.menu-note {
    font-family: 'Bitter', serif;
    font-size: 14px;
    font-style: italic;
    color: var(--retro-red);
    padding: 8px 0 16px 36px;
    opacity: 0.9;
}

/* ============================
   BULLETIN BOARD
   ============================ */
.bulletin-board {
    position: relative;
    z-index: 1;
    padding: 80px 20px;
    background:
        radial-gradient(circle at 20% 30%, #b8915e 0%, transparent 2%),
        radial-gradient(circle at 50% 60%, #c4a070 0%, transparent 1.5%),
        radial-gradient(circle at 80% 20%, #b08550 0%, transparent 2.5%),
        radial-gradient(circle at 35% 80%, #c09a68 0%, transparent 1.8%),
        radial-gradient(circle at 65% 45%, #b89060 0%, transparent 2%),
        radial-gradient(circle at 90% 75%, #a88050 0%, transparent 2.2%),
        radial-gradient(circle at 10% 55%, #c4a878 0%, transparent 1.6%),
        linear-gradient(135deg, #A08060 0%, #b89468 30%, #A08060 50%, #96774e 70%, #A08060 100%);
    min-height: 100vh;
}

/* Grid lines more visible on bulletin */
.bulletin-board::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--muted-tan) 1px, transparent 1px),
        linear-gradient(90deg, var(--muted-tan) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.12;
    pointer-events: none;
}

.bulletin-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(32px, 5vw, 56px);
    text-transform: uppercase;
    color: var(--espresso-dark);
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 0 rgba(245,236,216,0.4);
}

.bulletin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* --- Bulletin Cards --- */
.bulletin-card {
    background: var(--cafe-cream);
    padding: 32px 24px 24px;
    border-radius: 2px;
    transform: rotate(var(--rot, 0deg));
    box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bulletin-card:hover {
    transform: rotate(0deg) scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    z-index: 2;
}

.push-pin {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3));
}

.bulletin-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 24px;
    text-transform: uppercase;
    color: var(--espresso-dark);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.bulletin-card p {
    font-family: 'Bitter', serif;
    font-size: 15px;
    line-height: 1.6;
    color: #4a3a2a;
    margin-bottom: 12px;
}

.card-date {
    font-family: 'Patrick Hand', cursive;
    font-size: 14px;
    color: var(--retro-red);
    display: block;
    text-align: right;
}

/* ============================
   KITCHEN WINDOW FOOTER
   ============================ */
.kitchen-window {
    position: relative;
    z-index: 1;
    background: var(--espresso-dark);
    padding: 60px 20px 40px;
    text-align: center;
}

.kitchen-shelf {
    width: 100%;
    max-width: 900px;
    height: 6px;
    background: linear-gradient(180deg, #5a4030, #3a2a1a);
    border-radius: 2px;
    margin: 0 auto 48px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.order-tickets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto 40px;
}

.ticket {
    background: var(--cafe-cream);
    padding: 20px 24px;
    border-radius: 2px;
    min-width: 200px;
    max-width: 260px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    position: relative;
    transform: rotate(-1deg);
    transition: transform 0.3s ease;
}

.ticket:nth-child(2) {
    transform: rotate(1.5deg);
}

.ticket:nth-child(3) {
    transform: rotate(-0.5deg);
}

.ticket:hover {
    transform: rotate(0deg) translateY(-4px);
}

/* Ticket top tear */
.ticket::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--cafe-cream) 0px,
        var(--cafe-cream) 6px,
        transparent 6px,
        transparent 12px
    );
}

.ticket-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    color: var(--retro-red);
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 6px;
}

.ticket-value {
    font-family: 'Bitter', serif;
    font-size: 14px;
    color: var(--espresso-dark);
    line-height: 1.6;
    display: block;
}

.kitchen-footer-note {
    font-family: 'Patrick Hand', cursive;
    font-size: 16px;
    color: rgba(245, 236, 216, 0.5);
    margin-top: 24px;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 600px) {
    .awning {
        gap: 10px;
        padding: 16px 12px;
    }

    .awning-icon svg {
        width: 28px;
        height: 28px;
    }

    .chalkboard {
        padding: 24px 16px;
    }

    .bulletin-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 8px;
    }

    .order-tickets {
        flex-direction: column;
        align-items: center;
    }

    .ticket {
        width: 100%;
        max-width: 300px;
    }
}
