/* ============================================
   JAWS BEACHWORLD — Custom Styles
   Classic & Elegant | Burgundy + Blush
   ============================================ */

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ---- Scroll Reveal (progressive enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: always visible if JS disabled or prefers-reduced-motion */
@media not all and (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

html.prefers-reduced-motion .scroll-reveal {
    opacity: 1;
    transform: none;
}

/* ---- Hero mobile adjustments ---- */
@media (max-width: 640px) {
    #hero h1 {
        font-size: 3rem;
        line-height: 1.05;
    }

    #hero p {
        font-size: 1rem;
    }
}

/* ---- Smooth image loading ---- */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ---- Selection color ---- */
::selection {
    background-color: #c2334e;
    color: #fef8f7;
}

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

/* ---- Navbar scroll state ---- */
.nav-scrolled {
    background-color: rgba(253, 249, 243, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(159, 37, 59, 0.08);
}

.nav-scrolled .nav-link {
    color: #712032 !important;
}

.nav-scrolled #nav-logo-text {
    color: #712032 !important;
}

.nav-scrolled #nav-logo-icon {
    color: #712032 !important;
}

/* ---- Mobile menu transitions ---- */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* ---- Parallax container ---- */
.parallax-bg {
    will-change: transform;
}

/* ---- Product card hover ---- */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

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

/* ---- Custom underline for links ---- */
.underline-offset-4 {
    underline-offset: 4px;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}
