/* Custom styles for Bliss Elegant Events & Rentals */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8ec;
}
::-webkit-scrollbar-thumb {
    background: #d45521;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8411a;
}

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(10, 15, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Hero parallax feel */
#hero {
    scroll-snap-align: start;
}

/* Selection color */
::selection {
    background: #d45521;
    color: #fefdf8;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #d45521;
    outline-offset: 2px;
    border-radius: 4px;
}

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

/* Image hover zoom container */
.group img {
    will-change: transform;
}

/* Button ripple effect */
button, a {
    will-change: transform;
}

/* Prevent layout shift on date input */
input[type="date"] {
    color-scheme: light;
}

/* 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='%239ca3af' 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;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .group img {
        transition: none;
    }
    .group:hover img {
        transform: none;
    }
    a, button {
        transition: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

/* Ensure contact form inputs are readable */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fdf8ec inset !important;
    -webkit-text-fill-color: #1f2937 !important;
}
