/* ===== CUSTOM STYLES ===== */

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

/* Custom selection color */
::selection {
    background-color: #a8203e;
    color: white;
}

/* ===== NAVBAR SCROLL EFFECT ===== */
#navbar.scrolled {
    background-color: rgba(254, 252, 251, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(168, 32, 62, 0.08);
}

#navbar.scrolled .font-display,
#navbar.scrolled .text-stone-850 {
    color: #1c1917;
}

/* ===== SCROLL REVEAL ===== */
/* Default: content is visible (progressive enhancement) */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* When JS is enabled and element is out of view, hide it */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.is-out-of-view {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* ===== MOBILE MENU ===== */
#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);
    }
}

/* ===== BUTTON HOVER GLOW ===== */
a[href="#contact"]:hover {
    box-shadow: 0 8px 30px rgba(168, 32, 62, 0.25) !important;
}

/* ===== GALLERY IMAGE HOVER ===== */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* ===== SERVICE CARD SHINE ===== */
.group:hover {
    border-color: rgba(168, 32, 62, 0.15);
}

/* ===== FOCUS STYLES ===== */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #a8203e;
    outline-offset: 2px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        transition: none;
    }
    
    .group:hover .group-hover\:scale-110 {
        transform: none;
    }
    
    .group:hover {
        transition: none;
    }
}

/* ===== BACK TO TOP ===== */
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ===== FORM STYLES ===== */
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='%23a8203e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ===== SUBTLE GRADIENT BACKGROUNDS ===== */
.bg-gradient-to-br {
    background-size: 200% 200%;
}

/* ===== IMAGE LAZY LOAD FADE ===== */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

img[loading="lazy"]:not([src]) {
    opacity: 0;
}
