/* ========================================
   Escape Face & Body Wellness
   Custom Styles
   ======================================== */

/* Base & Typography */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9f3;
}
::-webkit-scrollbar-thumb {
    background: #d4a9b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #be2544;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #711f31;
}

/* ========================================
   Navigation
   ======================================== */
.nav-link {
    color: rgba(253, 252, 251, 0.7);
}

.nav-link:hover {
    color: #fce7eb;
}

/* Scrolled state */
nav.scrolled {
    background: rgba(61, 12, 21, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.15);
}

nav.scrolled .nav-link {
    color: rgba(253, 252, 251, 0.8);
}

nav.scrolled .nav-link:hover {
    color: #fce7eb;
}

nav.scrolled #logo-text,
nav.scrolled #logo-subtext,
nav.scrolled #logo-ring {
    color: #fce7eb;
    border-color: rgba(252, 231, 235, 0.3);
}

/* Transparent nav (hero state) */
nav:not(.scrolled) #logo-text,
nav:not(.scrolled) #logo-subtext {
    color: #fce7eb;
}

nav:not(.scrolled) #logo-ring {
    color: #fce7eb;
    border-color: rgba(252, 231, 235, 0.4);
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* ========================================
   Service Cards
   ======================================== */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ========================================
   Gallery
   ======================================== */
.gallery-item {
    cursor: pointer;
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-link:hover {
    color: #be2544;
    transform: scale(1.02);
}

/* Hamburger Animation */
#hamburger span {
    transition: all 0.3s ease;
}

#menu-btn.active #hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-btn.active #hamburger span:nth-child(2) {
    opacity: 0;
}

#menu-btn.active #hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ========================================
   Back to Top
   ======================================== */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

/* ========================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* ========================================
   Form Styles
   ======================================== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239f1a34' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 767px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    #hero h1 br {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #hero h1 {
        font-size: 3.5rem;
    }
}
