/* =============================================
   SUNVIA HEALTHCARE - PREMIUM HEADER v2.0
   Modern | Responsive | Animated
   ============================================= */

/* ---- Wrap ---- */
.sh-header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 15px 20px 0;
    transition: all 0.35s ease;
}

/* ---- Main Header ---- */
.sh-header {
    background: #ffffff;
    border: 1px solid rgba(0, 150, 136, 0.12);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    max-width: 1400px;
    margin: 0 auto;
    transition: all 0.35s ease;
}

/* Scrolled state */
.sh-header-wrap.scrolled {
    padding: 10px 20px 0;
}

.sh-header-wrap.scrolled .sh-header {
    box-shadow: 0 8px 30px rgba(0, 150, 136, 0.15);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ---- Inner Layout — 3-column grid for true center nav ---- */
.sh-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 24px 0 32px;
    height: 74px;
    gap: 16px;
}

/* ---- Logo ---- */
.sh-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.sh-logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.sh-logo:hover img {
    transform: scale(1.06);
}

.sh-logo-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    letter-spacing: 0.2px;
    line-height: 1.2;
    white-space: nowrap;
}

.sh-logo-text strong {
    color: #009688;
    font-weight: 700;
    display: block;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ---- Desktop Nav — true center column ---- */
.sh-nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sh-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sh-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14.5px;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    position: relative;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.sh-nav-link i {
    font-size: 13px;
    opacity: 0.7;
    transition: all 0.25s ease;
}

.sh-nav-link:hover {
    color: #009688;
    background: rgba(0, 150, 136, 0.08);
}

.sh-nav-link:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.sh-nav-link.active {
    color: #009688;
    background: rgba(0, 150, 136, 0.1);
    font-weight: 600;
}

.sh-nav-link.active i {
    opacity: 1;
}

/* Active underline dot */
.sh-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #009688;
}

/* ---- Right Actions — right-aligned in 3rd grid column ---- */
.sh-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

/* ---- Buttons ---- */
.sh-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.28s ease;
    white-space: nowrap;
}

/* Inquiry Button - Primary Gradient */
.sh-btn-inquiry {
    background: linear-gradient(135deg, #009688 0%, #00BCD4 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 150, 136, 0.35);
}

.sh-btn-inquiry:hover {
    background: linear-gradient(135deg, #00796B 0%, #0097A7 100%);
    color: #fff;
    box-shadow: 0 6px 22px rgba(0, 150, 136, 0.5);
    transform: translateY(-2px);
}

/* Login Button - Outline */
.sh-btn-login {
    background: transparent;
    color: #009688;
    border: 2px solid #009688;
}

.sh-btn-login:hover {
    background: #009688;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 150, 136, 0.3);
    transform: translateY(-2px);
}

/* User / My Account Button */
.sh-btn-user {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.sh-btn-user:hover {
    background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.45);
    transform: translateY(-2px);
}

/* ---- Hamburger ---- */
.sh-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(0, 150, 136, 0.08);
    border: 1.5px solid rgba(0, 150, 136, 0.2);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.sh-hamburger:hover {
    background: rgba(0, 150, 136, 0.15);
    border-color: #009688;
}

.sh-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #009688;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Hamburger open state */
.sh-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.sh-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.sh-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- Mobile Menu Drawer ---- */
.sh-mobile-menu {
    display: none;
    background: #fff;
    border-top: 1px solid rgba(0, 150, 136, 0.12);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    border-radius: 0 0 25px 25px;
}

.sh-mobile-menu.open {
    max-height: 500px;
    padding: 16px 20px 20px;
}

.sh-mobile-nav {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sh-mobile-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sh-mobile-nav li a i {
    width: 20px;
    text-align: center;
    color: #009688;
    font-size: 15px;
}

.sh-mobile-nav li a:hover,
.sh-mobile-nav li a.active {
    background: rgba(0, 150, 136, 0.08);
    color: #009688;
    padding-left: 22px;
}

.sh-mobile-nav li a.active {
    font-weight: 600;
}

.sh-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.sh-mobile-actions .sh-btn {
    justify-content: center;
}

/* ---- Responsive: Show Hamburger on Mobile ---- */
@media (max-width: 1199px) {
    .sh-logo-text {
        display: none;
    }
}

@media (max-width: 991px) {
    .sh-nav {
        display: none;
    }

    .sh-hamburger {
        display: flex;
    }

    .sh-mobile-menu {
        display: block;
    }

    .sh-header-wrap {
        padding: 10px 15px 0;
    }

    .sh-header-inner {
        padding: 0 16px 0 20px;
        height: 64px;
    }

    /* Hide text labels on small screens for action buttons in topbar */
    .sh-header-right .sh-btn-inquiry span,
    .sh-header-right .sh-btn-login span,
    .sh-header-right .sh-btn-user span {
        display: none;
    }

    .sh-header-right .sh-btn-inquiry,
    .sh-header-right .sh-btn-login,
    .sh-header-right .sh-btn-user {
        padding: 9px 12px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .sh-header-wrap {
        padding: 10px 10px 0;
    }

    .sh-header-inner {
        height: 58px;
        padding: 0 10px 0 14px;
        gap: 10px;
    }

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

/* ---- Spacing to offset fixed header on ALL pages ---- */
body {
    padding-top: 100px;
}

@media (max-width: 991px) {
    body {
        padding-top: 85px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 78px;
    }
}
