/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --color-bg: #000000;
    --color-text: #f2f2f2;
    --color-text-muted: #9aa0a6;
    --color-divider: rgba(255, 255, 255, 0.08);
    
    --gradient-nav-left: #057375;
    --gradient-nav-center: #051d6c;
    --gradient-nav-right: #dc0165;
    
    --gradient-wordmark-from: #057375;
    --gradient-wordmark-to: #dc0165;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    --border-radius: 0.75rem;
    --border-radius-lg: 1.25rem;
    --border-radius-full: 9999px;
    
    --header-height: 80px;
    --nav-height: 64px;
    --nav-margin: 24px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-md);
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
}

.wordmark {
    display: flex;
    align-items: center;
    margin: 0;
}

.wordmark-logo {
    height: 32px;
    width: auto;
}

.header-icons {
    display: flex;
    gap: var(--spacing-md);
}

.header-icons a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.header-icons a:hover {
    color: rgba(255, 255, 255, 1);
}

.header-icons a:focus-visible {
    outline: 2px solid var(--gradient-nav-right);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.page-content {
    min-height: 100vh;
    padding-top: var(--header-height);
    padding-bottom: calc(var(--nav-height) + var(--nav-margin) + 2rem);
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}


.page-content-centered {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-xl) 0;
}

.hero-card {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 4 / 5;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
    transition: transform 0.7s ease;
}

.hero-card:hover .hero-image {
    transform: scale(1.05);
}

.hero-overlay {
    display: none;
}

.hero-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: var(--spacing-xl);
    z-index: 10;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.9;
    margin-bottom: var(--spacing-xs);
}

.hero-tagline {
    font-size: clamp(0.75rem, 2vw, 1rem);
    font-weight: 300;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   LISTEN SECTION
   ============================================ */
.listen-section {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.listen-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.listen-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    width: 100%;
}

.listen-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.listen-btn:hover {
    background-color: rgba(220, 1, 101, 0.2);
    border-color: rgba(220, 1, 101, 0.5);
}

.listen-btn:focus-visible {
    outline: 2px solid var(--gradient-nav-right);
    outline-offset: 4px;
}

/* Listen buttons with brand images */
.listen-btn-img {
    padding: var(--spacing-xs) var(--spacing-sm);
}
.listen-btn-img img {
    display: block;
    max-height: 32px;
    width: auto;
    object-fit: contain;
}
@media (min-width: 768px) {
    .listen-btn-img img {
        max-height: 40px;
    }
}

@media (min-width: 768px) {
    .hero-card {
        aspect-ratio: 16 / 9;
    }
    
    .listen-buttons {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile: reduce hero height so all elements fit without overlay (home page only) */
@media (max-width: 767px) {
    /* Only clip content on home page; About/Tour/Music must scroll */
    body.page-home .page-content {
        padding-bottom: calc(var(--nav-height) + var(--nav-margin) + 2rem);
        max-height: calc(100vh - var(--header-height) - var(--nav-height) - var(--nav-margin));
        overflow: hidden;
        position: relative;
    }
    
    .hero-section {
        padding: var(--spacing-sm) 0 var(--spacing-md) 0;
    }
    
    .hero-card {
        max-width: 100%;
        margin-bottom: var(--spacing-md);
        /* Cap height so header + hero + listen + nav fit in viewport */
        max-height: 42vh;
        aspect-ratio: 4 / 5;
    }
    
    .listen-section {
        gap: var(--spacing-sm);
        margin-bottom: 0;
    }
}

/* ============================================
   TOUR PAGE
   ============================================ */
.tour-section {
    text-align: center;
}

.coming-soon {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    font-weight: 300;
}

.tour-dates {
    list-style: none;
}

.tour-date-item + .tour-date-item {
    margin-top: var(--spacing-md);
}

.tour-date-link {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--color-text-muted);
    transition: color 0.25s ease, transform 0.25s ease;
}

.tour-date-link::after {
    content: ' →';
    opacity: 0;
    transition: opacity 0.25s ease;
}

.tour-date-link:hover,
.tour-date-link:focus-visible {
    color: var(--color-text);
    transform: translateX(6px);
}

.tour-date-link:hover::after,
.tour-date-link:focus-visible::after {
    opacity: 0.85;
}

.tour-date-link:focus-visible {
    outline: 2px solid var(--gradient-nav-left);
    outline-offset: 6px;
    border-radius: 4px;
}

.tour-section.reveal.visible .tour-date-item {
    animation: tour-date-enter 0.75s ease forwards;
}

.tour-section.reveal.visible .tour-date-item:nth-child(1) {
    animation-delay: 0.15s;
}

.tour-section.reveal.visible .tour-date-item:nth-child(2) {
    animation-delay: 0.4s;
}

.tour-date-item {
    opacity: 0;
}

@keyframes tour-date-enter {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }
    80% {
        opacity: 1;
        transform: translateY(0);
    }
    90% {
        transform: translateX(4px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.video-banner {
    width: min(var(--video-max-width, 900px), calc(100vw - (var(--spacing-md) * 2)));
    margin: var(--spacing-md) auto 0;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.video-banner iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

/* ============================================
   MUSIC PAGE
   ============================================ */
.music-section {
    padding: var(--spacing-lg) 0;
}

.releases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.release-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-divider);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.release-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.release-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background-color: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.release-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.release-info {
    padding: var(--spacing-md);
}

.release-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.release-year {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
}

.release-links {
    display: flex;
    gap: var(--spacing-sm);
}

.release-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.release-link:hover {
    color: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
}

.release-link:focus-visible {
    outline: 2px solid var(--gradient-nav-right);
    outline-offset: 2px;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-section {
    padding: var(--spacing-lg) 0;
    max-width: 900px;
    margin: 0 auto;
}

.about-content {
    margin-bottom: var(--spacing-xl);
}

.about-image img {
    width: 100%;
    height: auto;
    filter: none;
}

.about-text p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    color: rgba(242, 242, 242, 0.9);
}

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

.contact-section {
    border-top: 1px solid var(--color-divider);
    padding-top: var(--spacing-xl);
}

.contact-heading {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.contact-item {
    text-align: center;
}

.contact-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.contact-link {
    font-size: 1rem;
    color: var(--color-text);
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--gradient-nav-right);
}

.contact-link:focus-visible {
    outline: 2px solid var(--gradient-nav-right);
    outline-offset: 4px;
    border-radius: 4px;
}

@media (min-width: 640px) {
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-item {
        text-align: left;
    }
}

/* ============================================
   BOTTOM NAVIGATION
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: var(--nav-margin);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 640px;
    background: linear-gradient(90deg, var(--gradient-nav-left) 0%, var(--gradient-nav-center) 50%, var(--gradient-nav-right) 100%);
    border-radius: var(--border-radius-full);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 1px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bottom-nav::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--border-radius-full);
    z-index: -1;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-sm);
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
    flex: 1;
}

.nav-item:hover {
    color: rgba(255, 255, 255, 1);
}

.nav-item:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
    border-radius: var(--border-radius);
}

.nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.nav-item[aria-current="page"] {
    color: rgba(255, 255, 255, 1);
    font-weight: 700;
}

.nav-item[aria-current="page"]::after {
    content: '';
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 60%;
    height: 2px;
    background-color: var(--gradient-nav-right);
    border-radius: var(--border-radius-full);
}

@media (min-width: 640px) {
    .nav-item span {
        font-size: 0.875rem;
    }
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */
.decoration {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    border-radius: 50%;
    filter: blur(100px);
}

.decoration-1 {
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background-color: rgba(220, 1, 101, 0.1);
}

.decoration-2 {
    bottom: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background-color: rgba(5, 115, 117, 0.1);
}

/* ============================================
   REVEAL ANIMATION
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }

    .tour-date-item {
        opacity: 1;
    }

    .tour-section.reveal.visible .tour-date-item {
        animation: none;
    }

    .tour-date-link:hover,
    .tour-date-link:focus-visible {
        transform: none;
    }
    
    .hero-card:hover .hero-image {
        transform: none;
    }
}
