/* ============================================
   lunar.bar — Pop-Art Lunar Cocktail Bar
   Terracotta Warm Palette / Benday Dots / Comic Panels
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --terracotta: #c4653a;
    --deep-umber: #3d2014;
    --warm-cream: #f5ece0;
    --black-outline: #1a1a1a;
    --dusty-rose: #d4917a;
    --burnt-sienna: #a0522d;
    --pale-sand: #e8d5c0;
    --sage-botanical: #7a8b6f;
    --border-w: 4px;
}

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

html {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    overflow-x: hidden;
}

body {
    background: var(--warm-cream);
    color: var(--black-outline);
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.65;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
}

/* --- Scroll Container --- */
.scroll-container {
    width: 100%;
}

/* --- Panel Base --- */
.panel {
    position: relative;
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    border-bottom: var(--border-w) solid var(--black-outline);
    overflow: hidden;
}

.panel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Panel shadow (misregistered print effect) */
.panel-shadow {
    position: absolute;
    inset: 4px -4px -4px 4px;
    border: var(--border-w) solid var(--deep-umber);
    z-index: -1;
    pointer-events: none;
}

/* --- Benday Dot Overlays --- */
.benday-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.benday-terracotta-bg {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Ccircle cx='4' cy='4' r='3' fill='%23c4653a' opacity='0.15'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

.benday-sienna-bg {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9'%3E%3Ccircle cx='4.5' cy='4.5' r='3.5' fill='%23a0522d' opacity='0.12'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

.benday-cream-bg {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Ccircle cx='3.5' cy='3.5' r='2.5' fill='%23f5ece0' opacity='0.2'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* --- Typography --- */
.site-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(4rem, 10vw, 8rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--black-outline);
    line-height: 0.95;
    transform: rotate(-3deg);
    position: relative;
    z-index: 2;
    animation: title-breathe 4s ease-in-out infinite;
}

@keyframes title-breathe {
    0%, 100% { letter-spacing: 0.08em; }
    50% { letter-spacing: 0.12em; }
}

.vertical-text {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.5rem);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: var(--deep-umber);
}

.accent-label {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--deep-umber);
}

.card-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--black-outline);
    margin: 0.5rem 0;
}

.card-desc {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    line-height: 1.65;
    color: var(--deep-umber);
    margin-top: 0.5rem;
}

.display-number {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(5rem, 15vw, 12rem);
    color: var(--dusty-rose);
    opacity: 0.25;
    position: absolute;
    bottom: -20px;
    right: 10px;
    line-height: 1;
    z-index: 0;
}

/* --- Panel 1: Splash --- */
.panel-splash {
    background: var(--warm-cream);
}

.splash-diagonal-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 100% 0, 0 70%);
    background: var(--pale-sand);
    display: flex;
    align-items: flex-start;
    padding: 8vh 5vw;
    z-index: 2;
}

.splash-diagonal-bottom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 70%);
    background: var(--terracotta);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Crescent Moon --- */
.crescent-moon {
    position: relative;
}

.crescent-large {
    width: 300px;
    height: 300px;
}

.crescent-medium {
    width: 120px;
    height: 120px;
    position: absolute;
    top: 10%;
    right: 15%;
}

.crescent-small {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

.crescent-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--terracotta);
    border: 3px solid var(--black-outline);
}

.crescent-inner {
    position: absolute;
    width: 75%;
    height: 75%;
    border-radius: 50%;
    top: 5%;
    left: 20%;
}

.crescent-large .crescent-inner {
    background: var(--terracotta);
}

.panel-splash .crescent-large .crescent-outer {
    background: var(--pale-sand);
}

.panel-splash .crescent-large .crescent-inner {
    background: var(--terracotta);
}

.crescent-medium .crescent-outer {
    background: var(--dusty-rose);
}

.crescent-medium .crescent-inner {
    background: var(--warm-cream);
}

.crescent-small .crescent-outer {
    background: var(--terracotta);
    border-width: 2px;
}

.crescent-small .crescent-inner {
    background: var(--warm-cream);
}

/* --- Bubbles (Splash) --- */
.bubble-cluster-splash {
    position: absolute;
    bottom: 0;
    right: 5%;
    width: 300px;
    height: 60%;
    z-index: 5;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--terracotta);
    background: transparent;
    animation: bubble-pulse 3s ease-in-out infinite, bubble-rise 10s ease-in-out infinite;
}

.bubble-1 { width: 60px; height: 60px; bottom: 10%; left: 20%; animation-delay: 0s, 0s; }
.bubble-2 { width: 45px; height: 45px; bottom: 25%; left: 60%; animation-delay: 0.5s, 1s; border-color: var(--deep-umber); }
.bubble-3 { width: 80px; height: 80px; bottom: 40%; left: 10%; animation-delay: 1s, 2s; }
.bubble-4 { width: 35px; height: 35px; bottom: 55%; left: 45%; animation-delay: 1.5s, 0.5s; border-color: var(--deep-umber); }
.bubble-5 { width: 55px; height: 55px; bottom: 65%; left: 75%; animation-delay: 2s, 1.5s; }
.bubble-6 { width: 40px; height: 40px; bottom: 80%; left: 30%; animation-delay: 2.5s, 3s; border-color: var(--deep-umber); }
.bubble-7 { width: 70px; height: 70px; bottom: 5%; left: 50%; animation-delay: 0.3s, 0.8s; }

@keyframes bubble-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes bubble-rise {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* --- Panel 2: Flora --- */
.panel-flora {
    background: var(--warm-cream);
    border-left: var(--border-w) solid var(--black-outline);
}

.panel-flora .panel-inner {
    display: flex;
}

.flora-left {
    width: 65%;
    height: 100%;
    padding: 5vh 4vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
    border-right: var(--border-w) solid var(--black-outline);
    padding-top: calc(5vh + 40px);
}

.flora-right {
    width: 35%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pale-sand);
    position: relative;
    z-index: 2;
}

.flora-benday {
    z-index: 0;
}

/* --- Dahlia --- */
.dahlia {
    position: relative;
    animation: floral-pulse 5s ease-in-out infinite;
}

.dahlia-large {
    width: 200px;
    height: 200px;
}

.dahlia-signoff {
    width: 80px;
    height: 80px;
    margin: 1rem 0;
}

.dahlia-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 3px solid var(--black-outline);
    transform: translate(-50%, -50%);
}

.dahlia-ring-1 {
    width: 100%;
    height: 100%;
    background: var(--dusty-rose);
}

.dahlia-ring-2 {
    width: 65%;
    height: 65%;
    background: var(--terracotta);
}

.dahlia-ring-3 {
    width: 40%;
    height: 40%;
    background: var(--dusty-rose);
}

.dahlia-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20%;
    height: 20%;
    border-radius: 50%;
    background: var(--deep-umber);
    border: 2px solid var(--black-outline);
    transform: translate(-50%, -50%);
}

@keyframes floral-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.03) rotate(2deg); }
}

/* Chrysanthemum */
.chrysanthemum {
    position: relative;
    width: 160px;
    height: 160px;
    animation: floral-pulse 5s ease-in-out infinite;
    animation-delay: 1s;
}

.chrysanthemum-svg {
    width: 100%;
    height: 100%;
}

/* Leaf Sprig */
.leaf-sprig {
    position: absolute;
    bottom: 10%;
    left: 10%;
    width: 80px;
    height: 120px;
}

.leaf-svg {
    width: 100%;
    height: 100%;
}

/* --- Panel 3: Bubble Field --- */
.panel-bubbles {
    background: var(--deep-umber);
}

.bubble-field {
    position: relative;
    width: 100%;
    height: 100%;
}

.field-bubble {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--terracotta);
    background: radial-gradient(circle at 30% 30%, rgba(244,236,224,0.15) 0%, transparent 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bubble-pulse 3s ease-in-out infinite;
}

.bubble-flora-icon {
    width: 60%;
    height: 60%;
}

/* Bubble positions: dense cluster upper-right, sparse lower-left */
.fb-1 { width: 180px; height: 180px; top: 8%; right: 12%; animation-delay: 0s; border-color: var(--terracotta); }
.fb-2 { width: 100px; height: 100px; top: 5%; right: 35%; animation-delay: 0.4s; border-color: var(--deep-umber); border-color: var(--dusty-rose); }
.fb-3 { width: 140px; height: 140px; top: 20%; right: 5%; animation-delay: 0.8s; border-color: var(--deep-umber); border-color: var(--burnt-sienna); }
.fb-4 { width: 220px; height: 220px; top: 15%; right: 25%; animation-delay: 1.2s; border-color: var(--terracotta); }
.fb-5 { width: 80px; height: 80px; top: 35%; right: 45%; animation-delay: 1.6s; border-color: var(--dusty-rose); }
.fb-6 { width: 120px; height: 120px; top: 10%; right: 55%; animation-delay: 2s; border-color: var(--terracotta); }
.fb-7 { width: 160px; height: 160px; top: 45%; right: 15%; animation-delay: 0.3s; border-color: var(--terracotta); }
.fb-8 { width: 60px; height: 60px; bottom: 30%; left: 8%; animation-delay: 0.7s; border-color: var(--dusty-rose); }
.fb-9 { width: 90px; height: 90px; bottom: 15%; left: 20%; animation-delay: 1.1s; border-color: var(--terracotta); }
.fb-10 { width: 70px; height: 70px; bottom: 40%; left: 25%; animation-delay: 1.5s; border-color: var(--burnt-sienna); }
.fb-11 { width: 50px; height: 50px; bottom: 10%; left: 5%; animation-delay: 1.9s; border-color: var(--dusty-rose); }
.fb-12 { width: 110px; height: 110px; bottom: 25%; left: 35%; animation-delay: 2.3s; border-color: var(--terracotta); }

.bubble-label {
    position: absolute;
    bottom: 5%;
    left: 5%;
    color: var(--pale-sand);
    z-index: 2;
}

/* --- Panel 4: Menu --- */
.panel-menu {
    background: var(--warm-cream);
}

.menu-benday {
    left: 0;
    width: 40%;
    z-index: 0;
}

.menu-cards {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 55%;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 2;
}

.menu-card {
    position: relative;
    border: var(--border-w) solid var(--black-outline);
    padding: 2rem 2.5rem;
    overflow: hidden;
    animation: outline-pulse 6s ease-in-out infinite;
}

.menu-card::after {
    content: '';
    position: absolute;
    inset: 4px -4px -4px 4px;
    border: var(--border-w) solid var(--deep-umber);
    z-index: -1;
}

@keyframes outline-pulse {
    0%, 100% { border-width: 4px; }
    50% { border-width: 6px; }
}

.card-1 {
    background: var(--pale-sand);
    transform: rotate(-2deg);
    height: 240px;
    margin-bottom: -20px;
    z-index: 3;
}

.card-2 {
    background: var(--dusty-rose);
    transform: rotate(1deg);
    height: 220px;
    margin-bottom: -30px;
    margin-left: 30px;
    z-index: 2;
}

.card-3 {
    background: var(--warm-cream);
    transform: rotate(-1.5deg);
    height: 200px;
    z-index: 1;
}

/* --- Panel 5: Sign-Off --- */
.panel-signoff {
    background: var(--terracotta);
}

.signoff-block {
    position: absolute;
    bottom: 15%;
    left: 8%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 2;
    padding: 2rem;
    border: var(--border-w) solid var(--black-outline);
    background: var(--warm-cream);
}

.signoff-block::after {
    content: '';
    position: absolute;
    inset: 4px -4px -4px 4px;
    border: var(--border-w) solid var(--deep-umber);
    z-index: -1;
}

.signoff-coords {
    color: var(--deep-umber);
    margin-bottom: 0.5rem;
}

.signoff-tagline {
    color: var(--deep-umber);
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

/* --- Animations (Panel Snap Pop) --- */
.panel-inner {
    transition: transform 0.4s ease-out;
}

.panel.snapped .panel-inner {
    transform: scale(1);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .splash-diagonal-top {
        clip-path: polygon(0 0, 100% 0, 0 60%);
    }

    .splash-diagonal-bottom {
        clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 60%);
    }

    .crescent-large {
        width: 180px;
        height: 180px;
    }

    .bubble-cluster-splash {
        width: 200px;
        right: 2%;
    }

    .panel-flora .panel-inner {
        flex-direction: column;
    }

    .flora-left {
        width: 100%;
        height: 70%;
        border-right: none;
        border-bottom: var(--border-w) solid var(--black-outline);
    }

    .flora-right {
        width: 100%;
        height: 30%;
    }

    .vertical-text {
        writing-mode: horizontal-tb;
        letter-spacing: 0.15em;
    }

    .dahlia-large {
        width: 140px;
        height: 140px;
    }

    .menu-cards {
        width: 85%;
        right: 5%;
    }

    .menu-benday {
        width: 100%;
        opacity: 0.3;
    }

    .card-1, .card-2, .card-3 {
        height: auto;
        min-height: 160px;
    }

    .card-2 {
        margin-left: 10px;
    }

    .field-bubble {
        transform: scale(0.7);
    }

    .signoff-block {
        left: 5%;
        bottom: 10%;
    }

    .crescent-medium {
        width: 80px;
        height: 80px;
        top: 5%;
        right: 5%;
    }

    .display-number {
        font-size: clamp(3rem, 10vw, 6rem);
    }
}
