/* Custom Styles for The Ultimate Look */

/* Base Typography */
body {
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

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

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.animate-slide-up-delay {
    animation: slideUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

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

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

/* Staggered reveal delays */
.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal:nth-child(4) { transition-delay: 0.4s; }
.reveal:nth-child(5) { transition-delay: 0.5s; }
.reveal:nth-child(6) { transition-delay: 0.6s; }

/* Navigation States */
.nav-scrolled {
    background: rgba(253, 252, 250, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.nav-scrolled #nav-logo,
.nav-scrolled #nav-subtitle,
.nav-scrolled a:not(.bg-white) {
    color: #9c3b26 !important;
}

.nav-scrolled .mobile-link {
    color: #9c3b26 !important;
}

.nav-scrolled #bar1,
.nav-scrolled #bar2,
.nav-scrolled #bar3 {
    background: #9c3b26 !important;
}

/* Mobile Menu Animation */
.mobile-menu.open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

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

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

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

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

/* Selection Color */
::selection {
    background: #f5e6e0;
    color: #682a1f;
}

/* Image Loading Placeholder */
img {
    background-color: #f4eadd;
}

/* Focus Styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #c96242;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    nav, .animate-bounce, #contact-form button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
