/* Extreme Premium Header Styles */

:root {
    --eph-primary-orange: #ff6b00;
    --eph-secondary-orange: #ff8c00;
    --eph-dark-gray: #2c3e50;
    --eph-medium-gray: #5a6c7d;
    --eph-light-gray: #f8f9fa;
    --eph-border-color: #e8eaed;
    --eph-white: #ffffff;
    --eph-transition: all 0.25s ease;
}

.eph-wrapper * {
    box-sizing: border-box;
}

/* Top Bar */
.eph-top-bar {
    background: linear-gradient(135deg, var(--eph-primary-orange) 0%, var(--eph-secondary-orange) 100%);
    color: var(--eph-white);
    padding: 12px 0;
    font-size: 14px;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.eph-top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 35px;
}

.eph-top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--eph-transition);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.95;
}

.eph-top-bar-item:hover {
    opacity: 1;
}

.eph-top-bar-item svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    opacity: 0.9;
}

.eph-social-links {
    display: flex;
    gap: 10px;
}

.eph-social-links a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    transition: var(--eph-transition);
}

.eph-social-links a:hover {
    background: var(--eph-white);
}

.eph-social-links a:hover svg {
    fill: var(--eph-primary-orange);
}

.eph-social-links svg {
    width: 14px;
    height: 14px;
    fill: var(--eph-white);
    transition: var(--eph-transition);
}

/* Main Header */
.eph-main-header {
    background: var(--eph-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--eph-transition);
    border-bottom: 1px solid var(--eph-border-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.eph-main-header.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.eph-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

/* Logo Container */
.eph-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--eph-transition);
    background: var(--eph-white);
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid var(--eph-border-color);
}

.eph-logo:hover {
    border-color: var(--eph-primary-orange);
}

.eph-logo img {
    height: 140px;
    width: auto;
    display: block;
}

/* Navigation */
.eph-nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.eph-nav-item {
    position: relative;
}

.eph-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    color: var(--eph-dark-gray);
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    transition: var(--eph-transition);
    border-radius: 8px;
    position: relative;
    background: transparent;
}

.eph-nav-link:hover {
    background: var(--eph-light-gray);
    color: var(--eph-dark-gray);
}

.eph-home-icon {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.eph-dropdown-arrow {
    width: 9px;
    height: 9px;
    transition: var(--eph-transition);
    fill: currentColor;
    opacity: 0.5;
}

.eph-nav-item:hover .eph-dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Premium Dropdown Menu */
.eph-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--eph-white);
    min-width: 260px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1), 0 0 0 1px var(--eph-border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--eph-transition);
    overflow: hidden;
    padding: 8px;
    margin: 0;
    list-style: none;
}

.eph-nav-item:hover .eph-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.eph-dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--eph-dark-gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--eph-transition);
    border-radius: 8px;
    margin-bottom: 2px;
}

.eph-dropdown-menu a:last-child {
    margin-bottom: 0;
}

.eph-dropdown-menu a:hover {
    background: var(--eph-light-gray);
    color: var(--eph-primary-orange);
}

/* CTA Button */
.eph-nav-link.eph-cta-button {
    background: linear-gradient(135deg, var(--eph-primary-orange), var(--eph-secondary-orange));
    color: var(--eph-white);
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 8px;
    margin-left: 8px;
}

.eph-nav-link.eph-cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
    color: var(--eph-white);
}

/* Mobile Menu Button */
.eph-mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--eph-primary-orange), var(--eph-secondary-orange));
    border: none;
    cursor: pointer;
    border-radius: 12px;
    z-index: 2001;
    transition: var(--eph-transition);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
    position: relative;
}

.eph-mobile-menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 0, 0.35);
}

.eph-mobile-menu-btn span {
    width: 24px;
    height: 2.5px;
    background: var(--eph-white);
    border-radius: 2px;
    transition: var(--eph-transition);
    position: absolute;
}

.eph-mobile-menu-btn span:nth-child(1) {
    transform: translateY(-7px);
}

.eph-mobile-menu-btn span:nth-child(3) {
    transform: translateY(7px);
}

.eph-mobile-menu-btn.active {
    background: var(--eph-white);
    border: 2px solid var(--eph-primary-orange);
}

.eph-mobile-menu-btn.active span {
    background: var(--eph-primary-orange);
}

.eph-mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg);
}

.eph-mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.eph-mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Premium Mobile Menu Overlay */
.eph-mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.eph-mobile-menu-overlay.active {
    display: flex;
    opacity: 1;
}

.eph-mobile-menu-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 60px;
    overflow-y: auto;
    cursor: default;
    -webkit-overflow-scrolling: touch;
}

.eph-mobile-nav-menu {
    list-style: none;
    width: 100%;
    max-width: 420px;
    text-align: center;
    margin: 0;
    padding: 0;
    animation: floatIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.eph-mobile-nav-item {
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.eph-mobile-menu-overlay.active .eph-mobile-nav-item {
    opacity: 1;
    transform: translateY(0);
}

.eph-mobile-menu-overlay.active .eph-mobile-nav-item:nth-child(1) { transition-delay: 0.1s; }
.eph-mobile-menu-overlay.active .eph-mobile-nav-item:nth-child(2) { transition-delay: 0.15s; }
.eph-mobile-menu-overlay.active .eph-mobile-nav-item:nth-child(3) { transition-delay: 0.2s; }
.eph-mobile-menu-overlay.active .eph-mobile-nav-item:nth-child(4) { transition-delay: 0.25s; }
.eph-mobile-menu-overlay.active .eph-mobile-nav-item:nth-child(5) { transition-delay: 0.3s; }
.eph-mobile-menu-overlay.active .eph-mobile-nav-item:nth-child(6) { transition-delay: 0.35s; }

.eph-mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 30px;
    color: var(--eph-dark-gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    transition: var(--eph-transition);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.eph-mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: var(--eph-dark-gray);
}

.eph-mobile-nav-link.eph-cta-button {
    background: linear-gradient(135deg, var(--eph-primary-orange), var(--eph-secondary-orange));
    color: var(--eph-white);
    font-size: 18px;
    font-weight: 700;
    border: none;
    margin-top: 8px;
    box-shadow: 0 4px 16px rgba(255, 107, 0, 0.3);
}

.eph-mobile-nav-link.eph-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
    color: var(--eph-white);
}

.eph-mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 8px;
    list-style: none;
    padding: 0;
}

.eph-mobile-nav-item.dropdown-open .eph-mobile-dropdown-menu {
    max-height: 400px;
}

.eph-mobile-dropdown-menu a {
    display: block;
    padding: 14px 30px;
    color: var(--eph-medium-gray);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    background: white;
    margin-bottom: 6px;
    border-radius: 10px;
    transition: var(--eph-transition);
    border: 1px solid var(--eph-border-color);
}

.eph-mobile-dropdown-menu a:hover {
    background: var(--eph-light-gray);
    color: var(--eph-primary-orange);
    border-color: var(--eph-primary-orange);
}

.eph-mobile-dropdown-arrow {
    transition: var(--eph-transition);
    width: 12px;
    height: 12px;
    opacity: 0.5;
}

.eph-mobile-nav-item.dropdown-open .eph-mobile-dropdown-arrow {
    transform: rotate(180deg);
}


/* Mobile Responsive */
@media (max-width: 992px) {
    .eph-top-bar {
        padding: 10px 0;
    }

    .eph-top-bar-content {
        padding: 0 20px;
        justify-content: center;
        gap: 20px;
    }

    /* Hide address on mobile for cleaner look */
    .eph-address-item {
        display: none !important;
    }

    .eph-top-bar-item {
        font-size: 12px;
    }

    .eph-header-content {
        height: 85px;
        padding: 0 5px 0 20px !important; /* Padding minim dreapta */
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .eph-logo {
        padding: 14px 20px;
        margin-right: auto !important;
    }

    .eph-logo img {
        height: 75px;
    }

    .eph-mobile-menu-btn {
        display: flex !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        width: 56px !important; /* Mai mare */
        height: 56px !important; /* Mai mare */
        flex-shrink: 0 !important;
    }

    .eph-mobile-menu-btn span {
        width: 26px !important; /* Linii mai late */
        height: 3px !important; /* Linii mai groase */
    }

    .eph-nav-menu {
        display: none;
    }
}

@media (max-width: 576px) {
    .eph-top-bar-content {
        padding: 0 15px;
        font-size: 11px;
        gap: 15px;
    }

    .eph-top-bar-item svg {
        width: 13px;
        height: 13px;
    }

    .eph-social-links {
        gap: 8px;
    }

    .eph-social-links a {
        width: 30px;
        height: 30px;
    }

    .eph-header-content {
        padding: 0 5px 0 15px !important; /* MAXIM la margine */
        height: 80px;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .eph-logo {
        padding: 12px 18px;
        margin-right: auto !important;
    }

    .eph-logo img {
        height: 80px;
    }

    .eph-mobile-menu-btn {
        width: 54px !important; /* Mai mare pe mobile mic */
        height: 54px !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        flex-shrink: 0 !important;
    }

    .eph-mobile-menu-btn span {
        width: 28px !important;
        height: 3px !important;
    }

    .eph-mobile-menu-content {
        padding: 100px 20px 40px;
    }

    .eph-mobile-nav-menu {
        max-width: 100%;
    }

    .eph-mobile-nav-link {
        padding: 16px 24px;
        font-size: 16px;
    }
}