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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: #a53641;
    color: #fdf4f6;
}

/* Navbar scroll state */
.nav-scrolled {
    background-color: rgba(253, 244, 246, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(113, 38, 45, 0.08);
}

.nav-scrolled .text-plum-700 {
    color: #71262d !important;
}

.nav-scrolled .font-serif {
    color: #350f13 !important;
}

/* Service card transitions */
.service-card {
    transition: background-color 0.5s ease;
}

.service-card:hover {
    background-color: #71262d !important;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(53, 15, 19, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* Mobile menu animation */
.mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-menu.closed {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Mobile menu button animation */
#mobile-menu-btn.active #menu-line-1 {
    transform: translateY(8px) rotate(45deg);
}

#mobile-menu-btn.active #menu-line-2 {
    opacity: 0;
}

#mobile-menu-btn.active #menu-line-3 {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.5rem;
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s 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; }
}

/* Form 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='%23a53641' 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 12px center;
    padding-right: 36px !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #fdf4f6;
}

::-webkit-scrollbar-thumb {
    background: #db7682;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a53641;
}
