/* ===== E Beauty Bar – Shared Styles ===== */

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* Glass Effects */
.glass-cta {
    background: rgba(95, 94, 94, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-nav {
    background: rgba(250, 249, 246, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.editorial-shadow {
    box-shadow: 0 20px 40px -20px rgba(26, 28, 26, 0.06);
}

.editorial-gradient {
    background: linear-gradient(135deg, #5f5e5e 0%, #aeacac 100%);
}

/* ===== Mobile Bottom Nav Bar ===== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.75rem 1.5rem 1.5rem;
    background: rgba(250, 249, 246, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 50;
    border-radius: 1.5rem 1.5rem 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    color: #5f5e5e;
    opacity: 0.8;
    transition: all 0.2s ease;
    text-decoration: none;
}

.mobile-bottom-nav a:active {
    transform: scale(0.9);
}

.mobile-bottom-nav a .nav-label {
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-top: 2px;
}

.mobile-bottom-nav a.active {
    background: #5f5e5e;
    color: #ffffff;
    border-radius: 9999px;
    opacity: 1;
}

/* Add padding to main content to account for bottom nav on mobile */
@media (max-width: 767px) {
    body {
        padding-bottom: 5rem;
    }
}

/* ===== Mobile Hamburger Menu ===== */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    z-index: 60;
}

@media (max-width: 767px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .desktop-book-btn {
        display: none !important;
    }
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(250, 249, 246, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-overlay a {
    font-family: 'Noto Serif', serif;
    font-size: 1.5rem;
    color: #1a1c1a;
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.3s;
}

.mobile-menu-overlay a:hover {
    color: #76574d;
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    cursor: pointer;
    color: #1a1c1a;
}

/* ===== Before/After Comparison Slider ===== */
.ba-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 1rem;
    cursor: col-resize;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.ba-slider img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ba-slider .ba-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ba-slider .ba-after img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
}

.ba-slider .ba-handle {
    position: absolute;
    top: 0;
    width: 3px;
    height: 100%;
    background: #ffffff;
    z-index: 3;
    cursor: col-resize;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.ba-slider .ba-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ba-slider .ba-handle::before {
    content: '‹ ›';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #5f5e5e;
    letter-spacing: 6px;
    white-space: nowrap;
}

.ba-slider .ba-label {
    position: absolute;
    bottom: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-family: 'Manrope', sans-serif;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    z-index: 2;
    pointer-events: none;
}

.ba-slider .ba-label-before {
    left: 1rem;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    color: #fff;
}

.ba-slider .ba-label-after {
    right: 1rem;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    color: #1a1c1a;
}

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 5rem;
    left: 1rem;
    right: 1rem;
    z-index: 100;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-banner.hidden {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}

@media (min-width: 768px) {
    .cookie-banner {
        right: auto;
        width: 400px;
        bottom: 2rem;
        left: 2rem;
    }
}

/* ===== Smooth body transitions ===== */
html {
    scroll-behavior: smooth;
}

/* Award Badge Pulse */
@keyframes slow-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.award-pulse {
    animation: slow-pulse 4s ease-in-out infinite;
}

/* ===== Hero Section Enhancements ===== */

/* Ken Burns slow zoom */
@keyframes kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.hero-kenburns {
    animation: kenburns 20s ease-out forwards;
}

/* Staggered entrance animations */
@keyframes hero-fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes hero-scale-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes hero-slide-right {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.hero-animate-1 {
    opacity: 0;
    animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-animate-2 {
    opacity: 0;
    animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-animate-3 {
    opacity: 0;
    animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.hero-animate-4 {
    opacity: 0;
    animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.hero-animate-5 {
    opacity: 0;
    animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.hero-animate-6 {
    opacity: 0;
    animation: hero-fade-in 1.2s ease 1.2s forwards;
}

/* Floating image collage for desktop */
.hero-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    height: 100%;
}

.hero-collage-item {
    overflow: hidden;
    border-radius: 1.25rem;
    position: relative;
}

.hero-collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease;
}

.hero-collage-item:hover img {
    transform: scale(1.06);
}

.hero-collage-item:nth-child(1) {
    grid-row: 1 / 3;
    opacity: 0;
    animation: hero-scale-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-collage-item:nth-child(2) {
    opacity: 0;
    animation: hero-scale-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero-collage-item:nth-child(3) {
    opacity: 0;
    animation: hero-scale-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

/* Floating badge */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-float {
    animation: float 5s ease-in-out infinite;
}

/* Shimmer CTA button */
.hero-cta-shimmer {
    position: relative;
    overflow: hidden;
}

.hero-cta-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

/* Divider line animation */
@keyframes line-grow {
    from { width: 0; }
    to { width: 60px; }
}

.hero-line {
    display: inline-block;
    height: 1px;
    background: #76574d;
    animation: line-grow 1s ease 0.8s forwards;
    width: 0;
}

/* Mobile hero full-bleed */
@media (max-width: 767px) {
    .hero-section-enhanced {
        min-height: 100svh;
        padding-top: 0 !important;
    }

    .hero-section-enhanced .hero-text-col {
        position: relative;
        z-index: 20;
        padding-top: 6rem;
    }

    .hero-section-enhanced .hero-collage-col {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    .hero-section-enhanced .hero-collage-col::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to bottom,
            rgba(250, 249, 246, 0.15) 0%,
            rgba(250, 249, 246, 0.6) 40%,
            rgba(250, 249, 246, 0.92) 70%,
            rgba(250, 249, 246, 1) 100%
        );
        z-index: 1;
    }

    .hero-collage {
        display: block;
        height: 100%;
    }

    .hero-collage-item:nth-child(2),
    .hero-collage-item:nth-child(3) {
        display: none;
    }

    .hero-collage-item:nth-child(1) {
        grid-row: auto;
        border-radius: 0;
        height: 100%;
    }
}

/* Stats counter bar */
.hero-stats {
    display: flex;
    gap: 2rem;
}

.hero-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.hero-stats .stat-number {
    font-family: 'Noto Serif', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #76574d;
    line-height: 1;
}

.hero-stats .stat-label {
    font-family: 'Manrope', sans-serif;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #50453b;
    font-weight: 600;
}
