/* ===================================
   NAVBAR START
=================================== */

/* ===================================
   GLOBAL FIXES
=================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

/* ===================================
   MAIN NAVBAR
=================================== */

.theme-navbar {
    border-bottom: none !important;
}

[role="navigation"] {
    margin-left: auto;
    margin-right: 30px;
}

.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;

    width: 100%;

    background-color: #ffffff;

    z-index: 9999;

    transition: box-shadow 0.3s ease-in-out;
}

.navbar.scrolled {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-container {
    max-width: 100%;

    margin: 0 auto;

    height: 86px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    padding: 0 3vw;

    background-color: #ffffff;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 30px;

    flex-shrink: 0;
}

/* ===================================
   LOGO
=================================== */

.logo {
    display: flex;
    align-items: center;

    font-size: 24px;
    font-weight: bold;

    color: #333;

    text-decoration: none;
}

.logo-img {
    height: 42px;
    display: block;
}

/* ===================================
   NAV MENU
=================================== */

.nav-menu {
    display: flex;
    align-items: center;

    list-style: none;

    gap: 2px;
}

.nav-item {
    position: relative;
}

.nav-link {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 12px 10px 16px;

    font-size: 15px;
    font-weight: 400;
    font-family: var(--secondary-font);

    color: inherit;

    border-radius: 4px;

    cursor: pointer;

    overflow: hidden;

    transition: all 0.3s ease-in-out;

    z-index: 1;
}

/* Soft background */
.nav-link::before {
    content: "";

    position: absolute;
    inset: 0;

    background-color: rgb(236, 237, 249);

    opacity: 0;

    transition: opacity 0.25s ease;

    z-index: -1;
}

/* Bottom animated line */
.nav-link::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 6px;

    width: 95%;
    height: 1px;

    background-color: var(--primary);

    transform: translateX(-50%) scaleX(0) scaleY(1);
    transform-origin: center;

    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    border-radius: 0;

    will-change: transform;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(0.6) scaleY(1);
}

/* ===================================
   DROPDOWN ICON
=================================== */

.dropdown-icon {
    width: 20px;
    height: 20px;

    fill: currentColor;

    transition: transform 0.3s ease;
}

.dropdown-trigger.active .dropdown-icon,
.dropdown-trigger[aria-expanded="true"] .dropdown-icon {
    transform: rotate(180deg);
}

/* ===================================
   CONTACT
=================================== */

.contact-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;

    font-size: 14px;
}

.phone-number {
    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--text-gray);

    font-size: 14px;
    font-weight: 400;
}

.business-hours {
    color: var(--text-gray);
    font-size: 12px;
}

.call-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;
}

.call-img {
    width: 80%;
    height: 80%;

    margin-right: 10px;
}

/* ===================================
   LOGIN BUTTONS
=================================== */

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 45px;

    padding: 0 30px;

    margin-left: 20px;

    border: 2px solid #e13723;
    border-radius: 5px;

    background-color: #e13723;

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    text-transform: uppercase;
    letter-spacing: 0.8px;

    transition: all 0.3s ease;
}

.login-btn:hover {
    cursor: pointer;
}

.login-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 8px 16px;

    margin-left: 20px;

    border: 1.5px solid #7338e8;
    border-radius: 6px;

    background: transparent;

    color: #7338e8;

    text-decoration: none;

    font-size: 16px;
    font-weight: 600;

    transition: all 0.25s ease;
}

.login-link:hover {
    background: #ecedf9;
    border-color: transparent;
    color: #6933d3;
}

.login-icon {
    width: 19px;
    height: 19px;

    display: block;
}

/* ===================================
   REGION FLAG
=================================== */

.region-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    margin-left: 40px;

    background-color: #ffffff;

    transition: all 0.25s ease;
}

.region-flag img {
    width: 34px;
    height: auto;

    display: block;
}

/* ===================================
   MOBILE TOGGLE
=================================== */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;

    padding: 5px;

    background: none;
    border: none;
    outline: none;

    cursor: pointer;

    flex-shrink: 0;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;

    margin: 3px 0;

    background-color: #333;

    transition: 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===================================
   DROPDOWN
=================================== */

.dropdown {
    position: absolute;

    top: 100%;
    left: 25%;

    transform: translateX(-25%);

    width: 360px;

    padding: 20px;

    margin-top: 10px;

    background: #ffffff;

    border-radius: 5px;

    box-shadow: 1px -1px 18px 3px rgba(0, 0, 0, .15);

    opacity: 0;
    visibility: hidden;

    transition: all 0.3s ease;

    z-index: 1000;
}

.dropdown.show {
    opacity: 1;
    visibility: visible;
}

.dropdown::before {
    content: "";

    position: absolute;

    top: -8px;
    left: 25%;

    width: 18px;
    height: 18px;

    background: #ffffff;

    transform: translateX(-25%) rotate(45deg);

    border-radius: 2px;

    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
}

.dropdown-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* ===================================
   SERVICE ITEMS
=================================== */

.service-item {
    position: relative;

    display: flex;
    align-items: flex-start;

    padding: 12px;

    border-radius: 5px;

    text-decoration: none;

    color: inherit;

    overflow: hidden;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease;

    -webkit-tap-highlight-color: transparent;
}

.service-item:hover {
    background-color: rgb(236, 237, 249);
}

.service-item::before {
    content: "";

    position: absolute;

    left: 0;
    top: 12px;

    width: 3px;
    height: calc(100% - 24px);

    background-color: var(--primary);

    border-radius: 2px;

    opacity: 0;

    transform: scaleY(0);

    transition: all 0.3s ease;
}

.service-item:hover::before {
    opacity: 1;
    transform: scaleY(1);
}

.service-content {
    flex: 1;

    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item:hover .service-content {
    transform: translateX(6px);
}

.service-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 8px;

    margin-bottom: 10px;

    color: var(--text-gray);

    font-size: 15px;
    font-weight: 600;
}

.service-title-text {
    position: relative;

    display: inline-block;

    line-height: 1.25;
}

.service-title-text::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -3px;

    width: 100%;
    height: 1px;

    background-color: var(--primary);

    transform: scaleX(0) scaleY(1);
    transform-origin: left;

    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    will-change: transform;
}

.service-item:hover .service-title-text::after {
    transform: scaleX(1) scaleY(1);
}

.service-offer {
    display: inline-block;

    flex-shrink: 0;

    padding: 4px 7px;

    border-radius: 5px;

    background: var(--primary);

    color: #ffffff;

    font-size: 12px;
    font-weight: 500;

    text-transform: uppercase;
}

.service-description {
    color: #6c757d;

    font-size: 13px;
    font-weight: 400;

    line-height: 1.3;
}

/* ===================================
   MOBILE LOGIN
=================================== */

.mobile-item {
    display: none;
}

#mobile-login-btn {
    width: 100%;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 20px 0 10px;

    border: 1.5px solid #1f3a8a;
    border-radius: 6px;

    background-color: #ffffff;

    color: #1f3a8a;

    font-size: 16px;
    font-weight: 600;

    letter-spacing: 0.2px;

    text-transform: none;

    box-shadow: 0 6px 20px rgba(31, 58, 138, 0.08);
}

#mobile-login-btn:hover {
    background-color: #f5f7ff;
}

/* ===================================
   RESPONSIVE
=================================== */

@media (max-width: 1140px) {

    .navbar-container {
        padding: 0 24px;
        height: 75px;
    }

    .navbar-left {
        gap: 20px;
    }

    .navbar-right,
    .contact-info {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;

        top: 75px;
        left: -100%;

        width: 100%;
        height: calc(65vh - 75px);

        display: flex;
        flex-direction: column;
        justify-content: flex-start;

        padding: 0 16px;

        background: #ffffff;

        overflow-y: auto;
        overflow-x: hidden;

        transition: left 0.3s ease;

        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu > .nav-item:first-child {
        margin-top: 20px;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 10px 12px 10px 16px;

        font-size: 15px;
        font-weight: 600;
    }

    .nav-link::after {
        display: none;
    }

    .dropdown {
        position: static;

        width: 100%;

        transform: none;

        display: none;

        opacity: 1;
        visibility: visible;

        padding: 0;

        margin-top: 10px;

        background: transparent;

        box-shadow: none;

        border-radius: 8px;
    }

    .dropdown.show {
        display: block;
    }

    .dropdown::before {
        display: none;
    }

    .dropdown-grid {
        gap: 10px;
    }

    .service-item {
        padding: 15px 20px;
    }

    .mobile-item {
        display: flex;
        border-bottom: none;
    }

    #mobile-login-btn {
        height: 50px;
        margin: 30px 15px 10px;
    }

}

@media (max-width: 767px) {

    .navbar-container {
        padding: 0 20px;
    }

    .logo-img {
        height: 38px;
    }

}

/* ===================================
   NAVBAR END
=================================== */