/* Custom styles for Beaches & Cream */

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

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fefdf8;
}
::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Section Label */
.section-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #059669;
}

/* Navigation */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #fff;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-link {
    position: relative;
}
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Hero Animations */
.hero-subtitle {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.3s;
}
.hero-title {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.5s;
}
.hero-description {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.7s;
}

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

/* Scroll Indicator */
.scroll-indicator {
    opacity: 0.7;
}
.scroll-dot {
    animation: scrollBounce 1.5s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { cy: 8; opacity: 1; }
    50% { cy: 20; opacity: 0.4; }
}

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal children */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Menu item hover */
#menu li:hover {
    background: rgba(6, 78, 59, 0.02);
    border-radius: 8px;
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -8px;
    margin-right: -8px;
    transition: all 0.2s ease;
}

/* Image hover containers */
.rounded-2xl.overflow-hidden {
    position: relative;
}

/* Focus styles */
input:focus, textarea:focus {
    outline: none;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(2, 44, 34, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* Print */
@media print {
    .reveal {
        opacity: 1;
        transform: none;
    }
    #navbar {
        position: relative;
        background: #064e3b !important;
    }
}
