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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #94745c;
}

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

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

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

.nav-link:hover {
    color: #3a2c23 !important;
}

/* Mobile Menu */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.4s; }

/* Menu Button Animation */
.menu-line {
    transform-origin: center;
}

.menu-btn-active .menu-line:first-child {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-btn-active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-btn-active .menu-line:last-child {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 20px;
}

/* Navbar Scroll State */
.nav-scrolled {
    background: rgba(250, 248, 245, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(196, 167, 154, 0.2);
}

.nav-scrolled .nav-link {
    color: #7a5f4b !important;
}

.nav-scrolled .nav-link:hover {
    color: #3a2c23 !important;
}

.nav-scrolled .menu-line {
    background: #3a2c23 !important;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
    }
    
    .reveal-left.active {
        opacity: 1;
        transform: translateX(0);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
    }
    
    .reveal-right.active {
        opacity: 1;
        transform: translateX(0);
    }
    
    .reveal-scale {
        opacity: 0;
        transform: scale(0.95);
    }
    
    .reveal-scale.active {
        opacity: 1;
        transform: scale(1);
    }
}

/* Image Hover Effects */
img {
    max-width: 100%;
    height: auto;
}

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

/* Input Focus States */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Selection Color */
::selection {
    background: #d4bab0;
    color: #3a2c23;
}

/* Print Styles */
@media print {
    nav, button, #contactForm {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-terracotta-950,
    .bg-terracotta-800 {
        background: #3a2c23 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
