/* =============================================
   The Chicken Shack — Custom Styles
   ============================================= */

/* Base & Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

/* Selection Color */
::selection {
    background-color: rgba(168, 96, 116, 0.2);
    color: #502a36;
}

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

#navbar.scrolled {
    background: rgba(254, 252, 248, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(168, 96, 116, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffb314, #d97706);
    border-radius: 1px;
    transition: width 0.3s ease, left 0.3s ease;
}

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

/* =============================================
   Mobile Menu
   ============================================= */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

#mobile-menu.open .mobile-link {
    animation: fadeDown 0.4s ease forwards;
    opacity: 0;
}

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

.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.25rem;
}

/* =============================================
   Hero Animations
   ============================================= */
@keyframes animateUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-up {
    animation: animateUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* =============================================
   Scroll Reveal
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
    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; }

/* =============================================
   Menu Cards
   ============================================= */
.menu-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.menu-card:hover {
    box-shadow: 0 20px 60px -20px rgba(168, 96, 116, 0.2);
}

/* =============================================
   Form Styles
   ============================================= */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(168, 96, 116, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: #d9b3c0;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d9b3c0, #c48a9a);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #c48a9a, #a86074);
}

/* =============================================
   Image Hover Effects
   ============================================= */
.menu-card .overflow-hidden,
section .overflow-hidden {
    position: relative;
}

.menu-card .overflow-hidden::after,
section .overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45, 21, 28, 0.15), transparent 40%);
    pointer-events: none;
    border-radius: inherit;
}

/* =============================================
   Responsive Adjustments
   ============================================= */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    .hero-title {
        font-size: 3rem !important;
    }

    .hero-title span {
        font-size: 2.5rem !important;
    }

    #inicio .lg\:col-span-5 img {
        height: 400px !important;
    }

    /* Hide floating card on mobile */
    .absolute.\-bottom-6.\-left-6,
    .absolute.\-top-4.\-right-4 {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-title span {
        font-size: 2rem !important;
    }
}

/* =============================================
   Print Styles
   ============================================= */
@media print {
    #navbar,
    #menu-toggle,
    .menu-card,
    button {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    section {
        page-break-inside: avoid;
    }
}
