
/* ==========================================
   BRIGHT DIAMONDS - HEADER SECTION
========================================== */

/* ==========================================
   MAIN HEADER
========================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--background-color);
    transition: box-shadow var(--transition-normal);
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-header);
}

/* ==========================================
   TOP INFORMATION BAR
========================================== */

.header-topbar {
    background: var(--primary-color);
    color: var(--text-white);
}

.header-topbar-inner {
    min-height: var(--header-topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Notifications */

.header-notifications {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.header-notifications > i {
    font-size: 14px;
    flex-shrink: 0;
}

.notification-text {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: var(--font-semibold);
    letter-spacing: 0.3px;
    line-height: 1.5;
    opacity: 1;
    transition:
        opacity var(--transition-slow),
        transform var(--transition-slow);
}

.notification-text.fade-out {
    opacity: 0;
    transform: translateY(-6px);
}

.notification-text.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   TOP BAR RIGHT SIDE
========================================== */

.header-topbar-right {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-shrink: 0;
}

/* Phone Number */

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: var(--font-semibold);
    text-decoration: none;
    transition: opacity var(--transition-normal);
}

.header-phone[hidden] {
    display: none;
}

.header-phone:hover {
    opacity: 0.8;
}

/* Social Icons */

.header-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 15px;
    text-decoration: none;
    transition:
        transform var(--transition-normal),
        opacity var(--transition-normal);
}

.header-social a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

/* ==========================================
   MAIN NAVIGATION
========================================== */

.header-main {
    background: var(--background-color);
    border-bottom: 1px solid var(--border-color);
}

.header-main-inner {
    min-height: var(--header-main-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* ==========================================
   LOGO
========================================== */

.header-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo img {
    display: block;
    width: 230px;
    height: auto;
    object-fit: contain;
}

/* ==========================================
   NAVIGATION MENU
========================================== */

.header-nav {
    margin-left: auto;
}

.header-nav ul {
    display: flex;
    align-items: center;
    gap: 27px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.header-nav a {
    display: inline-block;
    position: relative;
    padding: 12px 0;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: var(--font-bold);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition-normal);
}

.header-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-normal);
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--primary-color);
}

.header-nav a:hover::after,
.header-nav a.active::after {
    width: 100%;
}

/* ==========================================
   HEADER ACTIONS
========================================== */

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* Visit Store Button */

.header-store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 19px;
    background: var(--primary-color);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: var(--font-bold);
    letter-spacing: 0.2px;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background var(--transition-normal),
        transform var(--transition-normal);
}

.header-store-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ==========================================
   MOBILE MENU BUTTON
========================================== */

.header-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 19px;
}

/* ==========================================
   RESPONSIVE - TABLET
========================================== */

@media (max-width: 1150px) {

    .header-main-inner {
        min-height: 82px;
    }

    .header-logo img {
        width: 175px;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        padding: 15px 24px 25px;
        background: var(--background-color);
        box-shadow: var(--shadow-dropdown);
    }

    .header-nav.is-open {
        display: block;
    }

    .header-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .header-nav a {
        display: block;
        padding: 13px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .header-menu-toggle {
        display: inline-flex;
    }

}

/* ==========================================
   RESPONSIVE - MOBILE
========================================== */

@media (max-width: 767px) {

    .header-topbar-inner {
        min-height: 42px;
    }

    .header-notifications {
        flex: 1;
    }

    .notification-text {
        font-size: 10px;
    }

    .header-topbar-right {
        gap: 12px;
    }

    .header-phone {
        display: none;
    }

    .header-social {
        gap: 12px;
    }

    .header-social a {
        font-size: 14px;
    }

    .header-main-inner {
        min-height: 76px;
        gap: 12px;
    }

    .header-logo img {
        width: 145px;
        max-height: 65px;
    }

    .header-store-btn {
        padding: 11px 12px;
        font-size: 11px;
    }

    .header-store-btn i {
        font-size: 12px;
    }

    .header-store-btn span {
        display: none;
    }

    .header-menu-toggle {
        width: 39px;
        height: 39px;
    }

}

/* ==========================================
   REDUCED MOTION ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {

    .site-header *,
    .site-header *::before,
    .site-header *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

}
