/* Custom styles for Phlathead Phillies */

html {
    scroll-behavior: smooth;
}

/* Smooth font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure above-the-fold content is always visible */
#hero, #hero *,
#about, #about *,
#menu, #menu * {
    opacity: 1 !important;
}

/* Selection color */
::selection {
    background-color: rgba(5, 150, 105, 0.3);
    color: #064e3b;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #064e3b;
}
::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}

/* Fade-in animations for below-the-fold sections */
.fade-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .fade-section {
        opacity: 0;
        transform: translateY(24px);
    }
    .fade-section.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery hover effect */
.gallery-img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-img:hover {
    transform: scale(1.05);
}

/* Form focus styles */
input:focus,
textarea:focus {
    outline: none;
}

/* Mobile menu transition */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}
