/* ============================================
   Hama Hama Seafood Company — Custom Styles
   ============================================ */

/* Base reset & smooth scroll */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Custom selection color */
::selection {
    background: rgba(161, 16, 48, 0.15);
    color: #3d0712;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.4s ease;
}

img[data-src] {
    opacity: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .img-zoom {
        transition: none;
    }
    
    .cursor-dot {
        display: none;
    }
}

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

.mobile-menu-open #line2 {
    transform: rotate(-45deg) translate(3px, -3px);
}

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

.mobile-menu-open body {
    overflow: hidden;
}

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

/* Subtle grain texture overlay on body */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    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");
}

/* Navbar scroll state */
nav.scrolled {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Scroll reveal base state (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Thin decorative line animation */
.line-thin,
.line-plum {
    transition: opacity 0.3s ease;
}

/* Button hover lift */
a[href="tel:+13608775811"] {
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a[href="tel:+13608775811"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(161, 16, 48, 0.2);
}
