/* ============================================
   Cove At Walden Club — Custom Styles
   Clean minimalist design with teal & slate palette
   ============================================ */

/* Base reset and global styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-logo-text {
    color: #1e293b;
}

#navbar.scrolled .nav-logo-text {
    color: #1e293b;
}

.nav-link {
    position: relative;
}

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

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

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

#mobile-menu.open .mobile-link {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

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

/* Hamburger animation */
.menu-line {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 24px;
}

/* ============================================
   Hero Animations
   ============================================ */
.hero-subtitle {
    animation: heroFadeUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-headline {
    animation: heroFadeUp 0.9s ease 0.5s forwards;
    opacity: 0;
}

.hero-tagline {
    animation: heroFadeUp 0.9s ease 0.7s forwards;
    opacity: 0;
}

.hero-cta {
    animation: heroFadeUp 0.9s ease 0.9s forwards;
    opacity: 0;
}

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

/* ============================================
   Scroll Reveal (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal-section {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

/* Default state: always visible (no JS required) */
.reveal-section {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion: disable all transitions */
@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;
    }

    .reveal-section {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================
   Menu Tabs
   ============================================ */
.menu-tab {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 11px;
    transition: all 0.3s ease;
}

.menu-tab.active {
    background: white;
    color: #0d9488;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.menu-tab:hover:not(.active) {
    color: #475569;
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

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='%2394a3b8' 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;
    padding-right: 2rem;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.4;
    cursor: pointer;
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: #ccfbf1;
    color: #134e4a;
}

/* ============================================
   Subtle image hover effects
   ============================================ */
img {
    display: block;
    max-width: 100%;
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    #navbar, #mobile-menu-btn, .reveal-section {
        display: none !important;
    }

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

    section {
        page-break-inside: avoid;
    }
}
