/* CSS Variables - Golden Jazz Theme (Light Edition) */
:root {
    /* Colors */
    --bg-primary: #fdfbf7;
    /* Very light cream/ivory */
    --bg-secondary: #ffffff;
    /* White for cards */
    --bg-tertiary: #f4f1ea;
    /* Slightly darker beige for accents */

    --text-primary: #1a1a1a;
    /* Almost Black */
    --text-secondary: #4a4a4a;
    /* Dark Gray */
    --text-accent: #b59020;
    /* Darker Gold for visibility on light bg */

    --gold-primary: #b59020;
    /* Darker Gold for text/borders */
    --gold-light: #d4af37;
    /* Classic Gold */
    --gold-dark: #8a6d15;

    --border-color: rgba(181, 144, 32, 0.3);

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
}

body {
    font-family: var(--font-body);
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    font-weight: 300;
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
    /* Lighter font weight for elegance */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--gold-primary);
    margin-bottom: 1rem;
    font-weight: 400;
    /* Regular weight for headings */
    letter-spacing: 0.05em;
    /* Slight letter spacing */
    text-transform: uppercase;
    /* Classic feel */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

/* Decorative Section Divider */
.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--gold-dark);
    opacity: 0.5;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 80px;
    color: var(--gold-light);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    text-shadow: 0 0 10px rgba(181, 144, 32, 0.1);
    /* Lighter shadow */
}

.section-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    margin: 20px auto 0;
}

.text-white {
    color: var(--text-primary) !important;
}

/* Background utilities remapped for dark theme */
.bg-light {
    background-color: var(--bg-secondary);
    /* Replace light gray with dark section bg */
}

.bg-dark {
    background-color: var(--bg-primary);
}

/* Components */
.btn {
    display: inline-block;
    padding: 14px 35px;
    /* Slightly larger padding */
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
    /* Sharper corners */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.btn-gold {
    background-color: transparent;
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

.btn-gold:hover {
    background-color: var(--gold-primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--gold-light);
    color: var(--gold-light);
    background-color: rgba(181, 144, 32, 0.05);
    /* Lighter hover bg */
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.75rem;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-color: rgba(0, 0, 0, 0.1);
    /* Very subtle border */
    color: var(--text-secondary);
    /* Less prominent text */
}

.btn-small:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    background-color: transparent;
    /* Ensure no background fill on hover unless desired */
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(253, 251, 247, 0.95);
    /* Semi-transparent light bg */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 20px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    /* Slightly larger */
    font-weight: 700;
    color: var(--gold-primary);
    letter-spacing: 0.05em;
    text-transform: none;
    display: flex;
    align-items: center;
    gap: 15px;
    /* Keep logo as is or capitalize? Let's check consistency. Keep as title case usually */
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-family: var(--font-heading);
    /* Use heading font for nav */
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--gold-primary);
    margin: 6px 0;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    background-image: url('public/images/hero.jpg');
    background-size: cover;
    background-position: center top;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(5, 10, 20, 0.3) 0%, rgba(5, 10, 20, 0.6) 100%);
    /* Lighter overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    /* Increased to allow one-line title */
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    /* Dynamic scale */
    color: #f4e4bc;
    /* Keep light text for hero */
    margin-bottom: 30px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Specific Hero Button Overrides for Readability */
.hero .btn-gold {
    background-color: var(--gold-primary);
    color: #fff;
    border-color: var(--gold-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero .btn-gold:hover {
    background-color: #d4af37;
    /* Lighter gold on hover */
    color: #fff;
    border-color: #d4af37;
    transform: translateY(-2px);
}

.hero .btn-outline {
    color: #fff;
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.hero .btn-outline:hover {
    background-color: #fff;
    color: var(--text-primary);
    border-color: #fff;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 50px;
    font-weight: 300;
    color: #f8fafc;
    /* Keep light text for hero */
    font-style: italic;
    /* Add elegance */
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
}

/* About Section */
.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.8;
}

.repertoire-highlight {
    background-color: transparent;
    border: 1px solid var(--border-color);
    padding: 80px 40px;
    text-align: center;
    margin-bottom: 100px;
    position: relative;
}

/* Art Deco Corner decorations (simplified) */
.repertoire-highlight::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    border-top: 1px solid var(--gold-primary);
    border-left: 1px solid var(--gold-primary);
}

.repertoire-highlight::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-bottom: 1px solid var(--gold-primary);
    border-right: 1px solid var(--gold-primary);
}

blockquote {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-style: italic;
    color: var(--gold-light);
    line-height: 1.4;
}

.subsection-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.honorary-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.honorary-grid .member-card {
    width: 200px;
    /* Fixed width to match grid minmax */
}

.member-card {
    text-align: center;
}

.member-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background-color: var(--bg-tertiary);
    /* Light bg for image container */
    border: 1px solid var(--border-color);
    border-radius: 2px;
    /* Less rounded */
    margin-bottom: 20px;
    filter: sepia(0.4) grayscale(0.2) contrast(1.1);
    /* Vintage photo look - lighther grayscale */
    transition: all 0.5s ease;
}

.member-image:hover {
    filter: sepia(0) grayscale(0) contrast(1);
    /* Full color on hover */
    border-color: var(--gold-primary);
    box-shadow: 0 0 20px rgba(181, 144, 32, 0.15);
}

.member-card h4 {
    font-size: 1.2rem;
    color: var(--gold-primary);
    margin-bottom: 2px;
}

.member-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.4;
}

/* Events Section */
.events-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.event-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    transition: all 0.3s;
}

.event-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(181, 144, 32, 0.1);
}

.event-date {
    background-color: var(--bg-tertiary);
    color: var(--gold-primary);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    border-right: 1px solid var(--border-color);
}

.event-date .day {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.event-date .month {
    text-transform: uppercase;
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 0.1em;
}

.event-details {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-details h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.event-meta {
    color: var(--gold-dark);
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-details p {
    color: var(--text-secondary);
}

/* Gallery Section */
.audio-player-wrapper {
    max-width: 700px;
    margin: 0 auto 80px;
    border: 1px solid var(--border-color);
    padding: 30px;
    background-color: var(--bg-secondary);
}

.audio-player-wrapper h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.audio-track {
    background: transparent;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.audio-track:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.track-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: var(--gold-primary);
}

.track-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.custom-audio-player {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--bg-tertiary);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.play-btn {
    background-color: var(--gold-primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.play-btn:hover {
    background-color: var(--gold-dark);
    transform: scale(1.05);
}

.play-icon {
    font-size: 1.2rem;
    margin-left: 3px;
    /* visual center for play icon */
}

/* Audio Visualizer styling */
.audio-visualizer {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 30px;
    flex: 1;
}

.visualizer-bar {
    width: 4px;
    background-color: var(--gold-light);
    border-radius: 2px;
    height: 5px;
    /* Default height */
    transition: height 0.1s ease;
}

.custom-audio-player.playing .visualizer-bar {
    animation: soundWave 1.2s ease-in-out infinite alternate;
}

/* Volume Slider */
.volume-slider {
    width: 80px;
    accent-color: var(--gold-primary);
    cursor: pointer;
}

@keyframes soundWave {
    0% {
        height: 5px;
    }

    100% {
        height: 30px;
    }
}

audio {
    display: none;
    /* Hide default player */
}

/* Responsive Audio Player */
@media (max-width: 600px) {
    .custom-audio-player {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 15px;
        justify-content: space-between;
    }

    .play-btn {
        width: 38px;
        height: 38px;
    }

    .play-icon {
        font-size: 1.1rem;
    }

    .volume-slider {
        width: 70px;
    }

    .audio-visualizer {
        order: 3;
        flex: 1 1 100%;
        justify-content: center;
        margin-top: 5px;
        overflow: hidden;
    }
}

.gallery-grid {
    column-count: 3;
    column-gap: 30px;
}

@media (max-width: 900px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
    }
}

.gallery-item {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    margin-bottom: 30px;
    break-inside: avoid;
    transition: all 0.3s;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item:hover {
    border-color: var(--gold-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(181, 144, 32, 0.1);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.info-item {
    margin-bottom: 40px;
}

.info-item h4 {
    color: var(--gold-primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.info-item p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.contact-form {
    background-color: var(--bg-secondary);
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    font-family: inherit;
    color: var(--text-primary);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    background-color: #fff;
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    /* Very dark footer anchors the light theme */
    color: #94a3b8;
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    font-weight: 300;
    letter-spacing: 0.05em;
}

.legal-content h3 {
    color: var(--gold-primary);
}

.legal-content p {
    color: var(--text-secondary);
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(253, 251, 247, 0.98);
        /* Less transparent for readability */
        border-bottom: 1px solid var(--gold-primary);
        flex-direction: column;
        padding: 30px;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Hide logo text on mobile to prevent overlap with burger menu */
    .logo {
        font-size: 0;
        gap: 0;
    }

    .logo-image {
        height: 60px;
    }

    /* Hero Mobile Optimization */
    .hero {
        background-position: 65% center;
        /* Focus on the interesting part of the image */
        height: 100dvh;
        /* Use dynamic viewport height for mobile browsers */
        align-items: flex-end;
        /* Push content down slightly */
        padding-bottom: 80px;
    }

    .hero-content {
        width: 100%;
    }

    .hero h1 {
        /* font-size handled by clamp in main now, but we can tune it if needed - actually main clamp handles it well */
        /* Better scaling */
        line-height: 1.1;
        text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9);
        /* Stronger shadow for contrast */
        animation: fadeInUp 0.8s ease-out forwards;
        word-wrap: normal;
        /* Only break if wbr allows and line full */
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 30px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
        opacity: 0;
        /* Star hidden */
        animation: fadeInUp 0.8s ease-out 0.2s forwards;
        /* Delay */
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        opacity: 0;
        animation: fadeInUp 0.8s ease-out 0.4s forwards;
    }

    .hero .btn {
        width: 100%;
        text-align: center;
    }

    /* General Layout Adjustments */
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.2rem;
        width: 100%;
        /* Ensure it doesn't overflow */
        margin-bottom: 50px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .member-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on mobile instead of 1 if possible, or auto-fit handles it */
        gap: 20px;
    }

    @media (max-width: 480px) {
        .member-grid {
            grid-template-columns: 1fr;
            /* 1 column for very small screens */
        }
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        flex-direction: row;
        gap: 15px;
        padding: 15px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        justify-content: flex-start;
        align-items: center;
    }

    .event-date .day {
        font-size: 2rem;
        margin-bottom: 0;
        margin-right: 5px;
    }

    .event-date .month {
        font-size: 1.2rem;
    }

    .event-details {
        padding: 20px;
    }
}

/* Past Events / Archive */
.archive-section {
    max-width: 900px;
    margin: 80px auto 0;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.archive-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.archive-year {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    border-radius: 2px;
    overflow: hidden;
}

.archive-year summary {
    padding: 20px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--gold-dark);
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.archive-year summary:hover {
    background-color: var(--bg-tertiary);
    color: var(--gold-primary);
}

.archive-year summary::-webkit-details-marker {
    display: none;
}

.archive-year summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.archive-year[open] summary {
    border-bottom: 1px solid var(--border-color);
    color: var(--gold-primary);
    background-color: var(--bg-tertiary);
}

.archive-year[open] summary::after {
    content: '\2212';
    /* Minus sign */
}

.archive-list {
    padding: 0;
    margin: 0;
}

.archive-item {
    display: grid;
    grid-template-columns: 120px 100px 1fr;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(181, 144, 32, 0.1);
    font-size: 0.95rem;
    transition: background-color 0.2s;
    align-items: baseline;
}

.archive-item:last-child {
    border-bottom: none;
}

.archive-item:hover {
    background-color: rgba(181, 144, 32, 0.03);
}

.archive-date {
    font-weight: 600;
    color: var(--text-primary);
}

.archive-time {
    color: var(--gold-dark);
    font-size: 0.9rem;
    font-family: var(--font-body);
}

.archive-desc {
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .archive-item {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 15px;
    }

    .archive-time {
        font-weight: 500;
    }
}

/* History Section */
.history-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    /* Justify text for a book-like feel */
    font-size: 0.95rem;
    /* Slightly smaller */
    line-height: 1.8;
}

.history-content p {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .history-content {
        text-align: left;
        /* Better readability on mobile */
        padding: 0 10px;
    }
}