/* ============================================
   Crane Bar — Custom Styles
   Premium Dark Luxury | Teal + Slate + Gold
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #080e1a;
    color: #f1f5f9;
}

::selection {
    background-color: rgba(251, 191, 36, 0.3);
    color: #f1f5f9;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #080e1a;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* --- Navbar --- */
#navbar {
    background: transparent;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(8, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* --- Mobile Menu --- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.close {
    opacity: 0;
    pointer-events: none;
}

/* --- Hamburger Animation --- */
#menu-toggle.active #bar1 {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-toggle.active #bar2 {
    opacity: 0;
    transform: scaleX(0);
}
#menu-toggle.active #bar3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* --- Reveal Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .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; }
}

/* Respect reduced motion — content always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* --- Gold Accent Glow --- */
.glow-gold {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.15);
}

/* --- Button Hover Lift --- */
button, a {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Image Hover Container --- */
.rounded-2xl.overflow-hidden {
    will-change: transform;
}

/* --- Smooth section transitions --- */
section {
    position: relative;
}

/* --- Focus styles for accessibility --- */
a:focus-visible, button:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 4px;
    border-radius: 4px;
}

/* --- Tablet adjustments --- */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.1;
    }
}
