/* Core Variables & Institutional Colors */
:root {
    --color-bg: #F8F8F6;
    --color-surface: #FFFFFF;
    --color-text: #161618;
    --color-accent: #E3202E;
    --color-secondary: #2C2D35;
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; 
}

/* Header & Typography */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem; 
    background-color: var(--color-surface);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.logo-link {
    text-decoration: none;
}

.logo-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1; 
}

.logo-primary {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    color: var(--color-text);
}

.logo-secondary {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 3px; 
    text-transform: uppercase;
    color: var(--color-accent); 
    margin-top: 4px;
}
/* --- Dropdown Menu Mechanics (Desktop) --- */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.caret {
    font-size: 0.6em;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-surface);
    min-width: 220px;
    list-style: none;
    padding: 1rem 0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 200;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Shows the dropdown when hovering or using the keyboard 'Tab' key */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.6rem 1.5rem;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: var(--color-bg);
    color: var(--color-accent); /* Highlights Underground Red */
}

/* --- Mobile Overrides for the Dropdown --- */
@media (max-width: 900px) {
    .dropdown-menu {
        position: static; /* Removes the floating behavior */
        box-shadow: none;
        border: none;
        background-color: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none; /* Hidden by default on mobile */
        padding: 0.5rem 0 0 1rem; /* Indents the sub-menu */
    }

    /* Shown when the 'active' class is added via JavaScript */
    .dropdown.active .dropdown-menu {
        display: block; 
    }
    
    .dropdown.active .caret {
        transform: rotate(180deg); /* Flips the arrow up */
    }

    .dropdown-menu li a {
        font-size: 1.2rem;
        padding: 0.5rem 0;
        opacity: 0.8;
    }
}

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

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

/* Pill-Shaped Buttons */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px; 
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background-color: #C11825;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(227, 32, 46, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--color-text);
}

.btn-massive {
    background-color: var(--color-accent);
    color: #fff;
    padding: 1rem 3rem;
    font-size: 1.2rem;
}

.btn-massive:hover {
    background-color: #C11825;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(227, 32, 46, 0.5);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-secondary);
    border: 1.5px solid var(--color-secondary); 
    padding: 0.8rem 1.5rem;
    margin-top: 1rem;
}

.btn-outline:hover {
    background-color: var(--color-secondary);
    color: #fff;
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 80vh;
    background-color: var(--color-text);
    background-image: url('/images/AFGM_hero.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 4rem;
    color: #fff;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

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

.badge {
    background-color: var(--color-secondary);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.hero-tagline {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

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

/* Season Grid Section */
.season-grid-section {
    padding: 6rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.section-heading {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -1px;
}

.text-link {
    color: var(--color-secondary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.text-link:hover {
    color: var(--color-accent);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.show-card {
    background: var(--color-surface);
    border-radius: 12px; 
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.show-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.card-image {
    height: 400px;
    background-size: cover;
    background-position: center;
}

.placeholder-fall { background-image: url('images/potus_400.png'); }
.placeholder-winter { background-image: url('images/CFA_400.png'); }
.placeholder-spring { background-image: url('images/play-placeholder.png'); }

.card-info { padding: 2rem; }

.show-dates {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.card-info h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.card-info .venue {
    color: #6B7280;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
    background-color: var(--color-secondary);
    color: #fff;
    text-align: center;
    padding: 5rem 2rem;
}

.site-footer h2 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.tax-info {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* New Legal Links Styling */
.legal-links {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    opacity: 0.5;
}

.legal-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.legal-links a:hover {
    color: var(--color-accent);
    opacity: 1;
}

/* --- Re-added Hamburger Icon & Mobile Menu Logic --- */
.hamburger {
    display: none;
    cursor: pointer;
    border: none;
    background: transparent;
    z-index: 200;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-text);
    transition: all 0.3s ease-in-out;
}

.mobile-sticky-cta {
    display: none; 
}

/* Mobile Optimization */
@media (max-width: 900px) {
    .site-header { padding: 1rem 2rem; }
    
    .nav-btn { display: none; }
    
    .hamburger { display: block; }
    
    /* Mobile Slide-Out Menu */
    .nav-links {
        display: flex;
        position: fixed;
        left: -100%; 
        top: 0;
        flex-direction: column;
        background-color: var(--color-surface);
        width: 75%;
        max-width: 300px;
        height: 100vh;
        padding: 6rem 3rem;
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
        z-index: 150;
    }

    .nav-links.active { left: 0; }
    
    .nav-links a {
        font-size: 1.5rem;
        font-weight: 800;
    }

    /* Animate hamburger to an 'X' */
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero {
        padding: 0 2rem;
        text-align: center;
        justify-content: center;
    }

    .hero::before { background: rgba(0,0,0,0.6); }
    
    .hero-title { font-size: 3.5rem; }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-socials { justify-content: center; }

    .season-grid-section { padding: 4rem 2rem; }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .mobile-sticky-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--color-surface);
        padding: 15px;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .btn-full-width {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .site-footer { padding-bottom: 120px; }
}
/* --- Header Social Links --- */
.nav-socials {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 2px solid #E5E7EB; /* Subtle divider line */
    padding-left: 1.5rem;
    margin-left: 0.5rem;
}

.nav-socials a {
    color: var(--color-text); /* Graphite color to match header */
    display: inline-flex;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-socials a:hover {
    color: var(--color-accent); /* Turns Underground Red on hover */
    transform: translateY(-2px);
}

/* Mobile Adjustment for Header Socials */
@media (max-width: 900px) {
    .nav-socials {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        margin-top: 1rem;
        justify-content: flex-start;
    }
    .nav-socials a {
        /* Make tap targets larger for mobile fingers */
        padding: 10px;
        margin-left: -10px; 
    }
    .nav-socials svg {
        width: 28px;
        height: 28px;
    }
}

/* --- Strict ADA Keyboard Focus States --- */
/* Shows a clear red outline ONLY when navigating with the 'Tab' key */
a:focus-visible, 
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Fixes pill buttons so the outline matches the curved shape */
.btn:focus-visible {
    border-radius: 50px; 
}
/* --- Editorial Article Formatting --- */

/* Limits the width so text doesn't stretch too far, making it easier to read */
.article-flow {
    max-width: 750px;
    margin: 0 auto;
}
/* --- Massive Headers --- */
.page-header-massive {
    padding: 8rem 4rem 6rem;
}

.title-massive {
    font-family: var(--font-display);
    font-size: 6rem; /* Huge, cinematic sizing */
    font-weight: 900;
    letter-spacing: -3px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    line-height: 0.9;
}

.subtitle-sleek {
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: 1px;
}

/* --- Magazine Spread Grid --- */
.magazine-section {
    padding: 6rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.magazine-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Splits screen 50/50 */
    gap: 6rem;
    align-items: center;
    margin-bottom: 8rem;
}

/* Swaps the image to the left side on desktop */
.row-reverse {
    direction: rtl; 
}
.row-reverse > * {
    direction: ltr; /* Keeps text reading left-to-right */
}

/* --- Typography & Margins --- */
.editorial-heading {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.editorial-paragraph {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #374151;
    margin-bottom: 1.5rem;
    text-align: justify; /* Forces paragraphs into perfect, rigid blocks */
}

/* --- Image Styling --- */
.magazine-image-container {
    position: relative;
}

.magazine-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.magazine-caption {
    font-size: 0.9rem;
    color: #6B7280;
    margin-top: 1rem;
    font-style: italic;
    line-height: 1.5;
    border-left: 3px solid var(--color-accent);
    padding-left: 1rem;
}

/* --- Mobile Stack --- */
@media (max-width: 900px) {
    .title-massive { font-size: 4rem; }
    
    .magazine-section { padding: 4rem 2rem; }
    
    .magazine-row {
        grid-template-columns: 1fr; /* Stacks image and text on phones */
        gap: 3rem;
        margin-bottom: 5rem;
    }
    
    .row-reverse { direction: ltr; } /* Resets the swap on phones */
    
    .editorial-paragraph {
        text-align: left; /* Justified text looks bad on narrow phone screens */
    }
  /* Tighten real estate for the Submissions section */
.compact-editorial {
    padding: 3rem 4rem !important; /* Reduced vertical padding from 6rem */
    background-color: var(--color-surface);
}

.compact-editorial .magazine-row {
    gap: 3rem; /* Reduced gap from 6rem */
    margin-bottom: 0; /* Removes the large bottom margin */
}

.compact-editorial .magazine-img {
    height: 300px; /* Locked height to prevent it from taking too much vertical space */
    object-fit: cover;
}

.compact-editorial .editorial-heading {
    font-size: 2.2rem; /* Scaled down from 3.5rem */
    margin-bottom: 0.5rem;
}

.compact-editorial .editorial-paragraph {
    font-size: 1rem; /* Scaled down from 1.15rem */
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: left; /* Justified text needs more width; left-align is better for compact blocks */
}
}