/* Custom styles for A & L Fast Food to Go */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #111111;
}
::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e05228;
}

/* Selection color */
::selection {
    background: #e05228;
    color: #fefce8;
}

/* Reveal animations — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: always visible if JS is disabled */
.no-js .reveal,
.reveal {
    opacity: 1;
    transform: none;
}

/* Navbar styles */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(224, 82, 40, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

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

#mobile-menu a {
    font-size: 1.75rem;
}

/* Mobile menu animation */
.menu-line {
    display: block;
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
#menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.5rem;
}

/* Gold accent line */
.gold-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #e05228, transparent);
}

/* Image hover overlay */
.group:hover .group-img {
    transform: scale(1.05);
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #e05228;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Map container */
iframe {
    filter: saturate(0.7) brightness(0.85) contrast(1.1);
    transition: filter 0.3s ease;
}
iframe:hover {
    filter: saturate(0.9) brightness(0.9) contrast(1.05);
}

/* Prevent content flash on load */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure hero is always visible */
#top {
    min-height: 100vh;
    min-height: 100dvh;
}

/* Subtle pattern overlay for dark sections */
.bg-pattern-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.02) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}
