/* BRANDING */
.brand-name,
.brand-tagline,
.top-bar,
.top-bar a,
.nav-link {
    font-family: "Times New Roman", serif;
}

.top-bar {
    background:#0a2a43;
    color:white;
}
.top-bar a {
    color:white;
}

.brand-bar {
    background:#0a2a43;
    color:white;
    padding:10px 0;
    text-align:center;
}

.brand-name {
    font-size: 2rem;
    letter-spacing: 2px;
}
.brand-tagline {
    font-size:1.2rem;
    margin-top:-4px;
}

/* PANCAKE BUTTON */
.pancake-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2000;
}

.pancake-line {
    width: 100%;
    height: 4px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.35s ease;
}

/* Animate into X */
.pancake-btn.open .line1 { transform: translateY(10px) rotate(45deg); }
.pancake-btn.open .line2 { opacity: 0; }
.pancake-btn.open .line3 { transform: translateY(-10px) rotate(-45deg); }

/* Hide pancake on desktop */
@media (min-width: 992px) {
    .pancake-btn { display: none; }
}

/* MOBILE FIXES */
@media (max-width: 430px) {

    .brand-bar {
        padding-top: 50px; /* space for pancake */
        padding-bottom: 10px;
    }

    .pancake-btn {
        right: 12px;
        top: 12px;
        transform: none;
        width: 34px;
        height: 28px;
    }

    /* NAV OVERLAY */
    #mainMenu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        z-index: 9999;
        background: #0a2a43;
    }
}

/* NAV MENU */
#mainMenu {
    background: #0a2a43;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}
#mainMenu.open {
    max-height: 1000px;
    opacity: 1;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}
.nav-list li {
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.nav-link {
    display: block;
    padding: 14px 0;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: #ffd700 !important;
}

/* DESKTOP NAV */
@media (min-width: 992px) {
    #mainMenu {
        max-height: none;
        opacity: 1;
        background: transparent;
        position: static;
    }

    .nav-list {
        display: flex;
        justify-content: center;
        gap: 40px;
    }

    .nav-list li {
        border: none;
    }

    .nav-link {
        padding: 10px 0;
        font-size: 1rem;
        color: #0a2a43 !important;
    }

    .nav-link:hover {
        color: #b22222 !important;
    }
}
