/* Custom styles for West End Barber Shop */

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

/* Selection color */
::selection {
    background: #3d8b3d;
    color: #faf9f6;
}

/* Smooth image rendering */
img {
    -webkit-font-smoothing: antialiased;
}

/* Prevent content flash on scroll */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #3d8b3d;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu animations */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Menu button animation */
.menu-line.active-1 {
    transform: translateY(6px) rotate(45deg);
}
.menu-line.active-2 {
    opacity: 0;
}
.menu-line.active-3 {
    transform: translateY(-6px) rotate(-45deg);
}

/* Thin line gradient */
.thin-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(61, 139, 61, 0.3), transparent);
}

/* Card hover effects */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(27, 85, 27, 0.12);
}

/* Navbar scroll state */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(27, 85, 27, 0.06);
}

/* Map filter for dark theme harmony */
iframe[src*="google.com/maps"] {
    transition: filter 0.3s ease;
}

iframe[src*="google.com/maps"]:hover {
    filter: saturate(0.8) brightness(1.0) contrast(0.9);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hover-lift:hover {
        transform: none;
    }

    img {
        transition: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .hover-lift {
        border: 1px solid currentColor;
    }
}

/* Print styles */
@media print {
    nav,
    #gallery,
    .hover-lift,
    .reveal {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.75rem;
        opacity: 0.6;
    }
}
