/* =====================================================
   HEADER & FOOTER – AVM NETWORKS LIMITED
   FINAL STABLE VERSION (MOBILE HAMBURGER FIXED)
===================================================== */

/* ===================== RESET / BASE ===================== */
html, body {
    margin: 0;
    padding: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* =====================================================
   HEADER
===================================================== */

#siteHeader {
    position: sticky;
    top: 0;
    z-index: 1000;

    /* FIX: no fixed height (prevents hamburger collapse) */
    min-height: 80px;

    background: linear-gradient(135deg, #020617, #0b3a6e, #020617);
    color: #ffffff;

    display: flex;
    align-items: center;

    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    transition: box-shadow 0.3s ease;
}

#siteHeader.sticky {
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

/* ===================== HEADER CONTENT ===================== */
.header-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    /* CRITICAL FIX */
    min-height: inherit;
}

/* ===================== LOGO ===================== */
.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    height: 48px;
    width: auto;
}

/* ===================== COMPANY INFO ===================== */
.company-info p {
    margin: 2px 0 0;
    font-size: 12px;
    opacity: 0.9;
    color: #ffffff;
}

/* ===================== DESKTOP NAV ===================== */
.desktop-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.desktop-nav a {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    position: relative;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #38bdf8;
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* ===================== HAMBURGER ===================== */

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2001;
}

/* THE 3 LINES */
.hamburger-menu span {
    display: block;
    width: 26px;
    height: 3px;
    background: #ffffff;
    margin: 4px 0;
    border-radius: 2px;
}

/* ===================== MOBILE NAV ===================== */

.mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);

    background: rgba(2,6,23,0.96);
    backdrop-filter: blur(10px);

    transform: translateX(100%);
    transition: transform 0.35s ease;

    z-index: 1200;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav ul {
    list-style: none;
    padding: 80px 0 0;
    margin: 0;
    text-align: center;
}

.mobile-nav li {
    margin: 22px 0;
}

.mobile-nav a {
    font-size: 18px;
    color: #ffffff;
    text-decoration: none;
}

.close-menu {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 26px;
    cursor: pointer;
}

/* =====================================================
   FOOTER
===================================================== */

footer {
    background: #020617;
    color: #cbd5f5;
    padding: 40px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    text-align: center;
}

.footer-legal-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    font-size: 13px;
    color: #93c5fd;
    text-decoration: none;
}

.footer-legal-links a:hover {
    text-decoration: underline;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {

    #siteHeader {
        min-height: 64px;
    }

    .logo {
        height: 38px;
    }

    .company-info p {
        display: none;
    }

    .desktop-nav {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .mobile-nav {
        top: 64px;
        height: calc(100vh - 64px);
    }
}

/* =====================================================
   SOCIAL ICONS – PROFESSIONAL FOOTER STYLE
===================================================== */

.social-icons {
    display: flex;
    gap: 14px;
    margin-top: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0b3a6e;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    color: #ffffff;
    font-size: 18px;

    transition: all 0.25s ease;
    box-shadow: 0 0 0 rgba(56,189,248,0);
}

/* hover animation */
.social-icon:hover {
    background: #38bdf8;
    color: #020617;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(56,189,248,0.45);
}

/* small click feedback */
.social-icon:active {
    transform: scale(0.95);
}

/* mobile spacing fix */
@media (max-width: 480px){
    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}
