/* ============================================
   Marcella's Winery — Custom Styles
   ============================================ */

/* Clip path for hero diagonal */
.clip-diagonal {
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 0% 100%);
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f6f6f7;
}
::-webkit-scrollbar-thumb {
    background: #c4c4c8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9b9ba0;
}

/* Selection color */
::selection {
    background: #E85D4A;
    color: white;
}

/* Navbar scrolled state */
.navbar-scrolled {
    background: rgba(250, 250, 252, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(28, 28, 30, 0.08);
}

/* Mobile menu transitions */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Scroll reveal base - visible by default for progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Scroll reveal - animated state (applied via JS) */
@media (prefers-reduced-motion: no-preference) {
    .reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-hidden.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-hidden.delay-1 { transition-delay: 0.1s; }
    .reveal-hidden.delay-2 { transition-delay: 0.2s; }
    .reveal-hidden.delay-3 { transition-delay: 0.3s; }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #E85D4A;
    outline-offset: 2px;
    border-radius: 4px;
}

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