/* Custom styles for Twisted Scissors */

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

/* Selection color */
::selection {
    background: rgba(42, 64, 30, 0.2);
    color: #2a401e;
}

/* Custom focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #9dc08a;
    outline-offset: 2px;
}

/* Loading state for images */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}
img[data-src] {
    opacity: 0;
}

/* Mobile menu animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mobileMenu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

#mobileMenu.open a {
    animation: slideDown 0.3s ease forwards;
}

#mobileMenu.open a:nth-child(1) { animation-delay: 0.05s; }
#mobileMenu.open a:nth-child(2) { animation-delay: 0.1s; }
#mobileMenu.open a:nth-child(3) { animation-delay: 0.15s; }
#mobileMenu.open a:nth-child(4) { animation-delay: 0.2s; }
#mobileMenu.open a:nth-child(5) { animation-delay: 0.25s; }

/* Hamburger animation */
body.menu-open #menuLine1 {
    transform: rotate(45deg) translate(3px, 3px);
}
body.menu-open #menuLine2 {
    opacity: 0;
}
body.menu-open #menuLine3 {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 24px;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Subtle parallax for hero (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .hero-gradient-animated {
        will-change: background-position;
    }
}

/* Print styles */
@media print {
    nav, #contactForm, .reveal { display: none; }
    body { color: #000; background: #fff; }
    .hero-gradient-animated { background: #2a401e !important; }
}
