/* Custom styles for Scissors 728 Barbershop */

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

/* Hero animations */
.hero-badge {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-headline {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.hero-cta {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.1s;
}

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

/* Scroll reveal (below-fold only) */
.reveal-section {
    /* Default state: visible — progressive enhancement applied by JS */
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

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

/* Subtle hover effects on cards */
.group:hover .group-hover\\:bg-teal-500 {
    background-color: rgb(13, 148, 136);
}

/* Custom selection color */
::selection {
    background-color: rgb(20, 184, 166);
    color: white;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .hero-badge,
    .hero-headline,
    .hero-subtitle,
    .hero-cta {
        opacity: 1;
        animation: none;
    }
    .reveal-section {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .group img {
        transition: none;
    }
}

/* Image loading placeholder */
img {
    background-color: rgb(226, 232, 240);
}
