/* =========================================================
   VKEC SHARED SITE CSS
   Header + Footer
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(10, 48, 80, 0.10);
    backdrop-filter: blur(10px);
}

/* =========================================================
   HEADER INNER
   Logo is always on the LEFT
   Navigation is always on the RIGHT
   ========================================================= */

.site-header-inner {
    width: 100%;
    min-height: 92px;
    margin: 0;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
    box-sizing: border-box;
}

/* =========================================================
   LOGO
   ========================================================= */

.site-brand {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;

    flex: 0 0 auto;
    margin: 0;
    padding: 0;

    text-decoration: none;
}

.site-brand img {
    display: block;

    width: 110px;
    height: auto;

    max-width: 110px;
    max-height: 78px;

    object-fit: contain;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 30px;

    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #0a3558;

    text-decoration: none;

    font-weight: 600;
    font-size: 17px;
    line-height: 1.2;

    white-space: nowrap;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    opacity: 0.72;
    transform: translateY(-1px);
}

/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.nav-toggle {
    display: none;

    width: 44px;
    height: 44px;

    margin: 0;
    padding: 8px;

    border: 0;
    border-radius: 8px;

    background: transparent;

    cursor: pointer;
}

.nav-toggle span {
    display: block;

    width: 27px;
    height: 2px;

    margin: 5px auto;

    background: #0a3558;

    border-radius: 2px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    margin-top: 72px;

    background: #0a3558;
    color: #ffffff;
}

.site-footer-inner {
    width: min(1180px, calc(100% - 32px));

    margin: 0 auto;
    padding: 42px 0 24px;

    box-sizing: border-box;
}

.footer-brand {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.footer-brand strong {
    font-size: 20px;
    letter-spacing: 0.02em;
}

.footer-brand span {
    opacity: 0.82;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;

    gap: 12px 28px;

    margin-top: 26px;
}

.footer-links a {
    color: #ffffff;

    text-decoration: none;

    opacity: 0.9;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 18px;

    border-top: 1px solid rgba(255, 255, 255, 0.18);

    font-size: 13px;
    opacity: 0.72;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .site-header-inner {
        min-height: 82px;
        padding: 0 20px;
    }

    .site-brand img {
        width: 105px;
        max-width: 105px;
        max-height: 70px;
    }

    .main-nav {
        gap: 20px;
    }

    .main-nav a {
        font-size: 16px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 820px) {

    .site-header-inner {
        min-height: 76px;
        padding: 0 16px;

        position: relative;
    }

    .site-brand img {
        width: 100px;
        max-width: 100px;
        max-height: 64px;
    }

    /* Show hamburger */
    .nav-toggle {
        display: block;
    }

    /* Hide navigation initially */
    .main-nav {
        display: none;

        position: absolute;

        top: calc(100% + 1px);
        left: 0;
        right: 0;

        padding: 12px 16px 16px;

        background: #ffffff;

        border-bottom: 1px solid rgba(10, 48, 80, 0.12);

        box-shadow:
            0 12px 28px rgba(10, 48, 80, 0.10);

        flex-direction: column;
        align-items: stretch;

        gap: 0;
    }

    /* Open mobile menu */
    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        display: block;

        padding: 14px 8px;

        font-size: 16px;

        border-bottom: 1px solid rgba(10, 48, 80, 0.07);
    }

    .main-nav a:last-child {
        border-bottom: 0;
    }

    .site-footer {
        margin-top: 52px;
    }

    .footer-links {
        gap: 12px 20px;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .site-header-inner {
        min-height: 70px;
        padding: 0 12px;
    }

    .site-brand img {
        width: 92px;
        max-width: 92px;
        max-height: 60px;
    }

    .main-nav {
        padding-left: 12px;
        padding-right: 12px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .site-footer-inner {
        width: calc(100% - 24px);
    }
}