/* Custom styles for 1850's Guest House */

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 24px rgba(0, 0, 0, 0.04);
}

.nav-scrolled .nav-logo-text {
    color: #0f172a !important;
}

.nav-scrolled a:not(.inline-flex) {
    color: #475569 !important;
}

.nav-scrolled a:not(.inline-flex):hover {
    color: #0d9488 !important;
}

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

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

/* Scroll-triggered animations */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    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; }

/* Image hover zoom wrapper */
.group img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Custom selection color */
::selection {
    background: #0d9488;
    color: white;
}

/* Subtle gradient border on contact form */
#contact .shadow-sm {
    box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 4px 24px rgba(0,0,0,0.06);
}

/* Remove default focus outline for keyboard nav, use ring */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Map section */
section iframe {
    filter: grayscale(30%) contrast(1.05);
    transition: filter 0.3s ease;
}

section iframe:hover {
    filter: grayscale(0%) contrast(1);
}

/* Ensure proper spacing for fixed nav */
section#top {
    padding-top: 0;
}

@media (min-width: 768px) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
    }
}
