/* Cherokee Corner Bar — Custom Styles */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Lora', Georgia, serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F5DC;
}
::-webkit-scrollbar-thumb {
    background: #1B4332;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2a4431;
}

/* Navbar */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

.nav-logo-text {
    transition: color 0.4s ease;
}

.nav-logo-sub {
    transition: color 0.4s ease;
}

#navbar:not(.scrolled) .nav-logo-text {
    color: #FDFCFA;
}

#navbar:not(.scrolled) .nav-logo-sub {
    color: rgba(237, 232, 208, 0.7);
}

#navbar.scrolled .nav-logo-text {
    color: #143024;
}

#navbar.scrolled .nav-logo-sub {
    color: #4a7050;
}

/* Mobile Menu */
#mobile-menu.open {
    max-height: 400px;
}

.mobile-nav-link {
    transition: all 0.2s ease;
}

/* Hamburger */
#mobile-menu-btn.open .menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
#mobile-menu-btn.open .menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu-btn.open .menu-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    width: 1.25rem;
}

/* Floating Cards Animation */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
}

.floating-card:nth-child(3) {
    animation-delay: -4s;
}

.floating-card:nth-child(4) {
    animation-delay: -1s;
}

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

/* Menu Tabs */
.menu-tab {
    background: transparent;
    color: rgba(220, 230, 223, 0.6);
    border: none;
    cursor: pointer;
}

.menu-tab:hover {
    color: rgba(220, 230, 223, 0.9);
}

.menu-tab.active {
    background: #1B4332;
    color: #F5F5DC;
    box-shadow: 0 4px 12px rgba(27, 67, 50, 0.3);
}

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

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

/* Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .floating-card {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        transition: none;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #1B4332;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection */
::selection {
    background: #1B4332;
    color: #F5F5DC;
}
