/* ============================================
   STARBUCKS OCEANSIDE — CUSTOM STYLES
   Palette: Plum + Amber | Serif: Playfair Display + Lora
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 130, 26, 0.3);
    color: #f5f0f7;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #241321;
}
::-webkit-scrollbar-thumb {
    background: #502d4c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #743f6e;
}

/* --- Animations --- */
@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

/* --- Reveal on Scroll (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);
}

/* Default visible state for no-JS fallback */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* --- 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;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* --- Navbar transitions --- */
#navbar.scrolled {
    background: rgba(20, 10, 22, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(116, 63, 110, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .font-display {
    color: #fde8c8;
}

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

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
#bar1.open {
    transform: rotate(45deg) translate(7px, 7px);
}
#bar2.open {
    opacity: 0;
}
#bar3.open {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* --- Button hover effects --- */
a[href^="tel:"] {
    text-decoration: none;
}

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

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

/* --- Card shimmer on hover --- */
.group:hover .group-hover\:bg-amber-500\/20 {
    background: rgba(240, 184, 77, 0.2);
}

/* --- Menu item hover --- */
.border-b {
    transition: border-color 0.3s ease;
}

/* --- Smooth section transitions --- */
section {
    position: relative;
}

/* --- Print styles --- */
@media print {
    #navbar,
    #mobile-menu,
    .animate-scroll-line {
        display: none !important;
    }
    body {
        background: white;
        color: #333;
    }
}
