/* ============================================
   1st Class Campground — Custom Styles
   Classic & Elegant | Emerald + Cream Palette
   ============================================ */

/* --- Custom Properties --- */
:root {
    --color-emerald-deep: #1a3c34;
    --color-emerald-dark: #234e41;
    --color-emerald-mid: #2d6a52;
    --color-emerald-accent: #3d8b6a;
    --color-cream: #f5f0e8;
    --color-cream-light: #faf7f2;
    --color-cream-dark: #e8e0d0;
    --color-gold: #c9a84c;
    --color-gold-light: #d4b96a;
    --color-charcoal: #2a2a2a;
    --color-stone-dark: #3d3d3d;
}

/* --- Base Reset & Typography --- */
*, *::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;
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-cream-light);
}
::-webkit-scrollbar-thumb {
    background: var(--color-emerald-mid);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-emerald-deep);
}

/* --- Selection --- */
::selection {
    background: var(--color-gold);
    color: var(--color-emerald-deep);
}

/* --- Navbar Transitions --- */
#navbar {
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(26, 60, 52, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

#navbar.scrolled .nav-logo-text,
#navbar.scrolled .nav-logo-sub,
#navbar.scrolled .nav-link-text,
#navbar.scrolled .nav-mobile-btn span,
#navbar.scrolled .nav-cta-btn {
    color: #f5f0e8;
}

#navbar.scrolled .nav-cta-btn {
    background: var(--color-gold);
    color: var(--color-emerald-deep);
}

/* --- Nav Links --- */
.nav-link {
    position: relative;
    color: #f5f0e8;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

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

/* --- Hero Animations --- */
.hero-badge {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

.hero-cta {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.7s;
}

.hero-scroll {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 1.2s;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Floating Stat Cards --- */
.stat-card-1 {
    opacity: 0;
    animation: floatCard1 0.8s ease forwards;
    animation-delay: 0.9s;
}

.stat-card-2 {
    opacity: 0;
    animation: floatCard2 0.8s ease forwards;
    animation-delay: 1.1s;
}

.stat-card-3 {
    opacity: 0;
    animation: floatCard3 0.8s ease forwards;
    animation-delay: 1.3s;
}

@keyframes floatCard1 {
    from {
        opacity: 0;
        transform: rotate(2deg) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: rotate(2deg) translateY(0);
    }
}

@keyframes floatCard2 {
    from {
        opacity: 0;
        transform: rotate(-1deg) translateY(20px);
    }
    to {
        opacity: 1;
        transform: rotate(-1deg) translateY(0);
    }
}

@keyframes floatCard3 {
    from {
        opacity: 0;
        transform: rotate(1deg) translateY(-15px);
    }
    to {
        opacity: 1;
        transform: rotate(1deg) translateY(0);
    }
}

/* --- Scroll Indicator --- */
@keyframes scroll-indicator {
    0% { top: -16px; opacity: 1; }
    100% { top: 16px; opacity: 0; }
}

.animate-scroll-indicator {
    animation: scroll-indicator 1.5s ease-in-out infinite;
}

/* --- Section Headers --- */
.section-header {
    opacity: 1;
}

/* --- Accommodation Cards --- */
.acc-card {
    opacity: 1;
}

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

/* --- Amenity Cards --- */
.amenity-card {
    opacity: 1;
}

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

/* --- Gallery --- */
.gallery-item {
    opacity: 1;
}

.gallery-item img {
    transition: transform 0.7s ease;
}

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

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-menu-link {
    opacity: 1;
}

/* --- Form Styles --- */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-emerald-accent) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(61, 139, 106, 0.15);
}

/* --- Button Hover Effects --- */
button[type="submit"]:hover {
    transform: translateY(-1px);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* --- Responsive Adjustments --- */
@media (max-width: 767px) {
    .stat-card-1,
    .stat-card-2,
    .stat-card-3 {
        display: none;
    }
}

/* --- 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;
    }
}

/* --- Print Styles --- */
@media print {
    #navbar,
    #mobile-menu,
    .hero-scroll,
    .gallery-item {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}
