/* =========================================================
   AJVANTIQA TECHNOLOGY
   HEADER
   ========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 82px;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(25, 24, 82, 0.07);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition: all 0.35s ease;
}


/* =========================================================
   HEADER CONTAINER
   ========================================================= */

.header-container {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {
    display: flex;
    align-items: center;

    flex-shrink: 0;

    text-decoration: none;
}

.logo img {
    display: block;

    width: auto;
    max-width: 190px;
    max-height: 55px;

    object-fit: contain;

    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.03);
}


/* =========================================================
   MAIN NAVIGATION
   ========================================================= */

.main-nav {
    margin-left: auto;
}

.main-nav > ul {
    display: flex;
    align-items: center;

    gap: 27px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    position: relative;

    display: flex;
    align-items: center;
    gap: 7px;

    padding: 30px 0;

    color: var(--text);

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;

    transition: color 0.3s ease;
}


/* Underline */

.main-nav > ul > li > a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 22px;

    width: 0;
    height: 2px;

    background: var(--gold);

    transition: width 0.3s ease;
}

.main-nav > ul > li > a:hover::after,
.main-nav > ul > li > a.active::after {
    width: 100%;
}


/* Hover */

.main-nav a:hover,
.main-nav a.active {
    color: var(--gold);
}


/* Dropdown arrow */

.main-nav a i {
    font-size: 9px;

    transition: transform 0.3s ease;
}

.has-dropdown:hover > a i {
    transform: rotate(180deg);
}


/* =========================================================
   DROPDOWN
   ========================================================= */

.dropdown {
    position: absolute;

    top: calc(100% - 5px);
    left: 50%;

    width: 235px;

    padding: 12px;

    margin: 0;

    list-style: none;

    background: rgba(255, 255, 255, 0.98);

    border: 1px solid rgba(25, 24, 82, 0.08);

    border-radius: 14px;

    box-shadow:
        0 20px 50px rgba(25, 24, 82, 0.14);

    opacity: 0;
    visibility: hidden;

    transform:
        translate(-50%, 12px);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;

    z-index: 1100;
}

.has-dropdown:hover > .dropdown,
.has-dropdown.open > .dropdown {
    opacity: 1;
    visibility: visible;

    transform:
        translate(-50%, 0);
}


/* Dropdown links */

.main-nav .dropdown li {
    width: 100%;
}

.main-nav .dropdown li a {
    width: 100%;

    padding: 12px 14px;

    border-radius: 9px;

    font-size: 13px;

    color: var(--text);

    transition:
        background 0.25s ease,
        color 0.25s ease,
        padding 0.25s ease;
}

.main-nav .dropdown li a::after {
    display: none;
}

.main-nav .dropdown li a:hover {
    color: var(--gold);

    background: rgba(190, 127, 3, 0.07);

    padding-left: 18px;
}


/* =========================================================
   GET QUOTE BUTTON
   ========================================================= */

.header-btn {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    padding: 7px 8px 7px 20px;

    color: var(--white);

    background: var(--primary);

    border: 1px solid var(--primary);

    border-radius: 50px;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;

    box-shadow:
        0 8px 25px rgba(25, 24, 82, 0.15);

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.header-btn:hover {
    color: var(--white);

    background: var(--gold);

    border-color: var(--gold);

    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(190, 127, 3, 0.22);
}


/* Button icon */

.header-btn-icon {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--primary);

    background: var(--white);

    border-radius: 50%;

    transition:
        transform 0.3s ease,
        color 0.3s ease;
}

.header-btn:hover .header-btn-icon {
    transform: translateX(3px);
    color: var(--gold);
}

.header-btn-icon i {
    font-size: 11px;
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.mobile-menu-btn {
    display: none;

    width: 45px;
    height: 45px;

    padding: 0;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 5px;

    background: var(--primary);

    border: 0;
    border-radius: 10px;

    cursor: pointer;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.mobile-menu-btn:hover {
    background: var(--gold);

    transform: translateY(-2px);
}

.mobile-menu-btn span {
    display: block;

    width: 20px;
    height: 2px;

    background: var(--white);

    border-radius: 5px;

    transition: all 0.3s ease;
}


/* Hamburger → X */

.mobile-menu-btn.active span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

.mobile-nav {
    position: fixed;

    top: 0;
    right: -100%;

    width: min(390px, 90%);

    height: 100vh;

    padding: 25px;

    background: var(--white);

    box-shadow:
        -15px 0 50px rgba(25, 24, 82, 0.18);

    z-index: 2000;

    overflow-y: auto;

    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.active {
    right: 0;
}


/* Mobile header */

.mobile-nav-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding-bottom: 22px;

    margin-bottom: 20px;

    border-bottom: 1px solid var(--border);
}

.mobile-nav-header img {
    display: block;

    width: auto;
    max-width: 160px;
    max-height: 50px;
}

.mobile-nav-header button {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--white);

    background: var(--primary);

    border: 0;
    border-radius: 10px;

    cursor: pointer;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.mobile-nav-header button:hover {
    background: var(--gold);

    transform: rotate(90deg);
}

.mobile-nav-header button i {
    font-size: 17px;
}


/* Mobile links */

.mobile-nav > ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.mobile-nav > ul > li {
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 15px 5px;

    color: var(--text);

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.25s ease,
        padding-left 0.25s ease;
}

.mobile-nav > ul > li > a:hover {
    color: var(--gold);

    padding-left: 10px;
}


/* Mobile CTA */

.mobile-header-btn {
    width: 100%;

    justify-content: space-between;

    margin-top: 28px;

    padding-left: 20px;
}


/* =========================================================
   MOBILE OVERLAY
   ========================================================= */

.mobile-nav::before {
    content: "";

    position: fixed;

    top: 0;
    right: 0;

    width: 100vw;
    height: 100vh;

    background: rgba(17, 17, 61, 0.45);

    opacity: 0;
    visibility: hidden;

    z-index: -1;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.mobile-nav.active::before {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   SCROLLED HEADER
   ========================================================= */

.site-header.scrolled {
    height: 74px;

    background: rgba(255, 255, 255, 0.96);

    box-shadow:
        0 10px 35px rgba(25, 24, 82, 0.09);
}

.site-header.scrolled .main-nav a {
    padding-top: 26px;
    padding-bottom: 26px;
}

.site-header.scrolled
.main-nav > ul > li > a::after {
    bottom: 19px;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.mobile-menu-btn:focus-visible,
.mobile-nav-header button:focus-visible,
.header-btn:focus-visible,
.main-nav a:focus-visible {
    outline: 3px solid rgba(190, 127, 3, 0.35);

    outline-offset: 3px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .site-header,
    .logo img,
    .main-nav a,
    .dropdown,
    .header-btn,
    .mobile-nav {
        transition: none;
    }

}