/* =========================================
   Root Variables & Reset
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-text:        #ffffff;
    --color-text-muted:  rgba(255, 255, 255, 0.75);
    --color-accent:      #c9a84c;
    --color-accent-dim:  rgba(201, 168, 76, 0.6);
    --color-separator:   rgba(255, 255, 255, 0.25);
    --font-heading:      'Cinzel', serif;
    --font-body:         'Raleway', sans-serif;
    --transition-fast:   0.25s ease;
    --transition:        0.35s ease;
}

/* =========================================
   Base
   ========================================= */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: #0a0a0a;
    color: var(--color-text);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   Site Header — Fixed overlay
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 22px 48px 26px;
    /* Gradient fades to transparent so the hero image shows below */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.55) 65%,
        rgba(0, 0, 0, 0)   100%
    );
    transition: background var(--transition), padding var(--transition);
}

/* Solid/blurred header once user scrolls */
.site-header.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 24px rgba(0, 0, 0, 0.6);
    padding: 14px 48px;
}

/* Solid header when mobile nav is open */
.site-header.nav-open {
    background: rgba(10, 10, 10, 0.96);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
}

/* =========================================
   Header Top Row — Artist Name + Social Icons
   ========================================= */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.artist-name {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--color-text);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
    white-space: nowrap;
    animation: fadeDown 0.9s ease both;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeDown 0.9s ease 0.2s both;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--color-text-muted);
    font-size: 0.95rem;
    transition:
        color var(--transition-fast),
        border-color var(--transition-fast),
        background-color var(--transition-fast),
        transform var(--transition-fast);
}

.social-icons a:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    background-color: rgba(201, 168, 76, 0.12);
    transform: translateY(-2px);
}

/* =========================================
   Navbar
   ========================================= */
.navbar {
    display: flex;
    align-items: center;
    animation: fadeDown 0.9s ease 0.4s both;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Pipe separators between items */
.nav-links li + li::before {
    content: '|';
    color: var(--color-separator);
    font-size: 0.75rem;
    pointer-events: none;
    user-select: none;
}

.nav-links a {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    padding: 6px 14px;
    position: relative;
    transition: color var(--transition-fast);
}

/* Underline slide-in on hover / active */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 1px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-fast);
}

.nav-links a:hover {
    color: var(--color-text);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links a.active {
    color: var(--color-accent);
}

.nav-links a.active::after {
    transform: scaleX(1);
}

/* =========================================
   Hamburger Button (mobile only)
   ========================================= */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}

.bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition:
        transform var(--transition),
        opacity var(--transition);
}

/* Animate hamburger → X when open */
.hamburger.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.open .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================================
   Hero Section — joel-murach.png
   ========================================= */
.hero {
    height: 100vh;
    min-height: 500px;
    background-image: url('joel-murach.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
}

/* Subtle vignette overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.35) 100%
    );
    pointer-events: none;
}

/* =========================================
   Lefty Rosa Section — lefty-rosa.jpg
   ========================================= */
.lefty-section {
    height: 100vh;
    min-height: 500px;
    background-image: url('lefty-rosa.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
}

.lefty-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
}

/* =========================================
   Section Headings — over photo sections
   ========================================= */

/* Lefty Rosa section heading: pinned upper-left, below the fixed header */
.lefty-section .section-heading {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 1;
    pointer-events: none;
    font-family: var(--font-heading);
    font-size: clamp(1.0rem, 2vw, 1.6rem);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
    text-align: left;
    margin: 0;
}

.lefty-section {
    top: 40px; /* offset for fixed header */
}

/* Video section heading: sits above the iframe, gold rule beneath */
.video-section .section-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.0rem, 2vw, 1.6rem);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text);
    text-align: left;
    margin: 0 0 36px;
}

.video-section .section-heading::after {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: var(--color-accent);
    margin: 12px 0 0;
}

/* =========================================
   Listen Button
   ========================================= */
.section-listen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    padding-bottom: 56px;
    z-index: 1;
    pointer-events: none; /* let clicks pass through except on the button */
}

.listen-btn {
    pointer-events: all;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: rgba(0, 0, 0, 0.45);
    border: 2px solid var(--color-accent);
    border-radius: 3px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition:
        background  var(--transition),
        transform   var(--transition-fast),
        box-shadow  var(--transition);
}

.listen-btn:hover {
    background: rgba(201, 168, 76, 0.18);
    box-shadow: 0 0 24px rgba(201, 168, 76, 0.25);
    transform: scale(1.04);
}

.listen-btn.playing {
    background: rgba(201, 168, 76, 0.22);
    border-color: var(--color-accent);
    box-shadow: 0 0 28px rgba(201, 168, 76, 0.3);
}

.listen-btn i {
    font-size: 0.9rem;
}

/* =========================================
   Video Section
   ========================================= */
.video-section {
    background-color: #0a0a0a;
    padding: 72px 48px 80px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 3px;
}

/* =========================================
   Hero Quote
   ========================================= */
.hero-quote {
    position: absolute;
    top: 140px; /* clears fixed header */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 560px;
    z-index: 1;
    text-align: left;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-left: 3px solid var(--color-accent);
    padding: 24px 28px;
}

.hero-quote-text {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 12px;
}

.hero-quote-source {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-accent);
}

/* =========================================
   Entrance Animations
   ========================================= */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Responsive — Tablet / Mobile (≤ 768px)
   ========================================= */
@media (max-width: 768px) {
    .site-header {
        padding: 16px 24px 20px;
    }

    .site-header.scrolled {
        padding: 12px 24px;
    }

    .header-top {
        margin-bottom: 8px;
    }

    .social-icons {
        gap: 8px;
    }

    .social-icons a {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .hero-quote {
        top: 110px;
    }

    /* Show hamburger, hide horizontal nav */
    .hamburger {
        display: flex;
    }

    .navbar {
        flex-wrap: wrap;
        gap: 0;
        width: 100%;
    }

    /* Collapsible nav — hidden by default */
    .nav-links {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.3s ease;
        padding-top: 0;
        padding-bottom: 0;
    }

    .nav-links.open {
        max-height: 320px;
        padding-top: 8px;
        padding-bottom: 4px;
    }

    /* Remove pipe separators on mobile */
    .nav-links li + li::before {
        display: none;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        text-align: center;
        padding: 11px 14px;
        font-size: 0.82rem;
    }

    /* Hide underline animation on mobile */
    .nav-links a::after {
        display: none;
    }
}

/* =========================================
   Responsive — Small Mobile (≤ 480px)
   ========================================= */
@media (max-width: 480px) {
    .video-section {
        padding: 48px 20px 56px;
    }
    .artist-name {
        font-size: 1.15rem;
        letter-spacing: 0.08em;
    }

    .social-icons {
        gap: 5px;
    }

    .listen-btn {
        padding: 13px 26px;
        font-size: 0.78rem;
    }
}

/* =========================================
   Responsive — Very Small Mobile (≤ 380px)
   ========================================= */
@media (max-width: 380px) {
    .site-header {
        padding: 14px 16px 18px;
    }

    .site-header.scrolled {
        padding: 10px 16px;
    }

    .artist-name {
        font-size: 1rem;
        letter-spacing: 0.05em;
    }

    .social-icons {
        gap: 3px;
    }
}