/* Custom styles for Ms. J'S Braiding */

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

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-link {
    color: #3a3e45 !important;
}

.nav-scrolled .font-display.text-charcoal-900 {
    color: #1a1c20 !important;
}

.nav-scrolled .font-body.text-charcoal-500 {
    color: #5f646d !important;
}

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

.hero img {
    will-change: transform;
}

/* Scroll reveal base - content is visible by default */
.scroll-reveal {
    /* Default: visible, no animation needed */
}

/* Scroll reveal animation - only when JS adds the class */
.scroll-reveal.revealed {
    animation: revealUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu.open {
    max-height: 500px;
}

.mobile-nav-link {
    position: relative;
    padding-left: 0;
    transition: color 0.3s, padding-left 0.3s;
}

.mobile-nav-link:hover {
    color: #ff6b35 !important;
    padding-left: 12px;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #ff6b35;
    transition: width 0.3s;
}

.mobile-nav-link:hover::before {
    width: 6px;
}

/* Back to top */
.back-to-top.visible {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

/* Service card hover - image scale within rounded container */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Custom selection color */
::selection {
    background: #ff6b35;
    color: white;
}

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

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal.revealed {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .group:hover .group-hover\:scale-110 {
        transform: none;
    }
    
    .back-to-top {
        transition: none;
    }
}

/* Gallery image hover overlay */
.relative.overflow-hidden.rounded-2xl.group:hover .absolute.inset-0 {
    background: rgba(15, 17, 20, 0.4);
}

/* Subtle gradient for hero text */
.text-coral-400 {
    background: linear-gradient(135deg, #ffb088, #ff6b35, #f05018);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form select dropdown styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%235f646d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

/* Card hover shadow enhancement */
.hover\:shadow-2xl {
    transition: box-shadow 0.4s ease;
}

/* Smooth image loading */
img {
    loading: lazy;
}
