/* ===== miris.bar - Perfumed Cocktail Atelier ===== */

:root {
    --mahogany: #2C1810;
    --parchment: #F5E6D3;
    --cream: #FFF8F0;
    --petal: #E8B4B8;
    --rosebud: #C48B8F;
    --honey: #D4A574;
    --sage: #7A8B6F;
    --espresso: #3D2B1F;
    --wood: #5A3D2B;
    --blush: #E8D5C4;
    --sidebar-width: 280px;
    --font-display: 'Nunito', sans-serif;
    --font-nav: 'Josefin Sans', sans-serif;
    --font-body: 'Quicksand', sans-serif;
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --reveal-delay: 0ms;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--parchment);
    color: var(--mahogany);
    line-height: 1.75;
    overflow-x: hidden;
}

/* Linen-weave texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(61, 43, 31, 0.015) 2px,
            rgba(61, 43, 31, 0.015) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(61, 43, 31, 0.015) 2px,
            rgba(61, 43, 31, 0.015) 4px
        );
}

/* ========== SIDEBAR ========== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--mahogany);
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.25rem;
    overflow: hidden;
}

.sidebar-title-wrap {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
}

.sidebar-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--honey);
    letter-spacing: 0.02em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    display: inline-block;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.nav-tag {
    font-family: var(--font-nav);
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream);
    text-decoration: none;
    padding: 0.45rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: all 0.4s ease;
    opacity: 0.45;
}

.nav-tag:hover,
.nav-tag.active {
    opacity: 1;
    border-color: rgba(255, 248, 240, 0.25);
    color: var(--honey);
    background-color: rgba(255, 248, 240, 0.04);
}

.nav-tag.active {
    font-weight: 600;
}

/* Sidebar Botanical Vine */
.sidebar-botanical {
    margin-top: auto;
    display: flex;
    justify-content: center;
    height: 220px;
    position: relative;
}

.vine-container {
    position: relative;
    width: 60px;
    height: 220px;
    clip-path: inset(100% 0 0 0);
    transition: clip-path 0.3s ease-out;
}

.vine-stem {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 200px;
    background: linear-gradient(to top, rgba(122, 139, 111, 0.5), rgba(122, 139, 111, 0.15));
    border-radius: 1px;
}

.vine-stem::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 8px;
    border: 1.5px solid rgba(122, 139, 111, 0.4);
    border-top: none;
    border-radius: 0 0 50% 50%;
}

.vine-leaf {
    position: absolute;
    width: 14px;
    height: 8px;
    background-color: rgba(122, 139, 111, 0.25);
    border-radius: 50% 0 50% 0;
}

.vine-leaf-1 { bottom: 30px; left: 32px; transform: rotate(25deg); }
.vine-leaf-2 { bottom: 60px; right: 30px; transform: rotate(-30deg); border-radius: 0 50% 0 50%; }
.vine-leaf-3 { bottom: 95px; left: 30px; transform: rotate(20deg); }
.vine-leaf-4 { bottom: 125px; right: 28px; transform: rotate(-25deg); border-radius: 0 50% 0 50%; }
.vine-leaf-5 { bottom: 155px; left: 28px; transform: rotate(30deg); opacity: 0.8; }
.vine-leaf-6 { bottom: 178px; right: 30px; transform: rotate(-20deg); border-radius: 0 50% 0 50%; opacity: 0.7; }

.vine-flower {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--petal) 30%, rgba(232, 180, 184, 0.3) 70%, transparent 100%);
    border: 1px solid rgba(212, 165, 116, 0.4);
}

/* ========== MAIN CONTENT ========== */
.main-content {
    margin-left: var(--sidebar-width);
}

/* ========== ROOMS (Sections) ========== */
.room {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 4vw, 4rem);
    position: relative;
    overflow: hidden;
}

/* Background wash - fades in first (Stage 1) */
.room-bg-wash {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 600ms ease-out;
    z-index: 0;
}

.room-entrance .room-bg-wash { background-color: var(--cream); }
.room-atelier .room-bg-wash { background-color: var(--parchment); }
.room-menu .room-bg-wash { background-color: var(--mahogany); }
.room-garden .room-bg-wash { background-color: var(--cream); }
.room-closing .room-bg-wash { background-color: var(--parchment); }

/* Structural frame - draws in (Stage 2) */
.room-frame {
    position: absolute;
    inset: 20px;
    border: 1px solid transparent;
    border-radius: 16px;
    z-index: 1;
    transition: border-color 500ms ease-out 300ms;
    pointer-events: none;
}

/* Five-stage progressive disclosure */
.room .room-bg-wash { opacity: 0; }
.room .room-frame { border-color: transparent; }
.room .reveal-structure { opacity: 0; transform: translateY(0); }
.room .reveal-headline { opacity: 0; transform: translateY(30px); }
.room .reveal-body { opacity: 0; transform: translateY(30px); }
.room .reveal-decor { opacity: 0; transform: scale(0.95); }

/* Stage 1: Background wash */
.room.stage-1 .room-bg-wash,
.room.stage-2 .room-bg-wash,
.room.stage-3 .room-bg-wash,
.room.stage-4 .room-bg-wash,
.room.stage-5 .room-bg-wash {
    opacity: 1;
}

/* Stage 2: Structural frame and elements */
.room.stage-2 .room-frame,
.room.stage-3 .room-frame,
.room.stage-4 .room-frame,
.room.stage-5 .room-frame {
    border-color: rgba(212, 165, 116, 0.08);
}

.room.stage-2 .reveal-structure,
.room.stage-3 .reveal-structure,
.room.stage-4 .reveal-structure,
.room.stage-5 .reveal-structure {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 400ms ease-out, transform 400ms ease-out;
}

/* Stage 3: Headlines */
.room.stage-3 .reveal-headline,
.room.stage-4 .reveal-headline,
.room.stage-5 .reveal-headline {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 500ms var(--spring), transform 500ms var(--spring);
}

/* Stage 4: Body content */
.room.stage-4 .reveal-body,
.room.stage-5 .reveal-body {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 500ms var(--spring), transform 500ms var(--spring);
}

/* Stage 5: Decorative elements */
.room.stage-5 .reveal-decor {
    opacity: 1;
    transform: scale(1);
    transition: opacity 600ms ease-in-out, transform 600ms ease-in-out;
}

.room.stage-5 .bubble {
    animation-play-state: running;
}

.room-content {
    max-width: 750px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* ========== BUBBLES ========== */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 40%, rgba(232, 180, 184, 0.15) 100%);
    border: 1px solid rgba(212, 165, 116, 0.3);
    box-shadow: 0 0 20px rgba(232, 180, 184, 0.15);
    pointer-events: auto;
    cursor: default;
    left: var(--bx, 50%);
    top: var(--by, 50%);
    animation: bubbleFloat var(--float-dur, 6s) ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
    animation-play-state: paused;
    z-index: 1;
    transition: transform 400ms var(--spring), border-color 400ms ease;
}

.bubble:hover {
    border-color: rgba(212, 165, 116, 0.6);
}

.bubble-micro {
    width: 10px;
    height: 10px;
    --float-dur: 5s;
    --parallax-rate: 0.02;
}

.bubble-small {
    width: 25px;
    height: 25px;
    --float-dur: 5.5s;
    --parallax-rate: 0.05;
}

.bubble-medium {
    width: 60px;
    height: 60px;
    --float-dur: 7s;
    --parallax-rate: 0.08;
}

.bubble-large {
    width: 120px;
    height: 120px;
    --float-dur: 8s;
    --parallax-rate: 0.12;
}

.bubble-hero {
    width: 240px;
    height: 240px;
    --float-dur: 9s;
    --parallax-rate: 0.15;
    background: radial-gradient(circle, transparent 50%, rgba(232, 180, 184, 0.1) 100%);
}

@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

/* ========== BOTANICAL MOTIFS ========== */
.leaf-accent {
    position: absolute;
    width: 20px;
    height: 10px;
    background-color: rgba(122, 139, 111, 0.2);
    border-radius: 50% 0 50% 0;
    z-index: 1;
    pointer-events: none;
}

.leaf-1 { top: 15%; left: 5%; transform: rotate(35deg); opacity: 0.3; }
.leaf-2 { bottom: 12%; right: 8%; transform: rotate(-40deg); border-radius: 0 50% 0 50%; opacity: 0.25; }
.leaf-3 { top: 20%; right: 12%; transform: rotate(-30deg); border-radius: 0 50% 0 50%; opacity: 0.35; }
.leaf-4 { bottom: 25%; left: 10%; transform: rotate(45deg); opacity: 0.2; }

.stem-line {
    position: absolute;
    width: 1.5px;
    height: 80px;
    background: linear-gradient(to top, rgba(122, 139, 111, 0.3), transparent);
    z-index: 1;
    pointer-events: none;
    transform-origin: bottom center;
}

.stem-1 { bottom: 10%; left: 8%; transform: rotate(8deg); }
.stem-2 { bottom: 15%; right: 10%; transform: rotate(-12deg); }

.petal-accent {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 800ms ease-in-out;
}

.room.stage-5 .petal-accent { opacity: 1; }

.petal-1 { width: 30px; height: 30px; background: rgba(232, 180, 184, 0.12); top: 80%; left: 8%; }
.petal-2 { width: 22px; height: 22px; background: rgba(196, 139, 143, 0.1); top: 10%; right: 5%; }
.petal-3 { width: 25px; height: 25px; background: rgba(232, 180, 184, 0.15); bottom: 8%; right: 15%; border-radius: 60% 40% 60% 40%; }
.petal-4 { width: 35px; height: 35px; background: rgba(232, 180, 184, 0.1); top: 15%; left: 12%; }
.petal-5 { width: 18px; height: 18px; background: rgba(196, 139, 143, 0.12); bottom: 20%; right: 8%; }

/* ========== ORNAMENT DIVIDER ========== */
.ornament-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 1.5rem 0;
}

.ornament-line {
    display: block;
    width: 50px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212, 165, 116, 0.5), transparent);
}

.ornament-flower {
    position: relative;
    width: 18px;
    height: 18px;
}

.ornament-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(212, 165, 116, 0.5);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ornament-circle-outer { width: 18px; height: 18px; }
.ornament-circle-mid { width: 11px; height: 11px; }
.ornament-circle-inner { width: 5px; height: 5px; background-color: rgba(212, 165, 116, 0.4); }

/* ========== ENTRANCE ========== */
.room-entrance {
    background-color: var(--cream);
    text-align: center;
}

.entrance-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.room-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw + 1rem, 5rem);
    font-weight: 800;
    color: var(--mahogany);
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.title-dot {
    color: var(--honey);
}

.room-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    font-weight: 400;
    color: var(--rosebud);
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* ========== SECTION SHARED ========== */
.room-label {
    font-family: var(--font-nav);
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--honey);
    display: block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--mahogany);
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.room-text {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    font-weight: 400;
    color: var(--wood);
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

/* ========== ATELIER - CASCADING CARDS ========== */
.room-atelier {
    background-color: var(--parchment);
}

.cascading-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-top: 1rem;
}

.ingredient-card {
    padding: 1.5rem 1.75rem;
    background-color: var(--cream);
    border: 1px solid transparent;
    border-radius: 16px;
    position: relative;
    margin-left: calc(var(--card-index, 0) * 40px);
    margin-top: calc(var(--card-index, 0) * -8px);
    transform: rotate(calc((var(--card-index, 0) - 2) * 0.5deg));
    transition: transform 0.4s var(--spring), box-shadow 0.4s ease, border-color 0.4s ease;
    overflow: hidden;
    margin-bottom: 12px;
}

.ingredient-card:hover {
    transform: translateY(-4px) rotate(0deg);
    box-shadow: 0 12px 32px rgba(44, 24, 16, 0.08);
    border-color: rgba(196, 139, 143, 0.4);
}

/* Condensation effect on hover */
.card-condensation {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 300ms ease;
}

.card-condensation::before,
.card-condensation::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(232, 180, 184, 0.15);
    filter: blur(1px);
}

.card-condensation::before {
    width: 4px; height: 4px; top: 20%; right: 15%;
}

.card-condensation::after {
    width: 3px; height: 3px; bottom: 30%; right: 25%;
}

.ingredient-card:hover .card-condensation {
    opacity: 1;
}

.card-bubble-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 30%, rgba(232, 180, 184, 0.2) 100%);
    border: 1px solid rgba(212, 165, 116, 0.25);
    margin-bottom: 0.75rem;
}

.ingredient-card h3 {
    font-family: var(--font-nav);
    font-size: clamp(0.85rem, 1.2vw, 1.05rem);
    font-weight: 600;
    color: var(--mahogany);
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.ingredient-card p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--rosebud);
}

/* ========== MENU - SPLIT COMPOSITION ========== */
.room-menu {
    background-color: var(--mahogany);
}

.room-menu .room-bg-wash {
    background-color: var(--espresso);
}

.room-menu .section-title {
    color: var(--cream);
}

.room-menu .room-label {
    color: var(--honey);
}

.split-layout {
    max-width: 900px;
    display: grid;
    grid-template-columns: 1fr auto 0.35fr;
    gap: 2rem;
    align-items: start;
}

.split-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 2rem;
}

.divider-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(212, 165, 116, 0.3), transparent);
}

.divider-ornament {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(212, 165, 116, 0.4);
    position: relative;
}

.divider-ornament::before,
.divider-ornament::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 14px;
    height: 1px;
    background-color: rgba(122, 139, 111, 0.25);
    transform: translateY(-50%);
}

.divider-ornament::before { right: 100%; margin-right: 3px; transform: translateY(-50%) rotate(-15deg); }
.divider-ornament::after { left: 100%; margin-left: 3px; transform: translateY(-50%) rotate(15deg); }

.split-aside {
    padding-top: 3rem;
}

.pull-quote {
    border: none;
    padding: 0;
}

.pull-quote p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    font-style: italic;
    color: var(--blush);
    line-height: 1.7;
    opacity: 0.7;
}

.menu-list {
    display: flex;
    flex-direction: column;
}

.menu-item {
    display: flex;
    align-items: baseline;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(245, 230, 211, 0.06);
}

.item-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cream);
    white-space: nowrap;
}

.item-dots {
    flex: 1;
    border-bottom: 1px dotted rgba(212, 165, 116, 0.25);
    margin: 0 0.75rem;
    min-width: 20px;
}

.item-note {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--rosebud);
    white-space: nowrap;
}

/* ========== GARDEN ========== */
.room-garden {
    background-color: var(--cream);
}

.garden-palette {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.palette-swatch {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid var(--cream);
    box-shadow: 0 3px 12px rgba(44, 24, 16, 0.1);
    position: relative;
    transition: transform 0.4s var(--spring);
}

.palette-swatch:hover {
    transform: scale(1.12);
}

.swatch-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-nav);
    font-size: 0.55rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--wood);
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.palette-swatch:hover .swatch-label {
    opacity: 0.6;
}

/* ========== CLOSING ========== */
.room-closing {
    background-color: var(--parchment);
    text-align: center;
    min-height: 70vh;
}

.closing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.closing-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--mahogany);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.closing-tagline {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    font-weight: 400;
    font-style: italic;
    color: var(--rosebud);
    margin-bottom: 2rem;
}

.closing-domain {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mahogany);
    opacity: 0.4;
    margin-bottom: 0.5rem;
}

.closing-copy {
    font-family: var(--font-nav);
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--wood);
    opacity: 0.3;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .split-divider {
        flex-direction: row;
        padding-top: 0;
    }

    .divider-line {
        width: 60px;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(212, 165, 116, 0.3), transparent);
    }

    .split-aside {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: 0.5rem 1rem;
        align-items: center;
        z-index: 200;
    }

    .sidebar-title-wrap {
        margin-bottom: 0;
    }

    .sidebar-title {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 0.8rem;
    }

    .sidebar-nav {
        flex-direction: row;
        margin-left: auto;
        gap: 0;
    }

    .nav-tag {
        font-size: 0.6rem;
        padding: 0.25rem 0.4rem;
        border: none;
        border-radius: 0;
    }

    .sidebar-botanical {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding-top: 48px;
    }

    .room {
        padding: clamp(3rem, 6vw, 4rem) 1.5rem;
    }

    .cascading-cards .ingredient-card {
        margin-left: 0;
        transform: none;
    }

    .menu-item {
        flex-wrap: wrap;
    }

    .item-dots {
        display: none;
    }

    .item-note {
        width: 100%;
        margin-top: 0.15rem;
    }

    .room-frame {
        inset: 8px;
    }

    .bubble-hero {
        width: 120px;
        height: 120px;
    }

    .bubble-large {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .room-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .room {
        padding: 2.5rem 1rem;
    }

    .garden-palette {
        gap: 0.75rem;
    }

    .palette-swatch {
        width: 40px;
        height: 40px;
    }

    .section-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }
}
