/* Custom styles for 4 Flats Vineyard */

/* Smooth scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom font-serif styles */
.font-serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Selection color */
::selection {
    background-color: #C0623B;
    color: #F5EDE0;
}

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

::-webkit-scrollbar-track {
    background: #0D0D0D;
}

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

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

/* Gold gradient text */
.gold-gradient {
    background: linear-gradient(135deg, #C9A96E 0%, #E8D5B7 50%, #C9A96E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Terracotta gradient */
.terracotta-gradient {
    background: linear-gradient(135deg, #C0623B 0%, #D4845E 100%);
}

/* Hero overlay */
.hero-overlay {
    background: linear-gradient(180deg, rgba(13,13,13,0.3) 0%, rgba(13,13,13,0.6) 60%, rgba(13,13,13,0.95) 100%);
}

/* Card hover effects */
.card-hover {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease, border-color 0.4s ease;
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(192, 98, 59, 0.15);
}

/* Button primary */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu.open {
    transform: translateX(0);
}

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

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

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

/* Pulse gold animation */
.pulse-gold {
    animation: pulseGold 3s ease-in-out infinite;
}

@keyframes pulseGold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.3);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(201, 169, 110, 0);
    }
}

/* Floating animation */
.wine-glass {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(1deg);
    }
}

/* Navbar active state */
.nav-active {
    background: rgba(13, 13, 13, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

/* Focus styles for accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
    outline: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

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

/* Select dropdown styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C9A96E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    section[id] {
        scroll-margin-top: 60px;
    }

    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

/* Print styles */
@media print {
    nav,
    #backToTop,
    .card-hover,
    .pulse-gold {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: black;
    }
}
