/* L'Eclat Ponsonby - Dark Theme Styles */

/* Skip to content */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 10001;
    padding: 0.75rem 1.5rem;
    background: #D4AF37;
    color: #020617;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 0.5rem 0.5rem;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* Base */
body {
    background-color: #020617;
    color: #F7E7CE;
    font-family: 'Inter', sans-serif;
}

/* Clock Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: #020617;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 1s ease;
    animation: preloader-fallback 1s ease 4s forwards;
}
@keyframes preloader-fallback {
    to { opacity: 0; visibility: hidden; pointer-events: none; }
}

.clock-loader {
    width: 60px;
    height: 60px;
    border: 2px solid #D4AF37;
    border-radius: 50%;
    position: relative;
    margin-bottom: 2rem;
}

.clock-loader::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: #D4AF37;
    transform-origin: left;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delay utilities */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.delay-600 { transition-delay: 600ms; }

/* Button */
.btn-leclat {
    border: 1px solid #D4AF37;
    color: #D4AF37;
    padding: 1rem 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.5s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-leclat:hover {
    background: #D4AF37;
    color: #020617;
}

/* Star field */
#star-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 1;
    z-index: 1;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: sparkle var(--d) infinite ease-in-out;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

/* Nav states */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(2, 6, 23, 0.8);
    transition: transform 0.4s ease, background 0.4s ease;
}

#navbar.nav-hidden {
    transform: translateY(-100%);
}

#navbar.nav-scrolled {
    background: rgba(2, 6, 23, 0.95);
    border-bottom-color: rgba(212, 175, 55, 0.2);
}

/* Mobile menu */
#mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.98);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#mobile-menu.active {
    display: flex;
    opacity: 1;
}

#mobile-menu a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #F7E7CE;
    text-decoration: none;
    transition: color 0.3s ease;
}

#mobile-menu a:hover {
    color: #D4AF37;
}

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

/* Card style */
.card-leclat {
    background: #0A0F1E;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.5s ease;
}

.card-leclat:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

/* Divider */
.gold-divider {
    width: 60px;
    height: 1px;
    background: #D4AF37;
    margin: 2rem auto;
}

/* Menu item */
.menu-item {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}

.menu-item:last-child {
    border-bottom: none;
}

/* Smooth scrolling via Lenis */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

/* Faster reveal for menu items */
.menu-item.reveal {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
