/* ========================================
   Copper Cove Restaurant & Lounge
   Custom Styles
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #C1694F;
    color: #FAF6F1;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF6F1;
}
::-webkit-scrollbar-thumb {
    background: #C1694F;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8553a;
}

/* --- Navbar --- */
.navbar-scrolled #navbar {
    background: rgba(250, 246, 241, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(28, 25, 23, 0.08);
}

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

.navbar-scrolled .nav-link {
    color: rgba(28, 25, 23, 0.7);
}

.navbar-scrolled .hamburger-line {
    background: #1C1917;
}

/* --- Hero Animations --- */
.hero-eyebrow {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-headline {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.hero-subtext {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero-cta-primary {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}

.hero-cta-secondary {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.75s both;
}

.hero-info-card {
    animation: slideLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

.hero-info-card:nth-child(2) {
    animation-delay: 0.95s;
}

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

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Scroll Indicator --- */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; height: 48px; }
    50% { opacity: 1; height: 64px; }
}

/* --- Marquee --- */
.marquee-track {
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Reveal Animations (below fold only) --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Menu Cards --- */
.menu-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(193, 105, 79, 0.12);
}

/* --- Gallery --- */
.gallery-item {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover {
    transform: scale(1.02);
    z-index: 2;
}

/* --- Mobile Menu --- */
.mobile-menu-fixed {
    position: fixed;
    inset: 0;
    z-index: 60;
    animation: fadeIn 0.3s ease;
}

.mobile-menu-link {
    opacity: 0;
    animation: slideUpMobile 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mobile-menu-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-link:nth-child(2) { animation-delay: 0.18s; }
.mobile-menu-link:nth-child(3) { animation-delay: 0.26s; }
.mobile-menu-link:nth-child(4) { animation-delay: 0.34s; }
.mobile-menu-link:nth-child(5) { animation-delay: 0.42s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* --- Hamburger Animation --- */
#menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
}

#menu-toggle.active .hamburger-line:nth-child(2) {
    transform: rotate(-45deg);
    top: 50%;
}

/* --- Story Image --- */
.story-image-container {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Form Inputs --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* --- 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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .marquee-track {
        animation: none;
    }
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .hero-headline {
        font-size: 3.5rem;
    }
    
    .hero-info-card {
        width: 100%;
        text-align: left !important;
    }
    
    .hero-info-card .flex {
        flex-direction: row !important;
        justify-content: flex-start !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-headline {
        font-size: 5rem;
    }
}
