@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --ink: #14201c;
    --muted: #6b7280;
    --border: #eceff1;
    --header-h: 72px;
    --nav-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    overflow-x: hidden;
}

/* =========================
   MODERN HEADER NAVIGATION
   ========================= */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 40px;
    background: #fff;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 72px;

}



/* Logo */
.logo {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 102;
}

.logo a {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 52px;
    width: auto;
}

/* =========================
   CENTER NAVIGATION
   ========================= */

nav#mainNav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: #f2f5f9;
    border: 1px solid #e8edf4;
    border-radius: 16px;

    padding: 8px 12px;

    margin: auto;
}

/* Mobile-only "Menu / close" bar — hidden on desktop by default,
       only shown inside the mobile media query below. */
.mobile-nav-header {
    display: none;
}

/* Navigation Items */

.nav-item {
    position: relative;
}

/* Main Links (dropdown triggers: GST / Registrations / Customer) */

.nav-item>.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 10px 18px;

    border: none;
    border-radius: 10px;

    background: transparent;

    color: #5d6676;
    text-decoration: none;

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    box-sizing: border-box;

    cursor: pointer;
    transition: all .25s ease;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.nav-item>.nav-link:hover {
    background: #ffffff;
    color: #0056d6;
}

.nav-item.open>.nav-link {
    background: #fff;
    color: #0056d6;
}

/* Plain links: Home / About / Contact.
       No white pill box — they blend into the grey nav bg.
       Only the text color flips (blue = active tab, grey = inactive). */
.nav-link.plain {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 10px 18px;

    border: none;
    border-radius: 10px;

    background: transparent;

    color: #5d6676;
    text-decoration: none;

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    box-sizing: border-box;

    cursor: pointer;
    transition: color .25s ease;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.nav-link.plain:hover {
    color: #0056d6;
    background: transparent;
}

.nav-link.plain.active {
    color: #0056d6;
    font-weight: 600;
    background: transparent;
    box-shadow: none;
}

/* Dropdown Arrow */

.chev {
    font-size: 15px;
    color: #9ca6b6;
    transition: .25s;
}

.nav-item.open>.nav-link .chev {
    transform: rotate(180deg);
}

/* =========================
   DROPDOWN
   ========================= */

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;

    padding-top: 14px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: .2s;
}

.nav-item.open .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* CSS-only hover fallback for desktop so GST / Registrations /
       Customer dropdowns reliably open on hover, independent of JS
       timing, and work immediately without waiting on a mouseenter
       listener to attach. */
@media (min-width: 1025px) {
    .nav-item:hover>.dropdown {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-item:hover>.nav-link {
        background: #fff;
        color: #0056d6;
    }

    .nav-item:hover>.nav-link .chev {
        transform: rotate(180deg);
    }
}

.dropdown-panel {

    min-width: 230px;

    background: #fff;

    border-radius: 16px;

    border: 1px solid #edf1f6;

    box-shadow: 0 20px 45px rgba(0, 0, 0, .08);

    padding: 10px;
}

.dropdown-panel::before {

    content: "";

    position: absolute;

    top: 8px;
    left: 50%;

    width: 12px;
    height: 12px;

    transform: translateX(-50%) rotate(45deg);

    background: #fff;

    border-left: 1px solid #edf1f6;
    border-top: 1px solid #edf1f6;
}

.dropdown a {

    display: block;

    text-decoration: none;

    color: #4c5667;

    padding: 12px 14px;

    border-radius: 10px;

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0;
    box-sizing: border-box;

    transition: .2s;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.dropdown a:hover {

    background: #f5f8fc;

    color: #0056d6;
}

/* =========================
   RIGHT SIDE
   ========================= */

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 102;
}

button:focus,
.hamburger:focus,
.mobile-nav-close:focus,
.login-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* =========================
   RESPONSIVE
   ========================= */

@media(max-width:1200px) {

    nav#mainNav {
        gap: 2px;
    }

    .nav-item>.nav-link,
    .nav-link.plain {
        padding: 10px 14px;
        font-size: 14px;
    }
}

@media(max-width:1024px) {

    nav#mainNav {
        background: #fff;
        border: none;
        border-radius: 0;
        padding: 0;
    }
}

.icon-btn {
    background: none;
    border: none;
    font-size: 17px;
    cursor: pointer;
    color: #1f2937;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 88px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    background: #0056d6;
    line-height: 1;
    letter-spacing: 0;
    box-sizing: border-box;
    cursor: pointer;
    transition: background .15s ease, box-shadow .15s ease;
    white-space: nowrap;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.login-btn:hover {
    background: #fff;
    color: #0056d6;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #14201c;
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}

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

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

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

/* Overlay behind mobile dropdown */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 32, .35);
    z-index: 90;
    opacity: 0;
    transition: opacity .25s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ============ TABLET / MOBILE ============ */
@media (max-width: 1024px) {

    header {
        padding: 12px 20px;
        position: sticky;
    }

    .hamburger {
        display: flex;
        order: 3;
    }

    .header-right {
        gap: 12px;
    }

    .header-right .login-btn {
        height: 36px;
        min-width: 76px;
        padding: 0 16px;
        font-size: 13.5px;
        line-height: 1;
    }

    /* Full-width dropdown panel sliding DOWN from below the header,
         not a side drawer. */
    nav#mainNav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transition: max-height .3s ease, opacity .25s ease, visibility .3s ease;
        z-index: 95;
        box-shadow: 0 20px 40px rgba(15, 23, 32, .14);
        border-top: 1px solid var(--border);
    }

    nav#mainNav.open {
        max-height: calc(100vh - var(--header-h));
        opacity: 1;
        visibility: visible;
        padding: 8px 20px 26px;
    }

    /* Show the Menu/close bar only inside the mobile nav panel */
    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 0 10px;
        margin-bottom: 4px;
        border-bottom: 1px solid var(--border);
    }

    .mobile-nav-header span {
        font-weight: 700;
        font-size: 15px;
    }

    .mobile-nav-close {
        background: none;
        border: 1px solid var(--border);
        border-radius: 8px;
        width: 32px;
        height: 32px;
        font-size: 16px;
        cursor: pointer;
        color: #1f2937;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-item>.nav-link,
    .nav-link.plain {
        padding: 14px 4px;
        font-size: 15px;
        justify-content: space-between;
    }

    /* Sub-items render as an inline "dropdown card" under each item */
    .dropdown {
        position: static;
        transform: none;
        width: auto;
        padding-top: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s ease, margin .25s ease;
    }

    .dropdown-panel {
        border-radius: 10px;
        background: #f7f9f7;
        border: 1px solid var(--border);
        box-shadow: none;
        min-width: 0;
        padding: 6px;
        margin: 8px 0 12px;
    }

    .dropdown-panel::before {
        display: none;
    }

    .nav-item.open .dropdown {
        max-height: 600px;
    }

    .dropdown a {
        padding: 10px 10px;
        font-size: 14px;
        color: #374151;
    }

    .nav-link.plain {
        display: block;
        padding: 14px 4px;
        font-size: 15px;
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 640px) {
    .site-logo {
        height: 40px;
    }

    header {
        padding: 10px 16px;
    }

    .header-right .login-btn {
        height: 32px;
        min-width: 68px;
        padding: 0 14px;
        font-size: 13px;
        line-height: 1;
    }

    .icon-btn {
        font-size: 16px;
    }
}

/* =========================
   SEARCH BOX
   ========================= */

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    width: 330px;
    height: 42px;
    background: #fff;
    border: 2px solid #e4eaf3;
    border-radius: 999px;
    display: flex;
    align-items: center;
    padding: 0 8px 0 14px;
    transition: .25s;
}

.search-box:hover,
.search-box:focus-within {
    border-color: #0b63ce;
    box-shadow: 0 0 0 4px rgba(11, 99, 206, .08);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    color: #2b3a55;
}

.search-box input::placeholder {
    color: #6f7d94;
}

.search-box button {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #0056d6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: .2s;
}

.search-box button:hover {
    background: #eef5ff;
}

/* Tablet */
@media (max-width:991px) {
    .search-box {
        width: 240px;
    }
}

/* Mobile */
@media (max-width:768px) {
    .search-box {
        display: none;
        /* Hide like most modern websites */
    }
}

/* User Area */
.user-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1.2;
}

.welcome-text {
    color: #2b3a55;
    /*font-weight:600;*/
}

.welcome-text strong {
    color: #2b3a55;
}

.login-date {
    color: #2b3a55;
    /*font-size:11px;*/
}

/* Dropdown */
.user-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.user-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #0056d6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all .25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.user-btn:hover {
    background: #0056d6;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 163, 74, .30);
}

/* Invisible bridge so hover isn't lost */
.user-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
}

/* Dropdown */
.user-dd {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 190px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
    overflow: hidden;
    display: none;
    z-index: 99999;
}

.user-dd a {
    display: block;
    padding: 12px 18px;
    color: #2b3a55;
    text-decoration: none;
    font-weight: 500;
    transition: .25s;
}

.user-dd a:hover {
    background: #0056d6;
    color: #fff;
}

/* Keep dropdown open while hovering icon or menu */
.user-dropdown:hover .user-dd,
.user-dd:hover {
    display: block;
}

@media(max-width:768px) {

    .user-info {
        display: none;
    }

    .user-btn {
        width: 38px;
        height: 38px;
    }
}