/* Custom styles for Brewer's Barber Co. */

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

/* Navigation styles */
.nav-link {
    position: relative;
}

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

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

/* Mobile nav links */
.mobile-nav-link {
    position: relative;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0d2137;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #2fa67d;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero image hover effect */
.hero-img-container {
    overflow: hidden;
}

.hero-img-container img {
    transition: transform 0.7s ease;
}

.hero-img-container:hover img {
    transform: scale(1.03);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7895b6;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #89d9b7 !important;
    box-shadow: 0 0 0 1px #89d9b7 !important;
}

/* Button hover lift effect */
button, a {
    transition: all 0.3s ease;
}

/* Service card hover */
.group:hover .group-hover\:rotate-3 {
    transform: rotate(3deg);
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Mobile menu animation */
#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Menu button animation */
.menu-open .menu-line-1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-line-2 {
    opacity: 0;
}

.menu-open .menu-line-3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Subtle pattern overlay for sections */
.section-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(13, 33, 55, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Print styles */
@media print {
    header, footer, .scroll-reveal {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
