/* ============================================
   SHEA BUTTER SMOOTHIES — Custom Styles
   ============================================ */

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #c17c59;
    color: #fff;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5ed;
}
::-webkit-scrollbar-thumb {
    background: #d4a574;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c17c59;
}

/* --- Navbar --- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .font-serif,
#navbar.scrolled span,
#navbar.scrolled a {
    color: #341c13 !important;
}

#navbar.scrolled .menu-line {
    background: #341c13 !important;
}

/* --- Mobile Menu --- */
.mobile-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* --- Hero Floating Cards --- */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotate, 0deg)); }
    50% { transform: translateY(-10px) rotate(var(--rotate, 0deg)); }
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 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 zoom --- */
img {
    max-width: 100%;
    height: auto;
}

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

/* --- Smooth anchor offset --- */
section[id] {
    scroll-margin-top: 80px;
}
