/* ==========================================
   Four Boys Dessert & Drink — Custom Styles
   ========================================== */

/* --- Smooth Scrolling --- */
html {
    scroll-behavior: smooth;
}

/* --- Scroll Reveal Base (progressive enhancement) --- */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal-on-scroll.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Navbar Transition --- */
#navbar.scrolled {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

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

.hero-eyebrow {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-headline {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-subtext {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-cta-group {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
    /* These only run if JS is not blocking — they're already visible by default */
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f4;
}
::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0f766e;
}

/* --- Selection Color --- */
::selection {
    background-color: #0d9488;
    color: #f0fdfa;
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 4px;
    border-radius: 4px;
}

/* --- Mobile Menu Animation --- */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobile-menu.open {
    max-height: 400px;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}

/* --- Image Hover Container --- */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* --- Button Ripple Effect (subtle) --- */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* --- Print Styles --- */
@media print {
    #navbar, #gallery, .reveal-on-scroll {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
