/* ═══════════════════════════════════════════════════════
   STEADY YB — Custom Styles
   Classic & Elegant · Burgundy + Blush
   ═══════════════════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::selection {
    background: #722F37;
    color: #FDF8F6;
}

/* ─── Navigation ─── */
#site-header {
    background: transparent;
}

#site-header.scrolled {
    background: rgba(42, 6, 9, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(114, 47, 55, 0.2);
}

.nav-text {
    color: #FDF8F6;
}

.nav-link {
    position: relative;
}

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

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

/* ─── Hero ─── */
.hero-img {
    transition: transform 8s ease;
}

.hero-img.loaded {
    transform: scale(1);
}

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

.hero-anim {
    animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.2s; }
.hero-anim:nth-child(2) { animation-delay: 0.4s; }
.hero-anim:nth-child(3) { animation-delay: 0.6s; }
.hero-anim:nth-child(4) { animation-delay: 0.8s; }
.hero-anim:nth-child(5) { animation-delay: 1.0s; }

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* ─── Menu Tabs ─── */
.menu-tab {
    background: transparent;
    border: 1px solid rgba(114, 47, 55, 0.2);
    color: #722F37;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-tab:hover {
    border-color: rgba(114, 47, 55, 0.5);
    background: rgba(114, 47, 55, 0.05);
}

.menu-tab.active {
    background: #722F37;
    border-color: #722F37;
    color: #FDF8F6;
}

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

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ─── Scroll Reveal ─── */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Gallery Scroll ─── */
@keyframes scrollGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll {
    animation: scrollGallery 30s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* ─── Form Styles ─── */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.3) sepia(1) saturate(5) hue-rotate(320deg);
    cursor: pointer;
}

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='%23722F37' 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 1rem center;
    padding-right: 2.5rem;
}

/* ─── Divider decorative line ─── */
section > .max-w-7xl > div:first-child > .flex.items-center {
    position: relative;
}

/* ─── 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; }
    .animate-scroll { animation: none; }
    .hero-img { transition: none; }
}

/* ─── Responsive ─── */
@media (max-width: 767px) {
    .hero-anim {
        animation-duration: 0.7s;
    }
}
