/* Custom styles for Dark Knight Tattoo */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fef9f4;
}
::-webkit-scrollbar-thumb {
    background: #d4a0a9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b82d3e;
}

/* Reveal animations — progressive enhancement, only when JS is available */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ accordion */
.faq-item {
    border: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item:hover {
    border-color: #f9c5cc;
}
.faq-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
}
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
}
.faq-content.open {
    max-height: 300px;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 249, 244, 0.92) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(154, 36, 50, 0.08);
}

/* Button focus states */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d44556;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #f9c5cc;
    color: #3a0c11;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery hover images */
.group img {
    will-change: transform;
}

/* Ensure hero content is always visible */
#hero h1,
#hero p,
#hero a,
#hero .inline-flex,
#hero .flex.items-center {
    opacity: 1;
    transform: none;
}

/* Print styles */
@media print {
    nav, #contact-form, #form-success {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
