/* Custom styles for Dunkin' Donuts Gibbstown */

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

/* Selection color */
::selection {
    background: rgba(255, 103, 0, 0.3);
    color: #fff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a28;
}
::-webkit-scrollbar-thumb {
    background: #333345;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #FF6700;
}

/* Nav scroll state */
#nav.scrolled {
    background: rgba(15, 15, 24, 0.95);
    box-shadow: 0 1px 0 rgba(255, 103, 0, 0.1);
}

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

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

/* Hamburger animation */
#menuToggle.active #bar1 {
    transform: translateY(6px) rotate(45deg);
}
#menuToggle.active #bar2 {
    opacity: 0;
}
#menuToggle.active #bar3 {
    transform: translateY(-6px) rotate(-45deg);
}

/* Donut hover glow */
a[href^="tel:"]:hover {
    text-shadow: 0 0 20px rgba(255, 103, 0, 0.5);
}

/* Image lazy-load fade */
img[loading="lazy"] {
    transition: opacity 0.4s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .reveal.delay-1,
    .reveal.delay-2,
    .reveal.delay-3,
    .reveal.delay-4 {
        transition-delay: 0s !important;
    }
    img {
        transition: none !important;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* Large desktop */
@media (min-width: 1024px) {
    .reveal.visible {
        transform: translateY(0);
    }
}
