/* ============================================
   cbdc.bar — 1970s Cocktail Lounge
   Color Palette:
     Background Deep Walnut:   #2B1F1A
     Surface Burnished Leather: #4A3728
     Text Aged Linen:          #F2E8D9
     Accent Tarnished Gold:    #C8A45C
     Highlight Burnt Sienna:   #B85C38
     Shadow Espresso:          #1A110D
     Muted Dusty Rose:         #A8887A
     Pop Kodachrome Orange:    #E87B35
   ============================================ */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: #2B1F1A;
    color: #F2E8D9;
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.75;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    position: relative;
}

/* ---- Film Grain Overlay (body::after) ---- */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('assets/grain.png');
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.025;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 9999;
    animation: grain-shift 8s linear infinite;
}

@keyframes grain-shift {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-50px, -50px);
    }
    50% {
        transform: translate(-100px, 0);
    }
    75% {
        transform: translate(-50px, 50px);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* ---- Fixed Monogram ---- */
.monogram {
    position: fixed;
    top: 24px;
    left: 28px;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-style: italic;
    font-size: 1.8rem;
    color: #C8A45C;
    opacity: 0.6;
    z-index: 1000;
    cursor: default;
    transition: opacity 0.4s ease;
    letter-spacing: -0.03em;
    user-select: none;
}

.monogram:hover {
    opacity: 0.9;
}

/* ---- Watermark cb ---- */
.watermark-cb {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(3);
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-style: italic;
    font-size: 10rem;
    color: #C8A45C;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

/* ---- Hero Section ---- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(180deg, #1A110D 0%, #2B1F1A 60%, #4A3728 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.hero-warm-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 40%, rgba(232, 123, 53, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.hero-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 40%, #1A110D 100%);
    pointer-events: none;
    z-index: 2;
}

.hero-grain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/grain.png');
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.03;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 3;
}

.hero-title-container {
    position: relative;
    z-index: 4;
    padding-bottom: clamp(4rem, 10vh, 8rem);
    text-align: center;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-style: italic;
    font-size: clamp(3rem, 9vw, 7rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: #F2E8D9;
}

.hero-title .char {
    display: inline-block;
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* ---- Ornamental Divider ---- */
.ornamental-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(2rem, 5vh, 4rem) 0;
    position: relative;
    z-index: 1;
}

.divider-svg {
    width: min(80%, 500px);
    height: auto;
    opacity: 0.7;
}

.divider-svg-small {
    width: min(60%, 350px);
}

/* ---- Text Sections (Verse) ---- */
.text-section {
    position: relative;
    z-index: 1;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(4rem, 10vh, 8rem) 1.5rem;
}

.text-column {
    max-width: 720px;
    width: 100%;
}

.section-label {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #A8887A;
    margin-bottom: 1.5rem;
}

.text-column h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #F2E8D9;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.text-column p {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.75;
    letter-spacing: 0.01em;
    color: #F2E8D9;
    margin-bottom: 1.5em;
}

.text-column p:last-child {
    margin-bottom: 0;
}

/* ---- Photo Bands (Chorus) ---- */
.photo-band {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    z-index: 1;
    background: linear-gradient(135deg, #4A3728 0%, #2B1F1A 50%, #1A110D 100%);
}

.photo-band .photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 31, 26, 0.15);
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 2;
}

.photo-band .photo-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 30%, #1A110D 100%);
    pointer-events: none;
    z-index: 3;
}

/* Starburst pattern on photo band 1 */
.starburst-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    z-index: 1;
    opacity: 0.08;
    background: repeating-conic-gradient(#C8A45C 0deg, transparent 2deg, transparent 10deg);
    border-radius: 50%;
    pointer-events: none;
}

/* Diamond lattice pattern on photo band 2 */
.diamond-lattice-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.05;
    background-image:
        linear-gradient(45deg, #C8A45C 1px, transparent 1px),
        linear-gradient(-45deg, #C8A45C 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Unique warm gradient for each photo band */
.photo-band:nth-of-type(1) {
    background: linear-gradient(180deg, #4A3728 0%, #2B1F1A 100%);
}

#photo-band-1 {
    background: linear-gradient(135deg, #4A3728 0%, #2B1F1A 40%, #1A110D 100%);
}

#photo-band-2 {
    background: linear-gradient(180deg, #1A110D 0%, #4A3728 50%, #1A110D 100%);
}

#photo-band-3 {
    background: linear-gradient(160deg, #2B1F1A 0%, #4A3728 60%, #2B1F1A 100%);
}

#photo-band-4 {
    background: linear-gradient(200deg, #1A110D 0%, #2B1F1A 50%, #4A3728 100%);
}

/* ---- Vintage photo treatment applied via filter ---- */
.photo-band::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(200, 164, 92, 0.08);
    mix-blend-mode: multiply;
    filter: contrast(1.1) brightness(0.95) saturate(0.85);
    pointer-events: none;
    z-index: 1;
}

/* ---- Footer ---- */
.site-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: clamp(6rem, 15vh, 12rem) 1.5rem clamp(4rem, 8vh, 6rem);
}

.footer-monogram {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-style: italic;
    font-size: 3rem;
    color: #C8A45C;
    opacity: 0.5;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.footer-ornament {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.footer-text {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: #A8887A;
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.75;
}

.footer-date {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #A8887A;
    opacity: 0.5;
}

/* ---- Fade-Reveal Animation ---- */
.fade-reveal {
    opacity: 0;
    transition: opacity 1200ms ease-out;
}

.fade-reveal.is-visible {
    opacity: 1;
}

/* Stagger children within text sections */
.fade-reveal .section-label,
.fade-reveal h2,
.fade-reveal p {
    opacity: 0;
    transition: opacity 1200ms ease-out;
}

.fade-reveal.is-visible .section-label {
    opacity: 1;
    transition-delay: 0ms;
}

.fade-reveal.is-visible h2 {
    opacity: 1;
    transition-delay: 200ms;
}

.fade-reveal.is-visible p:nth-of-type(1) {
    opacity: 1;
    transition-delay: 400ms;
}

.fade-reveal.is-visible p:nth-of-type(2) {
    opacity: 1;
    transition-delay: 600ms;
}

.fade-reveal.is-visible p:nth-of-type(3) {
    opacity: 1;
    transition-delay: 800ms;
}

/* ---- Pull Quote Style (for future use) ---- */
.pull-quote {
    border-top: 1px solid #C8A45C;
    border-bottom: 2px solid #C8A45C;
    padding: 2rem 0;
    margin: 2.5rem 0;
    position: relative;
}

.pull-quote::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 0;
    right: 0;
    height: 0.5px;
    background: #C8A45C;
}

.pull-quote::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 0.5px;
    background: #C8A45C;
}

/* ---- Badge / Label Style ---- */
.badge {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #A8887A;
    background: #4A3728;
    border: 1px solid #A8887A;
    border-radius: 20px;
    padding: 0.3em 1em;
}

/* ---- Link Styles ---- */
a {
    color: #C8A45C;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #B85C38;
}

/* ---- Selection ---- */
::selection {
    background: #B85C38;
    color: #F2E8D9;
}

/* ---- Scrollbar (Webkit) ---- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1A110D;
}

::-webkit-scrollbar-thumb {
    background: #4A3728;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C8A45C;
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 768px) {
    .monogram {
        top: 16px;
        left: 18px;
        font-size: 1.5rem;
    }

    .text-section {
        padding: clamp(3rem, 8vh, 5rem) 1.25rem;
        min-height: auto;
    }

    .photo-band {
        height: 45vh;
        min-height: 300px;
    }

    .watermark-cb {
        font-size: 6rem;
    }

    .starburst-bg {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .text-column h2 {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    .divider-svg {
        width: 90%;
    }
}
