/* ========================================
   Linda & Joe's Redington Shores
   Classic & Elegant Vacation Rental
   ======================================== */

/* Custom scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal base — content always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Only apply hidden state when JS is active via .js class */
.js .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
}

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

/* Nav transitions */
.nav-logo-color {
    color: #ffffff;
}

.nav-link {
    color: #ffffff;
}

/* Mobile menu */
#mobile-menu {
    opacity: 0;
    pointer-events: none;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Menu line animation */
#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 6px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Image hover effects */
img {
    max-width: 100%;
    height: auto;
}

/* Custom selection color */
::selection {
    background-color: #d45232;
    color: #FAF6F0;
}

::-moz-selection {
    background-color: #d45232;
    color: #FAF6F0;
}

/* Smooth focus outlines */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d45232;
    outline-offset: 2px;
}

/* Form focus states */
input:focus,
textarea:focus {
    border-color: #d45232 !important;
    box-shadow: 0 0 0 1px #d45232 !important;
}

/* Subtle scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #d45232;
    border-radius: 4px;
}

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

/* Gallery grid adjustments */
@media (min-width: 1024px) {
    #gallery .grid > :first-child {
        grid-column: span 2;
        grid-row: span 2;
    }
}

/* Amenity card hover lift */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Print styles */
@media print {
    nav, #contact-form, button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
