/* Custom styles for Lytton Manor Vineyard */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFFBF7;
}
::-webkit-scrollbar-thumb {
    background: #722F37;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #962828;
}

/* Selection color */
::selection {
    background: #722F37;
    color: #FFFBF7;
}

/* Navbar transition */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(45, 14, 14, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F9A8A8;
    transition: width 0.3s ease;
}

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

/* Wine card tilt effect */
.wine-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease, border-color 0.4s ease;
}

.wine-card:hover {
    transform: translateY(-4px);
}

/* Button hover glow */
button[type="submit"]:hover {
    box-shadow: 0 8px 30px rgba(114, 47, 55, 0.25) !important;
}

/* Focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(114, 47, 55, 0.1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .wine-card {
        transition: none;
    }
    .wine-card:hover {
        transform: none;
    }
    ::-webkit-scrollbar {
        width: 4px;
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.1;
    }
}

/* Print styles */
@media print {
    #navbar,
    #gallery,
    .wine-card {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
