/* =====================================
   GLOBAL HEADER
===================================== */

.website-header {
    width: 100%;
    position: relative;
    z-index: 1000;
    background: var(--body-bg, #ffffff);
    font-family: "Poppins", sans-serif;
}

.website-header *,
.website-header *::before,
.website-header *::after {
    box-sizing: border-box;
}

.website-header a {
    text-decoration: none;
}


/* =====================================
   COMMON HEADER CONTAINER
===================================== */

.header-container {
    width: 100%;
    max-width: 1290px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}


/* =====================================
   TOP INFORMATION BAR
===================================== */

.top-header {
    width: 100%;
    background: var(--primary-color);
    color: var(--light-text, #ffffff);
}

.top-header-inner {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.top-contact-info {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
}

.top-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--light-text, #ffffff);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.top-info-item i {
    color: var(--accent-color, #d4af37);
    font-size: 15px;
}

.top-divider {
    width: 1px;
    height: 22px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.3);
}


/* =====================================
   SOCIAL LINKS
===================================== */

.top-social {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

.top-social>span {
    margin-right: 5px;
    font-size: 13px;
    font-weight: 500;
}

.top-social a {
    width: 33px;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: var(--light-text, #ffffff);
    font-size: 13px;
    transition: all 0.3s ease;
}

.top-social a:hover {
    background: var(--light-text, #ffffff);
    color: var(--primary-color);
    transform: translateY(-3px);
}


/* =====================================
   MAIN NAVBAR
===================================== */

.main-navbar {
    width: 100%;
    background: var(--body-bg, #ffffff);
    border-bottom: 1px solid var(--border-color, #eeeeee);
}

.main-navbar-inner {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}


/* =====================================
   LOGO
===================================== */

.navbar-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    border: none;
}

.logo-icon {
    display: block;
    width: 190px;
    height: 70px;
    object-fit: contain;
    object-position: left center;
}


/* =====================================
   NAVBAR CONTENT
===================================== */

.navbar-content {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =====================================
   DESKTOP NAVIGATION
   Links centered, search/action on right
===================================== */

.navbar-menu {
    flex: 1;
    min-width: 0;

    display: grid;

    /*
      Column 1: centered navigation links
      Column 2: search
      Column 3: action button
    */
    grid-template-columns: minmax(0, 1fr) 180px 45px;

    align-items: center;
    gap: 18px;
}


/* =====================================
   NAVIGATION LINKS
===================================== */

.navbar-links {
    grid-column: 1;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;

    width: 100%;
    min-width: 0;

    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    position: relative;
    flex: 0 0 auto;
}

.nav-item>a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 15px 0;

    color: var(--text-color, #555555);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;

    transition: color 0.3s ease;
}

.nav-item>a:hover,
.nav-item.active>a {
    color: var(--primary-color);
}

.nav-item.active>a {
    border-bottom: 2px solid var(--primary-color);
}

.nav-item>a i {
    font-size: 10px;
}


/* =====================================
   DROPDOWN
===================================== */

.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle i {
    transition: transform 0.3s ease;
}

.nav-item.dropdown.open>.dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;

    min-width: 230px;
    max-width: 300px;

    margin: 0;
    padding: 10px 0;

    list-style: none;

    background: var(--body-bg, #ffffff);
    border: 1px solid var(--border-color, #eeeeee);
    border-radius: 6px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(10px);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;

    z-index: 1001;
}

.dropdown-menu li a {
    display: block;
    padding: 11px 18px;

    color: var(--text-color, #555555);
    font-size: 13px;
    line-height: 1.5;

    transition: all 0.25s ease;
}

.dropdown-menu li a:hover {
    padding-left: 24px;
    background: var(--section-bg, #f5f5f5);
    color: var(--primary-color);
}


/* Desktop dropdown open */

@media (min-width: 1101px) {

    .nav-item.dropdown:hover>.dropdown-menu,
    .nav-item.dropdown:focus-within>.dropdown-menu,
    .nav-item.dropdown.open>.dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

}


/* =====================================
   SEARCH BOX
===================================== */

.navbar-search {
    grid-column: 2;

    width: 180px;
    min-width: 0;
    height: 45px;

    display: flex;
    align-items: center;

    padding: 4px 5px 4px 15px;

    background: var(--body-bg, #ffffff);
    border: 1px solid var(--border-color, #dddddd);
    border-radius: 30px;
}

.navbar-search input {
    width: 100%;
    min-width: 0;

    padding: 0;

    border: none;
    outline: none;

    background: transparent;
    color: var(--heading-color, #222222);

    font-family: inherit;
    font-size: 12px;
}

.navbar-search input::placeholder {
    color: var(--muted-color, #888888);
}

.navbar-search button {
    width: 36px;
    height: 36px;
    min-width: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: var(--secondary-color, #555555);
    color: var(--light-text, #ffffff);

    cursor: pointer;

    transition: background 0.3s ease;
}

.navbar-search button:hover {
    background: var(--primary-color);
}


/* =====================================
   APPLICATION BUTTON
===================================== */

.navbar-app-button {
    grid-column: 3;

    width: 45px;
    height: 45px;
    min-width: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--accent-secondary, #d4af37);
    color: var(--light-text, #ffffff);

    font-size: 18px;

    transition: all 0.3s ease;
}

.navbar-app-button:hover {
    background: var(--primary-color);
    color: var(--light-text, #ffffff);
    transform: rotate(10deg);
}


/* =====================================
   MOBILE MENU BUTTON
===================================== */

.mobile-menu-toggle {
    display: none;

    width: 42px;
    height: 42px;
    min-width: 42px;

    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 5px;

    background: var(--primary-color);
    color: var(--light-text, #ffffff);

    font-size: 20px;
    cursor: pointer;
}

.mobile-menu-toggle i {
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.active i {
    transform: rotate(90deg);
}


/* =====================================
   SMALL DESKTOP
===================================== */

@media (max-width: 1350px) {

    .header-container {
        max-width: 1200px;
    }

    .main-navbar-inner {
        gap: 20px;
    }

    .logo-icon {
        width: 170px;
    }

    .navbar-menu {
        grid-template-columns: minmax(0, 1fr) 155px 42px;
        gap: 12px;
    }

    .navbar-links {
        gap: 18px;
    }

    .nav-item>a {
        font-size: 13px;
    }

    .navbar-search {
        width: 155px;
    }

    .navbar-app-button {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

}


/* =====================================
   TABLET / MOBILE NAVIGATION
===================================== */

@media (max-width: 1100px) {

    .main-navbar-inner {
        min-height: 85px;
        flex-wrap: wrap;
        gap: 0;
    }

    .navbar-logo {
        min-height: 85px;
    }

    .logo-icon {
        width: 175px;
        height: 65px;
    }

    .navbar-content {
        flex: 1;
        min-width: 0;
        min-height: 85px;

        display: flex;
        align-items: center;
        justify-content: flex-end;

        flex-wrap: wrap;
    }

    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .navbar-menu {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;

        display: none;
        grid-template-columns: 1fr;
        gap: 15px;

        padding: 20px 0 25px;

        border-top: 1px solid var(--border-color, #eeeeee);
        background: var(--body-bg, #ffffff);
    }

    .navbar-menu.show {
        display: grid;
    }

    .navbar-links {
        grid-column: 1;

        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;

        gap: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-item>a {
        width: 100%;
        justify-content: space-between;

        padding: 13px 5px;

        border-bottom: 1px solid var(--border-color, #eeeeee);
    }

    .nav-item.active>a {
        border-bottom: 1px solid var(--border-color, #eeeeee);
    }

    .navbar-search {
        grid-column: 1;

        width: 100%;
        height: 45px;
        margin: 0;
    }

    .navbar-app-button {
        grid-column: 1;

        margin: 0;
    }

    /* Mobile dropdown */

    .dropdown-menu {
        position: static;

        display: none;

        width: 100%;
        min-width: 100%;
        max-width: 100%;

        padding: 5px 0 5px 15px;
        margin: 0;

        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform: none;

        border: none;
        border-radius: 0;
        box-shadow: none;

        background: transparent;
        transition: none;
    }

    .nav-item.dropdown.open>.dropdown-menu {
        display: block;
    }

    .nav-item.dropdown:hover>.dropdown-menu {
        display: none;
    }

    .nav-item.dropdown.open:hover>.dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding: 11px 15px;
    }

    .dropdown-menu li a:hover {
        padding-left: 22px;
    }

}


/* =====================================
   MOBILE TOP BAR
===================================== */

@media (max-width: 767px) {

    .header-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .top-header-inner {
        min-height: auto;

        flex-direction: column;
        justify-content: center;

        gap: 10px;

        padding-top: 10px;
        padding-bottom: 10px;
    }

    .top-contact-info {
        flex-wrap: wrap;
        justify-content: center;

        gap: 10px 15px;
    }

    .top-info-item {
        font-size: 11px;
        gap: 7px;
    }

    .top-divider,
    .address-info {
        display: none;
    }

    .top-social {
        justify-content: center;
        gap: 8px;
    }

    .top-social>span {
        font-size: 12px;
    }

    .top-social a {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .main-navbar-inner {
        min-height: 75px;
    }

    .navbar-logo {
        min-height: 75px;
    }

    .logo-icon {
        width: 155px;
        height: 60px;
    }

    .navbar-content {
        min-height: 75px;
    }

    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .navbar-menu {
        padding: 15px 0 20px;
    }

}


/* =====================================
   SMALL MOBILE
===================================== */

@media (max-width: 380px) {

    .top-contact-info {
        flex-direction: column;
        align-items: center;
    }

    .navbar-logo {
        padding-left: 0;
    }

    .logo-icon {
        width: 135px;
        height: 55px;
    }

    .mobile-menu-toggle {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

}
/* =====================================
   DROPDOWN - FIXED DESKTOP & MOBILE
===================================== */

.website-header .nav-item.dropdown {
    position: relative;
}

/* Dropdown arrow */
.website-header .dropdown-toggle i {
    transition: transform 0.3s ease;
}

.website-header .nav-item.dropdown.open>.dropdown-toggle i {
    transform: rotate(180deg);
}

/* Dropdown menu default */
.website-header .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;

    display: block;

    min-width: 250px;
    max-width: 320px;

    margin: 0;
    padding: 10px 0;

    list-style: none;

    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(10px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    z-index: 9999;
}

/* Dropdown links */
.website-header .dropdown-menu li {
    width: 100%;
}

.website-header .dropdown-menu li a {
    display: block;
    width: 100%;

    padding: 12px 20px;

    color: #555555;
    font-size: 14px;
    line-height: 1.5;

    white-space: normal;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        padding 0.25s ease;
}

.website-header .dropdown-menu li a:hover {
    color: var(--primary-color, #548d40);
    background: #f5f7f3;
    padding-left: 25px;
}

/* Open dropdown using JavaScript */
.website-header .nav-item.dropdown.open>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Desktop hover support */
@media (min-width: 1101px) {

    .website-header .nav-item.dropdown:hover>.dropdown-menu,
    .website-header .nav-item.dropdown:focus-within>.dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

}

/* =====================================
   MOBILE / TABLET DROPDOWN
===================================== */

@media (max-width: 1100px) {

    .website-header .navbar-menu {
        overflow: visible;
    }

    .website-header .navbar-links {
        overflow: visible;
    }

    .website-header .nav-item.dropdown {
        width: 100%;
    }

    .website-header .nav-item.dropdown>.dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .website-header .dropdown-menu {
        position: static;

        display: none;

        width: 100%;
        min-width: 100%;
        max-width: 100%;

        margin: 0;
        padding: 5px 0 5px 15px;

        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform: none;

        border: none;
        border-radius: 0;
        box-shadow: none;

        background: #f8f9f7;

        transition: none;
    }

    /* Only show submenu when clicked/open */
    .website-header .nav-item.dropdown.open>.dropdown-menu {
        display: block;
    }

    /* Prevent hover from hiding or opening mobile submenu */
    .website-header .nav-item.dropdown:hover>.dropdown-menu {
        display: none;
    }

    .website-header .nav-item.dropdown.open:hover>.dropdown-menu {
        display: block;
    }

    .website-header .dropdown-menu li a {
        padding: 12px 15px;
        font-size: 14px;
    }

    .website-header .dropdown-menu li a:hover {
        padding-left: 22px;
    }

}

/* Small mobile */
@media (max-width: 576px) {

    .website-header .dropdown-menu {
        padding-left: 10px;
    }

    .website-header .dropdown-menu li a {
        font-size: 13px;
    }

}