/* diplomacy.bar - Art-Deco Ornate Luxury */
/* Palette: #0a0a0a, #d4af37, #f0d68a, #e8e0d0, #3d3520, #722f37 */
/* Fonts: Playfair Display 700, Lora 400, Inter 400 */

:root {
    --bg: #0a0a0a;
    --gold: #d4af37;
    --gold-light: #f0d68a;
    --text: #e8e0d0;
    --border: #3d3520;
    --burgundy: #722f37;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    background-image:
        repeating-linear-gradient(
            90deg,
            rgba(212, 175, 55, 0.025) 0px,
            rgba(212, 175, 55, 0.025) 1px,
            transparent 1px,
            transparent 24px
        );
    color: var(--text);
    font-family: 'Lora', serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ============================
   HERO SECTION
   ============================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    position: relative;
}

/* Deco Frame */
.deco-frame {
    position: relative;
    max-width: 520px;
    width: 100%;
    padding: 5rem 3.5rem;
    text-align: center;
    border: 1px solid transparent;
    animation: frameDrawIn 1.2s ease-out 0.3s forwards;
}

@keyframes frameDrawIn {
    0% {
        border-color: transparent;
        box-shadow: none;
    }
    30% {
        border-color: var(--gold);
        box-shadow: inset 0 0 0 0px transparent;
    }
    100% {
        border-color: var(--gold);
        box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.03);
    }
}

/* Inner frame line (double border effect) */
.frame-inner-line {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid var(--border);
    pointer-events: none;
    opacity: 0;
    animation: innerLineAppear 0.8s ease-out 1.2s forwards;
}

@keyframes innerLineAppear {
    to { opacity: 0.4; }
}

/* Corner Ornaments */
.corner {
    position: absolute;
    width: 28px;
    height: 28px;
}

.corner::before,
.corner::after {
    content: '';
    position: absolute;
    background: var(--gold);
}

.corner::before {
    width: 100%;
    height: 1px;
}

.corner::after {
    width: 1px;
    height: 100%;
}

.corner-tl { top: -6px; left: -6px; }
.corner-tl::before { top: 0; left: 0; }
.corner-tl::after { top: 0; left: 0; }

.corner-tr { top: -6px; right: -6px; }
.corner-tr::before { top: 0; right: 0; }
.corner-tr::after { top: 0; right: 0; }

.corner-bl { bottom: -6px; left: -6px; }
.corner-bl::before { bottom: 0; left: 0; }
.corner-bl::after { bottom: 0; left: 0; }

.corner-br { bottom: -6px; right: -6px; }
.corner-br::before { bottom: 0; right: 0; }
.corner-br::after { bottom: 0; right: 0; }

.corner {
    opacity: 0;
    animation: cornerAppear 0.5s ease-out 1.0s forwards;
}

@keyframes cornerAppear {
    to { opacity: 1; }
}

/* Cocktail Icon */
.cocktail-icon {
    opacity: 0;
    animation: iconFadeIn 0.8s ease-out 1.6s forwards;
    margin-bottom: 0.5rem;
}

@keyframes iconFadeIn {
    to { opacity: 0.7; }
}

/* Brand Row */
.brand-row {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Brand Name */
.brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    color: var(--gold);
    letter-spacing: 0.08em;
    opacity: 0;
    animation: brandMaterialize 1.2s ease-out 1.4s forwards;
}

@keyframes brandMaterialize {
    0% {
        opacity: 0;
        letter-spacing: 0.3em;
        filter: blur(4px);
    }
    50% {
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        letter-spacing: 0.08em;
        filter: blur(0px);
    }
}

/* Members Only */
.members {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-top: 1.2rem;
    opacity: 0;
    animation: membersFade 1s ease-out 2.2s forwards;
}

@keyframes membersFade {
    to { opacity: 0.5; }
}

/* ============================
   FAN ORNAMENTS
   ============================ */

.fan-ornament {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 3px;
    margin-bottom: 1.5rem;
}

.fan-ornament.small {
    margin-bottom: 1.2rem;
}

.fan-ornament.tiny {
    margin-bottom: 0.8rem;
}

.fan-line {
    display: block;
    width: 1px;
    height: 28px;
    background: var(--gold);
    opacity: 0.45;
    transform-origin: bottom center;
}

/* Hero fan (7 lines) */
.hero-fan {
    margin-bottom: 2rem;
    opacity: 0;
    animation: fanAppear 0.8s ease-out 0.8s forwards;
}

@keyframes fanAppear {
    to { opacity: 1; }
}

.hero-fan .fan-line:nth-child(1) { transform: rotate(-30deg); height: 20px; }
.hero-fan .fan-line:nth-child(2) { transform: rotate(-20deg); height: 24px; }
.hero-fan .fan-line:nth-child(3) { transform: rotate(-10deg); height: 26px; }
.hero-fan .fan-line:nth-child(4) { transform: rotate(0deg); height: 28px; }
.hero-fan .fan-line:nth-child(5) { transform: rotate(10deg); height: 26px; }
.hero-fan .fan-line:nth-child(6) { transform: rotate(20deg); height: 24px; }
.hero-fan .fan-line:nth-child(7) { transform: rotate(30deg); height: 20px; }

/* Small fan (5 lines) for menu sections */
.fan-ornament.small .fan-line {
    height: 18px;
}

.fan-ornament.small .fan-line:nth-child(1) { transform: rotate(-20deg); height: 14px; }
.fan-ornament.small .fan-line:nth-child(2) { transform: rotate(-10deg); height: 16px; }
.fan-ornament.small .fan-line:nth-child(3) { transform: rotate(0deg); height: 18px; }
.fan-ornament.small .fan-line:nth-child(4) { transform: rotate(10deg); height: 16px; }
.fan-ornament.small .fan-line:nth-child(5) { transform: rotate(20deg); height: 14px; }

/* Tiny fan (3 lines) */
.fan-ornament.tiny .fan-line {
    height: 12px;
}

.fan-ornament.tiny .fan-line:nth-child(1) { transform: rotate(-15deg); }
.fan-ornament.tiny .fan-line:nth-child(2) { transform: rotate(0deg); height: 14px; }
.fan-ornament.tiny .fan-line:nth-child(3) { transform: rotate(15deg); }

/* ============================
   GOLD RULE DIVIDERS
   ============================ */

.gold-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 2.5rem 0;
    max-width: 500px;
    margin: 0 auto;
}

.rule-line {
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    flex: 1;
    max-width: 180px;
    opacity: 0.5;
}

.diamond {
    width: 7px;
    height: 7px;
    background: var(--gold);
    transform: rotate(45deg);
    flex-shrink: 0;
    margin: 0 12px;
    opacity: 0.7;
}

/* ============================
   MENU SECTIONS
   ============================ */

.menu-section {
    max-width: 620px;
    margin: 0 auto;
    padding: 2rem 2rem;
    text-align: center;
}

.menu-inner {
    text-align: center;
}

.menu-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 2rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.menu-item {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1.4rem;
    text-align: left;
}

.item-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--gold-light);
    white-space: nowrap;
    position: relative;
}

.item-dots {
    flex: 1;
    border-bottom: 1px dotted var(--border);
    min-width: 24px;
    margin-bottom: 5px;
}

.item-desc {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 0.82rem;
    color: rgba(232, 224, 208, 0.55);
    white-space: nowrap;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================
   THE LOUNGE
   ============================ */

.lounge {
    max-width: 640px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
}

.lounge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(114, 47, 55, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.lounge-inner {
    text-align: center;
    position: relative;
}

.pull-quote {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 0.6rem;
    line-height: 1.65;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.attribution {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(232, 224, 208, 0.35);
    letter-spacing: 0.05em;
    margin-bottom: 0;
}

/* Burgundy accent lines */
.burgundy-accent-line {
    width: 50px;
    height: 2px;
    background: var(--burgundy);
    margin: 2rem auto;
    opacity: 0.7;
}

/* Lounge ornament between quotes */
.lounge-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 2.2rem auto;
}

.ornament-diamond {
    width: 4px;
    height: 4px;
    background: var(--burgundy);
    transform: rotate(45deg);
    opacity: 0.6;
}

.ornament-line {
    width: 30px;
    height: 1px;
    background: var(--burgundy);
    opacity: 0.35;
}

/* ============================
   LAST CALL
   ============================ */

.last-call {
    padding: 5rem 2rem 4rem;
    text-align: center;
}

.last-call-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.closing-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--gold);
    letter-spacing: 0.06em;
    margin-bottom: 0.8rem;
}

.closing-subtext {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(232, 224, 208, 0.3);
}

/* ============================
   FOOTER BAR
   ============================ */

.bar-footer {
    border-top: 1px solid var(--gold);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.footer-rule {
    width: 1px;
    height: 14px;
    background: var(--border);
}

.footer-note {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--border);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ============================
   FADE-IN ANIMATIONS
   ============================ */

.fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered menu items */
.menu-item.fade-in:nth-child(3) { transition-delay: 0s; }
.menu-item.fade-in:nth-child(4) { transition-delay: 0.08s; }
.menu-item.fade-in:nth-child(5) { transition-delay: 0.16s; }
.menu-item.fade-in:nth-child(6) { transition-delay: 0.24s; }

/* ============================
   HOVER AND INTERACTION STATES
   ============================ */

.menu-item {
    transition: transform 0.3s ease;
}

.menu-item:hover .item-name {
    color: var(--gold);
    transition: color 0.3s ease;
}

.menu-item:hover {
    transform: translateX(4px);
}

/* Gold rule subtle shimmer on scroll */
.gold-rule {
    transition: opacity 0.6s ease;
}

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

@media (max-width: 768px) {
    .deco-frame {
        padding: 3.5rem 2rem;
        margin: 0 1rem;
    }

    .brand {
        font-size: clamp(1.8rem, 8vw, 2.6rem);
    }

    .menu-section {
        padding: 1.5rem 1.5rem;
    }

    .item-desc {
        display: none;
    }

    .item-dots {
        display: none;
    }

    .menu-item {
        justify-content: center;
    }

    .pull-quote {
        font-size: 1.1rem;
    }

    .corner {
        width: 20px;
        height: 20px;
    }

    .cocktail-icon {
        width: 24px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .deco-frame {
        padding: 2.5rem 1.5rem;
    }

    .hero-fan .fan-line {
        height: 18px;
    }

    .menu-heading {
        font-size: 1.3rem;
    }

    .lounge {
        padding: 2rem 1.5rem;
    }
}
