/* ============================================
   VILLAGOMEZ VINEYARDS — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: #C9A84C;
    color: #0D1B2A;
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #D4B96A !important;
}

/* Mobile Menu */
#mobileMenu {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    position: relative;
    transition: color 0.3s ease;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: #C9A84C;
    transition: width 0.3s ease;
}

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

/* Hamburger Animation */
#menuBtn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

#bar1 {
    width: 24px;
}

#bar2 {
    width: 24px;
}

#bar3 {
    width: 16px;
}

#menuBtn.active #bar1 {
    transform: translateY(6px) rotate(45deg);
}

#menuBtn.active #bar2 {
    opacity: 0;
    transform: translateX(-10px);
}

#menuBtn.active #bar3 {
    width: 24px;
    transform: translateY(-6px) rotate(-45deg);
}

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
    position: relative;
}

/* Scroll Line Animation */
@keyframes scrollLine {
    0% {
        height: 0;
        opacity: 0;
    }
    50% {
        height: 48px;
        opacity: 1;
    }
    100% {
        height: 48px;
        opacity: 0;
    }
}

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.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;
}

/* ============================================
   SECTION DIVIDERS
   ============================================ */
.section-divider {
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C9A84C, transparent);
}

/* ============================================
   FORM STYLES
   ============================================ */
input:focus,
textarea:focus {
    border-color: #C9A84C !important;
}

input::placeholder,
textarea::placeholder {
    color: rgba(27, 42, 74, 0.2);
}

/* ============================================
   IMAGE HOVER EFFECTS
   ============================================ */
.overflow-hidden {
    position: relative;
}

.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

/* ============================================
   GOLD ACCENT LINE
   ============================================ */
.gold-accent {
    position: relative;
}

.gold-accent::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #C9A84C, transparent);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    #hero h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .floating-card {
        position: relative;
        margin-top: 1.5rem;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 14px;
    }

    #hero h1 {
        font-size: 2rem;
    }

    .section-padding {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@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 {
        opacity: 1;
        transform: none;
    }
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    #navbar,
    #menuBtn,
    .animate-scroll-line {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
    }
}
