/* Clean Minimalist Modern Navbar - Scoped to .header-nav */
/* Inspired by high-end Medenin editorial header design */

.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(131, 230, 208, 0.3);
    transition: all 0.3s ease;
    height: 78px;
    display: flex;
    align-items: center;
}

.header-nav.header-nav--scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 25px rgba(77, 168, 255, 0.1);
    height: 70px;
    border-bottom-color: rgba(53, 214, 197, 0.4);
}

.header-nav .header-nav__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand Logo (Horizontal with Vertical Accent Line) */
.header-nav .header-nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.header-nav .header-nav__brand-accent {
    width: 4px;
    height: 32px;
    background: linear-gradient(180deg, #35D6C5 0%, #4DA8FF 100%);
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.header-nav .header-nav__brand:hover .header-nav__brand-accent {
    transform: scaleY(1.15);
}

.header-nav .header-nav__brand-content {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.header-nav .header-nav__brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1A516E;
    line-height: 1;
    white-space: nowrap;
}

.header-nav .header-nav__brand-dot {
    color: #35D6C5;
    font-size: 1.5rem;
    line-height: 0;
    margin-left: -4px;
}

.header-nav .header-nav__brand-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0E8378;
    white-space: nowrap;
    opacity: 0.85;
}

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

.header-nav .header-nav__item {
    position: relative;
}

.header-nav .header-nav__link {
    font-size: 0.92rem;
    font-weight: 600;
    color: #245A76;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.25s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.header-nav .header-nav__link:hover,
.header-nav .header-nav__link.header-nav__link--active {
    color: #145973;
    background: rgba(131, 230, 208, 0.16);
}

.header-nav .header-nav__link.header-nav__link--active {
    font-weight: 700;
    color: #0E8378;
}

/* Right Actions Area */
.header-nav .header-nav__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.header-nav .header-nav__call-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(235, 248, 255, 0.9);
    border: 1px solid rgba(77, 168, 255, 0.35);
    color: #1A516E;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.25s ease;
}

.header-nav .header-nav__call-btn:hover {
    background: #FFFFFF;
    color: #35D6C5;
    border-color: #35D6C5;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(53, 214, 197, 0.25);
}

/* Outline Appointment Button (Medenin Style) */
.header-nav .header-nav__appointment-btn {
    border: 2px solid #35D6C5;
    background: transparent;
    color: #145973;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    padding: 9px 24px;
    border-radius: 999px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.header-nav .header-nav__appointment-btn:hover {
    background: linear-gradient(135deg, #4DA8FF 0%, #35D6C5 100%);
    border-color: transparent;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(77, 168, 255, 0.35);
}

.header-nav .header-nav__toggle-btn {
    display: none;
    background: rgba(235, 248, 255, 0.9);
    border: 1px solid rgba(131, 230, 208, 0.5);
    color: #1A516E;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
}

.header-nav .header-nav__toggle-btn:hover {
    background: #FFFFFF;
    border-color: #35D6C5;
}

/* Mobile Drawer Overlay & Panel */
.header-nav .header-nav__mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 290px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -10px 0 40px rgba(77, 168, 255, 0.18);
    border-left: 1px solid rgba(131, 230, 208, 0.4);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1060;
}

.header-nav .header-nav__mobile-drawer.header-nav__mobile-drawer--open {
    right: 0;
}

.header-nav .header-nav__drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(131, 230, 208, 0.3);
}

.header-nav .header-nav__drawer-close {
    background: rgba(235, 248, 255, 0.9);
    border: 1px solid rgba(131, 230, 208, 0.4);
    color: #1A516E;
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-nav .header-nav__drawer-close:hover {
    background: #FFFFFF;
    border-color: #35D6C5;
}

.header-nav .header-nav__drawer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}

.header-nav .header-nav__drawer-link {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #245A76;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.header-nav .header-nav__drawer-link:hover,
.header-nav .header-nav__drawer-link.header-nav__drawer-link--active {
    color: #1A516E;
    background: rgba(131, 230, 208, 0.18);
    padding-left: 18px;
}

/* Mobile Drawer Bottom Action Button */
.header-nav .header-nav__drawer-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(131, 230, 208, 0.3);
}

.header-nav .header-nav__cta-btn {
    background: linear-gradient(135deg, #4DA8FF 0%, #35D6C5 100%);
    color: #FFFFFF !important;
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none !important;
    padding: 13px 20px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(77, 168, 255, 0.35);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 100%;
}

.header-nav .header-nav__cta-btn:hover {
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(77, 168, 255, 0.45);
}

.header-nav .header-nav__mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 81, 110, 0.25);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1055;
}

.header-nav .header-nav__mobile-backdrop.header-nav__mobile-backdrop--open,
.header-nav .header-nav__mobile-backdrop.header-nav__mobile-backdrop--visible {
    opacity: 1;
    visibility: visible;
}

/* Responsive Breakpoints - Mobile Viewport Optimization */
@media (max-width: 1024px) {
    .header-nav .header-nav__brand-tag {
        display: none;
    }
    .header-nav .header-nav__menu {
        display: none;
    }
    .header-nav .header-nav__appointment-btn {
        display: none;
    }
    .header-nav .header-nav__call-btn {
        display: none;
    }
    .header-nav .header-nav__toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .header-nav {
        height: 68px;
    }
    .header-nav .header-nav__container {
        padding: 0 18px;
    }
    .header-nav .header-nav__brand-name {
        font-size: 1.15rem;
    }
    .header-nav .header-nav__brand-accent {
        height: 26px;
    }
    .header-nav .header-nav__toggle-btn {
        width: 38px;
        height: 38px;
        font-size: 1.25rem;
    }
}
