/* Castellano's Pizza Cove — custom styles */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle underline on hover for text links */
a {
    text-decoration: none;
}

/* Selection color */
::selection {
    background-color: rgba(188, 42, 50, 0.15);
    color: #3a0a0e;
}

/* Mobile menu line animation */
#mobile-menu.open .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}
#mobile-menu.open .menu-line:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #dc3f47;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #fdf0f1;
}
::-webkit-scrollbar-thumb {
    background: #f9c5c9;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ec6168;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#mobile-menu.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
#mobile-menu:not(.hidden) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Mobile link hover */
.mobile-link {
    transition: color 0.2s ease;
}
.mobile-link:hover {
    color: #bc2a32;
}

/* Subtle parallax for hero background */
#hero .absolute.inset-0 img {
    will-change: transform;
}

/* Print styles */
@media print {
    header, footer, .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    #hero {
        min-height: auto;
        padding: 2rem 0;
    }
}
