/* --- 1. CORE VARIABLES & RESET --- */
:root { 
    --black: #111; 
    --white: #fff; 
    --accent: #9a8459; 
    --stone: #f8f8f8; 
}

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

body { 
    font-family: 'Inter', sans-serif; 
    background: var(--white); 
    color: var(--black); 
    line-height: 1.4; 
    overflow-x: hidden;
}

/* --- 2. GLOBAL COMPONENTS (Nav, Footer, Buttons) --- */
.contact-bar { 
    background: var(--black); 
    color: var(--white); 
    padding: 10px 5%; 
    display: flex; 
    justify-content: flex-end; 
    gap: 25px; 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.contact-bar a { color: var(--white); text-decoration: none; transition: 0.3s; }
.contact-bar a:hover { color: var(--accent); }

nav { 
    padding: 15px 5%; 
    display: flex; 
    gap: 30px; 
    background: white; 
    border-bottom: 1px solid #eee; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

nav a { 
    text-decoration: none; 
    color: var(--black); 
    font-size: 0.8rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
}

nav a:hover, nav a.active { color: var(--accent); }

.btn-group { 
    display: flex; 
    gap: 15px; 
    margin-top: 20px; 
}

.btn { 
    padding: 12px 30px; 
    text-decoration: none; 
    font-family: 'Oswald', sans-serif; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    letter-spacing: 1px; 
    transition: 0.3s; 
    text-align: center; 
    display: inline-block;
}

.btn-primary { background: var(--black); color: var(--white); border: 1px solid var(--black); }
.btn-outline { border: 1px solid var(--black); color: var(--black); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }

footer { 
    padding: 60px 5%; 
    background: var(--white); 
    text-align: center; 
    color: #888; 
    border-top: 1px solid #eee; 
}

.footer-info { 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    margin-bottom: 15px; 
    font-weight: 400; 
    line-height: 2; 
}

.footer-info a { color: #888; text-decoration: none; transition: 0.3s; }
.footer-info span { margin: 0 10px; color: #ddd; }

/* --- 3. LAYOUT CONTAINERS --- */
.container, .hero-wrapper { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 60px 5%; 
}

/* --- 4. TYPOGRAPHY --- */
h1 { 
    font-family: 'Oswald', sans-serif; 
    font-size: clamp(3rem, 8vw, 5.5rem); 
    text-transform: uppercase; 
    line-height: 0.9; 
    margin-bottom: 20px; 
    letter-spacing: -1px; 
}

/* Home Page specific overlap look */
.hero-content h1 { line-height: 0.85; margin-bottom: 10px; }

/* Internal Page clean look */
.page-header h1, .credits-header h1 { line-height: 1.1; margin-bottom: 30px; }

.union-tag { 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 3px; 
    color: var(--accent); 
    font-weight: 700; 
    margin-bottom: 10px; 
    display: block; 
}

.job-title { 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    color: var(--black); 
    font-weight: 700; 
    display: block; 
    margin-bottom: 20px; 
}

/* --- 5. HOME PAGE ELEMENTS --- */
.hero { display: flex; align-items: center; gap: 50px; }
.hero-image { flex: 0.8; }
.hero-content { flex: 1.2; }
.hero-image img { width: 100%; max-width: 400px; height: auto; border-radius: 2px; display: block; }

.stats-wrapper { background: var(--stone); border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.stats { max-width: 1100px; margin: 0 auto; padding: 40px 5%; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; text-align: center; }
.stat-item h3 { font-family: 'Oswald', sans-serif; font-size: 2rem; color: var(--accent); margin-bottom: 2px; }

/* --- 6. CREDITS TABLE --- */
.credits-table-wrapper { width: 100%; overflow-x: auto; }
.credits-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.credits-table th { text-align: left; font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 1px; padding: 15px 10px; border-bottom: 2px solid var(--black); color: #888; font-size: 0.8rem; }
.credits-table td { padding: 20px 10px; border-bottom: 1px solid #eee; vertical-align: top; }
.credits-table td strong { display: block; font-family: 'Oswald', sans-serif; font-size: 1.2rem; text-transform: uppercase; color: var(--black); }

/* --- 7. CREDITS PAGE (credits.html only) --- */
/* IMPORTANT: requires <body class="credits-page"> */

body.credits-page .container {
    padding: 40px 5%;
}

body.credits-page header {
    margin-bottom: 25px;
    border-bottom: 2px solid var(--black);
    padding-bottom: 15px;
}

body.credits-page h1 {
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 0;
    letter-spacing: 0;
}

body.credits-page .header-meta {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent);
    margin-top: 5px;
}

body.credits-page .download-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--accent);
    color: white;
    border: none;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.3s;
}

body.credits-page .download-btn:hover {
    background: var(--black);
}

body.credits-page .category {
    margin-top: 30px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--accent);
}

body.credits-page .credit-entry {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 10px 0;
    border-bottom: 1px solid #f4f4f4;
}

body.credits-page .entry-left {
    flex: 1;
}

body.credits-page .entry-right {
    flex: 1.3;
    font-size: 0.95rem;
    color: #444;
}

body.credits-page .show-title {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--black);
}

body.credits-page .season-info {
    display: block;
    font-size: 0.82rem;
    color: #666;
}

body.credits-page .role-label {
    display: block;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--black);
}

body.credits-page .details-line {
    display: block;
    font-size: 0.82rem;
    line-height: 1.45;
}

body.credits-page .experience-list {
    list-style: none;
    margin-top: 10px;
}

body.credits-page .experience-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

body.credits-page .experience-list li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- 8. GALLERY GRID --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gallery-item { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: var(--stone); border: 1px solid #eee; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; display: block; }
.gallery-item:hover img { transform: scale(1.05); }

/* --- 9. RESPONSIVE --- */
@media (max-width: 850px) {
    .hero { flex-direction: column; text-align: center; gap: 30px; }
    .btn-group { justify-content: center; }
    h1 { font-size: 3.5rem; }
    .footer-info { display: flex; flex-direction: column; gap: 5px; }
    .footer-info span { display: none; }

    body.credits-page .credit-entry {
        flex-direction: column;
        gap: 8px;
    }

    body.credits-page .entry-right {
        flex: 1;
    }

    body.credits-page h1 {
        font-size: 2.3rem;
    }
}

/* --- 10. PRINT: credits.html only --- */
@media print {
    body.credits-page nav,
    body.credits-page .contact-bar,
    body.credits-page .download-btn,
    body.credits-page footer .footer-info span {
        display: none !important;
    }

    @page {
        margin: 0.6in 0.5in;
    }

    body.credits-page {
        font-size: 9pt;
        line-height: 1.2;
        overflow: visible;
    }

    body.credits-page .container {
        padding: 0 !important;
        max-width: none;
        width: 100%;
    }

    body.credits-page header {
        margin-bottom: 14pt;
        border-bottom-width: 1.5pt;
        padding-bottom: 8pt;
    }

    body.credits-page h1 {
        font-size: 22pt !important;
        line-height: 1 !important;
    }

    body.credits-page .header-meta {
        font-size: 8.5pt !important;
    }

    body.credits-page header p {
        font-size: 8pt !important;
        margin-top: 4pt !important;
    }

    body.credits-page .category {
        margin-top: 10pt !important;
        margin-bottom: 4pt !important;
        padding-bottom: 3pt !important;
        font-size: 11pt !important;
        page-break-after: avoid;
    }

    body.credits-page .credit-entry {
        padding: 3pt 0 !important;
        border-bottom: 0.5pt solid #eee;
        page-break-inside: avoid;
        gap: 18pt;
    }

    body.credits-page .entry-left {
        flex: 1;
    }

    body.credits-page .entry-right {
        flex: 1.2;
        font-size: inherit !important;
    }

    body.credits-page .show-title {
        font-size: 9.5pt !important;
    }

    body.credits-page .season-info {
        font-size: 7.5pt !important;
    }

    body.credits-page .role-label {
        font-size: 8pt !important;
    }

    body.credits-page .details-line {
        font-size: 7pt !important;
        line-height: 1.15 !important;
    }

    body.credits-page .experience-list {
        margin-top: 6pt !important;
    }

    body.credits-page .experience-list li {
        font-size: 8pt !important;
        margin-bottom: 1pt !important;
    }

    body.credits-page footer {
        padding: 20px 0 !important;
        margin-top: 10px !important;
    }

    body.credits-page .footer-info {
        display: flex;
        flex-direction: column;
        line-height: 1.2 !important;
        font-size: 7pt !important;
    }
}
