/* ============================================
   KAMALA GARDENS BREWERY — CUSTOM STYLES
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: #B85C38;
    color: #FDF6EC;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF6EC;
}
::-webkit-scrollbar-thumb {
    background: #B85C38;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a04e2f;
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
    background: rgba(253, 246, 236, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#navbar.scrolled {
    background: rgba(253, 246, 236, 0.97);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* ============================================
   MOBILE MENU
   ============================================ */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   Only active when JS is available and user
   prefers motion — default state is visible.
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.7s cubic-bezier(0.22, 1, 0.36, 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; }
}

/* If JS is disabled, all content is already visible — no hidden state applied */

/* ============================================
   BACK TO TOP
   ============================================ */
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================
   RESPONSIVE TWEAKS
   ============================================ */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.1;
    }
}

/* ============================================
   FORM FOCUS RING CUSTOM
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.15);
}

/* ============================================
   IMAGE LAZY-LOAD TRANSITION
   ============================================ */
img[loading="lazy"] {
    transition: opacity 0.4s ease;
}
