/*
Main-page.css

This stylesheet provides styles for the Navy League homepage, including:
- Responsive header with navigation links
- Hero image section
- Main content overlay with scroll animation
- Footer
- All styles are documented for clarity
*/

/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f8fb;
    color: #222;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styles */
/* Header and navigation */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #001f3f;
    color: #fff;
    padding: 1.2rem 2.5rem 1.2rem 2.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 10;
}
.logo {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.nav-bar {
    display: flex;
    gap: 1.2rem;
}
.nav-link {
    color: #fff;
    text-decoration: none;
    background: transparent;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: background 0.2s, color 0.2s;
}
.nav-link:hover, .nav-link:focus {
    background: #0074d9;
    color: #fff;
}

/* Homepage image section fills the viewport */
/* Homepage image/banner section */
.homepage {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 320px;
    max-height: 500px;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #001f3f;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.homepage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.7) contrast(1.1);
}
.homepage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    pointer-events: none;
}
.homepage-title {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}
.homepage-subtitle {
    color: gold;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 1px;
}

/* Main content sits below the homepage image */
.main-content {
    position: relative;
    z-index: 2;
    background: #fff;
    margin-top: -48px;
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.30);
    min-height: 60vh;
    padding: 2.5rem 2rem 2rem 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 1;
    transform: none;
    transition: box-shadow 0.3s;
}
.main-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Welcome section styles */
/* Section styles */
section {
    margin-bottom: 2.5rem;
}
section h2 {
    color: #003366;
    font-size: 1.5rem;
    margin-bottom: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}
section p {
    font-size: 1.08rem;
    line-height: 1.7;
    color: #222;
}

/* Footer styles */
.main-footer {
    background: #001f3f;
    color: #fff;
    text-align: center;
    padding: 1.2rem 0;
    font-size: 1rem;
    margin-top: 2rem;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* Responsive styles */
@media (max-width: 700px) {
    .main-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.2rem;
    }
    .nav-bar {
        width: 100%;
        justify-content: flex-start;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    .main-content {
        padding: 1rem;
        margin-top: -1.2rem;
        border-radius: 10px;
        max-width: 98vw;
    }
    .homepage {
        height: 35vh;
        min-height: 180px;
        max-height: 250px;
    }
    .homepage-title {
        font-size: 1.3rem;
    }
    .homepage-subtitle {
        font-size: 1rem;
    }
}
