/* Forge Motel — Custom Styles */

:root {
    --burgundy-800: #7B2C3B;
    --burgundy-700: #9c1c38;
    --burgundy-600: #b92747;
    --blush-100: #fef0f3;
    --blush-200: #fde0e7;
}

* {
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal — progressive enhancement, only active when JS loads */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .scroll-reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 1px 20px rgba(123, 44, 59, 0.08);
}

/* Custom focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Subtle selection color */
::selection {
    background-color: rgba(123, 44, 59, 0.15);
    color: var(--burgundy-900);
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Map container */
iframe {
    filter: saturate(0.8) contrast(1.05);
    transition: filter 0.3s ease;
}

iframe:hover {
    filter: saturate(1) contrast(1);
}

/* Date input styling */
input[type="date"] {
    color-scheme: light;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button press effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

button:active, a:active {
    transform: scale(0.985);
}

/* Ensure hero text is readable over image */
#hero h1,
#hero p,
#hero .text-center > * {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Subtle pattern on neutral-50 sections */
.bg-neutral-50 {
    background-image: radial-gradient(ellipse at top, rgba(123, 44, 59, 0.02) 0%, transparent 60%);
}
