/* ===================================
   El Dulce Pasteleria — Custom Styles
   =================================== */

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

/* ── Selection Color ── */
::selection {
    background-color: #D4A017;
    color: #1E0D18;
}

/* ── Floating Animation ── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 4s ease-in-out 2s infinite;
}

/* ── Card Elegant Hover ── */
.card-elegant {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.card-elegant:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(107, 47, 91, 0.12);
}

/* ── Navbar Transitions ── */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(107, 47, 91, 0.08);
}

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

#navbar.scrolled .menu-line {
    background-color: #6B2F5B;
}

#navbar.scrolled .font-serif {
    color: #6B2F5B;
}

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

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* ── Mobile Menu Lines Animation ── */
.menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* ── Gallery Item ── */
.gallery-item {
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 12px 40px rgba(107, 47, 91, 0.15);
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── Input Focus Styles ── */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}

/* ── Button Ripple Effect ── */
button, a {
    -webkit-tap-highlight-color: transparent;
}

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