/* Custom styles for Patricia Michele Salon */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Base typography */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero gradient animation */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Scroll reveal base — content is VISIBLE by default */
.scroll-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);
}

/* Scroll reveal — animated state applied via JS only */
.scroll-reveal.revealed {
    opacity: 0;
    transform: translateY(30px);
}

.scroll-reveal.revealed.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    html {
        scroll-behavior: auto;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(250, 247, 242, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.navbar-scrolled .nav-logo-text {
    color: #1c1917 !important;
}

.navbar-scrolled .nav-subtext {
    color: #78716c !important;
}

.navbar-scrolled .menu-line {
    background: #1c1917 !important;
}

/* Mobile menu transitions */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.mobile-menu-open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-open .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }

/* Mobile menu button animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

#mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Image hover effects */
img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Custom selection color */
::selection {
    background: #f3b9a4;
    color: #3a0f08;
}

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

/* Button hover lift effect */
button, a {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Form input focus line animation */
input:focus,
textarea:focus {
    border-bottom-color: #d94a21 !important;
}

/* Subtle card hover */
.group:hover .group-hover\\:shadow-xl {
    box-shadow: 0 25px 50px -12px rgba(194, 58, 24, 0.08);
}

/* Gallery image hover */
.aspect-square {
    overflow: hidden;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure all text is readable */
.text-stone-500 {
    color: #6b7280;
}

.text-stone-600 {
    color: #4b5563;
}

.text-stone-800 {
    color: #1f2937;
}

/* Smooth image loading */
img {
    background-color: #f3e8d5;
}

/* Loading placeholder for images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}
