/* ============================================
   PLH Hair Studio - Custom Styles
   ============================================ */

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

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

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

/* Navbar */
.navbar-scrolled {
    background: rgba(250, 246, 241, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.navbar-scrolled .font-serif,
.navbar-scrolled a:not(.bg-terracotta) {
    color: #292524 !important;
}

/* Mobile Menu */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service Cards */
.service-card {
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: rgba(217, 82, 48, 0.1);
}

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

.gallery-item:hover img {
    transform: scale(1.05);
}

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

.testimonial-card::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    color: rgba(217, 82, 48, 0.08);
    position: absolute;
    top: -10px;
    left: 20px;
    line-height: 1;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* Hero animations - above the fold, always visible */
/* No opacity:0 on hero content - it renders immediately */

/* Smooth section transitions */
section {
    position: relative;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d95230;
    outline-offset: 2px;
}

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

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

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal.hidden-reveal {
        opacity: 1;
        transform: none;
    }
    
    .gallery-item:hover img,
    .service-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
    
    #hero h1 {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }
    
    .testimonial-card::before {
        font-size: 4rem;
    }
}
