/* ========================================
   Etc Lounge — Custom Styles
   Premium Dark Luxury Bakery & Grocery
   ======================================== */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: rgba(201, 168, 76, 0.3);
    color: #E8DFC8;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A0908;
}
::-webkit-scrollbar-thumb {
    background: #2E2922;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C9A84C;
}

/* --- Reveal Animations (progressive enhancement) --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

/* --- Stagger children --- */
.reveal-grid > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-grid > *:nth-child(1) { transition-delay: 0.1s; }
    .reveal-grid > *:nth-child(2) { transition-delay: 0.2s; }
    .reveal-grid > *:nth-child(3) { transition-delay: 0.3s; }
    .reveal-grid > *:nth-child(4) { transition-delay: 0.4s; }
    .reveal-grid > *:nth-child(5) { transition-delay: 0.5s; }
    .reveal-grid > *:nth-child(6) { transition-delay: 0.6s; }
}

.reveal-grid.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* --- Navbar scroll state --- */
.nav-scrolled {
    background-color: rgba(10, 9, 8, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.nav-scrolled #navbar .text-etch-gold,
.nav-scrolled #navbar a:not(.border) {
    color: #D4C4A8 !important;
}

/* --- Gold shimmer on hover for CTA buttons --- */
.bg-etch-gold {
    position: relative;
    overflow: hidden;
}

.bg-etch-gold::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.bg-etch-gold:hover::after {
    left: 100%;
}

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

/* --- Focus styles --- */
input:focus,
textarea:focus,
button:focus {
    outline: 2px solid rgba(201, 168, 76, 0.5);
    outline-offset: 2px;
}

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

/* --- Subtle gold divider animation --- */
.w-12.h-px.bg-etch-gold {
    transition: width 0.4s ease;
}

/* --- Button ripple effect --- */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* --- Form input autofill --- */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1A1714 inset !important;
    -webkit-text-fill-color: #D4C4A8 !important;
    caret-color: #C9A84C;
}

/* --- Loading state for form --- */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- Responsive adjustments --- */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.15;
    }

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

    #hero h1 span {
        display: block;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #hero h1 {
        font-size: 3.5rem;
    }
}

/* --- Print styles --- */
@media print {
    body {
        background: white;
        color: black;
    }
    .bg-etch-gold,
    .text-etch-gold {
        color: #333 !important;
    }
}
