/* Custom styles for The Fuel House PDC */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf4f6;
}
::-webkit-scrollbar-thumb {
    background: #d12f4a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #af233a;
}

/* Selection color */
::selection {
    background: #f9d0d9;
    color: #400a12;
}

/* Base typography */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar transitions */
#navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(244, 169, 184, 0.2);
}

#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(112, 24, 42, 0.06);
}

/* Mobile menu */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

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

#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.25rem;
}

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        transition: none;
    }
    .group img {
        transition: none;
    }
}

/* Image aspect ratio utilities */
.aspect-cover {
    object-fit: cover;
}

/* Subtle hover effects for links */
a {
    text-decoration: none;
}

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

/* Ensure contrast on all text elements */
.text-plum-500 { color: #d12f4a; }
.text-plum-600 { color: #af233a; }
.text-plum-700 { color: #8e1c30; }
.text-plum-800 { color: #751829; }
.text-plum-950 { color: #400a12; }

/* Ensure all interactive elements have sufficient contrast */
button, a {
    cursor: pointer;
}

/* Print styles */
@media print {
    #navbar,
    #gallery,
    .reveal {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
