/* Custom styles for Jensens Twin Palm Resort Marina */

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Navbar */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-fixed.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #9c1c3b;
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

/* Mobile menu */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

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

.mobile-nav-link {
    transition: all 0.2s ease;
}

/* Hero section */
.hero-split {
    min-height: 100vh;
}

.hero-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-badge {
    animation: fadeInUp 0.6s ease forwards;
}

.hero-content h1 {
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.hero-content p {
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.hero-content .flex {
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.hero-content .flex.items-center.gap-8 {
    animation: fadeInUp 0.6s ease 0.4s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Room cards */
.room-card {
    transition: transform 0.3s ease;
}

.room-card:hover {
    transform: translateY(-4px);
}

/* Marina cards */
.marina-card {
    transition: all 0.3s ease;
}

.marina-card:hover {
    transform: translateY(-4px);
}

/* Button hover effects */
button, a {
    transition: all 0.2s ease;
}

/* Form styles */
input, select, textarea {
    font-family: 'Inter', system-ui, sans-serif;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(156, 28, 59, 0.1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content {
        padding: 6rem 1.5rem 3rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-badge {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .room-card, .marina-card {
        transform: none;
    }
    
    .room-card:hover, .marina-card:hover {
        transform: none;
    }
    
    .hero-badge,
    .hero-content h1,
    .hero-content p,
    .hero-content .flex {
        animation: none;
        opacity: 1;
    }
}
