/* Custom Creative Header Styling */
header.header-1 {
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
    padding: 14px 0;
}

/* Logo Sizing and Fit */
header.header-1 .logo img,
header.header-1 .header-logo img,
header.header-1 .header-logo-2 img,
.offcanvas__logo img {
    width: 210px;
    height: auto;
    max-height: 45px;
    object-fit: contain;
    display: inline-block;
    transition: all 0.3s ease;
}

/* Sticky Header glassmorphic background */
header.header-1.sticky {
    background: rgba(44, 66, 97, 0.95) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Center menu positioning */
.mean__menu-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

@media (max-width: 1199px) {
    .mean__menu-wrapper {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .mean__menu-wrapper {
        display: flex !important;
    }

    .main-menu {
        display: block !important;
    }

    #mobile-menus,
    #mobile-menus.mean-remove {
        display: block !important;
    }

    .main-menu ul {
        display: flex !important;
    }
}

/* Toggle button styling (hidden on desktop, visible on mobile/tablet) */
.header-btn {
    display: none !important;
}

@media (max-width: 1199px) {
    .header-btn {
        display: block !important;
    }
}

/* Sidebar hamburger button styling */
.sidebar__toggle {
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-toggle-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #132f57;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 12px;
    gap: 6px;
    transition: all 0.3s ease;
}

.custom-toggle-icon .line {
    height: 2px;
    background-color: #132f57;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.custom-toggle-icon .line-1 {
    width: 18px;
}

.custom-toggle-icon .line-2 {
    width: 12px;
}

.sidebar__toggle:hover .custom-toggle-icon {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.sidebar__toggle:hover .custom-toggle-icon .line-2 {
    width: 18px;
}

.main-menu ul {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.main-menu ul li {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block;
    position: relative;
}

/* Menu items */
.main-menu ul li a {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    padding: 2px 19px !important;
    border-radius: 30px;
    position: relative;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    text-transform: capitalize;
    display: inline-block;
    letter-spacing: 0.1px;
}

/* Sticky state color update */
header.header-1.sticky .main-menu ul li a {
    color: #ffffff !important;
}

/* Creative hover pill transition */
.main-menu ul li a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(205, 162, 117, 0.12);
    border: 1px solid rgba(205, 162, 117, 0.22);
    border-radius: 30px;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    z-index: -1;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

header.header-1.sticky .main-menu ul li a::before {
    background: rgba(205, 162, 117, 0.15);
    border-color: rgba(205, 162, 117, 0.3);
}

.main-menu ul li a:hover::before,
.main-menu ul li.active a::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.main-menu ul li a:hover,
.main-menu ul li.active a {
    color: #c5a254 !important;
    text-shadow: 0 0 8px rgba(205, 162, 117, 0.2);
}

/* Vertical separating bars */
.main-menu ul li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background-color: rgba(42, 67, 97, 0.25);
    transition: background-color 0.3s ease;
}

header.header-1.sticky .main-menu ul li:not(:last-child)::after {
    background-color: rgba(42, 67, 97, 0.25);
}

/* Right-side contact widget */
.header-contact-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.header-contact-widget .contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

header.header-1.sticky .header-contact-widget .contact-icon {
    background: rgba(205, 162, 117, 0.08);
    border-color: rgba(205, 162, 117, 0.2);
    color: #c5a254 !important;
}

.header-contact-widget:hover .contact-icon {
    background: #c5a254;
    border-color: #c5a254;
    color: #132f57 !important;
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 0 10px rgba(205, 162, 117, 0.3);
}

.header-contact-widget .contact-info {
    display: flex;
    flex-direction: column;
}

.header-contact-widget .contact-info span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1;
    margin-bottom: 2px;
}

header.header-1.sticky .header-contact-widget .contact-info span {
    color: rgba(255, 255, 255, 0.6);
}

.header-contact-widget .contact-info a {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.3s ease;
    white-space: nowrap;
}

header.header-1.sticky .header-contact-widget .contact-info a {
    color: #ffffff;
}

.header-contact-widget:hover .contact-info a {
    color: #c5a254 !important;
}

/* Responsive collapse contact widget */
@media (max-width: 1199px) {
    .header-contact-widget {
        display: none;
    }
}

/* Responsive adaptations for logo and menu wrapping */
@media (max-width: 1399px) {
    .main-menu ul li a {
        font-size: 14px !important;
        padding: 6px 12px !important;
    }

    .main-menu ul {
        gap: 4px;
    }
}

@media (max-width: 1199px) {

    header.header-1 .logo img,
    header.header-1 .header-logo img,
    header.header-1 .header-logo-2 img {
        width: 190px !important;
    }
}

/* Premium offcanvas mobile menu styling */
.offcanvas__info .mean-nav {
    background: transparent !important;
    margin-top: 0px;
}

.offcanvas__info .mean-nav ul {
    display: block !important;
}

.offcanvas__info .mean-nav ul li {
    display: block !important;
    float: none !important;
    width: 100% !important;
    border-bottom: 1px solid rgba(42, 67, 97, 0.1);
}

.offcanvas__info .mean-nav ul li a {
    display: block !important;
    float: none !important;
    width: 100% !important;
    padding: 12px 0 !important;
    color: #2a4361 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-transform: capitalize !important;
    border: none !important;
    background: transparent !important;
    transition: all 0.3s ease;
}

.offcanvas__info .mean-nav ul li a:hover,
.offcanvas__info .mean-nav ul li.active a {
    color: #c5a254 !important;
    padding-left: 8px !important;
}

@media (max-width: 1399px) {
    header.header-1 {
        background-color: #132f57;
    }
}