/* Ritual Tattoo Collective — Custom Styles */

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #0a1628;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #ffffff;
}

/* Custom select 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='%23c9a84c' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem;
}

/* Nav scroll state */
.nav-scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    border-bottom-color: rgba(201, 168, 76, 0.15) !important;
}

/* Hero image loading */
.hero-img {
    opacity: 0;
    transition: opacity 1s ease;
}
.hero-img.loaded {
    opacity: 1;
}

/* Thin line with gold shimmer */
.thin-line {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(201, 168, 76, 0.25) 50%, transparent 100%);
}

/* Gold button glow */
button[type="submit"],
a[href="#contact"] {
    position: relative;
}

/* Gallery hover overlay */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* FAQ item active state */
.faq-item.active {
    border-color: rgba(201, 168, 76, 0.3);
}

/* Fade-in for hero */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-reveal {
    animation: fadeUp 0.9s ease forwards;
}

.hero-reveal:nth-child(2) {
    animation-delay: 0.15s;
}

.hero-reveal:nth-child(3) {
    animation-delay: 0.3s;
}

.hero-reveal:nth-child(4) {
    animation-delay: 0.45s;
}

/* Mobile menu backdrop */
.mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 40;
}

.mobile-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Focus visible */
:focus-visible {
    outline: 1px solid rgba(201, 168, 76, 0.6);
    outline-offset: 2px;
}

/* Print */
@media print {
    nav, #contact, .thin-line, iframe {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
