/* Custom styles for Panaderia De El Salvador */

:root {
    --font-playfair: 'Playfair Display', serif;
    --font-lora: 'Lora', serif;
    --font-inter: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-inter);
    overflow-x: hidden;
}

/* Typography */
.font-playfair {
    font-family: var(--font-playfair);
}

.font-lora {
    font-family: var(--font-lora);
}

.font-inter {
    font-family: var(--font-inter);
}

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

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

#navbar.scrolled .font-playfair {
    color: #1a1a1a !important;
}

#navbar.scrolled .menu-line {
    background: #2d2d2d !important;
}

#navbar.scrolled .mobile-link {
    color: #1a1a1a !important;
}

/* Hero parallax-like effect */
#hero {
    position: relative;
}

/* Image hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Mobile menu */
#mobile-menu {
    backdrop-filter: blur(20px);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #ab3018;
}

/* Selection */
::selection {
    background: #ffe8dd;
    color: #1a1a1a;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Gallery hover */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Print styles */
@media print {
    #navbar,
    .scroll-indicator {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}
