/* ========================================
   A Big Chill — Custom Styles
   Deep Navy + Warm Gold Palette
   ======================================== */

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

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

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #0a1628;
    color: #ffffff;
    overflow-x: hidden;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #d4a017;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e6b422;
}

/* --- Hero Diagonal Clip --- */
.clip-diagonal {
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
}

/* --- Marquee Animation --- */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

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

/* --- Scroll Reveal (Progressive Enhancement) --- */
/* Default: content is visible (no JS required) */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When JS adds the 'revealed' class */
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* If JS is unavailable, content stays visible — that's the point */

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

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

/* --- Navbar Scrolled State --- */
#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --- Menu Button Animation --- */
.menu-line {
    display: block;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
    margin-right: 0;
    margin-left: 0;
}

/* --- Mobile Links --- */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* --- Hover Effects --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4a017;
    outline-offset: 4px;
    border-radius: 4px;
}

/* --- Image Hover Overlay --- */
.rounded-2xl.overflow-hidden.group {
    position: relative;
}

.rounded-2xl.overflow-hidden.group::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.rounded-2xl.overflow-hidden.group:hover::after {
    opacity: 1;
}

/* --- 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-marquee {
        animation: none;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 767px) {
    .clip-diagonal {
        clip-path: none;
    }
    
    #hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    #hero .order-1 {
        order: 2;
    }
    
    #hero .order-2 {
        order: 1;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
    
    h1 span {
        font-size: 2rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .clip-diagonal {
        clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    }
}

/* --- Selection Color --- */
::selection {
    background: #d4a017;
    color: #0a1628;
}

::-moz-selection {
    background: #d4a017;
    color: #0a1628;
}
