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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #a7f3d0;
    color: #064e3b;
}

/* ===== Scroll Reveal ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    backdrop-filter: none;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(6, 95, 70, 0.08);
}

.nav-logo-text {
    color: #064e3b;
}

#navbar:not(.scrolled) .nav-logo-text {
    color: #064e3b;
}

.nav-link {
    position: relative;
}

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

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

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: #065f46;
    color: #fefdf8;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(6, 78, 59, 0.25);
}

.btn-primary:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(6, 78, 59, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: transparent;
    color: #065f46;
    border: 2px solid rgba(6, 95, 70, 0.2);
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #065f46;
    background: rgba(6, 95, 70, 0.05);
    transform: translateY(-2px);
}

.btn-reserve {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: #065f46;
    color: #fefdf8;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(6, 78, 59, 0.2);
}

.btn-reserve:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(6, 78, 59, 0.25);
}

/* ===== Mobile Nav ===== */
.mobile-nav-link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(6, 95, 70, 0.08);
    text-decoration: none;
    color: #064e3b;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: #059669;
}

/* ===== Floating Cards ===== */
.card-float-main {
    animation: floatMain 6s ease-in-out infinite;
}

.card-float-slow {
    animation: floatSlow 8s ease-in-out infinite;
}

.card-float-medium {
    animation: floatMedium 7s ease-in-out infinite;
}

@keyframes floatMain {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(-1deg); }
}

@keyframes floatMedium {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.8deg); }
}

/* ===== Card Hover ===== */
.card-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===== Form ===== */
input::placeholder,
textarea::placeholder {
    color: rgba(167, 243, 208, 0.3);
}

input:focus,
textarea:focus {
    outline: none;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary {
        padding: 12px 22px;
        font-size: 0.875rem;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal,
    .card-reveal {
        opacity: 1;
        transform: none;
    }
}
