/* ===================================
   CSS Variables - Victorian Gothic Christmas
   =================================== */
:root {
    /* Victorian Gothic Color Palette */
    /* Midnight & Deep Blues - Dark, mysterious base */
    --color-midnight: #0A1628;
    --color-navy-deep: #1B2838;
    --color-slate-dark: #2C3E50;

    /* Deep Forest Greens - Victorian Christmas */
    --color-forest-deep: #1A3A2E;
    --color-forest-mid: #2D5F4C;
    --color-pine: #3A6B5A;

    /* Antique Gold & Brass - Sharp, metallic highlights */
    --color-gold-antique: #C9A961;
    --color-brass: #8B7355;
    --color-gold-bright: #D4AF37;
    --color-gold-light: #E8C98A;
    /* NEW: Lighter gold for better contrast */
    --color-gold-pale: #F5E6C8;
    /* NEW: Very light gold for text on dark */

    /* Deep Burgundy & Wine - Dramatic accents */
    --color-burgundy-deep: #5C1A1A;
    --color-burgundy-darker: #3D0F0F;
    /* NEW: Darker for better contrast on gold */
    --color-wine: #722F37;
    --color-crimson: #8B3A3A;

    /* Parchment & Cream - Warm neutrals */
    --color-parchment: #F5F0E8;
    --color-cream: #E8DCC8;
    --color-ivory: #FFFEF7;
    --color-text-dark: #1A1A1A;
    --color-text-light: #FEFDFB;
    /* NEW: High contrast light text */

    /* Spacing scale */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 3.5rem;
    --spacing-2xl: 5rem;

    /* Sharp, subtle border radius */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --radius-xl: 8px;

    /* Victorian Gothic Typography */
    --font-primary: 'Crimson Text', Georgia, serif;
    --font-heading: 'Bebas Neue', 'Impact', sans-serif;
    --font-decorative: 'Cinzel Decorative', serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Dramatic shadows for gothic atmosphere */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.45);
    --shadow-gold: 0 4px 20px rgba(201, 169, 97, 0.3);
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: var(--color-parchment);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

/* ===================================
   Compact Typography
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.15;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

h1 {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
}

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.65;
}

/* ===================================
   Utility Classes
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ===================================
   Compact Header
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(26, 35, 50, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem var(--spacing-md);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header-dates {
    font-family: var(--font-heading);
    color: var(--color-gold-bright);
    font-size: 1rem;
    margin-right: 1.4rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    filter: drop-shadow(0 0 6px rgba(201, 169, 97, 0.4));
}

.btn-header-cta {
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold-antique));
    color: var(--color-burgundy-darker);
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: var(--radius-md);
    border: 2px solid var(--color-gold-bright);
    box-shadow: var(--shadow-md), var(--shadow-gold);
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-header-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 6px 25px rgba(201, 169, 97, 0.5);
    background: linear-gradient(135deg, var(--color-gold-bright), var(--color-gold-light));
    border-color: var(--color-gold-bright);
    color: var(--color-burgundy-darker);
}

.btn-header-cta:focus {
    outline: none;
    box-shadow: var(--shadow-lg), 0 0 0 3px rgba(232, 201, 138, 0.4);
}

.btn-header-cta:focus-visible {
    outline: 3px solid var(--color-gold-pale);
    outline-offset: 2px;
}

/* ===================================
   Compact Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 70px;
    padding-bottom: var(--spacing-lg);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(10, 22, 40, 0.75),
            rgba(26, 58, 46, 0.85));
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-text-light);
    max-width: 900px;
    padding: var(--spacing-md);
}

.hero-title {
    color: var(--color-gold-light);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(232, 201, 138, 0.4);
    letter-spacing: 3px;
    line-height: 1.1;
    position: relative;
}

/* Hero Logo - Replaces text title visually */
.hero-logo {
    width: clamp(300px, 20vw, 550px);
    height: auto;
    margin: 0 auto var(--spacing-lg);
    display: block;
    filter: drop-shadow(2px 4px 20px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 30px rgba(232, 201, 138, 0.4));
    animation: fadeInScale 1.2s ease-out;
    position: relative;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-subtitle {
    font-family: var(--font-decorative);
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    margin-bottom: var(--spacing-md);
    color: var(--color-gold-pale);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 1px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero-tagline {
    font-size: clamp(1.1rem, 1.8vw, 1.2rem);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
    opacity: 0.95;
    font-style: italic;
    color: var(--color-ivory);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ===================================
   Compact Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    text-align: center;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold-antique));
    color: var(--color-burgundy-darker);
    box-shadow: var(--shadow-md), var(--shadow-gold);
    border-color: var(--color-gold-bright);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 6px 30px rgba(201, 169, 97, 0.5);
    background: linear-gradient(135deg, var(--color-gold-bright), var(--color-gold-light));
    border-color: var(--color-gold-bright);
    color: var(--color-burgundy-darker);
}

.btn-secondary {
    background-color: var(--color-forest-deep);
    color: var(--color-ivory);
    box-shadow: var(--shadow-md);
    border-color: var(--color-pine);
}

.btn-secondary:hover {
    background-color: var(--color-forest-mid);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-gold-antique);
    color: var(--color-ivory);
}

/* Enhanced ticket button styling */
.btn-ticket {
    font-size: 1.2rem;
    padding: 1.15rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-lg);
    width: 100%;
}

/* ===================================
   Compact Sections
   =================================== */
.section {
    padding: var(--spacing-xl) 0;
}

/* Compact section for About */
.section-compact {
    padding: var(--spacing-lg) 0;
}

.section-light {
    background-color: var(--color-parchment);
    border-top: 1px solid var(--color-cream);
}

.section-dark {
    background: linear-gradient(180deg, var(--color-midnight) 0%, var(--color-navy-deep) 100%);
    color: var(--color-ivory);
    border-top: 1px solid rgba(201, 169, 97, 0.2);
}

/* Ticket section gets extra emphasis */
.section-tickets {
    position: relative;
    z-index: 10;
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--color-forest-deep) 0%, var(--color-midnight) 100%);
    border-top: 3px solid var(--color-gold-antique);
    border-bottom: 3px solid var(--color-gold-antique);
    box-shadow: inset 0 4px 30px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(201, 169, 97, 0.15);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: inherit;
    position: relative;
    padding-bottom: var(--spacing-md);
}

.section-dark .section-title {
    color: var(--color-gold-light);
}

/* Highlighted title for ticket section */
.section-title-highlight {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--color-gold-light);
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--color-gold-pale);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
    line-height: 1.5;
}

/* ===================================
   About Section - Compact
   =================================== */
.about-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-md);
}

.about-content img {
    max-width: 100%;
    height: auto;
    margin: 0 auto var(--spacing-lg);
    display: block;
}

/* ===================================
   Ticket Selector Card - Single Compact Card
   =================================== */
.ticket-selector-card {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.ticket-selector-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-content {
    padding: var(--spacing-xl);
}

.selector-intro {
    font-size: 1.2rem;
    color: var(--color-gold-pale);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    font-weight: 600;
}

/* ===================================
   Custom Dropdown Selector - Multi-line Support
   =================================== */
.date-selector-wrapper {
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background-color: var(--color-ivory);
    border: 2px solid var(--color-gold-antique);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    color: var(--color-text-dark);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
}

.custom-select-trigger:hover {
    background-color: var(--color-parchment);
    border-color: var(--color-gold-bright);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.custom-select-trigger:focus {
    outline: none;
    border-color: var(--color-gold-bright);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.2);
}

/* Visible focus for keyboard navigation */
.custom-select-trigger:focus-visible {
    outline: 3px solid var(--color-gold-antique);
    outline-offset: 2px;
}

.custom-select-trigger[aria-expanded="true"] {
    border-color: var(--color-gold-bright);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.selected-text {
    flex: 1;
    line-height: 1.5;
    word-wrap: break-word;
}

.select-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.custom-select-trigger[aria-expanded="true"] .select-arrow {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-ivory);
    border: 2px solid var(--color-gold-antique);
    border-top: none;
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all var(--transition-normal);
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
        0 4px 20px rgba(201, 169, 97, 0.25);
}

/* Ensure hidden attribute works correctly */
.custom-select-options[hidden] {
    display: none;
}

.custom-select-options.open {
    max-height: 400px;
    opacity: 1;
    overflow-y: auto;
}

.custom-option {
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    color: var(--color-text-dark);
    cursor: pointer;
    transition: all var(--transition-fast);
    line-height: 1.5;
    word-wrap: break-word;
    border-bottom: 1px solid var(--color-cream);
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover,
.custom-option:focus {
    background-color: var(--color-forest-mid);
    color: var(--color-ivory);
    outline: none;
}

/* Visible focus for keyboard navigation on options */
.custom-option:focus-visible {
    outline: 3px solid var(--color-gold-antique);
    outline-offset: -3px;
}

.custom-option.selected {
    background-color: var(--color-gold-pale);
    font-weight: 600;
    color: var(--color-burgundy-darker);
    border-left: 4px solid var(--color-gold-antique);
}

.custom-option.selected::after {
    content: '✓';
    float: right;
    font-weight: bold;
    color: var(--color-teal);
}

@media (max-width: 768px) {
    .custom-select-trigger {
        font-size: 1rem;
        padding: 0.9rem 2.5rem 0.9rem 1rem;
        min-height: auto;
    }

    .custom-option {
        font-size: 1rem;
        padding: 0.9rem 1rem;
    }

    .select-arrow {
        width: 18px;
        height: 18px;
    }
}

/* ===================================
   Production Team - Compact Cards
   =================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.team-item {
    background-color: rgba(232, 200, 150, 0.25);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 5px solid var(--color-gold-dark);
    transition: all var(--transition-normal);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.team-item:hover {
    background-color: rgba(232, 200, 150, 0.35);
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.team-item h3 {
    font-size: 0.9rem;
    color: var(--color-teal);
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.team-name {
    font-size: 1.3rem;
    font-family: var(--font-heading);
    color: var(--color-gold-dark);
    margin: 0;
    line-height: 1.3;
}

.producers {
    text-align: center;
    padding: var(--spacing-md);
    background-color: rgba(77, 169, 166, 0.18);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.producers strong {
    color: var(--color-gold-dark);
}

/* ===================================
   Partners Section
   =================================== */
.partners-section {
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-xl) 0;
    background-color: rgba(232, 220, 200, 0.08);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-cream);
}

.partners-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    text-align: center;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.partners-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-dark);
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
}

.partner-logo-item {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    background-color: var(--color-ivory);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    min-width: 150px;
}

.partner-logo-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background-color: var(--color-parchment);
}

.partner-logo {
    max-width: 180px;
    max-height: 100px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Responsive adjustments for partners */
@media (max-width: 768px) {
    .partners-logos {
        gap: var(--spacing-lg);
    }

    .partner-logo-item {
        min-width: 130px;
        padding: var(--spacing-sm);
    }

    .partner-logo {
        max-width: 150px;
        max-height: 80px;
    }
}

@media (max-width: 480px) {
    .partners-section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .partners-logos {
        gap: var(--spacing-md);
    }

    .partner-logo-item {
        min-width: 120px;
    }

    .partner-logo {
        max-width: 130px;
        max-height: 70px;
    }
}


/* ===================================
   Practical Information - Compact Cards
   =================================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.info-card {
    background-color: rgba(232, 200, 150, 0.06);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.info-card:hover {
    background-color: rgba(232, 200, 150, 0.12);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.info-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    color: var(--color-gold-light);
    stroke-width: 1.5;
}

.info-card h3 {
    color: var(--color-gold-light);
    margin-bottom: var(--spacing-sm);
    font-size: 1.4rem;
}

.info-card p {
    margin: 0;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--color-dark-accent);
    color: var(--color-beige);
    padding: var(--spacing-md) 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-links {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.footer-links a {
    color: var(--color-teal-light);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-gold-light);
}

.separator {
    color: var(--color-beige);
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ===================================
   Responsive Adjustments
   =================================== */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 2.5rem;
        --spacing-2xl: 3.5rem;
        --spacing-lg: 2rem;
    }

    .hero {
        background-attachment: scroll;
        min-height: 80vh;
        padding-top: 60px;
    }

    .section-compact {
        padding: var(--spacing-md) 0;
    }

    .nav-container {
        padding: 0.6rem var(--spacing-md);
    }

    .btn-header-cta {
        padding: 0.55rem 1.25rem;
        font-size: 0.9rem;
    }

    .card-content {
        padding: var(--spacing-lg);
    }

    .performance-select {
        font-size: 1rem;
        padding: 0.9rem 1rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .hero {
        min-height: 75vh;
    }

    .selector-intro {
        font-size: 1.1rem;
    }
}