/* Frackville The Film - Static Site Styles */

/* === Fonts === */
@font-face {
    font-family: 'Hockeynight';
    font-style: normal;
    font-weight: bold;
    font-display: fallback;
    font-stretch: normal;
    src: url('../fonts/HockeynightSansRough-Bold.otf') format('opentype');
}

@font-face {
    font-family: 'Untold History Inky';
    font-style: normal;
    font-weight: normal;
    font-stretch: normal;
    font-display: fallback;
    src: url('../fonts/untold_history-inky-webfont.woff2') format('woff2'),
         url('../fonts/untold_history-inky-webfont.woff') format('woff');
}

@font-face {
    font-family: 'Untold History Inky';
    font-style: normal;
    font-weight: bold;
    font-stretch: normal;
    font-display: fallback;
    src: url('../fonts/untold_history-bold_inky-webfont.woff2') format('woff2'),
         url('../fonts/untold_history-bold_inky-webfont.woff') format('woff');
}

/* === Variables === */
:root {
    --color-bg: #0b0912;
    --color-text: #e2d6c0;
    --color-accent: #c62828;
    --color-dark: #1d2429;
    --font-body: 'Untold History Inky', sans-serif;
    --font-header: 'Hockeynight', sans-serif;
    --content-width: 1230px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    font-weight: bold;
    line-height: 1.2;
}

/* === Header === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--color-bg);
    transition: transform 0.3s ease;
    padding: 10px 0;
}

.site-header.masthead-hidden {
    transform: translateY(-100%);
}

.header-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.site-branding .logo {
    width: 80px;
    height: auto;
}

.site-identity .site-title {
    font-family: var(--font-header);
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.2;
}

.site-identity .site-title a {
    color: var(--color-text);
}

.site-identity .site-description {
    font-size: 0.7rem;
    color: var(--color-text);
    opacity: 0.8;
    letter-spacing: 0.05em;
}

/* === Navigation === */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

.main-nav a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    transition: color 0.2s;
}

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

/* === Hero / Cover Sections === */
.cover-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cover-section.hero {
    padding: 25px 20px 375px;
}

.cover-section.about {
    padding: 200px 20px 150px;
    min-height: auto;
}

.cover-section.creative-team {
    padding: 200px 20px 150px;
    min-height: auto;
}

.cover-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.cover-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.cover-section.hero .cover-overlay {
    background-color: rgba(64, 58, 64, 0);
}

.cover-section.about .cover-overlay {
    background-color: rgba(41, 35, 38, 0);
}

.cover-section.creative-team .cover-overlay {
    background-color: rgba(50, 41, 34, 0);
}

.cover-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    text-align: center;
}

/* === Hero Content === */
.presents-text {
    font-size: 21px;
    line-height: 1.25;
    color: var(--color-bg);
    font-weight: bold;
    margin-bottom: 20px;
}

.film-title {
    font-family: var(--font-header);
    font-size: clamp(4rem, 10vw, 8rem);
    color: var(--color-accent);
    text-align: center;
    margin: 20px 0;
    line-height: 1;
}

.tagline {
    font-size: 36px;
    font-weight: bold;
    color: var(--color-text);
    margin-bottom: 20px;
}

.synopsis {
    font-size: 21px;
    color: var(--color-text);
    line-height: 1.6;
}

.synopsis a {
    color: var(--color-text);
}

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

/* === About Section === */
.about-content {
    text-align: left;
}

.about-columns {
    display: flex;
    gap: 40px;
}

.about-main {
    flex: 2;
}

.about-aside {
    flex: 1;
}

.section-title {
    font-family: var(--font-header);
    color: var(--color-accent);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 30px;
    text-align: left;
}

.detail-row {
    font-size: 21px;
    color: var(--color-text);
    padding: 15px 0;
    border-bottom: 2px solid var(--color-accent);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--color-accent);
    font-weight: bold;
}

.detail-separator {
    color: var(--color-accent);
    font-weight: bold;
}

/* === Creative Team === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.team-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.team-member {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.team-member img {
    width: 265px;
    height: 275px;
    object-fit: cover;
    flex-shrink: 0;
}

.team-member-info p {
    font-size: 1rem;
    line-height: 1.5;
}

.team-member-info strong {
    display: block;
}

/* Team layout matching WP: rows of members */
.team-row-top,
.team-row-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.team-row-bottom {
    justify-content: flex-end;
}

/* === Footer === */
.site-footer {
    padding: 30px 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text);
    opacity: 0.7;
}

/* === Responsive === */
@media (max-width: 768px) {
    .cover-section.hero {
        padding: 100px 20px 200px;
    }

    .cover-section.about,
    .cover-section.creative-team {
        padding: 100px 20px 80px;
    }

    .about-columns {
        flex-direction: column;
    }

    .team-member {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .team-member img {
        width: 200px;
        height: 207px;
    }

    .team-row-top,
    .team-row-bottom {
        justify-content: center;
    }

    .main-nav ul {
        gap: 16px;
    }

    .main-nav a {
        font-size: 0.8rem;
    }

    .presents-text,
    .synopsis {
        font-size: 18px;
    }

    .tagline {
        font-size: 24px;
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .site-branding .logo {
        width: 60px;
    }

    .main-nav ul {
        gap: 12px;
    }

    .team-member img {
        width: 180px;
        height: 187px;
    }
}

/* === Utility === */
.screen-reader-text {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
