/* ========================================
   SHIN LEAF CAMPGROUND — CUSTOM STYLES
   ======================================== */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(13, 148, 136, 0.2);
    color: #0f766e;
}

/* ========================================
   NAVIGATION
   ======================================== */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

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

.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 {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

/* Hamburger animation */
#menu-icon.active #bar1 {
    transform: translateY(4px) rotate(45deg);
}

#menu-icon.active #bar2 {
    opacity: 0;
    transform: scaleX(0);
}

#menu-icon.active #bar3 {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.5rem;
}

/* ========================================
   HERO
   ======================================== */
.hero-section {
    position: relative;
}

/* ========================================
   SITE CARDS
   ======================================== */
.site-card {
    position: relative;
}

.site-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
    pointer-events: none;
    transition: box-shadow 0.3s ease;
}

.site-card:hover::before {
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.15);
}

/* ========================================
   AMENITY ITEMS
   ======================================== */
.amenity-item {
    position: relative;
    transition: background-color 0.3s ease;
}

.amenity-item svg {
    transition: transform 0.3s ease;
}

.amenity-item:hover svg {
    transform: scale(1.1);
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   (progressive enhancement — hidden by default, revealed via JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Fallback: ensure content is visible even without JS */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   IMAGE PLACEHOLDERS (graceful degradation)
   ======================================== */
img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.1;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .site-card {
        max-width: 100%;
    }
}

/* ========================================
   FOCUS STYLES (accessibility)
   ======================================== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    #navbar,
    #menu-toggle,
    .reveal {
        display: none !important;
    }

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

    a {
        color: #000;
    }
}
