/* Best Care Salon - Serenity Spa Dark Luxury Theme & Micro-Animations */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300&family=Tajawal:wght@400;500;700&display=swap');

:root {
    --color-espresso: #1E1B18; /* Deep warm smoky espresso base */
    --color-espresso-surface: #26221E;
    --color-espresso-card: #2B2621;
    --color-tan-btn: #A07C5D; /* Signature warm ochre-tan pill */
    --color-tan-hover: #B38E6E;
    --color-tan-active: #8E6B4E;
    --color-ivory: #F3EFEA; /* Stately warm white text */
    --color-taupe: #B8ADA1; /* Muted description text */
    --color-brass: #8C7864; /* Fine ornament accents */
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-espresso);
}

[id] {
    scroll-margin-top: 6rem;
}

/* Lenis Butter-Smooth Kinetic Scroll Engine */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

body {
    background-color: var(--color-espresso);
    color: var(--color-taupe);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: var(--color-tan-btn);
    color: var(--color-ivory);
}

[dir="rtl"] body,
[dir="rtl"] {
    text-align: right;
    font-family: 'Tajawal', 'Cairo', sans-serif;
}

[dir="rtl"] h1, 
[dir="rtl"] h2, 
[dir="rtl"] h3, 
[dir="rtl"] h4 {
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

/* Serif Display Heading (Serenity Spa Editorial Aesthetics) */
.font-serenity {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    letter-spacing: -0.01em;
}

/* Warm Ochre-Tan Pill Button (Exact Screenshot Match) */
.btn-serenity-tan {
    background-color: var(--color-tan-btn);
    color: #F3EFEA;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    padding: 0.875rem 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-serenity-tan:hover {
    background-color: var(--color-tan-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(160, 124, 93, 0.35);
    color: #FFFFFF;
}

.btn-serenity-tan:active {
    transform: scale(0.97);
    background-color: var(--color-tan-active);
}

/* Circular Treatment Vignettes (Hover Zoom + Golden Aura Shimmer) */
.circular-vignette-frame {
    position: relative;
    border-radius: 9999px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid rgba(160, 124, 93, 0.25);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4), 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.circular-vignette-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
    filter: brightness(0.92) contrast(1.05);
}

.circular-vignette-container:hover .circular-vignette-frame {
    border-color: rgba(160, 124, 93, 0.8);
    box-shadow: 0 0 25px rgba(160, 124, 93, 0.3), 0 15px 35px -5px rgba(0, 0, 0, 0.6);
    transform: translateY(-4px);
}

.circular-vignette-container:hover .circular-vignette-frame img {
    transform: scale(1.08);
    filter: brightness(1) contrast(1.08);
}

.circular-vignette-container:hover .vignette-label {
    color: var(--color-ivory);
    transform: translateY(-1px);
}

.vignette-label {
    transition: all 0.3s ease;
}

/* Micro-Animation 1: Slow Continuous Rotating Circular Stamp (20s) */
@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spinSlow 24s linear infinite;
    transform-origin: center center;
}

/* Micro-Animation 2: Ambient Candle Glow Pulse */
@keyframes candleGlow {
    0%, 100% {
        opacity: 0.18;
        transform: scale(1);
    }
    50% {
        opacity: 0.28;
        transform: scale(1.06);
    }
}

.animate-candle-glow {
    animation: candleGlow 6s ease-in-out infinite;
}

/* Micro-Animation 3: Gentle Floating */
@keyframes softFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.animate-soft-float {
    animation: softFloat 4s ease-in-out infinite;
}

/* Navigation Animated Underline */
.nav-link-serenity {
    position: relative;
    padding-bottom: 4px;
    transition: color 0.25s ease;
}

.nav-link-serenity::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1.5px;
    background-color: var(--color-tan-btn);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link-serenity:hover::after,
.nav-link-serenity.active::after {
    width: 100%;
    left: 0;
}

/* Delicate Brass Section Flourish Ornament */
.brass-flourish {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    opacity: 0.65;
}

.brass-flourish::before,
.brass-flourish::after {
    content: '';
    display: block;
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8C7864, transparent);
}

/* Philosophy Card Hover Micro-Lift */
.philosophy-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.philosophy-card:hover {
    transform: translateY(-3px);
}

.philosophy-card:hover .philosophy-icon {
    transform: scale(1.1);
    color: var(--color-tan-btn);
}

.philosophy-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hairline borders */
.border-espresso-hairline {
    border: 1px solid rgba(255, 255, 255, 0.07);
}

/* Hide scrollbar */
.scrollbar-none::-webkit-scrollbar {
    display: none;
}
.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Mobile & Touch Responsive Enhancements */
html {
    -webkit-tap-highlight-color: transparent;
}

#wa-chat-popup {
    max-width: min(21rem, calc(100vw - 2rem));
}

@media (max-width: 639px) {
    /* Center the 7th vignette across 2 columns on mobile */
    .circular-vignette-container:last-child {
        grid-column: span 2 / span 2;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Touch friendly button height */
    .btn-serenity-tan {
        min-height: 46px;
    }

    /* Prevent iOS Safari from auto-zooming into inputs when focused */
    input, select, textarea {
        font-size: 16px !important;
    }
}
