/* Custom styles for Palencia Vineyards */

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

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

/* Navigation transition */
#navbar.scrolled {
    background: rgba(253, 248, 240, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(27, 58, 75, 0.08);
}

#navbar.scrolled .nav-link {
    color: #1B3A4B;
}

#navbar.scrolled .nav-link:hover {
    color: #317a50;
}

#navbar.scrolled .font-serif {
    color: #1B3A4B;
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .reveal-on-scroll.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#mobile-menu.open {
    max-height: 500px;
}

/* Button focus states */
a:focus-visible, button:focus-visible {
    outline: 2px solid #429e68;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background-color: #bfe3c6;
    color: #1B3A4B;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7997b1;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #e8eef2 0%, #dceddf 100%);
    min-height: 4rem;
}

/* Subtle pattern overlay for sections */
.section-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(27, 58, 75, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Hover card lift effect */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(27, 58, 75, 0.12);
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #429e68 0%, #1B3A4B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Divider line animation */
.divider-line {
    position: relative;
    display: inline-block;
}

.divider-line::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #429e68, #92d1a7);
    transition: width 0.3s ease;
}

.divider-line:hover::after {
    width: 100%;
}
