/* ===== Custom Styles for Kino's Tacos ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Base transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

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

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 39, 68, 0.08);
}

#navbar.scrolled .nav-link {
    color: #344570;
}

#navbar.scrolled .font-serif.text-xl {
    color: #1a2744;
}

#navbar.scrolled .menu-line {
    background: #1a2744;
}

#navbar.scrolled .w-9 {
    background: #c9a227;
}

#navbar.scrolled .font-serif.text-xl span {
    color: #0a101e;
}

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

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

#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; }

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

/* Menu toggle animation */
.menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

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

/* ===== Floating Stat Cards ===== */
.stat-card {
    animation: floatCard 6s ease-in-out infinite;
}

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

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

/* ===== Scroll Reveal ===== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up {
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(0);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .stat-card {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ===== Decorative Elements ===== */
.gold-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, #c9a227, transparent);
}

/* ===== Button Hover Effects ===== */
a, button {
    transition: all 0.3s ease;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7789b0;
}

/* ===== Selection ===== */
::selection {
    background: #c9a227;
    color: #0a101e;
}

/* ===== Image loading ===== */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* ===== Form Focus ===== */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

/* ===== Gallery Grid ===== */
@media (min-width: 768px) {
    .auto-rows-\[200px\] {
        grid-template-rows: repeat(3, 200px);
    }
}

@media (min-width: 1024px) {
    .auto-rows-\[200px\] {
        grid-template-rows: repeat(3, 220px);
    }
}

/* ===== Print ===== */
@media print {
    #navbar,
    #mobile-menu {
        display: none;
    }
    section {
        page-break-inside: avoid;
    }
}
