/* ========================================
   Great Pumpkin Patch SF — Custom Styles
   Classic & Elegant | Burgundy + Blush
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --burgundy-700: #781f37;
    --burgundy-800: #63162b;
    --burgundy-950: #2a0a12;
    --cream-50: #fefcf9;
    --cream-100: #fdf8f1;
    --blush-200: #f9d0d9;
    --gold-400: #d4a574;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

/* --- Hero Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

/* --- Scroll Reveal Classes --- */
/* Default state: visible (progressive enhancement) */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
        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: 0;
        transform: translateX(-40px);
        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: 0;
        transform: translateX(40px);
        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-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: translate(0);
    }
}

/* --- Navbar Scroll State --- */
#navbar.scrolled {
    background: rgba(254, 252, 249, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(120, 31, 55, 0.08);
}

#navbar.scrolled .font-serif,
#navbar.scrolled a:not(.bg-burgundy-700) {
    color: var(--burgundy-800) !important;
}

#navbar.scrolled .menu-line {
    background: var(--burgundy-800) !important;
}

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

#mobileMenu.open .mobile-link {
    animation: fadeInUp 0.5s ease forwards;
}

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

/* --- Hamburger Animation --- */
.menu-toggle-active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle-active .menu-line:nth-child(2) {
    opacity: 0;
    width: 0;
}

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

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

/* --- Selection Color --- */
::selection {
    background: var(--burgundy-200);
    color: var(--burgundy-950);
}

/* --- Smooth Image Loading --- */
img {
    display: block;
    max-width: 100%;
}

/* --- Button Hover Effects --- */
button[type="submit"],
a[href="#experience"],
a[href="#visit"],
a[href="tel:+14155951478"] {
    position: relative;
    overflow: hidden;
}

/* --- Print Styles --- */
@media print {
    #navbar,
    #mobileMenu,
    .reveal-up,
    .reveal-left,
    .reveal-right {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
