/* ========================================
   Clarence Pool Hall — Custom Styles
   Bold Editorial: Emerald + Cream
======================================== */

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

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

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: #065f46;
    color: #fdfbf7;
}

/* ========================================
   Scroll Reveal (Progressive Enhancement)
   Content is visible by default; JS adds animation
======================================== */
.reveal-on-scroll {
    opacity: 1;
    transform: none;
    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);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll.revealed {
        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-on-scroll.revealed.reveal-active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Navbar
======================================== */
.nav-logo-text {
    color: #1a1a1a;
}

.nav-logo-sub {
    color: #065f46;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #059669;
    transition: width 0.3s ease;
}

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

/* Navbar scroll state */
nav.scrolled {
    background-color: rgba(253, 251, 247, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.1);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

nav.scrolled .nav-logo-text {
    color: #1a1a1a;
}

nav.scrolled .nav-logo-sub {
    color: #065f46;
}

nav.scrolled .menu-line {
    background-color: #1a1a1a;
}

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

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #059669;
    transition: width 0.3s ease;
}

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

/* ========================================
   Animations
======================================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes float-delay {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(-3deg);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
    animation: float-delay 7s ease-in-out infinite;
    animation-delay: 1s;
}

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

/* ========================================
   Image Placeholder Fallback
======================================== */
img {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
}

/* ========================================
   Print Styles
======================================== */
@media print {
    nav, #mobile-menu, .animate-float, .animate-float-delay {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
