/* Custom styles for Carnitas De Cazuela */

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

/* Base styles */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #faf6f3;
    color: #1a1210;
    line-height: 1.6;
}

/* Typography */
.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Navigation */
#navbar {
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 246, 243, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Hero section */
.hero-overlay {
    background: linear-gradient(135deg, rgba(59, 7, 22, 0.88) 0%, rgba(108, 17, 51, 0.78) 50%, rgba(59, 7, 22, 0.88) 100%);
}

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #a11036 0%, #c41d4a 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #821031 0%, #a11036 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(161, 16, 54, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Image hover effects */
.img-zoom {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-zoom:hover {
    transform: scale(1.05);
}

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

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Decorative line */
.decorative-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #a11036, #f4a3b8);
    border-radius: 2px;
}

/* Form styles */
input,
textarea {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #f9cfd9;
    transition: all 0.3s ease;
    font-family: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #a11036;
    background: white;
    box-shadow: 0 0 0 3px rgba(161, 16, 54, 0.1);
}

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

/* Success message */
.success-message {
    display: none;
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-message.show {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

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

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

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

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

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #a11036;
    outline-offset: 2px;
}

/* Reduced motion */
@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;
    }
}

/* Print styles */
@media print {
    #navbar,
    .mobile-menu,
    .btn-primary {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
