/* Custom styles for Oakwood Nutrition */

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

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
}

/* Hero text animation - only below the fold enhancement */
@media (prefers-reduced-motion: no-preference) {
    #hero h1 {
        animation: heroFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }
    #hero p {
        animation: heroFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
        opacity: 0;
    }
    #hero .flex-col {
        animation: heroFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
        opacity: 0;
    }
    #hero .inline-flex:first-child {
        animation: heroFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
        opacity: 0;
    }
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar glass effect when scrolled */
.navbar-scrolled {
    background: rgba(254, 253, 251, 0.92) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Custom selection color */
::selection {
    background: rgba(255, 107, 74, 0.2);
    color: #1a1a1a;
}

/* Subtle gradient border on focus */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.1);
}

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

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #faf0e0 0%, #fdf8f0 100%);
}

/* Subtle hover lift for cards */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Map loading placeholder */
iframe {
    background: #2d2d2d;
}
