/* ═══════════════════════════════════════════════════════════
   Hilton Head Island Villas — Custom Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Base & Typography ── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #0d9488;
    color: white;
}

/* ── Navigation ── */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0d9488;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-blur-md;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .nav-link {
    color: #475569;
}

#navbar.scrolled .nav-link:hover {
    color: #0d9488;
}

#navbar.scrolled .font-serif {
    color: #0f172a;
}

/* ── Mobile Menu ── */
.mobile-link {
    position: relative;
}

.mobile-link:hover {
    letter-spacing: 0.02em;
}

/* ── Hero ── */
#hero {
    position: relative;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, white, transparent);
    pointer-events: none;
    z-index: 1;
}

/* ── Villa Cards ── */
.villa-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.villa-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.villa-card:nth-child(2) { transition-delay: 0.1s; }
.villa-card:nth-child(3) { transition-delay: 0.2s; }

/* ── Buttons ── */
button, a[href="#contact"], a[href="tel:"] {
    cursor: pointer;
}

/* ── Form ── */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* ── Scroll Animations ── */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Stats Counter ── */
.stat-number {
    display: inline-block;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    #hero::after {
        height: 60px;
    }
}

/* ── Print ── */
@media print {
    nav, #contact, .mobile-menu-btn {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }
}
