/* ========================================
   La Vaquerita — Custom Styles
   Classic & Elegant · Burgundy + Blush
   ======================================== */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background: #831b2b;
    color: #faf8f5;
}

/* --- Clip Paths --- */
.clip-hero-right {
    clip-path: polygon(30% 0%, 100% 0, 100% 100%, 0% 100%);
}

/* --- Navigation --- */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(44, 36, 32, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile menu lines animation */
#menu-toggle.active .menu-line:first-child {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
    width: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
    width: 6;
    transform: rotate(-45deg) translate(4px, -4px);
    margin: 0;
}

/* Mobile links */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-link.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Scroll Indicator --- */
@keyframes scrollLine {
    0% { top: -16px; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

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

/* --- Hero Animations --- */
.hero-eyebrow {
    animation: slideUp 0.8s ease forwards 0.2s;
    opacity: 0;
}

.hero-title {
    animation: slideUp 0.8s ease forwards 0.4s;
    opacity: 0;
}

.hero-subtitle {
    animation: slideUp 0.8s ease forwards 0.6s;
    opacity: 0;
}

.hero-cta-primary,
.hero-cta-secondary {
    animation: slideUp 0.8s ease forwards 0.8s;
    opacity: 0;
}

.hero-stat {
    animation: slideUp 0.8s ease forwards 1s;
    opacity: 0;
}

.hero-img-main {
    animation: fadeInUp 1s ease forwards 0.5s;
    opacity: 0;
}

.hero-img-float {
    animation: fadeInUp 1s ease forwards 0.8s;
    opacity: 0;
}

.hero-badge {
    animation: fadeInUp 1s ease forwards 1.1s;
    opacity: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Story Section --- */
.story-img-wrap {
    position: relative;
}

.story-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(131, 27, 43, 0.08));
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.story-img-wrap:hover::after {
    opacity: 1;
}

/* --- Menu Tabs --- */
.menu-tab {
    color: rgba(44, 36, 32, 0.5);
    background: transparent;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.menu-tab.active {
    color: #faf8f5;
    background: #831b2b;
    box-shadow: 0 4px 12px rgba(131, 27, 43, 0.3);
}

.menu-tab:not(.active):hover {
    color: #831b2b;
    background: rgba(131, 27, 43, 0.08);
}

/* --- Experience Cards --- */
.experience-card {
    position: relative;
}

.experience-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #831b2b, #d47853);
    transition: width 0.5s ease;
    z-index: 1;
}

.experience-card:hover::before {
    width: 100%;
}

/* --- Menu Items --- */
.menu-item {
    position: relative;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #831b2b;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-item:hover::before {
    opacity: 1;
}

/* --- Contact Form --- */
input:focus,
select:focus,
textarea:focus {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

/* --- Scroll Reveal --- */
.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; }

/* --- Responsive --- */
@media (max-width: 1023px) {
    .clip-hero-right {
        clip-path: none;
        display: none;
    }
    
    #hero {
        padding-top: 80px;
    }
    
    .hero-img-float {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 16px;
    }
    
    .hero-badge {
        position: relative;
        top: auto;
        right: auto;
        display: inline-block;
        margin-top: 16px;
    }
}

@media (max-width: 639px) {
    html {
        font-size: 15px;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
}

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

/* --- Print --- */
@media print {
    #navbar,
    .scroll-indicator {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
