/* Custom overrides and utilities for Bylo Gyro Parma */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 64px;
}

/* Selection color */
::selection {
    background: #f05a28;
    color: #fff;
}

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

/* Image hover zoom */
.hero-img-wrapper img,
section img {
    transition: transform 0.6s ease;
}

.hero-img-wrapper:hover img {
    transform: scale(1.02);
}

/* Subtle grain texture overlay on body */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Mobile menu animation */
#mobile-menu {
    transition: opacity 0.3s ease;
}
#mobile-menu.open {
    opacity: 1;
}
#mobile-menu:not(.open) {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
.menu-bar {
    transition: all 0.3s ease;
}
.menu-toggle.active .menu-bar:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
.menu-toggle.active .menu-bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .menu-bar:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Loading state for images */
img {
    background: linear-gradient(135deg, #e5e5e5 0%, #f5f5f5 100%);
}
