/* Custom styles for Resurrection Cycle */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf6f3;
}
::-webkit-scrollbar-thumb {
    background: #a1153a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #841434;
}

/* Navigation scroll state */
.nav-scrolled {
    background: rgba(250, 246, 243, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-link {
    color: #1a1a1a !important;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transitions */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-menu-closed {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hero image hover */
.hero-img-wrapper:hover img {
    transform: scale(1.03);
}

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

/* Input focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(161, 21, 58, 0.15);
}

/* Selection color */
::selection {
    background: #a1153a;
    color: #faf6f3;
}

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

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

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

/* Body lock when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Image hover zoom */
overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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