/* ============================================
   Abuelita Panaderia — Custom Styles
   Classic & Elegant · Forest Green + Off-White
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #2D5A3D;
    color: #FDFCFA;
}

/* --- Navbar --- */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(253, 252, 250, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(45, 90, 61, 0.08);
}

.navbar-text {
    color: #2D5A3D;
    transition: color 0.3s ease;
}

.navbar-text-muted {
    color: rgba(45, 90, 61, 0.6);
    transition: color 0.3s ease;
}

#navbar.scrolled .navbar-text {
    color: #2D5A3D;
}

#navbar.scrolled .navbar-text-muted {
    color: rgba(45, 90, 61, 0.6);
}

.navbar-link {
    position: relative;
}

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

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

/* --- Hero Floating Cards --- */
.stat-card-1 {
    animation: floatCard1 6s ease-in-out infinite;
}

.stat-card-2 {
    animation: floatCard2 7s ease-in-out infinite;
}

.stat-card-3 {
    animation: floatCard3 5.5s ease-in-out infinite;
}

@keyframes floatCard1 {
    0%, 100% { transform: translateY(0px) rotate(2deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

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

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

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        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; }
}

/* --- Mobile Menu --- */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

.mobile-link {
    padding: 8px 0;
    border-bottom: 1px solid rgba(45, 90, 61, 0.08);
}

/* --- Image hover effects --- */
img {
    display: block;
    max-width: 100%;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #96bc96;
}

/* --- Focus styles --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #D4A84B;
    outline-offset: 3px;
    border-radius: 2px;
}

/* --- Mobile adjustments --- */
@media (max-width: 767px) {
    .stat-card-1,
    .stat-card-2,
    .stat-card-3 {
        animation: none !important;
    }
}
