/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0c1929; }
::-webkit-scrollbar-thumb { background: #5eead433; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #5eead466; }

/* ── Selection ── */
::selection { background: #5eead433; color: #f0fdf4; }

/* ── Nav ── */
#nav {
    background: transparent;
    border-bottom: 1px solid transparent;
}
#nav.scrolled {
    background: rgba(7, 14, 23, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(94, 234, 212, 0.06);
}

.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #5eead4;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: #fff; }

/* ── Mobile menu ── */
#mobile-menu.open { opacity: 1 !important; pointer-events: all !important; }
.menu-line { transform-origin: center; }
.menu-btn.active .menu-line:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn.active .menu-line:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-link { font-size: 1.75rem; }

/* ── Hero ── */
#top {
    background: #0c1929;
}

/* ── Reveal animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
}

/* ── Amenity cards ── */
.amenity-card {
    position: relative;
    overflow: hidden;
}
.amenity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.amenity-card:hover::before { opacity: 1; }

/* ── Input placeholders ── */
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.15); }

/* ── Focus visible ── */
input:focus, textarea:focus, select:focus {
    outline: none;
}

/* ── Date input fix ── */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) saturate(3) hue-rotate(130deg);
    cursor: pointer;
}

/* ── Select fix ── */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235eead4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}

/* ── Smooth image loading ── */
img {
    image-rendering: auto;
}

/* ── Print ── */
@media print {
    #nav, #contact-form, .amenity-card { display: none; }
    body { background: #fff; color: #000; }
}
