/* ===== Custom Styles for Royal Bee Bakery ===== */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(10, 15, 46, 0.08);
}

.nav-scrolled .nav-logo-color {
    color: #0a0f2e !important;
}

.nav-link {
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #22c55e;
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile nav */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    border-left-color: #22c55e;
    padding-left: 12px;
}

/* 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);
    }

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

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

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Hero image subtle pulse */
@keyframes subtle-pulse {
    0%, 100% { box-shadow: 0 25px 50px -12px rgba(10, 15, 46, 0.25); }
    50% { box-shadow: 0 25px 60px -12px rgba(10, 15, 46, 0.35); }
}

#hero img {
    animation: subtle-pulse 4s ease-in-out infinite;
}

/* Button hover glow */
button:hover, a:hover {
    transition: all 0.3s ease;
}

/* Selection color */
::selection {
    background: #4ade80;
    color: #0a0f2e;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f0fdf4;
}

::-webkit-scrollbar-thumb {
    background: #1a2356;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #232f6a;
}

/* Form styles */
input, textarea {
    font-family: 'Nunito', system-ui, sans-serif;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Testimonial card hover */
.testimonial-card:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

/* Product card image zoom */
.group:hover .group-hover\:scale-105 {
    transition: transform 0.5s ease;
}

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

#mobile-menu.open {
    max-height: 400px;
    padding: 0;
}

/* Success message */
.success-message {
    display: none;
    animation: fadeInUp 0.4s ease;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    #hero {
        padding-top: 80px;
    }

    #hero img {
        height: 350px !important;
    }

    .font-display {
        line-height: 1.15;
    }
}
