/* ===========================
   We Are The River
   How The Mississippi Shaped Minnesota
   =========================== */
:root {
    --brown-dark: #3d2a15;
    --brown: #5e4222;
    --brown-mid: #7a5a30;
    --gold: #e8c451;
    --gold-dark: #c9a040;
    --white: #ffffff;
}

/* Fonts */
@font-face {
    font-family: 'Gotham Condensed';
    src: url('fonts/gotham-condensed-book.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Myriad Pro Condensed';
    src: url('fonts/myriad-pro-condensed.woff2') format('woff2'),
        url('fonts/myriad-pro-condensed.woff') format('woff'),
        url('fonts/myriad-pro-condensed.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Gotham Condensed', 'Myriad Pro Condensed', Arial, sans-serif;
    font-size: clamp(1.34rem, 1.8vw, 1.5rem);
    color: var(--white);
    line-height: 1.65;
    min-height: 100vh;
    background: var(--brown);
}

.page-wrapper {
    background: linear-gradient(180deg,
            var(--brown) 0%,
            #6b4f28 8%,
            #7a5a30 20%,
            #876732 35%,
            #9a7a36 50%,
            #a8873a 65%,
            #9a7a36 80%,
            #876732 90%,
            #6b4f28 100%);
    min-height: 100vh;
}

/* ---- Hero Section ---- */
.hero {
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('images/mississippi-river-background-photo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: clamp(2rem, 6vw, 4rem) 1rem;
    padding-top: 40vh;
}

.header-logo {
    max-width: 80%;
    width: 800px;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* ---- Content Sections ---- */
.content {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 4vw, 3rem);
}

.about-text p {
    font-size: clamp(1.34rem, 1.8vw, 1.5rem);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* ---- Navigation (sticky) ---- */
.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem clamp(1rem, 3vw, 2rem);
    background: var(--brown-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 2rem);
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle-bar {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* Animated X when open */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-link {
    color: var(--gold);
    text-decoration: none;
    font-size: clamp(1.34rem, 1.6vw, 1.5rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--white);
}

.nav-link.active {
    color: var(--white);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.2em;
}

/* ---- Scroll targets (offset for sticky nav) ---- */
section[id] {
    scroll-margin-top: 3.5rem;
}

/* ---- Photo Gallery ---- */
.gallery {
    display: flex;
    gap: clamp(4px, 0.5vw, 8px);
    width: 100%;
}

.gallery img {
    flex: 1;
    width: 25%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.02);
    z-index: 1;
}

/* ---- Page Section Headers ---- */
.section-header {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 4vw, 3rem) 1.5rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    text-align: center;
}

/* ---- Team Members (Production tab) ---- */
.team-section {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 4vw, 3rem) 2rem;
}

.team-member {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.team-member-photo {
    flex-shrink: 0;
    width: clamp(160px, 20vw, 220px);
    height: clamp(160px, 20vw, 220px);
    background: var(--brown-mid);
    overflow: hidden;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.team-member-photo:hover {
    transform: scale(1.05);
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-member-photo .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.34rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
}

.team-member-info h3 {
    font-size: clamp(1.34rem, 1.8vw, 1.5rem);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.team-member-info p {
    font-size: clamp(1.34rem, 1.6vw, 1.5rem);
    line-height: 1.65;
}

/* ---- Resources Grid ---- */
.resources-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem) 2rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.resource-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1rem 0.5rem;
    text-decoration: none;
    color: var(--white);
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
}

.resource-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.resource-card .resource-logo {
    width: 144px;
    height: 144px;
    object-fit: contain;
    flex-shrink: 0;
}

.resource-card .resource-logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brown-mid);
    border-radius: 8px;
    font-size: 1.34rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    color: var(--gold);
}

.resource-card span:last-child {
    font-size: 1.34rem;
    line-height: 1.4;
}

/* ---- Video Embed (Trailer tab) ---- */
.video-section {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem) 2rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ---- Coming Soon ---- */
.coming-soon {
    text-align: center;
    padding: 4rem 1.5rem;
}

.coming-soon h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.coming-soon p {
    font-size: clamp(1.34rem, 1.8vw, 1.5rem);
    line-height: 1.75;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Contact ---- */
.contact-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem) 2rem;
    font-size: clamp(1.34rem, 1.8vw, 1.5rem);
    line-height: 1.75;
}

.contact-section a {
    color: var(--gold);
    text-decoration: none;
    transition: opacity 0.2s;
}

.contact-section a:hover {
    opacity: 0.8;
}

/* ---- Footer ---- */
.site-footer {
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.site-footer .footer-logo {
    width: clamp(280px, 60vw, 450px);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.site-footer .footer-logo:hover {
    transform: scale(1.03);
}

.footer-credit {
    margin-top: 1.5rem;
    font-size: clamp(1.34rem, 1.6vw, 1.5rem);
    letter-spacing: 0.05em;
}

.footer-mcg-logo {
    height: 1.4em;
    vertical-align: middle;
    margin-left: 0.25em;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    transition: opacity 0.2s;
}

.footer-mcg-logo:hover {
    opacity: 0.8;
}

/* ---- Responsive ---- */
/* Small screens: hamburger nav, 2x2 gallery, stack team members, 1-col resources */
@media (max-width: 640px) {

    /* Hamburger menu */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding-top: 0.5rem;
    }

    .nav-links.open {
        display: flex;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        padding: 0.6rem 0;
        font-size: 1.34rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        text-align: center;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link.active {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 0.6rem;
    }

    /* 2x2 gallery grid */
    .gallery {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }

    .gallery img {
        width: 100%;
        aspect-ratio: 4 / 3;
    }

    .resources-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
    }

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

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

/* Tablet: 2-column resources grid */
@media (min-width: 641px) and (max-width: 959px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Wide screens: 2-column team grid */
@media (min-width: 960px) {
    .team-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem 3rem;
    }

    .team-member {
        flex-direction: column;
        align-items: center;
        margin-bottom: 0;
    }

    /* Center the last team member when odd count */
    .team-member:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 50%;
        justify-self: center;
    }
}
