/* Custom styles for Royal Cuts */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8f4;
}
::-webkit-scrollbar-thumb {
    background: #ff8a6e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #f04a28;
}

/* Selection color */
::selection {
    background: #ffd3c7;
    color: #2d3036;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Stagger children */
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Mobile menu transitions */
#mobileMenu {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mobile link transitions */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(253, 248, 244, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(30, 32, 37, 0.06);
}

/* Hamburger animation */
#menuIcon span:nth-child(1) {
    transform-origin: center;
}
#menuIcon span:nth-child(2) {
    transform-origin: center;
}
#menuIcon span:nth-child(3) {
    transform-origin: center;
}

#menuBtn.active #menuIcon span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
#menuBtn.active #menuIcon span:nth-child(2) {
    opacity: 0;
}
#menuBtn.active #menuIcon span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}

/* Image hover effects */
.group img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: visible;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #ff8a6e;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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