/* Additional custom styles for Orr Mountain Winery */

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

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

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

::-webkit-scrollbar-thumb {
    background: #53834f;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3f663d;
}

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

/* Focus visible styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #53834f;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .nav-blur,
    .floating-card,
    .animate-bounce {
        display: none !important;
    }
    
    .hero-gradient {
        background: #111b11 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* 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;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-primary,
    .btn-secondary {
        border-width: 3px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --tw-bg-opacity: 1;
    }
    
    body {
        background-color: #1a1a1a;
        color: #faf9f6;
    }
    
    .bg-white {
        background-color: #2a2a2a !important;
    }
    
    .text-gray-600 {
        color: #a0a0a0 !important;
    }
    
    .text-forest-900 {
        color: #faf9f6 !important;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .wine-card {
        max-width: 100%;
    }
    
    .floating-card {
        display: none;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .hero-gradient {
        min-height: auto;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .wine-card:hover {
        transform: none;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
}

/* Large screen optimizations */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
