/* ================================================================
   AFRIMETS CUSTOM NAVIGATION
   ================================================================ */

:root {
    --afr-topbar-height: 58px;
    --afr-navbar-height: 108px;
}

#afr-topbar *,
#afr-navbar *,
.afr-drawer *,
.afr-search-overlay * {
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

#afr-topbar .fa,
#afr-navbar .fa,
.afr-drawer .fa,
.afr-search-overlay .fa {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

#afr-topbar .fab,
#afr-navbar .fab,
.afr-drawer .fab,
.afr-search-overlay .fab {
    font-family: "Font Awesome 5 Brands" !important;
    font-weight: 400 !important;
}

#afr-topbar {
    position: relative;
    z-index: 10000;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 24%),
        linear-gradient(135deg, #08112c 0%, #0a1636 45%, #0f2358 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

#afr-topbar .afr-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1880px;
    margin: 0 auto;
    padding: 11px clamp(24px, 4.2vw, 84px);
}

.afr-container {
    max-width: 1880px;
    margin: 0 auto;
    padding: 0 clamp(24px, 4.2vw, 84px);
}

.afr-topbar-left,
.afr-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.afr-topbar-left {
    min-width: 0;
    flex: 1;
}

.afr-topbar-brand {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
}

.afr-topbar-search,
.afr-topbar-quicklink,
.afr-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.afr-topbar-search,
.afr-topbar-quicklink,
.afr-lang-btn {
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.88);
}

.afr-topbar-search:hover,
.afr-topbar-quicklink:hover,
.afr-lang-btn:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(242, 137, 30, 0.5);
    color: #ffffff;
    transform: translateY(-1px);
}

.afr-topbar-search {
    cursor: pointer;
}

.afr-topbar-search,
.afr-lang-btn {
    border-width: 1px;
    border-style: solid;
}

.afr-topbar-search i,
.afr-topbar-quicklink i,
.afr-lang-btn i:first-child {
    color: #f2891e;
}

.afr-lang-wrap {
    position: relative;
}

.afr-lang-btn {
    cursor: pointer;
}

.afr-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.afr-lang-btn.active .afr-arrow {
    transform: rotate(180deg);
}

.afr-lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 190px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(10, 22, 54, 0.96);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1200;
}

.afr-lang-dropdown.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.afr-lang-dropdown a {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease;
}

.afr-lang-dropdown a:hover,
.afr-lang-dropdown a.active {
    background: rgba(242, 137, 30, 0.14);
    color: #f9b251;
}

#afr-navbar {
    position: absolute;
    top: var(--afr-topbar-height);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    box-sizing: border-box;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.99)),
        #ffffff;
    box-shadow: 0 8px 24px rgba(7, 18, 42, 0.06);
    backdrop-filter: blur(12px);
    transition: top 0.3s ease, box-shadow 0.3s ease;
}

#afr-navbar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: #f2891e;
    pointer-events: none;
}

.afr-navbar-spacer {
    height: var(--afr-navbar-height);
}

#afr-navbar.afr-sticky-active {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

#afr-navbar.afr-scrolled {
    box-shadow: 0 14px 36px rgba(7, 18, 42, 0.12);
}

.afr-navbar-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--afr-navbar-height);
}

.afr-logo {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: inline-flex;
    width: 260px;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
    text-decoration: none;
    flex-shrink: 0;
}

.afr-logo img,
#afrLogoImg {
    display: block;
    width: 320px;
    max-width: none;
    height: auto;
    flex: 0 0 auto;
    object-fit: contain;
    object-position: left center;
    image-rendering: auto;
    transition: width 0.25s ease;
}

.afr-nav {
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
    margin: 0 auto;
    padding: 0;
}

.afr-nav-list {
    display: flex;
    align-items: stretch;
    gap: 0;
    list-style: none;
    margin: 0 -110px 0 110px;
    padding: 0;
}

.afr-nav-item {
    position: static;
}

.afr-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: var(--afr-navbar-height);
    padding: 0 16px;
    border: 0;
    background: transparent;
    color: #1f2a44;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease;
}

.afr-nav-link::before {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, #f2891e 0%, #fdb627 100%);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
}

.afr-has-arrow::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 10px;
    transition: transform 0.2s ease;
}

.afr-nav-item:hover > .afr-nav-link,
.afr-nav-item.afr-active > .afr-nav-link,
.afr-nav-item.afr-kb-open > .afr-nav-link {
    color: #de5a22;
}

.afr-nav-item:hover > .afr-nav-link::before,
.afr-nav-item.afr-active > .afr-nav-link::before,
.afr-nav-item.afr-kb-open > .afr-nav-link::before {
    transform: scaleX(1);
}

.afr-nav-item:hover > .afr-has-arrow::after,
.afr-nav-item.afr-kb-open > .afr-has-arrow::after {
    transform: rotate(180deg);
}

.afr-mega {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding-top: 2px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 1150;
}

.afr-nav-item:hover > .afr-mega,
.afr-nav-item.afr-kb-open > .afr-mega {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.afr-mega-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 28px;
    border-top: 3px solid #f2891e;
    border-radius: 0 0 22px 22px;
    background:
        radial-gradient(circle at top right, rgba(253, 182, 39, 0.12), transparent 24%),
        linear-gradient(135deg, #08112c 0%, #0b1a40 52%, #10285f 100%);
    box-shadow: 0 26px 50px rgba(4, 11, 28, 0.3);
}

.afr-mega-4col .afr-mega-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1200px;
}

.afr-mega-col {
    padding-right: 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.afr-mega-col:last-child {
    padding-right: 0;
    border-right: 0;
}

.afr-mega-title {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fdb627;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.afr-mega-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.afr-mega-col li + li {
    margin-top: 4px;
}

.afr-mega-col a {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.afr-mega-col a:hover {
    background: rgba(242, 137, 30, 0.16);
    color: #ffffff;
    transform: translateX(3px);
}

.afr-navbar-actions {
    display: none;
    align-items: center;
}

.afr-hamburger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 1px solid rgba(31, 42, 68, 0.16);
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
}

.afr-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #16295e;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.afr-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.afr-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.afr-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.afr-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(5, 11, 29, 0.66);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.afr-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.afr-drawer {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1400;
    display: flex;
    flex-direction: column;
    width: min(360px, 92vw);
    height: 100dvh;
    background:
        radial-gradient(circle at top right, rgba(253, 182, 39, 0.14), transparent 28%),
        linear-gradient(180deg, #08112c 0%, #0a1636 55%, #10285f 100%);
    color: #ffffff;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.afr-drawer.open {
    transform: translateX(0);
}

.afr-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.afr-drawer-close {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    font-size: 22px;
    cursor: pointer;
}

.afr-drawer-nav {
    flex: 1;
    padding: 10px 0 0;
}

.afr-drawer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.afr-drawer-nav > ul > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.afr-drawer-nav > ul > li > a,
.afr-drawer-sub-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.afr-drawer-sub-toggle i {
    font-size: 11px;
    transition: transform 0.24s ease;
}

.afr-drawer-sub-toggle.open i {
    transform: rotate(180deg);
}

.afr-drawer-sub {
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.16);
    transition: max-height 0.35s ease;
}

.afr-drawer-sub.open {
    max-height: 1800px;
}

.afr-drawer-section {
    padding: 14px 20px 6px;
    color: #fdb627;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.afr-drawer-sub a {
    display: block;
    padding: 8px 20px 8px 28px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.afr-drawer-utilities {
    display: grid;
    gap: 10px;
    padding: 18px 20px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.afr-drawer-utilities a {
    display: block;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.afr-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top, rgba(253, 182, 39, 0.12), transparent 24%),
        rgba(8, 17, 44, 0.97);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.afr-search-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.afr-search-close {
    position: absolute;
    top: 24px;
    right: 28px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-size: 28px;
    cursor: pointer;
}

.afr-search-box {
    width: min(760px, 100%);
    padding: 0 24px;
}

.afr-search-box form {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.26);
}

.afr-search-box input {
    flex: 1;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: clamp(26px, 4vw, 38px);
    outline: none;
}

.afr-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.34);
}

.afr-search-box button {
    border: 0;
    background: transparent;
    color: #f2891e;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 1360px) {
    .afr-nav-link {
        padding: 0 10px;
        font-size: 12px;
    }

    .afr-nav-link::before {
        left: 8px;
        right: 8px;
    }
}

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

    .afr-navbar-actions {
        display: flex;
        margin-left: auto;
    }

    .afr-navbar-inner {
        min-height: 80px;
    }

    .afr-navbar-spacer {
        height: var(--afr-navbar-height);
    }

    .afr-logo img,
    #afrLogoImg {
        width: 265px;
        height: auto;
    }

    .afr-logo {
        left: 8px;
        width: 220px;
    }
}

@media (max-width: 900px) {
    #afr-topbar .afr-container {
        flex-direction: column;
        align-items: stretch;
    }

    .afr-topbar-left,
    .afr-topbar-right {
        justify-content: center;
        flex-wrap: wrap;
    }

    .afr-topbar-brand {
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .afr-container,
    #afr-topbar .afr-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .afr-topbar-right {
        gap: 8px;
    }

    .afr-topbar-search,
    .afr-topbar-quicklink,
    .afr-lang-btn {
        padding: 0 10px;
        min-height: 34px;
        font-size: 11px;
    }

    .afr-topbar-search span,
    .afr-lang-btn span {
        display: none;
    }

    .afr-navbar-inner {
        min-height: 74px;
    }

    .afr-navbar-spacer {
        height: var(--afr-navbar-height);
    }

    .afr-logo img,
    #afrLogoImg {
        width: 235px;
        height: auto;
    }

    .afr-logo {
        width: 180px;
    }

    .afr-search-close {
        top: 18px;
        right: 18px;
    }
}
/* CMS-controlled header actions */
.afr-header-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 15px;
    border-radius: 5px;
    color: #fff !important;
    background: #f58220;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.afr-header-contact-btn:hover { background: #dd7017; }
@media (max-width: 1199px) { .afr-header-contact-btn { display: none; } }

.afr-navbar .afr-nav-link {
    font-size: 15px !important;
    font-weight: 800 !important;
}
.afr-topbar-search,
.afr-lang-btn,
.afr-topbar-quicklink {
    font-size: 13px !important;
    font-weight: 750 !important;
}
.afr-mega-title { font-size: 14px !important; font-weight: 900 !important; }
.afr-mega a { font-size: 13px !important; font-weight: 650 !important; }

@media (min-width: 1181px) and (max-width: 1600px) {
    .afr-logo {
        width: 240px;
    }

    .afr-logo img,
    #afrLogoImg {
        width: 295px;
        height: auto;
    }

    .afr-navbar .afr-nav-link {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 13px !important;
    }

    .afr-nav {
        padding: 0;
    }

    .afr-nav-list {
        margin-right: -60px;
        margin-left: 60px;
    }
}

@media (min-width: 1181px) and (max-width: 1360px) {
    .afr-logo {
        width: 220px;
    }

    .afr-logo img,
    #afrLogoImg {
        width: 270px;
        height: auto;
    }

    .afr-navbar .afr-nav-link {
        padding-right: 8px;
        padding-left: 8px;
        font-size: 12px !important;
    }

    .afr-nav {
        padding: 0;
    }

    .afr-nav-list {
        margin-right: -45px;
        margin-left: 45px;
    }
}

@media (max-width: 420px) {
    .afr-logo {
        width: 165px;
    }

    .afr-logo img,
    #afrLogoImg {
        width: 205px;
        height: auto;
    }
}
