/* ===== Custom Styles for Cream of the Crop ===== */

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

/* Focus styles for accessibility */
:focus-visible {
    outline: 3px solid #8ee4b6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Navbar scroll behavior ===== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

#navbar.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(17, 29, 77, 0.08);
}

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

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

.mobile-menu-link {
    display: block;
    padding: 0.5rem 0;
}

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

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

/* ===== Reveal on scroll (progressive enhancement) ===== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* ===== Hero split layout ===== */
.hero-split {
    padding-top: 5rem;
}

@media (min-width: 1024px) {
    .hero-split {
        min-height: calc(100vh - 0px);
    }
}

/* ===== Nav links ===== */
.nav-link {
    position: relative;
}

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

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

/* ===== Button hover glow ===== */
button[type="submit"]:hover,
a:hover {
    /* handled by Tailwind utilities */
}

/* ===== Image hover zoom ===== */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ===== Card hover lift ===== */
.rounded-3xl {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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