/* ========================================
   1330Coffee — Custom Styles
   Premium Dark Luxury
   ======================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(201, 168, 108, 0.3);
    color: #F2D9D9;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1A0A10;
}
::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 108, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 168, 108, 0.5);
}

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #C9A86C;
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #C9A86C !important;
}

/* Navbar scrolled state */
.navbar-scrolled {
    background: rgba(26, 10, 16, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 108, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

.mobile-link:hover {
    color: #C9A86C !important;
}

/* Hamburger animation */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, #1A0A10, transparent);
    pointer-events: none;
}

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

/* Gallery hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Scroll reveal base — progressive enhancement only */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

    .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; }
}

/* Gold shimmer on hover for cards */
.bg-espresso\/60:hover {
    box-shadow: 0 0 40px rgba(201, 168, 108, 0.05);
}

/* Image lazy load placeholder */
img {
    background: linear-gradient(135deg, #2A1520 0%, #1A0A10 100%);
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    #hero h1 {
        font-size: 2.75rem;
    }

    #hero h1 .italic {
        font-size: 2.5rem;
    }
}

/* Print styles */
@media print {
    nav, #menu-toggle, .reveal {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}
