/**
 * Public site — compact mobile header (variant B)
 */

@media (max-width: 991.98px) {
    #strickymenu.site-header.menu-area {
        position: sticky;
        top: 0;
        z-index: 998;
        background: #fff;
        border-bottom: 1px solid #e8ecf1;
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
    }

    #strickymenu.site-header .site-header__row {
        min-height: 56px;
        margin-left: 0;
        margin-right: 0;
    }

    #strickymenu.site-header .site-header__logo-col {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
        min-width: 0;
    }

    #strickymenu.site-header .logo {
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
    }

    #strickymenu.site-header .logo img {
        height: 40px;
        width: auto;
        max-height: 44px;
    }

    #strickymenu.site-header .site-header__burger,
    #strickymenu.site-header .site-header__actions {
        flex: 0 0 auto;
        padding-left: 0;
        padding-right: 0;
    }

    #strickymenu.site-header .mobile-menuicon {
        display: none !important;
    }

    #strickymenu.sticky.site-header .logo {
        min-height: 0;
    }

    #strickymenu.sticky.site-header .logo img {
        height: 40px;
    }

    /* Cont pacient: fără hamburger — logo centrat, omuleț la dreapta (ca pe site, fără bandă goală stânga) */
    body.patient-portal-aligned #strickymenu.site-header .site-header__logo-col {
        flex: 1 1 auto;
        text-align: center;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    body.patient-portal-aligned #strickymenu.site-header .site-header__actions {
        margin-left: auto;
    }

    /* Pacient: fără drawer hamburger — wrapperul nu ocupă înălțime în pagină */
    body.patient-portal-aligned .mobile-menu {
        position: absolute;
        width: 0;
        height: 0;
        overflow: hidden;
        margin: 0;
        padding: 0;
        border: 0;
        clip: rect(0, 0, 0, 0);
    }
}

.site-header__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #1977f4;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-header__icon-btn:hover,
.site-header__icon-btn:focus {
    background: rgba(25, 119, 244, 0.08);
    color: #0c5ec4;
    outline: none;
}

a.site-header__icon-btn {
    text-decoration: none;
}

/*
 * Cookie consent (wpcc) — sub overlay-urile mobile (panou cont, backdrop).
 * Fără aceasta, bannerul poate acoperi bottom sheet-ul la click pe omuleț.
 */
.wpcc-container,
.wpcc {
    z-index: 9990 !important;
}

/* Backdrop — ascuns complet când panourile mobile sunt închise */
.site-header-backdrop {
    display: none !important;
    visibility: hidden;
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.site-header-backdrop.is-open {
    display: block !important;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

body.site-header-nav-open {
    overflow: hidden;
}

/* Panou cont (omuleț) — bottom sheet, separat de meniul hamburger */
.site-header-account-panel {
    position: fixed;
    inset: 0;
    z-index: 1000001;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0.25s ease;
}

.site-header-account-panel.is-open {
    pointer-events: auto;
    visibility: visible;
}

.site-header-account-panel__sheet {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.18);
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.site-header-account-panel.is-open .site-header-account-panel__sheet {
    transform: translateY(0);
}

.site-header-account-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.15rem 0.5rem;
    border-bottom: 1px solid #e8ecf1;
}

.site-header-account-panel__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.site-header-account-panel__close {
    border: 0;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    color: #64748b;
    padding: 0 0.25rem;
    cursor: pointer;
}

.site-header-account-panel__body {
    padding: 0.5rem 1rem 1.25rem;
}

.site-header-account-panel__user {
    margin: 0 0 0.65rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.site-header-account-panel__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.65rem;
    margin-bottom: 0.25rem;
    border-radius: 10px;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease;
}

.site-header-account-panel__link:hover {
    background: #f1f5f9;
    color: #1977f4;
    text-decoration: none;
}

.site-header-account-panel__link i {
    width: 1.25rem;
    text-align: center;
    color: #1977f4;
}

.site-header-account-panel__link--primary {
    background: rgba(25, 119, 244, 0.08);
    color: #1977f4;
    font-weight: 600;
}

.site-header-account-panel__link--primary:hover {
    background: rgba(25, 119, 244, 0.14);
}

/* Comutare site public ↔ cont pacient (Dashboard / Accesare website) */
.site-header-account-panel__link--portal-switch {
    margin-top: 0.35rem;
    padding-top: 0.55rem;
    border-top: 1px solid #e8ecf1;
    background: rgba(6, 116, 195, 0.07);
    font-weight: 600;
    color: #0674c3;
}

.site-header-account-panel__link--portal-switch i {
    color: #0674c3;
}

.site-header-account-panel__link--portal-switch:hover {
    background: rgba(6, 116, 195, 0.12);
    color: #056aad;
    text-decoration: none;
}

.site-header-account-panel__link--logout {
    color: #b91c1c;
    font-weight: 600;
}

.site-header-account-panel__link--logout:hover {
    background: rgba(185, 28, 28, 0.08);
    color: #991b1b;
}

/* Panou cont — variantă compactă pe mobil */
@media (max-width: 991.98px) {
    /* Hamburger sidenav peste backdrop, sub panoul cont */
    .mobile-menu .sidenav {
        z-index: 99999;
    }

    .site-header-account-panel__sheet {
        border-radius: 12px 12px 0 0;
        max-height: min(70vh, 480px);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .site-header-account-panel__header {
        padding: 0.55rem 0.85rem 0.35rem;
        flex-shrink: 0;
    }

    .site-header-account-panel__title {
        font-size: 0.9375rem;
        line-height: 1.25;
    }

    .site-header-account-panel__close {
        font-size: 1.4rem;
        padding: 0;
        margin: -0.1rem -0.05rem 0 0;
    }

    .site-header-account-panel__body {
        padding: 0.2rem 0.7rem 0.65rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-header-account-panel__user {
        margin: 0 0 0.3rem;
        padding: 0 0.1rem;
        font-size: 0.8125rem;
        line-height: 1.3;
        color: #64748b;
    }

    .site-header-account-panel__link {
        gap: 0.55rem;
        padding: 0.48rem 0.4rem;
        margin-bottom: 0;
        font-size: 0.875rem;
        line-height: 1.25;
        border-radius: 8px;
        min-height: 40px;
    }

    .site-header-account-panel__link i {
        width: 1.05rem;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .site-header-account-panel__link--portal-switch {
        margin-top: 0.25rem;
        padding-top: 0.5rem;
    }

    .site-header-account-panel__link--logout {
        margin-top: 0.15rem;
        padding-top: 0.48rem;
        border-top: 1px solid #e8ecf1;
    }

    /* Panou cont deschis: cookie consent rămâne vizibil pe site, dar sub sheet */
    body.site-header-account-open .wpcc-container,
    body.site-header-account-open .wpcc {
        z-index: 8990 !important;
    }
}

@media (min-width: 992px) {
    .site-header-account-panel {
        display: none !important;
    }
}

/* Sidenav refresh */
.mobile-menu .sidenav {
    padding-top: 48px;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
}

.mobile-menu .sidenav ul.sidenav-nav {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 8px;
}

.sidenav-section {
    padding: 12px 26px 4px;
}

.sidenav-section__title {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.sidenav-section__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #fff;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.sidenav-section__link:hover {
    color: #93c5fd;
    text-decoration: none;
}

.sidenav-section__link i {
    width: 20px;
    text-align: center;
    opacity: 0.85;
}

.sidenav-section__link span {
    word-break: break-word;
}

.sidenav-section__link--emphasis {
    font-weight: 600;
    color: #7dd3fc;
}

.sidenav-section__link--emphasis:hover {
    color: #bae6fd;
}

@media (min-width: 992px) {
    .site-header-backdrop,
    .site-header-backdrop.is-open {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* CTA programare — header mobil + meniu */
.site-header__cta-col {
    flex: 0 1 auto;
    min-width: 0;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
}

.site-header__cta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    max-width: 7.5rem;
    height: 36px;
    padding: 0 0.65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #0674c3 0%, #0ea5e9 100%);
    color: #fff !important;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(6, 116, 195, 0.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-header__cta-pill:hover {
    color: #fff !important;
    filter: brightness(1.05);
}

.site-header__cta-pill i {
    flex-shrink: 0;
    font-size: 0.85rem;
}

@media (max-width: 380px) {
    .site-header__cta-pill span {
        display: none;
    }

    .site-header__cta-pill {
        width: 36px;
        max-width: 36px;
        padding: 0;
    }
}

body.site-public-v2 .site-header__btn-booking {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 0.85rem;
    margin-right: 0.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #0674c3 0%, #0ea5e9 100%);
    color: #fff !important;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(6, 116, 195, 0.3);
    white-space: nowrap;
}

body.site-public-v2 .site-header__btn-booking:hover {
    color: #fff !important;
    filter: brightness(1.05);
}

.sidenav-cta {
    padding: 0 22px 14px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidenav-cta__primary,
.sidenav-cta__secondary {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.8rem 0.9rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s ease;
}

.sidenav-cta__primary {
    background: linear-gradient(135deg, #0674c3 0%, #0ea5e9 100%);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(6, 116, 195, 0.35);
}

.sidenav-cta__primary:hover {
    color: #fff !important;
    filter: brightness(1.06);
}

.sidenav-cta__secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.sidenav-cta__secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff !important;
}

.sidenav-cta__primary i,
.sidenav-cta__secondary i {
    width: 1.15rem;
    text-align: center;
}

/* Homepage hero — titlu sus în banner (nu centrat 50%, ascuns sub header) */
@media (max-width: 991.98px) {
    .banner_area {
        min-height:  min(80vh, 640px);
        overflow: visible;
    }

    .banner_area .slider_text_area {
        top: 0.5rem;
        left: 0;
        right: 0;
        width: 100%;
        padding: 0.5rem 1rem 1rem;
        transform: none;
        z-index: 10;
        box-sizing: border-box;
    }

    .banner_area .text-animateds h1 {
        font-size: 1.45rem;
        line-height: 1.25;
        margin: 0 0 0.35rem;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
    }

    .banner_area .text-animateds p {
        font-size: 0.9rem;
        line-height: 1.45;
        margin: 0 0 0.75rem;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
    }

    .banner_area .banner_search_container {
        background: rgba(255, 255, 255, 0.98);
        padding: 0.65rem;
        border-radius: 10px;
        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.15);
    }
}

@media (max-width: 575.98px) {
    .banner_area .text-animateds h1 {
        font-size: 1.28rem;
    }
}
