/* --- SPORTS THEME CSS --- */
/* --- PROFESSIONAL COLOR PALETTE (REVISED) --- */

:root {
    --color-primary-accent: #001F3F; /* Deep Navy for data focus, checklist, and subtle accents */
    --color-secondary-accent: #001F3F; /* Deep Navy for stable background/text/links */
    --color-text: #333333; /* Charcoal for readability */
    --color-background-soft: #F8F9FA; 
    --color-light-gray: #DDDDDD; /* Lighter borders */
}

/* --- BASE & UTILITIES --- */
* {
    /* FIX: Removed margin and padding from the universal selector */
    box-sizing: border-box; 
}

body {
    background-color: var(--color-secondary-accent);
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
    margin: 0;
    padding: 0;
    
    /* Center the main content */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Consistent content container for centering and max-width */
.site-container {
    width: 95%;
    max-width: 1300px;
    margin: 0 auto;
    background-color: var(--color-background-soft);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--color-secondary-accent);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

strong {
    color: var(--color-secondary-accent);
    font-weight: 600;
}

b {
    color: var(--color-secondary-accent)
}

.section-divider {
    border: none;
    border-top: 2px dashed var(--color-light-gray);
    margin: 3rem auto;
    width: 95%
}

/* --- HEADER & NAVIGATION --- */

.main-header {
    display: flex;
    justify-content: space-between; /* Pushes brand to left, nav to right */
    align-items: center;
    padding: 1rem 0;
    background-color: var(--color-background-soft);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--color-light-gray);
}

.team-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Space between logo and h1 */
}

.team-brand h1 {
    margin: 0; /* Remove h1 default margin for clean header */
    font-size: 2rem;
    color: var(--color-secondary-accent);
}

.bi-accent {
    color: red
}

.logo {
    width: 50px; /* Standardize logo size */
    height: auto;
}

/* Navigation Links */
.toplinks {
    display: flex;
    gap: 10px;
}

.nav-button {
    color: var(--color-secondary-accent);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-secondary-accent);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s, color 0.3s;
}

.nav-button:hover {
    background-color: var(--color-secondary-accent);
    color: white;
}

.current {
    background-color: var(--color-secondary-accent);
    color: white;
    border-color: var(--color-secondary-accent);
    font-weight: 600;
} 


/* --- OPENING STATEMENT --- */
.opening-statement {
    text-align: center;
    padding: 2rem 0;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.4;
    max-width: 1000px; /* Constrain width for better reading experience */
    margin: 0 auto;
}
.opening-statement h2 {
    font-size: 1.2rem;
    color: var(--color-secondary-accent);
    margin-top: 0;
}


.powerbi-iframe {
    width: calc(100% + 40px); /* Adjusts for the 20px padding on left and right */
    margin-left: -20px;       /* Pulls the iframe to the left edge */
    margin-right: -20px;      /* Pulls the iframe to the right edge */
    display: block;
    margin-top: 0;            /* Remove top margin to stick it closer to the header */
    margin-bottom: 0; 
    border: none;
    aspect-ratio: 16 / 9;
    max-height: 90vh;         /* Increased from 85vh to fill more screen */
    box-shadow: none;         /* Removing shadow often makes it feel more integrated */
}

/* --- FOOTER --- */

footer {
    width: calc(100% + 40px); /* Full bleed like the iframe */
    margin-left: -20px;
    margin-right: -20px;
    background-color: var(--color-secondary-accent);
    color: var(--color-light-gray);
    text-align: center;
    padding: 0.75rem 0;       /* Tightened padding */
    margin-top: 0;            /* No gap between iframe and footer */
    font-size: 0.8rem;        /* Smaller font size */
}

footer address {
    margin-bottom: 0.2rem;    /* Less space below address */
}

footer ul {
    display: flex;            /* Makes list horizontal */
    justify-content: center;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

footer p {
    margin: 0.2rem 0 0 0;    /* Tightened copyright margin */
    font-size: 0.75rem;
    opacity: 0.8;             /* Makes it look more subtle */
}

footer b {
    color: white;
}

footer a {
    color: white;
    text-decoration: none;
}
footer a:hover {
    color: red;
}


/* --- RESPONSIVENESS --- */

@media screen and (max-width: 600px) {
    .headshot-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .bio-text {
        text-align: center;
        padding: 0 1rem;
    }
    .toplinks {
        gap: 5px;       
    }
    .nav-button {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    .team-brand h1 {
        font-size: 1.4rem;
    }

    .logo {
        width: 35px; /* Optional: Shrink the logo slightly to match the smaller text */
    }
    
    .team-brand {
        gap: 0.3rem; /* Tighten the space between logo and text */
    }
}

/* Targets phones in landscape mode (usually height < 500px) */
@media screen and (orientation: landscape) and (max-height: 500px) {
    
    .main-header {
        padding: 0.25rem 0; /* Ultra-thin header */
    }

    .logo {
        width: 25px; /* Tiny logo */
    }

    .team-brand h1 {
        font-size: 1.1rem; /* Much smaller text */
    }

    .nav-button {
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
    }

    /* Hide the "NFL" heading entirely to give the Iframe more room */
    .opening-statement {
        display: none; 
    }

    .powerbi-iframe {
        margin-top: 0;
        max-height: 100vh; /* Allow it to take up all remaining height */
    }
}