/* ===== Top Bar, Header & Navigation ===== */

.top-bar {
    background-color: var(--color-primary);
    color: var(--color-light);
    font-size: 0.9rem;
    padding: 0.45rem 0;
}

    .top-bar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

.top-left {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

    .top-left a {
        font-weight: 600;
    }

    .top-left .divider {
        opacity: 0.7;
    }

.top-right,
.social-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .social-icons .icon,
    .top-right .icon {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background-color: var(--color-secondary);
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 14px 14px;
    }

.icon.fb {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" fill="white"%3E%3Cpath d="M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"/%3E%3C/svg%3E');
}

.icon.ig {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="white"%3E%3Cpath d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9S160.5 370.8 224.1 370.8 339 319.5 339 255.9 287.7 141 224.1 141zm146.4-19.1c0 14.9-12 26.8-26.8 26.8s-26.8-12-26.8-26.8 12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9C384.3 29.7 352.5 21.5 316.6 19.8 280.2 17.6 167.9 17.6 131.5 19.8c-35.9 1.7-67.7 9.9-93.9 36.2S21.5 127.7 19.8 163.6C17.6 200 17.6 312.4 19.8 348.8c1.7 35.9 9.9 67.7 36.2 93.9 26.2 26.2 58 34.4 93.9 36.2 36.4 2.2 148.8 2.2 185.2 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.2-36.4 2.2-148.8 0-185.2zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"/%3E%3C/svg%3E');
}

.icon.li {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="white"%3E%3Cpath d="M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8A53.79 53.79 0 01107.58 53.8c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"/%3E%3C/svg%3E');
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-light);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: var(--color-light);
    border: 2px solid var(--color-secondary);
    border-radius: 10px;
    padding: 9px 10px;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

    .nav-toggle .bar {
        width: 24px;
        height: 3px;
        background-color: var(--color-secondary);
        display: block;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

.logo img {
    height: 48px;
    width: auto;
}

.site-nav > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-secondary);
}

.site-nav a {
    position: relative;
    padding: 0.35rem 0;
}

    .site-nav a:hover,
    .site-nav a:focus-visible,
    .site-nav a.active {
        color: var(--color-primary) !important;
    }

    .site-nav a.dropdown-item.active {
        color: #FFF !important;
    }

        .site-nav a.dropdown-item.active:hover {
            color: var(--color-primary) !important;
        }

.dropdown-item.active, .dropdown-item:active {
    background-color: var(--color-primary);
}

.site-nav .btn,
.site-nav .btn:hover,
.site-nav .btn:focus-visible {
    color: var(--color-light) !important;
}

    .site-nav .btn::after,
    .site-nav .btn:hover::after,
    .site-nav .btn:focus-visible::after {
        display: none;
    }

.site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.active::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    white-space: nowrap;
}

.dropdown-toggle::after {
    border:none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-light);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.6rem 0;
    min-width: 180px;
    display: none;
    flex-direction: column;
}

    .dropdown-menu li {
        list-style: none;
    }

    .dropdown-menu a {
        display: block;
        padding: 0.6rem 1rem;
        color: var(--color-secondary) !important;
    }

        .dropdown-menu a:hover,
        .dropdown-menu a:focus-visible {
            background: var(--color-muted) !important;
            color: var(--color-primary) !important;
        }

.dropdown.open .dropdown-menu {
    display: block;
}

.nav-cta {
    display: flex;
    align-items: center;
}

.nav-cta-mobile {
    display: none;
}

.nav-social-mobile {
    display: none;
}

/* Responsive Header & Navigation */
@media (max-width: 1000px) {
    .top-bar .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .top-right {
        display: none;
    }

    .header-inner {
        flex-wrap: wrap;
        position: relative;
        gap: 0.75rem;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 0;
        background: var(--color-light);
        width: min(320px, 90vw);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        border: 1px solid #e0e7ef;
        display: none;
        z-index: 10;
    }

        .site-nav.open {
            display: block;
        }

        .site-nav > ul {
            flex-direction: column;
            align-items: stretch;
            gap: 0.25rem;
            padding: 0.5rem 0;
        }

        .site-nav li {
            width: 100%;
            margin: 5px 0;
        }

        .site-nav a {
            position: relative;
            padding: 0.35rem 1rem;
        }

        .site-nav a,
        .dropdown-toggle {
            width: 100%;
            text-align: left;
        }

        .dropdown-toggle {
            padding: 0.35rem 1rem;
        }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding: 0;
        border-radius: 0;
        border-top: 1px solid #eef2f6;
    }

        .dropdown-menu a {
            padding: 0.25rem 1.5rem;
        }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .nav-cta {
        display: none;
    }

    .nav-cta-mobile {
        display: block;
        padding: 0.75rem 1rem;
    }

        .nav-cta-mobile .btn {
            width: 100%;
            justify-content: center;
        }

    .nav-social-mobile {
        display: flex;
        justify-content: center;
        padding: 0.75rem 1rem 1rem;
        border-top: 1px solid #eef2f6;
    }

        .nav-social-mobile .social-icons {
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
        }
}

@media (max-width: 640px) {
    .top-left span {
        display: none;
    }
}
