/* ============================================
   AVIATORS BAR — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background: #d43f15;
    color: #fefcf8;
}

/* --- Navigation --- */
.nav-fixed {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.nav-fixed.scrolled {
    background: rgba(26, 20, 18, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(253, 252, 248, 0.05);
}

.nav-fixed.scrolled .nav-link {
    color: rgba(253, 248, 238, 0.8);
}

.nav-fixed.scrolled .nav-link:hover {
    color: #f8c4b0;
}

.nav-link {
    color: rgba(253, 248, 238, 0.7);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #f8c4b0;
}

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

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

.mobile-link {
    transition: color 0.3s ease;
}

/* Hamburger animation */
.hamburger-line {
    transition: transform 0.3s ease, width 0.3s ease;
}

#menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

#menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    img {
        transition: none;
    }
}

/* --- Hero Asymmetric Layout --- */
#hero {
    display: flex;
}

#hero > div:first-child {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* --- Buttons --- */
button, a {
    cursor: pointer;
}

/* --- Form Styles --- */
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='%233a2f26' 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;
}

/* --- Back to Top --- */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    translate: 0 0;
}

/* --- Image hover effects --- */
.rounded-2xl img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Card hover --- */
.bg-white.rounded-2xl {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-white.rounded-2xl:hover {
    transform: translateY(-4px);
}

/* --- Custom scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fdf8ee;
}

::-webkit-scrollbar-thumb {
    background: #d43f15;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #af2e11;
}

/* --- Mobile responsiveness --- */
@media (max-width: 767px) {
    #hero {
        min-height: auto;
        flex-direction: column;
    }
    
    #hero > div:first-child {
        min-height: 100vh;
        justify-content: center;
        text-align: center;
    }
    
    #hero > div:last-child {
        min-height: 40vh;
    }
    
    #hero > div:last-child img {
        object-position: center;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #hero {
        flex-direction: column;
    }
    
    #hero > div:first-child {
        min-height: 70vh;
    }
    
    #hero > div:last-child {
        min-height: 50vh;
    }
}
