/* diplomacy.bar — Art-Deco Ornate Luxury
   Palette: #0A0F1E #1A1008 #D4A843 #E8C97A #F5ECD7 #E8ECF0 #6B1D32 #B8860B
*/

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0A0F1E;
    color: #F5ECD7;
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.75;
    overflow-x: hidden;
}

/* Ambient Shimmer */
#ambient-shimmer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.02;
    background: linear-gradient(135deg, #D4A843, transparent, #E8C97A, transparent);
    background-size: 400% 400%;
    animation: shimmerDrift 20s ease-in-out infinite;
}

@keyframes shimmerDrift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Navigation */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 15, 30, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
}

.nav-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: #D4A843;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: #E8ECF0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #E8C97A;
}

/* Hero: Entrance */
#entrance {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.deco-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.deco-line.drawn {
    stroke-dashoffset: 0;
}

.deco-rect {
    stroke-dasharray: 2800;
    stroke-dashoffset: 2800;
    transition: stroke-dashoffset 2.5s ease;
}

.deco-rect.drawn {
    stroke-dashoffset: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.hero-content.visible {
    opacity: 1;
    transform: scale(1);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, #D4A843, #E8C97A, #D4A843);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldLeaf 4s ease-in-out infinite;
}

@keyframes goldLeaf {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-dot {
    -webkit-text-fill-color: #B8860B;
}

.hero-line {
    width: 0;
    height: 1px;
    background: #D4A843;
    margin: 20px auto;
    transition: width 1.5s ease;
}

.hero-line.visible {
    width: 200px;
}

.hero-subtitle {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: #E8ECF0;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-subtitle.visible {
    opacity: 1;
}

/* Bar Counter */
#bar-counter {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.section-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: #D4A843;
    text-align: center;
    margin-bottom: 40px;
}

.bar-surface {
    background: linear-gradient(180deg, #1A1008, #2A1F14);
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 20px,
        rgba(212, 168, 67, 0.02) 20px,
        rgba(212, 168, 67, 0.02) 21px
    );
    padding: 48px 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.bar-scroll {
    display: flex;
    gap: 32px;
    padding: 0 48px;
    min-width: max-content;
}

.bar-item {
    flex: 0 0 260px;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 168, 67, 0.15);
    border-radius: 12px;
    padding: 32px 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.bar-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(184, 134, 11, 0.15);
}

.glass-icon {
    margin-bottom: 16px;
}

.item-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #D4A843;
    margin-bottom: 12px;
}

.item-desc {
    font-size: 0.95rem;
    color: #E8ECF0;
    line-height: 1.6;
}

/* Alcoves */
#alcoves {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 40px 120px;
}

.alcove {
    position: relative;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 168, 67, 0.12);
    border-radius: 40px 40px 8px 8px;
    padding: 48px 40px;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.alcove.visible {
    opacity: 1;
    transform: translateY(0);
}

.alcove-arch {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 30px;
    border-top: 1px solid rgba(212, 168, 67, 0.3);
    border-left: 1px solid rgba(212, 168, 67, 0.3);
    border-right: 1px solid rgba(212, 168, 67, 0.3);
    border-radius: 30px 30px 0 0;
}

.alcove-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: #B8860B;
    display: block;
    margin-bottom: 16px;
}

.alcove-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #D4A843;
    margin-bottom: 20px;
}

.alcove-body {
    color: #F5ECD7;
}

.alcove-marker {
    display: block;
    margin-top: 20px;
}

/* Footer: The Exit */
#footer-exit {
    text-align: center;
    padding: 80px 40px;
    position: relative;
    z-index: 1;
}

.exit-line {
    width: 80px;
    height: 1px;
    background: #D4A843;
    margin: 0 auto 24px;
    opacity: 0.4;
}

.exit-name {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: #D4A843;
}

.exit-meta {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: #6B1D32;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .alcove {
        padding: 36px 24px;
        border-radius: 24px 24px 8px 8px;
    }

    #alcoves {
        padding: 60px 24px 80px;
    }

    #main-nav {
        flex-direction: column;
        gap: 12px;
        padding: 16px 24px;
    }
}
