
/* ===================================
   NAVBAR START
=================================== */

.theme-navbar {
    border-bottom: none !important;
}

[role="navigation"] {
    margin-left: auto;
    margin-right: 30px;
}

.navbar {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    transition: box-shadow 0.3s ease-in-out;
}

.navbar.scrolled {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    
}

.navbar-container {
    background-color: #ffffff;
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 2vw;
    height: 86px;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.logo-img {
    height: 42px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content:space-between;
    font-size: 15px;
    font-weight: 400;
    font-family: var(--secondary-font);
    color: inherit; 
    transition: all 0.3s ease-in-out;
    padding: 10px 12px 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
}

/* Base */
.nav-link {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Soft background (fade only, no movement) */
.nav-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgb(236, 237, 249);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}

/* New animated line (center → slight expand) */
.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);

    z-index: 0;
}

/* Hover effect */
.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(0.6) scaleY(1);
}

.nav-link::after {
    border-radius: 0;
}


.nav-link::after {
    will-change: transform;
}

/*.nav-link:hover {*/
/*    color: var(--primary);*/
/*    background-color: rgb(236, 237, 249);*/
/*}*/

.dropdown-icon {
    width: 20px;
    height: 20px;
    font-weight: 500;
    fill: currentColor; 
    transition: transform 0.3s ease;
}

.dropdown-trigger.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-trigger[aria-expanded="true"] .dropdown-icon {
    transform: rotate(180deg);
}

.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;
    justify-content: center;
    align-items: center;
    color: var(--text-gray);
    font-weight: bold;
    font-size: 14px;
    font-weight:400;
}

.business-hours {
    color: var(--text-gray);
    font-size: 12px;
}

.call-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 24px;
    width: 24px;
}

.call-img {
    width: 80%;
    height: 80%;
    margin-right: 10px;
}

.login-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    height: 45px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 5px;
    border: 2px solid #e13723;
    outline: none;
    margin-left:20px;
    background-color: #e13723;
    color: #ffffff;
}

.login-btn:hover {
    cursor: pointer;
}

.region-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;
    
    background-color: #ffffff;
    
    transition: all 0.25s ease;
    margin-left:40px;
}

.region-flag img {
    width: 34px;
    height: auto;
    display: block;
}

.login-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    font-size: 16px;
    font-weight: 600;

    border-radius: 6px;
    border: 1.5px solid #7338e8; /* adjust to brand color */
    background: transparent;
    color: #7338e8;
    text-decoration: none;

    padding: 8px 16px;
    border-radius: 6px;

    transition: all 0.25s ease;
    margin-left:20px;
}

.login-link:hover {
    background: #ecedf9;
    border: 1.5px solid transparent;
    color: #6933d3;
}

.login-icon {
    width: 19px;
    height: 19px;
    display: block;
}

/* Mobile full-width login button */
#mobile-login-btn {
    width: 100%;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 20px 0 10px; /* top gap like screenshot */

    font-size: 16px;
    font-weight: 600;

    border-radius: 6px;
    border: 1.5px solid #1f3a8a; /* adjust to brand color */
    background-color: #ffffff;
    color: #1f3a8a;

    text-transform: none;
    letter-spacing: 0.2px;
    box-shadow: 0 6px 20px rgba(31, 58, 138, 0.08);
}

/* Hover / tap feedback */
#mobile-login-btn:hover {
    background-color: #f5f7ff;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    outline: none;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 25%;
    transform: translateX(-25%);
    background: #ffffff;
    border-radius: 5px;
    /*box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);*/
    box-shadow: 1px -1px 18px 3px rgba(0, 0, 0, .15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    width: 360px;
    padding: 20px 20px;
    margin-top: 10px;
    z-index: 1000;
}

.dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 25%;
    transform: translateX(-25%) rotate(45deg);
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 2px;
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
}

.dropdown.show {
    opacity: 1;
    visibility: visible;
}

.dropdown-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    outline: none;
}

.service-item:hover {
    background-color: rgb(236, 237, 249); 
}

.service-item {
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.service-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    height: calc(100% - 24px);
    width: 3px;

    background-color: var(--primary); /* red line */
    border-radius: 2px;

    opacity: 0;
    transform: scaleY(0);
    transition: all 0.3s ease;
}

.service-content {
    transition: transform 0.3s ease;
}

.service-item:hover::before {
    opacity: 1;
    transform: scaleY(1);
}

.service-item:hover .service-content {
    transform: translateX(6px);
}

.service-item {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.service-content {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-content {
    flex: 1;
}

.service-title {
    color: var(--text-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 15px;
}

.service-item {
    color: inherit;
}

.service-item:active,
.service-item:focus,
.service-item:visited {
    color: inherit;
}

.service-item .service-title {
    color: var(--text-gray);
}

.service-item {
    -webkit-tap-highlight-color: transparent;
}

/* Layout stays intact */
.service-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

/* Text wrapper */
.service-title-text {
    position: relative;
    display: inline-block;
    line-height: 1.25;
}

/* Underline (stable, text-only) */
.service-title-text::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;

    width: 100%;
    height: 1px;
    background-color: var(--primary);

    /* lock vertical scale to avoid 2px bug */
    transform: scaleX(0) scaleY(1);
    transform-origin: left;

    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* important for crisp rendering */
    border-radius: 0;
    will-change: transform;
}


/* Hover IN / OUT – left → right */
.service-item:hover .service-title-text::after {
    transform: scaleX(1) scaleY(1);
}

.service-item:not(:hover) .service-title-text::after {
    transform: scaleX(0) scaleY(1);
}


/* Badge safe */
.service-offer {
    flex-shrink: 0;
}

.service-offer {
    display: inline-block;
    text-transform: uppercase;
    color: #ffffff;
    background: var(--primary);
    vertical-align: middle;
    font-size: 12px;
    padding: 4px 7px;
    border-radius: 5px;
    font-weight: 500;
}

.service-description {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 400;
}

.mobile-item{
    display: none;
}

.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);
}

@media (max-width: 1140px) {
   
    .navbar-right {
        display: none;
    }
    
    .nav-link {
        font-size: 15px;
        font-weight: 600;
        padding: 10px 12px 10px 16px;
    }
    
    .navbar-container {
        padding: 0 4vw;
        height: 75px;
    }

    .navbar-left {
        gap: 20px;
    }

    .nav-menu {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        /*align-items: stretch;*/
        padding: 0 1vw;
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu > .nav-item:first-child {
    margin-top: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 95%;
        /*border-bottom: 1px solid #eee;*/
        /*padding: 0 0 0;*/
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .contact-info {
        display: none;
    }

    .navbar-right {
        gap: 15px;
    }

    .dropdown {
        position: static;
        width: 100%;
        transform: none;
        box-shadow: none;
        border-radius: 8px;
        margin-top: 10px;
        padding: 0 4vw;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    
    .service-item {
    padding: 15px 20px;
    }

    .dropdown.show {
        display: block;
    }

    .dropdown-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .dropdown::before {
        display:none;
    }
     
    .mobile-item{
        display:flex;
        border-bottom:none;
    }
    
    #mobile-login-btn {
        display:flex;
        width: 100%;      
        height: 50px;     
        margin:  30px 10px;
    }
    
    .nav-link::after {
    display:none;
}
    
}

/* ===================================
   NAVBAR END
=================================== */
