/* Custom Styles for O Forno De Juan */

/* Base Styles */
:root {
    --color-primary: #1A3C34;
    --color-secondary: #2C5E54;
    --color-accent: #D4A373;
    --color-bg: #F9F9F7;
    --color-text: #1A3C34;
    --color-text-light: rgba(26, 60, 52, 0.6);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.font-cormorant {
    font-family: 'Cormorant Garamond', serif;
}

.font-manrope {
    font-family: 'Manrope', sans-serif;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

/* Scroll Reveal Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Navigation Styles */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

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

/* Navbar Scroll Effect */
.navbar.scrolled {
    background-color: rgba(249, 249, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(26, 60, 52, 0.1);
}

.navbar.scrolled .nav-link,
.navbar.scrolled .font-cormorant {
    color: var(--color-primary);
}

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

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

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

/* Image Hover Effects */
img {
    transition: transform 0.7s ease;
}

/* Button Styles */
button, a {
    transition: all 0.3s ease;
}

/* Selection Color */
::selection {
    background-color: var(--color-primary);
    color: var(--color-bg);
}

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

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-cormorant {
        font-size: 2rem;
    }
    
    .font-cormorant.text-4xl {
        font-size: 2.5rem;
    }
    
    .font-cormorant.text-5xl {
        font-size: 3rem;
    }
    
    .font-cormorant.text-6xl {
        font-size: 3.5rem;
    }
}

/* Print Styles */
@media print {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
    
    nav, footer {
        display: none;
    }
}
