/* --- BUND Productions Global Styles --- */

/* 1. CORE VARIABLES & FONTS */
:root {
    --bund-red: #8B0000;
    --bund-gold: #D4AF37;
    --bund-yellow: #FFD700;
    --bund-white: #FAFAFA;
    --bund-black: #1a1a1a;
}

body {
    background-color: var(--bund-white);
    overflow-x: hidden;
    font-family: 'Lato', sans-serif;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
}

/* 2. NAVIGATION OVERRIDES */
nav {
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.nav-scrolled {
    background-color: rgba(139, 0, 0, 0.95); /* Deep China Red */
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--bund-yellow);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 50;
    top: 100%;
    left: 0;
    border-top: 4px solid var(--bund-gold);
    border-radius: 0 0 4px 4px;
}

.group:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 3. SHATTER HERO SLIDER */
.slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: white;
}

.shatter-grid {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(10, 1fr);
    position: absolute;
    top: 0;
    left: 0;
}

.shatter-piece {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: 100vw 100vh;
    opacity: 0;
    /* Initial state: broken and scattered */
    transform: translate(0, 0) scale(0.5) rotate(0deg); 
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Assembled state */
.slide.active .shatter-piece {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg) !important;
}

/* 4. CONTENT & COMPONENTS */
.main-content {
    position: relative;
    z-index: 20;
    background-color: white;
    margin-top: -5rem; /* Overlap hero */
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
    box-shadow: 0 -10px 25px rgba(0,0,0,0.1);
    padding-bottom: 4rem;
    min-height: 60vh;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--bund-red);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header .divider {
    height: 4px;
    width: 100px;
    background-color: var(--bund-gold);
    margin: 0 auto;
}

/* Sidebar for FAQ and Events */
.sidebar-link {
    display: block;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid transparent;
    transition: all 0.3s;
    font-weight: 700;
    color: #555;
    cursor: pointer;
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: #FFF8E1; /* Light yellow */
    border-left-color: var(--bund-red);
    color: var(--bund-red);
}

.content-panel {
    display: none;
    animation: slideUp 0.5s ease;
}

.content-panel.active {
    display: block;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
    position: relative;
    z-index: 20;
}