/* ============================================
   El Acapulco — Custom Styles
   Bold Editorial | Plum + Amber | Hot Springs
   ============================================ */

/* --- Base & Reset --- */
*, *::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: #be185d;
    color: #faf8f5;
}

/* --- Navbar --- */
.nav-logo {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

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

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

.nav-link:hover {
    color: #b45309;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(80, 7, 36, 0.08);
}

nav.scrolled .nav-logo {
    color: #500724;
}

nav.scrolled .nav-link {
    color: #500724;
}

nav.scrolled .nav-link:hover {
    color: #b45309;
}

/* --- Mobile Menu --- */
.menu-line {
    display: block;
    position: absolute;
    width: 24px;
    height: 2px;
    background: #500724;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

#menu-toggle.active .menu-line.top-1 {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

#menu-toggle.active .menu-line.top-1/2 {
    opacity: 0;
}

#menu-toggle.active .menu-line.bottom-1 {
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#mobile-menu.open .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-menu-link:nth-child(5) { transition-delay: 0.3s; }

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

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: -2s;
}

.card-3 {
    animation-delay: -4s;
}

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

/* --- Scroll Indicator --- */
@keyframes scroll-indicator {
    0% { top: -16px; }
    100% { top: 48px; }
}

.animate-scroll-indicator {
    animation: scroll-indicator 1.5s ease-in-out infinite;
}

/* --- Menu Cards --- */
.menu-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-8px);
}

/* --- Feature Cards --- */
.feature-card {
    transition: transform 0.4s ease, background-color 0.5s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Image gallery strip --- */
section.bg-plum-950 .flex > div {
    transition: transform 0.4s ease;
}

section.bg-plum-950 .flex > div:hover {
    transform: scale(1.02);
}

/* --- Form inputs --- */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(190, 24, 93, 0.1);
}

/* --- Button hover effects --- */
a[href^="tel"],
button[type="submit"] {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a[href^="tel"]:hover,
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(80, 7, 36, 0.25);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
    
    #hero h1 {
        font-size: 3rem;
    }
    
    #hero h1 br {
        display: none;
    }
    
    .menu-card .h-\[500px\] {
        height: 350px;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.5rem;
    }
    
    .font-serif.text-5xl,
    .font-serif.text-6xl {
        font-size: 2.5rem;
    }
}

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