/* DKHR Premium Luxury Header Core Styles */

:root {
    --dkhr-primary: #0E5A37;
    --dkhr-gold: #C5A880;
    --dkhr-dark: #1E1E1E;
    --dkhr-light: #F4F6F4;
    --dkhr-white: #FFFFFF;
}

.dkhr-header-wrapper {
    width: 100%;
    position: relative;
    z-index: 9999;
    background-color: var(--dkhr-white);
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.dkhr-header-wrapper.sticky-active {
    position: sticky;
    top: 0;
    left: 0;
}

/* Glass effect on sticky */
.dkhr-header-wrapper.glass-active.is-sticky {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* Marquee Announcement */
.dkhr-announcement {
    height: 36px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.dkhr-marquee {
    width: 100%;
    overflow: hidden;
}

.dkhr-marquee-track {
    display: flex;
    white-space: nowrap;
    animation: dkhrMarquee 25s linear infinite;
}

.dkhr-announcement-item {
    padding: 0 40px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: inline-block;
}

@keyframes dkhrMarquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Main Container */
.dkhr-main-bar {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: height 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.dkhr-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.dkhr-logo {
    display: flex;
    align-items: center;
    margin-right: 40px; /* spacing between logo and first menu item */
}

.dkhr-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.dkhr-logo img {
    max-height: 100%;
    object-fit: contain;
    transition: height 0.35s ease;
}

.dkhr-logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--dkhr-dark);
}

/* Navigation List */
.dkhr-nav-desktop {
    display: flex;
    align-items: center;
    height: 100%;
}

.dkhr-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
    align-items: center;
}

.dkhr-menu-list > li {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.dkhr-menu-list > li > a {
    display: block;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 24px 0;
    transition: color 300ms ease, transform 300ms ease;
    position: relative;
}

.dkhr-menu-list > li > a:after {
    content: '';
    position: absolute;
    bottom: 16px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--dkhr-gold);
    transition: width 300ms cubic-bezier(0.25, 1, 0.5, 1), left 300ms cubic-bezier(0.25, 1, 0.5, 1);
}

.dkhr-menu-list > li:hover > a {
    color: var(--dkhr-primary) !important;
    transform: translateY(-2px);
}

.dkhr-menu-list > li:hover > a:after {
    width: 100%;
    left: 0;
}

/* DROPDOWN SYSTEM - DESKTOP */
.dkhr-nav-desktop .dkhr-menu-list .menu-item-has-children {
    position: relative;
}

.dkhr-nav-desktop .dkhr-menu-list .menu-item-has-children > a {
    padding-right: 15px !important;
}

.dkhr-nav-desktop .dkhr-menu-list .menu-item-has-children > a::after {
    content: '\f0d7';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    transition: transform 0.3s ease;
}

.dkhr-nav-desktop .dkhr-menu-list .menu-item-has-children:hover > a::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Hide desktop sub-menus entirely by default */
.dkhr-nav-desktop .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dkhr-white);
    min-width: 240px;
    padding: 10px;
    list-style: none;
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 300ms cubic-bezier(0.25, 1, 0.5, 1), transform 300ms cubic-bezier(0.25, 1, 0.5, 1), visibility 300ms cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 99999;
}

/* Show submenu only on hover */
.dkhr-nav-desktop .dkhr-menu-list li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dkhr-nav-desktop .sub-menu li {
    width: 100%;
    position: relative;
}

.dkhr-nav-desktop .sub-menu li a {
    display: block;
    padding: 10px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--dkhr-dark) !important;
    text-decoration: none;
    transition: all 0.25s ease;
    text-transform: none;
}

.dkhr-nav-desktop .sub-menu li a:after {
    display: none !important;
}

.dkhr-nav-desktop .sub-menu li a:hover {
    background-color: var(--dkhr-light);
    color: var(--dkhr-primary) !important;
    border-radius: 6px;
    padding-left: 22px;
}

/* Nesting support for 3rd level sub-menus */
.dkhr-nav-desktop .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-top: -10px;
}

/* Actions Section */
.dkhr-actions {
    display: flex;
    align-items: center;
    gap: 16px; /* consistent spacing */
}

/* Normalizing Right Side Icons */
.dkhr-action-btn {
    background: none;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--dkhr-dark);
    cursor: pointer;
    position: relative;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.dkhr-action-btn:hover {
    background-color: var(--dkhr-light);
    color: var(--dkhr-primary);
    transform: translateY(-2px);
}

.dkhr-cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: var(--dkhr-primary);
    color: var(--dkhr-white);
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Premium Buttons */
.dkhr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.dkhr-btn-whatsapp {
    background-color: #25D366;
    color: var(--dkhr-white);
}

.dkhr-btn-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.dkhr-btn-consult {
    background-color: var(--dkhr-primary);
    color: var(--dkhr-white);
}

.dkhr-btn-consult:hover {
    background-color: var(--dkhr-gold);
    color: var(--dkhr-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.4);
}

/* Mobile Toggle Hamburger */
.dkhr-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.dkhr-hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--dkhr-dark);
    transition: all 0.3s ease;
}

/* Search Overlay */
.dkhr-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.dkhr-search-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.dkhr-search-close {
    position: absolute;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    font-size: 36px;
    color: var(--dkhr-dark);
    cursor: pointer;
}

.dkhr-search-container {
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
}

.dkhr-search-form {
    position: relative;
    border-bottom: 2px solid var(--dkhr-dark);
    display: flex;
}

.dkhr-search-field {
    width: 100%;
    border: none;
    background: none;
    font-size: 24px;
    padding: 15px 0;
    color: var(--dkhr-dark);
}

.dkhr-search-field:focus {
    outline: none;
}

.dkhr-search-submit {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--dkhr-dark);
}

/* Mini Cart Drawer */
.dkhr-cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: var(--dkhr-white);
    box-shadow: -5px 0 30px rgba(0,0,0,0.05);
    z-index: 100001;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}

.dkhr-cart-drawer.is-open {
    right: 0;
}

.dkhr-cart-drawer-header {
    padding: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dkhr-cart-drawer-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.dkhr-cart-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.dkhr-cart-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.dkhr-cart-backdrop, .dkhr-mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.dkhr-cart-backdrop.is-open, .dkhr-mobile-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Drawer & Dropdowns */
.dkhr-mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background-color: var(--dkhr-white);
    z-index: 100001;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}

.dkhr-mobile-menu-drawer.is-open {
    right: 0;
}

.dkhr-mobile-drawer-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dkhr-mobile-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

.dkhr-mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dkhr-mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dkhr-mobile-menu-list li {
    margin-bottom: 20px;
}

.dkhr-mobile-menu-list li a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--dkhr-dark);
    display: block;
}

/* Mobile Dropdown styles */
.dkhr-mobile-nav .menu-item-has-children {
    position: relative;
}

.dkhr-mobile-nav .menu-item-has-children > a {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

.dkhr-mobile-nav .menu-item-has-children > a::after {
    content: '\f0d7';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dkhr-mobile-nav .menu-item-has-children.is-active > a::after {
    transform: rotate(180deg);
}

.dkhr-mobile-nav .sub-menu {
    display: none;
    list-style: none;
    padding: 10px 0 5px 15px;
    margin: 0;
}

.dkhr-mobile-nav .sub-menu li {
    margin-bottom: 12px;
}

.dkhr-mobile-nav .sub-menu li a {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
}

.dkhr-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
}

/* Responsive Rules */
@media (max-width: 1100px) {
    .dkhr-nav-desktop,
    .dkhr-actions .dkhr-btn {
        display: none;
    }
    .dkhr-mobile-toggle {
        display: flex;
    }
}
