@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Color Palette */
    --charcoal: #171516;
    --espresso: #241B19;
    --burgundy: #5A2028;
    --wine: #7A2935;
    --gold: #C49A4A;
    --brass: #9F7838;
    --beige: #D8C5A5;
    --brown: #30231F;
    
    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #E8DDD0;
    --text-muted: #B9AAA0;

    /* Fonts */
    --font-heading: 'Crimson Text', serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --max-width: 1200px;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--charcoal);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Subtle background vignette for atmosphere */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, transparent 0%, rgba(23, 21, 22, 0.8) 100%);
    pointer-events: none;
    z-index: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: var(--beige);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* Typography Helpers */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

/* Header & Navigation */
.site-header {
    background-color: rgba(36, 27, 25, 0.95);
    border-bottom: 1px solid var(--burgundy);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background-color: var(--gold);
}

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

.nav-links li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--wine);
    color: var(--text-primary);
    border: 1px solid var(--gold);
    box-shadow: 0 4px 15px rgba(90, 32, 40, 0.3);
}

.btn-primary:hover {
    background-color: var(--burgundy);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 154, 74, 0.2);
}

.btn-secondary {
    background-color: rgba(48, 35, 31, 0.6);
    color: var(--text-primary);
    border: 1px solid var(--brass);
}

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

/* Exhibit Labels (Thematic elements) */
.exhibit-label {
    display: inline-block;
    background: var(--burgundy);
    color: var(--text-primary);
    font-size: 0.75rem;
    letter-spacing: 3px;
    padding: 4px 12px;
    border: 1px solid var(--gold);
    text-transform: uppercase;
    margin-bottom: 1rem;
    box-shadow: 2px 2px 0 var(--espresso);
}

/* Hero Section */
.hero {
    padding: var(--spacing-xl) 0;
    background-color: var(--charcoal);
    border-bottom: 2px solid var(--brass);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(36, 27, 25, 0.85), var(--charcoal));
    z-index: 1;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
    filter: grayscale(30%) sepia(40%) contrast(1.2);
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    border-left: 4px solid var(--wine);
    padding-left: 1.5rem;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--beige);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Dividers */
.case-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--spacing-lg) 0;
}

.case-divider::before,
.case-divider::after {
    content: '';
    height: 1px;
    background-color: var(--brass);
    flex-grow: 1;
    max-width: 200px;
}

.case-divider-icon {
    margin: 0 1rem;
    width: 8px;
    height: 8px;
    background-color: var(--burgundy);
    transform: rotate(45deg);
    border: 1px solid var(--gold);
}

/* Dossier Cards (Feature Sections) */
.dossier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: var(--spacing-lg);
}

.dossier-card {
    background: linear-gradient(180deg, rgba(36,27,25,1) 0%, rgba(23,21,22,1) 100%);
    border: 1px solid var(--burgundy);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.dossier-card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(159, 120, 56, 0.3); /* faint brass */
    pointer-events: none;
    z-index: 5;
}

.dossier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: var(--gold);
}

.card-inner {
    padding: 2.5rem;
    flex-grow: 1;
    position: relative;
    z-index: 10;
}

.dossier-exhibit {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.card-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(90,32,40,0.2);
    border: 1px solid var(--burgundy);
    border-radius: 50%;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--beige);
}

/* The Game Section (CRITICAL) */
.investigation-zone {
    padding: var(--spacing-lg) 0;
    background-color: var(--charcoal);
    position: relative;
    overflow: hidden;
}

.investigation-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(196, 154, 74, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.game-presentation-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.case-file-frame {
    background: var(--espresso);
    background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(0,0,0,0.1) 5px, rgba(0,0,0,0.1) 10px);
    border: 6px solid var(--burgundy);
    padding: 1rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9), inset 0 0 20px rgba(0,0,0,0.8);
    position: relative;
}

/* Corner brass details */
.case-file-frame::before,
.case-file-frame::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--gold);
    pointer-events: none;
    z-index: 2;
}

.case-file-frame::before {
    top: -2px; left: -2px;
    border-right: none; border-bottom: none;
}

.case-file-frame::after {
    bottom: -2px; right: -2px;
    border-left: none; border-top: none;
}

.case-file-inner {
    border: 2px solid var(--gold);
    background: #000;
    padding: 2px;
    position: relative;
}

.case-file-inner iframe {
    width: 100%;
    aspect-ratio: 16/9;
    min-height: 600px;
    border: none;
    display: block;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--brown);
    border: 1px solid var(--brass);
}

.game-meta-text {
    font-family: var(--font-heading);
    color: var(--beige);
    font-style: italic;
}

/* Standard Page Layouts */
.page-header {
    padding: var(--spacing-lg) 0;
    background: 
        linear-gradient(to bottom, rgba(36, 27, 25, 0.95), var(--charcoal)),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(159, 120, 56, 0.03) 10px, rgba(159, 120, 56, 0.03) 20px);
    background-color: var(--espresso);
    border-bottom: 1px solid var(--burgundy);
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--gold);
}

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

.document-panel {
    background-color: var(--espresso);
    border: 1px solid var(--brass);
    border-top: 4px solid var(--wine);
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background-image: linear-gradient(135deg, rgba(90,32,40,0.05) 0%, transparent 100%);
}

.document-panel h2 {
    color: var(--wine);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(196, 154, 74, 0.3);
}

.document-panel p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.document-panel ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--text-secondary);
}

.document-panel li {
    margin-bottom: 0.5rem;
}

/* Forms */
.case-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-heading);
    color: var(--beige);
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    background-color: var(--charcoal);
    border: 1px solid var(--brass);
    padding: 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 5px rgba(196, 154, 74, 0.3);
}

/* Footer */
.site-footer {
    background-color: var(--charcoal);
    border-top: 2px solid var(--burgundy);
    padding: var(--spacing-lg) 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--beige);
}

.footer-address {
    margin-top: 1rem;
    color: var(--text-muted);
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-address strong {
    color: var(--beige);
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(159, 120, 56, 0.2);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; 
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .case-file-inner iframe {
        min-height: 400px;
    }
    
    .dossier-grid {
        grid-template-columns: 1fr;
    }
    
    .document-panel {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .case-file-frame {
        padding: 0.5rem;
        border-width: 3px;
    }
    
    .game-meta {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}