/* ============================================
   PELTON PARK — Custom Styles
   Premium Dark Luxury Theme
   ============================================ */

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

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

body {
    background-color: #01030d;
    color: #e5e7eb;
}

/* ---- Selection ---- */
::selection {
    background-color: rgba(212, 160, 23, 0.3);
    color: #fbbf24;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 160, 23, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 160, 23, 0.5);
}

/* ---- Reveal Animations ---- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        transform: translateY(40px);
        opacity: 0;
    }
    
    .reveal-left {
        transform: translateX(-40px);
        opacity: 0;
    }
    
    .reveal-right {
        transform: translateX(40px);
        opacity: 0;
    }
}

/* ---- Navbar Transition ---- */
#navbar.scrolled {
    background: rgba(1, 3, 13, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 160, 23, 0.1);
}

#navbar.scrolled .font-serif {
    color: #fff;
}

/* ---- Gold Accent Line ---- */
.gold-line {
    position: relative;
}

.gold-line::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #d4a017, transparent);
}

/* ---- Button Hover Effects ---- */
button, a {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Image Loading ---- */
img {
    opacity: 1;
    transition: opacity 0.5s ease;
}

img[data-src] {
    opacity: 0;
}

/* ---- Focus States ---- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4a017;
    outline-offset: 4px;
}

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

/* ---- Smooth Image Hover ---- */
.group img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Custom Cursor Glow (Desktop Only) ---- */
@media (hover: hover) and (pointer: fine) {
    .gold-glow:hover {
        box-shadow: 0 0 30px rgba(212, 160, 23, 0.2);
    }
}

/* ---- Loading State for Images ---- */
img[loading="lazy"] {
    transition: opacity 0.6s ease;
}

/* ---- Print Styles ---- */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .no-print {
        display: none;
    }
}

/* ---- Utility: Aspect Ratio Support ---- */
.aspect-video {
    aspect-ratio: 16 / 9;
}

/* ---- Subtle Gold Gradient Text ---- */
.text-gold-gradient {
    background: linear-gradient(135deg, #fcd34d 0%, #d4a017 50%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Shimmer Effect for Cards ---- */
.card-shimmer {
    position: relative;
    overflow: hidden;
}

.card-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(251, 191, 36, 0.03),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 1;
}

.card-shimmer:hover::before {
    left: 100%;
}

/* ---- Map Filter Override ---- */
iframe[style*="invert"] {
    border-radius: 0;
}

/* ---- Form Styles (for future use) ---- */
input, textarea, select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    border-radius: 0;
    padding: 12px 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: rgba(212, 160, 23, 0.5);
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
