/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ── Navbar ── */
#navbar { background: transparent; }
#navbar.scrolled {
    background: rgba(13, 27, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
#navbar.scrolled .menu-line { background: #c9a84c; }

/* ── Mobile Menu ── */
.menu-line { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
#menu-btn[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
#menu-btn[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0; transform: scaleX(0);
}
#menu-btn[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg); width: 5px;
}
.mobile-link { display: block; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.mobile-link:last-child { border-bottom: none; }

/* ── Hero ── */
.hero-bg { position: relative; }
.hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(13, 27, 42, 0.7) 0%,
        rgba(13, 27, 42, 0.55) 40%,
        rgba(13, 27, 42, 0.75) 100%
    );
}
.hero-particles { pointer-events: none; }
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(201, 168, 76, 0.4);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
    50% { transform: translateY(-20px) scale(1.3); opacity: 0.8; }
}
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ── Hero Entrance (above fold — no JS required for visibility) ── */
.hero-eyebrow,
.hero-headline,
.hero-subtext,
.hero-ctas,
.hero-scroll {
    opacity: 1;
    transform: none;
    animation: heroIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-eyebrow { animation-delay: 0.1s; }
.hero-headline { animation-delay: 0.25s; }
.hero-subtext { animation-delay: 0.4s; }
.hero-ctas { animation-delay: 0.55s; }
.hero-scroll { animation-delay: 0.9s; }
@keyframes heroIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Section Labels ── */
.section-label { letter-spacing: 0.25em; }

/* ── Buttons ── */
.cta-primary, .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-family: inherit;
}
.cta-primary {
    background: #c9a84c;
    color: #0d1b2a;
}
.cta-primary:hover {
    background: #e8d5a3;
    box-shadow: 0 0 40px rgba(201,168,76,0.35);
    transform: translateY(-2px);
}
.cta-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}
.cta-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}
.btn-primary {
    background: linear-gradient(135deg, #c9a84c 0%, #b8943f 100%);
    color: #0d1b2a;
    width: 100%;
    border-radius: 12px;
    padding: 1rem 2rem;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #e8d5a3 0%, #c9a84c 100%);
    box-shadow: 0 8px 30px rgba(201,168,76,0.3);
    transform: translateY(-2px);
}

/* ── Form Inputs ── */
.field-input {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #f1f5f9;
    font-size: 0.9375rem;
    font-family: inherit;
    width: 100%;
    transition: all 0.25s ease;
    outline: none;
}
.field-input::placeholder { color: #475569; }
.field-input:hover { border-color: rgba(201,168,76,0.3); background: rgba(255,255,255,0.06); }
.field-input:focus {
    border-color: #c9a84c;
    background: rgba(201,168,76,0.05);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

/* ── Menu Cards ── */
.menu-card {
    background: rgba(13, 27, 42, 0.6);
    backdrop-filter: blur(8px);
}
.menu-card:hover {
    border-color: rgba(201,168,76,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(201,168,76,0.1);
    transform: translateY(-4px);
}

/* ── Scroll Reveal (below fold only — progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up, .reveal-left, .reveal-right {
        opacity: 1;
        transform: none;
    }
    .reveal-up { transition: opacity 0.7s ease, transform 0.7s ease; }
    .reveal-left { transition: opacity 0.7s ease, transform 0.7s ease; }
    .reveal-right { transition: opacity 0.7s ease, transform 0.7s ease; }
}
/* Default visible state — JS will re-trigger animations */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
}
.reveal-up.is-hidden { opacity: 0; transform: translateY(30px); }
.reveal-left.is-hidden { opacity: 0; transform: translateX(-30px); }
.reveal-right.is-hidden { opacity: 0; transform: translateX(30px); }

/* ── Gallery ── */
.gallery-item {
    overflow: hidden;
    position: relative;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(13,27,42,0.4) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.gallery-item:hover::after { opacity: 1; }

/* ── Divider Line ── */
.gold-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #c9a84c, transparent);
    border: none;
    margin: 1.5rem 0;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .hero-headline { font-size: 2.75rem; }
    .hero-headline br { display: none; }
    .hero-headline span { display: block; }
    #about, #menu, #gallery, #visit, #contact { padding-top: 4rem; padding-bottom: 4rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-headline { font-size: 4.5rem; }
}

/* ── Focus Visible ── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Selection ── */
::selection { background: rgba(201,168,76,0.3); color: #f1f5f9; }
