/* StoneTree Vineyard — Custom Styles */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(255, 128, 68, 0.3);
    color: #fff;
}

/* Marquee Animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* Scroll Reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(40px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }
    
    .animate-marquee {
        animation: none;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(17, 17, 20, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 128, 68, 0.1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Mobile menu active state */
.mobile-menu-active #mobileMenu {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-menu-active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

/* Smooth focus styles */
input:focus, textarea:focus, button:focus {
    outline: none;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #2a2a2e 0%, #1f1f23 100%);
}

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

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

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

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

/* Touch device optimizations */
@media (hover: none) {
    .group:hover .group-hover\:scale-110 {
        transform: none;
    }
    
    .group:hover .group-hover\:rotate-12 {
        transform: none;
    }
    
    .group:hover .group-hover\:gap-4 {
        gap: 0.5rem;
    }
}

/* Print styles */
@media print {
    nav, #contact, footer, .animate-marquee {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
