/* ============================================
   3 Generations Salon — Custom Styles
   ============================================ */

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

body {
    font-family: 'Raleway', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-display {
    font-family: 'Playfair Display', Georgia, serif;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #080E14;
}
::-webkit-scrollbar-thumb {
    background: #D4A853/30;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4A853/50;
}

/* --- Navbar --- */
.nav-scrolled {
    background: rgba(8, 14, 20, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 83, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-scrolled .nav-link {
    color: rgba(253, 248, 240, 0.8) !important;
}

/* --- Hero Floating Cards --- */
.floating-card-1 {
    animation: float1 6s ease-in-out infinite;
}
.floating-card-2 {
    animation: float2 7s ease-in-out infinite;
}
.floating-card-3 {
    animation: float3 5.5s ease-in-out infinite;
}
.floating-card-4 {
    animation: float4 6.5s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) translateX(0); }
    50% { transform: translateY(-12px) translateX(4px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) translateX(0); }
    50% { transform: translateY(-8px) translateX(-3px); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) translateX(0); }
    50% { transform: translateY(-15px) translateX(2px); }
}

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

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4A853, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

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

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

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

/* --- Testimonial Cards --- */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    color: rgba(212, 168, 83, 0.06);
    line-height: 1;
    pointer-events: none;
}

/* --- Scroll Reveal (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .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; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* --- Mobile Menu --- */
.mobile-nav-link {
    position: relative;
}

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

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

/* --- Gold Gradient Text Utility --- */
.text-gold-gradient {
    background: linear-gradient(135deg, #D4A853, #F0D78C, #B8860B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Selection --- */
::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #FDF8F0;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .floating-card-1, .floating-card-2, .floating-card-3, .floating-card-4 {
        animation: none;
    }
}

/* --- Back to top button --- */
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* --- Form focus styles --- */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* --- Mobile responsive adjustments --- */
@media (max-width: 640px) {
    .font-display {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}
