/* ==========================================================================
   Global Layout Structuring (Header, Navigation, Footer)
   ========================================================================== */

/* ----- Brand Identity Elements ----- */
.LogoLink {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
    padding: 0;
    margin: 0;
}

.Logo {
    height: 10em;
    width: auto;
    display: block;
    object-fit: contain;
}

/* ----- Navigation Header ----- */
.header {
    position: static;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--bg-header);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.desktop-nav {
    display: flex;
    gap: 3em;
    margin-left: auto;
    margin-right: auto;
    padding-right: 15em;
    align-items: center;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-family: sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* ----- Mobile Drawer Architecture ----- */
.mobile-menu-btn,
.mobile-dropdown {
    display: none;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        padding: 10px 15px;
        font-size: 1.2rem;
        cursor: pointer;
        margin-right: 1em;
    }

    .mobile-dropdown {
        display: none;
        width: 100%;
        background-color: var(--bg-dark);
        border-top: 1px solid var(--border-footer);
    }

    .mobile-dropdown.is-active {
        display: block;
    }

    .mobile-dropdown a,
    .mobile-dropdown button {
        display: block;
        width: 100%;
        padding: 16px 20px;
        box-sizing: border-box;
        text-align: center;
        border-bottom: 1px solid var(--border-footer);
        text-decoration: none;
        font-size: 1.1rem;
        color: var(--text-color);
        font-family: sans-serif;
    }
}

/* ==========================================================================
   Footer Layout & Columns
   ========================================================================== */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--nav-link-hover);
    padding: 40px 0;
    border-top: 1px solid var(--border-footer);
    font-family: sans-serif;
    font-size: 0.9rem;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-container .footer-section:last-child {
    align-items: flex-end;
    min-width: 22em;
    margin-top: 1em;
}

.footer-left {
    width: 12em;
    height: 50px;
    position: relative;
}

.footer-left .copyright,
.footer-container .footer-section:last-child .copyright {
    margin: 0;
    font-weight: 500;
    color: var(--text-light);
    white-space: nowrap;
}

.footer-left .credits,
.footer-container .footer-section:last-child .credits {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-footer-credits);
    white-space: nowrap;
}

.footer-center {
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-link {
    color: var(--nav-link-hover);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.email-link {
    margin-top: 2px;
}

.footer-right {
    align-items: flex-end;
}

.FooterLogoWrapper {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.FooterLogo {
    width: 15em;
    height: auto;
    display: block;
}

/* ----- Responsive Footer Styles ----- */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        text-align: center;
        padding: 25px 0;
    }

    .footer-left {
        width: auto;
        height: auto;
        position: static;
        display: flex;
        justify-content: center;
        margin-bottom: 0;
    }

    .FooterLogoWrapper {
        position: static;
        transform: none;
        line-height: 0;
    }

    .FooterLogo {
        width: 15em;
        height: auto;
    }

    .footer-container .footer-section:last-child {
        position: static;
        transform: none;
        min-width: 100%;
        align-items: center;
        margin: 0;
    }

    .main-footer {
        padding: 0 0 25px 0;
    }

    .footer-container p,
    .footer-container h2,
    .footer-container h3,
    .contact-info a {
        margin: 0;
    }

    .footer-center {
        margin-bottom: 12px;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
}