/* CSS Variables for prestigious black/white/gold theming */
:root {
    --primary-color: #000000;
    --secondary-color: #1a1a1a;
    --accent-color: #333333;
    --gold-color: #D4AF37;
    --text-dark: #000000;
    --text-light: #666666;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 2px 8px rgba(0, 0, 0, 0.15);
    --border-radius: 0px;
    --transition: all 0.3s ease;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--white);
    letter-spacing: 0.3px;
}

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

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

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Header and Navigation */
.header {
    background-color: var(--white) !important;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    position: relative;
    z-index: 1000;
}

.nav-logo {
    flex: 1;
    text-align: left;
    cursor: pointer;
}

.nav-logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.nav-logo .separator {
    color: var(--gold-color);
    font-weight: 300;
    opacity: 0.8;
}

.nav-logo .tagline {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 300;
}

.nav-menu {
    display: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 300;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-color);
    border-bottom: 2px solid var(--gold-color);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 4px;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 0px;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 2rem 2rem 0;
}

.hero-image {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    border-radius: 16px;
    margin: 0;
}

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

/* Bottom fade to white for readable hero copy */
.hero-image::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 55%, rgba(255,255,255,0.85) 80%, #ffffff 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1rem;
    z-index: 2;
    padding: 0 2rem 0.5rem;
    color: var(--text-dark);
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease-in-out 0.3s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 8rem;
    font-weight: 300;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 2px;
    line-height: 1.1;
    text-align: center;
    display: block;
    width: 100%;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin: 0;
    color: var(--text-light);
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* Remove inset on mobile and enable mobile parallax container behavior */
@media (max-width: 767px) {
    .hero {
        padding: 0; /* no inset on mobile */
    }
    .hero-image {
        height: 60vh;
        min-height: 360px;
        border-radius: 0; /* full-bleed on mobile */
    }
    .hero-copy {
        padding: 1rem 1rem 1.25rem;
        bottom: -1rem;
    }
    .hero-title {
        margin-top: 2rem;
        font-size: 5.5rem;
        letter-spacing: 2px;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay h2 {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    color: var(--gold-color);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Welcome Section */
.welcome {
    padding: 2rem 0;
    background-color: var(--white);
}

.welcome-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 0;
    background-color: var(--white);
}

.welcome-text {
    font-size: 1.4rem;
    margin-bottom: 4rem;
    color: var(--text-dark);
    line-height: 1.8;
    font-weight: 300;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.rehearsal-info {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 4rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    line-height: 1.8;
}

/* Contact Section (Home) */
.contact-home {
    padding: 6rem 0;
    background-color: var(--light-gray);
    color: var(--text-dark);
    text-align: center;
}

.contact-home h2 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 300;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--gold-color);
    width: 20px;
}

.contact-item a:hover {
    color: var(--gold-color);
}

/* Page Header */
.page-header {
    background-color: var(--white);
    color: var(--text-dark);
    padding: 6rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 300;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: 1px;
}

/* About Section */
.about-section,
.director-section {
    padding: 5rem 0;
}

.director-section {
    background-color: var(--white);
}

.about-content {
    display: grid;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-content.reverse {
    direction: rtl;
}

.about-content.reverse > * {
    direction: ltr;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.about-image:hover {
    transform: translateY(-5px);
}

.about-text {
    padding: 3rem 0;
}

.about-text h2 {
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 300;
    font-family: 'Georgia', 'Times New Roman', serif;
    position: relative;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--gold-color);
}

.about-text h3 {
    color: var(--gold-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 400;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.about-text p {
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Tighten About layout to reduce excess left whitespace */
@media (min-width: 768px) {
    .about-section .container {
        padding-left: 1.25rem;
        padding-right: 2rem;
    }
    .about-content {
        grid-template-columns: 1.25fr 1fr;
        gap: 2.5rem;
    }
}

/* Events Section */
.events {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.events-grid {
    display: grid;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.event-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.event-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
}

.event-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.event-content {
    padding: 2rem;
}

.event-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
}

.event-content h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--gold-color);
    border-radius: 2px;
}

.event-details {
    margin-bottom: 1.5rem;
}

.event-date,
.event-location {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: #555;
    font-weight: 500;
}

.event-date i,
.event-location i {
    color: var(--gold-color);
    width: 18px;
    font-size: 1.1rem;
}

.event-description {
    line-height: 1.7;
    color: #2c3e50;
    font-size: 1rem;
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.gallery-section h2,
.videos-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
}

.gallery-section h2::after,
.videos-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--gold-color);
    border-radius: 2px;
}

.gallery-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 51, 153, 0.8), rgba(77, 41, 115, 0.9));
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Videos Section */
.videos-section {
    padding: 3rem 0;
    background-color: var(--light-gray);
}

.media-grid {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.media-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.media-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.media-placeholder {
    padding: 3rem 2rem;
    text-align: center;
}

.media-placeholder i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.media-placeholder h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.media-placeholder p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.media-link {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.media-link:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close:hover {
    color: var(--accent-color);
}

/* Join Form Section */
.join-form-section {
    padding: 3rem 0;
}

.form-intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-intro p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.join-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
}

.submit-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.contact-alternative {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
}

.contact-alternative h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    margin: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Home page button container */
.home-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    .nav-menu {
        display: block;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .hero-overlay h2 {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
    
    .contact-info {
        flex-direction: row;
        justify-content: center;
        gap: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    .media-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero-image {
        height: 70vh;
        min-height: 500px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Mobile Menu Styles */
@media (max-width: 767px) {
    .nav-logo h1 {
        font-size: 1.4rem;
        gap: 0.5rem;
    }
    
    .nav-logo .tagline {
        font-size: 0.8rem;
    }
    
    .nav-menu {
        position: fixed;
        left: 0;
        top: 80px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        box-shadow: var(--shadow);
        z-index: 999;
        display: flex;
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .nav-item {
        margin: 0;
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 1.2rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
        text-align: center;
        color: var(--white);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background-color: var(--secondary-color);
        color: var(--gold-color);
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .nav-toggle {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero-overlay {
        background: none;
        color: var(--text-dark);
    }
}
