/* === Custom Styles for Gibson Ranch & Vineyards === */

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

/* Base font smoothing */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1929;
}
::-webkit-scrollbar-thumb {
    background: #334e68;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #486581;
}

/* Selection color */
::selection {
    background: rgba(61, 193, 130, 0.2);
    color: #f0f4f8;
}

/* === Navbar transitions === */
.nav-scrolled {
    background: rgba(10, 25, 41, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(176, 216, 250, 0.06);
}

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

/* === Hero decorative elements === */
.hero-gradient {
    background: linear-gradient(135deg, #0a1929 0%, #102a43 50%, #0a1929 100%);
}

/* === Card hover effects === */
.card-lift {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}
.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* === Button hover effects === */
.btn-elegant {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn-elegant::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: rgba(255, 255, 255, 0.1);
    transition: height 0.3s ease;
}
.btn-elegant:hover::after {
    height: 100%;
}

/* === Image hover zoom === */
.img-zoom {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-zoom:hover {
    transform: scale(1.03);
}

/* === Divider animations === */
.divider-line {
    background: linear-gradient(90deg, transparent, rgba(176, 216, 250, 0.2), transparent);
}

/* === Scroll reveal base (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* === Form focus states === */
input:focus, textarea:focus {
    box-shadow: 0 0 0 1px rgba(110, 213, 160, 0.3);
}

/* === Mobile menu button animation === */
.menu-line-1 {
    transform-origin: center;
}
.menu-line-2 {
    transform-origin: center;
}
.menu-line-3 {
    transform-origin: center;
}
.menu-active .menu-line-1 {
    transform: rotate(45deg) translate(3px, 3px);
}
.menu-active .menu-line-2 {
    opacity: 0;
}
.menu-active .menu-line-3 {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

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

/* === 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;
    }
}
