/* Custom styles for Brockway House Bed and Breakfast */

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

/* Ensure all text is readable */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Thin line accents */
.line-deco {
    width: 60px;
    height: 1px;
    background: #ff5a3e;
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

#mobile-menu.hidden {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

#mobile-menu:not(.hidden) {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
}

/* Mobile menu links */
.mobile-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Navbar transition */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

#navbar.scrolled #nav-logo-text,
#navbar.scrolled a:not(.bg-coral-600) {
    color: #2d2d2d;
}

/* Form styling */
input, textarea {
    font-family: 'Inter', system-ui, sans-serif;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #ff5a3e !important;
    box-shadow: none;
}

/* Hover underline for nav links */
.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ff5a3e;
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

/* Image hover zoom */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

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

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

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

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

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