/* ============================================
   Resort Solutions Incorporated
   Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(13, 148, 136, 0.2);
    color: #0f766e;
}

/* --- Navigation --- */
.nav-link-text {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-link-text {
    color: rgba(255, 255, 255, 0.85) !important;
}

#navbar.scrolled .nav-link-text:hover {
    color: #ffffff !important;
}

#navbar.scrolled .mobile-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

#navbar.scrolled .mobile-link:hover {
    color: #ffffff !important;
}

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

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

#mobile-menu .mobile-link {
    opacity: 0;
    transform: translateY(12px);
}

/* --- Hero Animations --- */
.hero-anim {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-anim:nth-child(1) { transition-delay: 0.2s; }
.hero-anim:nth-child(2) { transition-delay: 0.4s; }
.hero-anim:nth-child(3) { transition-delay: 0.6s; }
.hero-anim:nth-child(4) { transition-delay: 0.8s; }

/* --- Scroll Reveal Animations --- */
.section-anim {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-anim:nth-child(1) { transition-delay: 0.05s; }
.section-anim:nth-child(2) { transition-delay: 0.1s; }
.section-anim:nth-child(3) { transition-delay: 0.15s; }
.section-anim:nth-child(4) { transition-delay: 0.2s; }
.section-anim:nth-child(5) { transition-delay: 0.25s; }
.section-anim:nth-child(6) { transition-delay: 0.3s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .hero-anim,
    .section-anim {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* --- Focus Styles --- */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* --- Form Input Focus States --- */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.3);
}

/* --- Button Hover --- */
button[type="submit"]:hover {
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.3);
}

/* --- Image Loading --- */
img {
    display: block;
}

/* --- Smooth Scroll Offset for Fixed Nav --- */
section[id] {
    scroll-margin-top: 80px;
}

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