/* Custom styles for Manatee Beans & Brews */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #1db98a 0%, #15926b 100%);
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #15926b 0%, #106e51 100%);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #0a2540;
}

.btn-secondary:hover {
    background: #f0fdf9;
}

/* Navigation */
.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #1db98a !important;
}

/* Navbar scrolled state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(10, 37, 64, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #0a2540 !important;
}

/* Menu Tabs */
.menu-tab {
    background: transparent;
    color: #0a2540;
    opacity: 0.5;
}

.menu-tab.active {
    background: #0a2540;
    color: #ffffff;
    opacity: 1;
    box-shadow: 0 4px 15px rgba(10, 37, 64, 0.3);
}

.menu-tab:not(.active):hover {
    opacity: 0.8;
    background: rgba(10, 37, 64, 0.05);
}

/* Menu Content */
.menu-content {
    animation: fadeSlideUp 0.4s ease forwards;
}

.menu-content.hidden {
    display: none;
}

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

/* Scroll Reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }

    .animate-float,
    .animate-float-delayed {
        animation: none;
    }

    .animate-bounce {
        animation: none;
    }
}

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

@keyframes floatDelayed {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

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

.animate-float-delayed {
    animation: floatDelayed 4s ease-in-out 1s infinite;
}

/* Mobile Menu */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.mobile-menu-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(10, 37, 64, 0.06);
}

.mobile-menu-link:last-child {
    border-bottom: none;
}

/* Form Focus States */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(29, 185, 138, 0.15);
}

/* Selection */
::selection {
    background: rgba(29, 185, 138, 0.2);
    color: #0a2540;
}

/* Image hover effects */
.rounded-3xl.overflow-hidden {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.rounded-3xl.overflow-hidden:hover {
    transform: scale(1.01);
}

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

.bg-white.rounded-3xl:hover {
    transform: translateY(-4px);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #15926b;
}
