/* ===================================
   BLISSFUL NAIL SPA — CUSTOM STYLES
   =================================== */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #d4562d;
    color: #fdf2ee;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #faf8f4;
}

::-webkit-scrollbar-thumb {
    background: #d4cfc8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4562d;
}

/* --- Navbar --- */
.nav {
    background: rgba(250, 248, 244, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 207, 200, 0.3);
    transition: all duration-500;
}

.nav.scrolled {
    background: rgba(250, 248, 244, 0.97);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav.scrolled .nav-logo-text {
    color: #242019;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #d4562d;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Mobile Menu --- */
.mobile-menu {
    background: rgba(250, 248, 244, 0.98);
    backdrop-filter: blur(20px);
}

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

.mobile-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* --- Hero --- */
.hero {
    position: relative;
}

.hero-gradient {
    background: linear-gradient(135deg, #faf5eb 0%, #fdf8f4 40%, #fdf2ee 100%);
}

.hero-image-wrapper {
    opacity: 0;
    transform: translateY(30px);
}

.hero-image-wrapper[data-animate] {
    opacity: 0;
    transform: translateY(30px);
}

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

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

/* --- Scroll Indicator --- */
.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 0.3; }
}

/* --- Section Labels --- */
.section-label {
    letter-spacing: 0.25em;
}

/* --- Service Cards --- */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #d4562d 0%, #b8431e 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

/* --- Gallery --- */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(36, 32, 25, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- About Image Grid --- */
.about-image-grid {
    position: relative;
}

.about-img-secondary {
    border: 4px solid #faf8f4;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Progressively enhanced — hidden by default, shown via JS */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero-specific reveals — also progressively enhanced */
.hero-badge,
.hero-text,
.hero-actions,
.hero-stats {
    opacity: 0;
    transform: translateY(20px);
}

@media (prefers-reduced-motion: no-preference) {
    .hero-badge.revealed,
    .hero-text.revealed,
    .hero-actions.revealed,
    .hero-stats.revealed,
    .hero-image-wrapper.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- CTA Buttons --- */
.cta-primary {
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* --- Footer --- */
.footer {
    position: relative;
}

/* --- Utility --- */
.font-serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-sans {
    font-family: 'Inter', system-ui, sans-serif;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .hero-headline {
        font-size: 2.75rem;
    }
    
    .hero-headline span.block {
        font-size: 2.25rem;
    }
    
    .hero-float-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        max-width: 100%;
    }
    
    .about-img-secondary {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        height: 200px;
        margin-top: 1rem;
    }
    
    .about-badge {
        position: relative;
        top: auto;
        left: auto;
        display: inline-block;
        margin-bottom: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-headline {
        font-size: 4rem;
    }
    
    .hero-headline span.block {
        font-size: 3.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-headline {
        font-size: 5.5rem;
    }
    
    .hero-headline span.block {
        font-size: 4.5rem;
    }
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #d4562d;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Print --- */
@media print {
    .nav,
    .scroll-indicator,
    .gallery-item::after {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
