/* Custom styles — progressive enhancement for Baker Victory Services */

/* Smooth focus visible outlines */
*:focus-visible {
    outline: 2px solid #a31a34;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #f9d0d9;
    color: #3b0711;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile menu animations */
#mobile-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

#mobile-menu.closed {
    max-height: 0;
    opacity: 0;
}

/* Hamburger animation */
#menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .hamburger-line:nth-child(3) {
    width: 6px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Scroll reveal — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Button hover lift */
.btn-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(163, 26, 52, 0.25);
}

/* Nav scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

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

.nav-scrolled .nav-logo-text {
    color: #a31a34 !important;
}

.nav-scrolled .hamburger-line {
    background: #1f2937 !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f9fafb;
}

::-webkit-scrollbar-thumb {
    background: #fca5b5;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a31a34;
}

/* Print styles */
@media print {
    header, footer, #contact-form, .btn-lift { display: none !important; }
    body { color: #000; background: #fff; }
    a { color: #000; text-decoration: underline; }
}
