/* ==========================================================================
   Premium Header Design - EineCosmetics B2B
   Japanese Minimalism & Luxury Cosmetics Aesthetic
   Version: 1.0
   ========================================================================== */

/* ==========================================================================
   DESIGN PHILOSOPHY
   - Clean, minimal header with generous white space
   - Prominent trust signals and certifications
   - Clear visual hierarchy for B2B clients
   - Smooth, premium animations
   - Mobile-first responsive design
   ========================================================================== */

:root {
    --header-height: 80px;
    --header-height-scrolled: 70px;
    --header-border: 1px solid rgba(239, 105, 90, 0.15);
    --header-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --header-shadow-scrolled: 0 4px 12px rgba(239, 105, 90, 0.08);
}

/* ==========================================================================
   HEADER BASE - Clean White Background
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: var(--header-border);
    box-shadow: var(--header-shadow);
    z-index: var(--z-sticky);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: var(--header-shadow-scrolled);
}

/* ==========================================================================
   TOP BAR - Trust Signals & Contact Info
   ========================================================================== */

.header-top-bar {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe8eb 100%);
    border-bottom: 1px solid rgba(239, 105, 90, 0.1);
    padding: 10px 0;
    font-size: 13px;
    display: block;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* Trust Badge Section */
.header-trust-badges {
    display: flex;
    align-items: center;
    gap: 20px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(239, 105, 90, 0.2);
    transition: all 0.3s ease;
}

.trust-badge i {
    color: var(--primary-color);
    font-size: 14px;
}

.trust-badge:hover {
    background: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 105, 90, 0.15);
}

/* Contact Info Section */
.header-contact-info {
    display: flex;
    align-items: center;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    transition: color 0.2s ease;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 14px;
}

.contact-item:hover {
    color: var(--primary-color);
}

.contact-phone {
    font-weight: 600;
    color: var(--primary-color);
}

/* ==========================================================================
   MAIN HEADER - Logo & Navigation
   ========================================================================== */

.header-main {
    padding: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.site-header.scrolled .header-main {
    height: var(--header-height-scrolled);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    height: 100%;
}

/* Logo - Premium Presentation */
.header-logo {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1;
}

.logo-accent {
    color: var(--primary-color);
}

.header-logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

/* ==========================================================================
   DESKTOP NAVIGATION - Clean & Spacious
   ========================================================================== */

.desktop-nav {
    display: none;
    flex: 1;
    max-width: 640px;
}

@media (min-width: 992px) {
    .desktop-nav {
        display: block;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

/* Active State */
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a {
    color: var(--primary-color);
    background: rgba(239, 105, 90, 0.08);
}

/* Hover State */
.nav-menu > li > a:hover {
    color: var(--primary-color);
    background: rgba(239, 105, 90, 0.05);
}

/* Underline Animation */
.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu > li > a:hover::after {
    width: 24px;
}

/* Dropdown Menu */
.menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 6px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    list-style: none;
    margin: 0;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    margin: 0;
}

.sub-menu a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.sub-menu a:hover {
    color: var(--primary-color);
    background: rgba(239, 105, 90, 0.05);
    padding-left: 24px;
}

.sub-menu a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sub-menu a:hover::before {
    opacity: 1;
}

/* ==========================================================================
   HEADER CTA - Prominent Contact Button
   ========================================================================== */

.header-cta {
    display: none;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .header-cta {
        display: flex;
    }
}

.header-cta .btn {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-cta .btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(239, 105, 90, 0.3);
}

.header-cta .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 105, 90, 0.4);
}

.header-cta .btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
}

.header-cta .btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(239, 105, 90, 0.05);
}

/* ==========================================================================
   MOBILE MENU TOGGLE - Clean Hamburger
   ========================================================================== */

.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(239, 105, 90, 0.05);
}

@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.hamburger {
    position: relative;
    width: 24px;
    height: 18px;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* ==========================================================================
   MOBILE MENU - Slide-in Panel
   ========================================================================== */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 420px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: var(--z-modal);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-inner {
    padding: 24px;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-gray);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: var(--primary-color);
    color: white;
}

/* Mobile Contact Section */
.mobile-contact-section {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe8eb 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.mobile-section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px 0;
}

.mobile-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-contact-phone,
.mobile-contact-hours {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.mobile-contact-phone {
    font-weight: 600;
    font-size: 18px;
    color: var(--primary-color);
}

/* Mobile Navigation */
.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu > li {
    margin-bottom: 4px;
}

.mobile-nav-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-nav-menu > li > a:hover,
.mobile-nav-menu > li > a:focus {
    background: rgba(239, 105, 90, 0.05);
    color: var(--primary-color);
}

/* Mobile Dropdown */
.mobile-nav-menu .menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 14px;
    transition: transform 0.3s ease;
}

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

.mobile-nav-menu .sub-menu {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--bg-gray);
    margin: 8px 0 0 0;
    padding: 8px;
    border-radius: 8px;
    list-style: none;
}

.mobile-nav-menu .menu-item-has-children.open .sub-menu {
    display: block;
}

.mobile-nav-menu .sub-menu a {
    padding: 10px 16px;
    font-size: 14px;
}

/* Mobile CTA */
.mobile-cta-section {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

.mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-cta-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-cta-btn .btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.mobile-cta-btn .btn-title {
    font-weight: 600;
    font-size: 15px;
}

.mobile-cta-btn .btn-subtitle {
    font-size: 13px;
    opacity: 0.8;
}

/* Mobile Social */
.mobile-social-section {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

.mobile-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.mobile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-gray);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-size: 18px;
}

.mobile-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    z-index: calc(var(--z-modal) - 1);
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Body Lock */
body.menu-open {
    overflow: hidden;
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.mobile-menu-toggle:focus,
.nav-menu a:focus,
.mobile-nav-menu a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip Link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    z-index: 9999;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

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

@media (max-width: 1200px) {
    .nav-menu {
        gap: 2px;
    }

    .nav-menu > li > a {
        padding: 10px 12px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .header-top-bar {
        font-size: 12px;
        padding: 8px 0;
    }

    .top-bar-content {
        gap: 12px;
    }

    .header-trust-badges {
        gap: 12px;
    }

    .trust-badge {
        font-size: 11px;
        padding: 3px 10px;
    }

    .header-contact-info {
        gap: 16px;
    }

    .contact-item {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .header-top-bar {
        display: none;
    }

    .header-logo img {
        height: 36px;
    }

    .logo-text {
        font-size: 20px;
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .nav-menu > li > a,
    .sub-menu,
    .mobile-menu,
    .hamburger span {
        transition: none;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .site-header {
        position: static;
        box-shadow: none;
        border-bottom: 1px solid #000;
    }

    .header-top-bar,
    .header-cta,
    .mobile-menu-toggle,
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
}
