/* Hacienda Vieja — Custom Styles */

/* Base overrides */
* { box-sizing: border-box; }

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection color */
::selection {
    background: rgba(212, 86, 42, 0.2);
    color: #1a2744;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8ea;
}
::-webkit-scrollbar-thumb {
    background: #d4562a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8411e;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #d4562a;
    outline-offset: 2px;
}

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

/* Nav link underline animation */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #d4562a;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after {
    width: 60%;
}

/* Mobile link hover */
.mobile-link {
    position: relative;
}

/* Image lazy load placeholder */
img {
    background: linear-gradient(135deg, #fdf0eb 0%, #fbe0d4 100%);
}

/* Reduce motion for accessibility */
@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;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {
    nav, #mobile-menu, .reveal { display: none !important; }
    body { color: #000; background: #fff; }
    .hero-overlay { display: none; }
}
