/* Custom Styles for La Michoacana Ptzcuaro */

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

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

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

::-webkit-scrollbar-thumb {
    background: #0A1628;
    border-radius: 3px;
}

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

/* Selection Color */
::selection {
    background: #A8E6CF;
    color: #0A1628;
}

/* Base Typography */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar Transition */
#navbar {
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.05);
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Mobile Menu Lines Animation */
#menu-btn.active #line1 {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-btn.active #line2 {
    transform: rotate(-45deg);
    width: 24px;
}

/* Menu Link Hover Effect */
.mobile-link {
    position: relative;
    transition: color 0.3s ease;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #A8E6CF;
    transition: width 0.3s ease;
}

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

.mobile-link:hover {
    color: #7BC8A4;
}

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

/* Button Hover Effect */
a[href="#menu"],
a[href="#about"],
a[href="#gallery"],
a[href="#visit"] {
    position: relative;
}

/* Form Styles */
input,
textarea {
    outline: none;
}

input:focus,
textarea:focus {
    border-color: #A8E6CF !important;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    img {
        transition: none;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}

/* Loading State */
.loading {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

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

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

/* Print Styles */
@media print {
    #navbar,
    #mobile-menu,
    footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
