/* ========================================
   Pinelake Camp — Custom Styles
   Classic & Elegant | Teal + Slate Palette
======================================== */

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

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

/* Selection */
::selection {
    background-color: #0f766e;
    color: #f0fdfa;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ========================================
   Scroll Reveal Animations
   Progressive enhancement — content is
   visible by default; JS adds animation
======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .reveal-left {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .reveal-right {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    /* These classes are added by JS for scroll-triggered reveals.
       Default state is already visible above. */
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        /* Already visible by default */
    }
}

/* Reduced motion — all animations disabled */
@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ========================================
   Navbar transitions
======================================== */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

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

/* ========================================
   Mobile menu
======================================== */
#mobile-menu.open {
    transform: translateX(0);
}

/* ========================================
   Form focus states
======================================== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #0d9488 !important;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* ========================================
   Button hover effects
======================================== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ========================================
   Image loading placeholder
======================================== */
img {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* ========================================
   Decorative line accent
======================================== */
.section-accent {
    position: relative;
}

.section-accent::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #0d9488, #5eead4);
    margin-top: 1.5rem;
}

/* ========================================
   Print styles
======================================== */
@media print {
    header, footer, #contact {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    section {
        page-break-inside: avoid;
    }
}
