/* Honu Nutrition — Custom Styles */

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

/* Base transitions */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(255, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(139, 26, 74, 0.08);
}

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal animations — progressive enhancement */
/* Default: content is visible (no JS needed) */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* With JS + reduced motion preference off: animate */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-left.is-visible {
        opacity: 1;
        transform: translateX(0);
    }
    .reveal-right.is-visible {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Initial states for JS-driven reveal (only applied via JS) */
.js-reveal .reveal-up {
    opacity: 0;
    transform: translateY(30px);
}
.js-reveal .reveal-left {
    opacity: 0;
    transform: translateX(-30px);
}
.js-reveal .reveal-right {
    opacity: 0;
    transform: translateX(30px);
}

/* Hero floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

/* Button focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #c44d6e;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFF8F5;
}
::-webkit-scrollbar-thumb {
    background: #f09aad;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c44d6e;
}

/* Selection color */
::selection {
    background: #fce4ec;
    color: #8B1A4A;
}

/* Mobile link hover */
.mobile-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #fce4ec;
}
.mobile-link:last-child {
    border-bottom: none;
}

/* Image lazy load fade-in */
img[loading="lazy"] {
    transition: opacity 0.4s ease;
}
img[loading="lazy"].loaded {
    opacity: 1;
}
img[loading="lazy"] {
    opacity: 0;
}
