/* Custom scrollbar to mimic premium feel */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
}
::-webkit-scrollbar-thumb:hover {
    background: #FCFCFC;
}

/* 3D Flip Ticker Animation */
.ticker-3d-wrapper {
    perspective: 500px;
}

.ticker-3d-item {
    opacity: 0;
    transform: rotateX(90deg);
    backface-visibility: hidden;
}

@keyframes flip-ticker {
    0% {
        opacity: 0;
        transform: rotateX(90deg);
    }
    /* message enters and stays */
    5%, 25% {
        opacity: 1;
        transform: rotateX(0deg);
    }
    /* message exits */
    30%, 100% {
        opacity: 0;
        transform: rotateX(-90deg);
    }
}

/* Smooth underline animation */
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1.5px;
    bottom: -4px;
    left: 0;
    background-color: #fcfcfc;
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.group:hover > .nav-link::after {
    width: 100%;
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

.mask-gradient {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Ensure existing scroll animation works */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-scroll {
    animation: scroll 30s linear infinite;
}

/* Fix header overlapping with WP Admin Bar */
body.admin-bar header.fixed {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar header.fixed {
        top: 46px;
    }
}

/* ═══ Treatment Content Typography ═══ */
.treatment-content h2,
.treatment-content h3,
.treatment-content h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #fff;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.treatment-content h2 { font-size: 1.875rem; }
.treatment-content h3 { font-size: 1.5rem; }
.treatment-content h4 { font-size: 1.25rem; color: #FCFCFC; }
.treatment-content p { margin-bottom: 1.25rem; }
.treatment-content strong,
.treatment-content b {
    color: #e5e5e5;
    font-weight: 600;
}
.treatment-content a {
    color: #FCFCFC;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s;
}
.treatment-content a:hover { color: #fff; }
.treatment-content ul,
.treatment-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.treatment-content ul { list-style: disc; }
.treatment-content ol { list-style: decimal; }
.treatment-content li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}
.treatment-content li::marker { color: #FCFCFC; }
.treatment-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}
.treatment-content table th,
.treatment-content table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: left;
}
.treatment-content table th {
    color: #FCFCFC;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}
.treatment-content table td { color: #a3a3a3; }
.treatment-content blockquote {
    border-left: 2px solid #FCFCFC;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #d4d4d4;
}

/* ═══ Split-Screen Explorer Responsive Heights & Above-The-Fold Visibility ═══ */
#tDisplayDesc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-height: 820px) {
    #tInfoCard {
        padding-top: 1.25rem !important;
        padding-bottom: 2rem !important;
    }
    #tDisplayTitle {
        font-size: 1.85rem !important;
        line-height: 1.15 !important;
        margin-bottom: 0.375rem !important;
    }
    #tDisplayDesc {
        -webkit-line-clamp: 2 !important;
        font-size: 0.8125rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.625rem !important;
    }
    #tInfoCard .mb-3\.5, #tInfoCard .mb-4, #tInfoCard .mb-5, #tInfoCard .mb-6 {
        margin-bottom: 0.625rem !important;
    }
}

/* ═══ Floating WhatsApp Concierge Widget ═══ */
.face-floating-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.face-floating-widget:hover {
    transform: translateY(-6px) scale(1.03);
}

/* Outer concentric luxury ring structure matching reference image */
.face-floating-avatar-ring {
    position: relative;
    width: 82px;
    height: 82px;
    border-radius: 9999px;
    padding: 3px;
    /* Clean dark titanium / obsidian outer border with precision rim */
    background: #000000;
    border: 2px solid #222222;
    box-shadow: 
        0 14px 35px -5px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 0 25px rgba(0, 0, 0, 0.6);
    transition: all 0.35s ease;
}
.face-floating-widget:hover .face-floating-avatar-ring {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 18px 45px -5px rgba(0, 0, 0, 0.95),
        0 0 0 1.5px rgba(255, 255, 255, 0.22),
        0 0 30px rgba(37, 211, 102, 0.22);
}

/* Inner framed avatar */
.face-floating-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
    background-color: #121212;
    /* Clean 1px inner contrast rim */
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.face-floating-avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.face-floating-widget:hover .face-floating-avatar-inner img {
    transform: scale(1.08);
}

/* Pulsing Green Online Indicator (Top-Right) */
.face-floating-online-dot {
    position: absolute;
    top: 2px;
    right: 4px;
    width: 14px;
    height: 14px;
    z-index: 3;
    pointer-events: none;
}
.face-floating-pulse {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background-color: #25D366;
    opacity: 0.75;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.face-floating-dot {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background-color: #25D366;
    border: 2px solid #000000;
    box-shadow: 0 0 8px rgba(37, 211, 102, 0.8);
}

/* WhatsApp Icon Badge (Bottom-Right) */
.face-floating-badge {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #2ae770 0%, #20ba5a 100%);
    border: 2.5px solid #000000;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6), 0 0 12px rgba(37, 211, 102, 0.35);
    z-index: 3;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.face-floating-widget:hover .face-floating-badge {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.8), 0 0 18px rgba(37, 211, 102, 0.6);
}
.face-floating-badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    margin-left: 0.5px;
    margin-top: 0.5px;
}

/* Editorial Floating Pill Label */
.face-floating-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 14, 14, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 3.5px 12px;
    border-radius: 9999px;
    box-shadow: 
        0 6px 16px -2px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}
.face-floating-label span {
    color: #F5F5F5;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.4;
    transition: color 0.3s ease;
}
.face-floating-widget:hover .face-floating-label {
    background: #FCFCFC;
    border-color: #ffffff;
    box-shadow: 
        0 8px 22px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(252, 252, 252, 0.35);
}
.face-floating-widget:hover .face-floating-label span {
    color: #0a0a0a;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .face-floating-widget {
        bottom: 22px;
        right: 20px;
        gap: 6px;
    }
    .face-floating-avatar-ring {
        width: 72px;
        height: 72px;
        padding: 2.5px;
    }
    .face-floating-badge {
        width: 24px;
        height: 24px;
        border-width: 2px;
    }
    .face-floating-badge svg {
        width: 12px;
        height: 12px;
    }
    .face-floating-online-dot {
        top: 1px;
        right: 3px;
        width: 12px;
        height: 12px;
    }
    .face-floating-dot {
        width: 8px;
        height: 8px;
    }
    .face-floating-label {
        padding: 3px 10px;
    }
    .face-floating-label span {
        font-size: 9px;
        letter-spacing: 0.12em;
    }
}

/* ═══ Video Concierge Popup Modal ═══ */
.face-video-modal {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    width: 320px;
    max-width: calc(100vw - 40px);
    border-radius: 20px;
    overflow: hidden;
    background: #0a0a0a;
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 25px 60px -10px rgba(0, 0, 0, 0.95),
        0 0 0 1px rgba(0, 0, 0, 0.75),
        0 0 35px rgba(252, 252, 252, 0.1);
    transform: translateY(20px) scale(0.92);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.face-video-modal.is-active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.face-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #000000;
    overflow: hidden;
}
.face-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Subtle top/bottom film shadow */
.face-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, transparent 25%, transparent 60%, rgba(0, 0, 0, 0.85) 100%);
    pointer-events: none;
    z-index: 1;
}
/* Close Button */
.face-video-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: all 0.2s ease;
}
.face-video-close:hover {
    background: #ffffff;
    color: #000000;
    transform: rotate(90deg) scale(1.05);
}
.face-video-close svg {
    width: 14px;
    height: 14px;
}
/* Sound Mute / Unmute Toggle */
.face-video-sound-toggle {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 30px;
    height: 30px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: all 0.2s ease;
}
.face-video-sound-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}
.face-video-sound-toggle svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}
/* Bottom CTA Action Bar */
.face-video-cta-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 14px 16px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.face-video-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: #25D366;
    color: #000000;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: all 0.25s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.face-video-cta-btn:hover {
    background: #20ba5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    transform: translateY(-2px);
}
.face-video-cta-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

@media (max-width: 640px) {
    .face-video-modal {
        bottom: 20px;
        right: 18px;
        width: 280px;
        border-radius: 16px;
    }
    .face-video-cta-bar {
        padding: 12px;
    }
    .face-video-cta-btn {
        padding: 11px 14px;
        font-size: 10px;
    }
}

