/* ============================================
   Industry Coffee — Custom Styles
   ============================================ */

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

body {
    overflow-x: hidden;
}

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

/* ============================================
   Navigation
   ============================================ */
#navbar {
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    background-color: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo-text {
    transition: color 0.5s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #c8a45e;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

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

.mobile-nav-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }

/* ============================================
   Hero Section
   ============================================ */
#hero {
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 22, 40, 0.85) 0%,
        rgba(15, 34, 64, 0.7) 50%,
        rgba(10, 22, 40, 0.6) 100%
    );
    z-index: 1;
}

#hero > .absolute {
    z-index: 2;
}

#hero > .relative {
    z-index: 3;
}

/* Scroll indicator animation */
@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(8px); }
}

#hero .absolute.bottom-10 {
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================
   Section Animations (Progressive Enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                    transform 0.8s cubic-bezier(0.4, 0, 0.2, 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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ============================================
   Image Hover Effects
   ============================================ */
.overflow-hidden {
    position: relative;
}

.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
}

.overflow-hidden:hover::after {
    opacity: 1;
}

/* ============================================
   Button Focus States
   ============================================ */
a:focus-visible, button:focus-visible {
    outline: 2px solid #c8a45e;
    outline-offset: 4px;
    border-radius: inherit;
}

/* ============================================
   Menu Section Hover
   ============================================ */
#menu .bg-white\/5:hover {
    border-color: rgba(200, 164, 94, 0.25);
    transition: border-color 0.4s ease;
}

#menu .border-b:hover {
    border-color: rgba(200, 164, 94, 0.2);
}

#menu .border-b:hover .text-white {
    color: #d4b76e;
    transition: color 0.3s ease;
}

/* ============================================
   Map Container
   ============================================ */
iframe {
    filter: saturate(0.8) contrast(1.05);
    transition: filter 0.5s ease;
}

iframe:hover {
    filter: saturate(1) contrast(1);
}

/* ============================================
   Touch Device Adjustments
   ============================================ */
@media (hover: none) {
    .overflow-hidden:hover::after {
        opacity: 0;
    }
    
    .nav-link::after {
        display: none;
    }
}

/* ============================================
   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;
    }
}

/* ============================================
   Utility: Gold Accent Line
   ============================================ */
.gold-line {
    position: relative;
}

.gold-line::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #c8a45e, #d4b76e);
    border-radius: 2px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #navbar, #hero .absolute.bottom-10,
    .overflow-hidden, iframe {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
