/* ===== Faith Fabrication — Custom Styles ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1A1D20;
}
::-webkit-scrollbar-thumb {
    background: #3D4044;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E8734A;
}

/* Selection color */
::selection {
    background: rgba(232, 115, 74, 0.3);
    color: #1A1D20;
}

/* Navbar transition states */
#navbar.scrolled {
    background: rgba(26, 29, 32, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

#navbar.scrolled .menu-line {
    background: #F5F5F4;
}

/* Mobile menu animation */
#mobileMenu.open {
    translate: 0;
}

/* Menu lines animation */
.menu-line.active:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
.menu-line.active:nth-child(2) {
    opacity: 0;
}
.menu-line.active:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

/* Service card hover */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, background-color 0.5s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Gallery items */
.gallery-item {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: box-shadow 0.4s ease;
}

.gallery-item:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

/* Testimonial cards */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* Fade-in animations (progressive enhancement — only when JS runs and user prefers motion) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.revealed {
        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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #E8734A;
    outline-offset: 2px;
}

/* Select dropdown arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
