/* ============================================
   Palm Cafe — Custom Styles
   ============================================ */

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

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

/* ============================================
   Geometric Background Shapes (Hero)
   ============================================ */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 93, 43, 0.06) 0%, transparent 70%);
    top: -100px;
    right: -150px;
    border-radius: 50%;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232, 181, 122, 0.12) 0%, transparent 70%);
    bottom: 10%;
    left: -50px;
    border-radius: 50%;
}

.shape-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(232, 93, 43, 0.08);
    border-radius: 24px;
    top: 25%;
    right: 5%;
    transform: rotate(15deg);
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(232, 181, 122, 0.1);
    top: 40%;
    left: 3%;
    transform: rotate(-20deg);
}

.shape-dot {
    width: 16px;
    height: 16px;
    background: rgba(232, 93, 43, 0.3);
    border-radius: 50%;
    top: 35%;
    left: 12%;
}

.shape-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, rgba(232, 93, 43, 0.2), transparent);
    bottom: 25%;
    right: 15%;
    border-radius: 2px;
    transform: rotate(-30deg);
}

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

#navbar.scrolled {
    background: rgba(255, 248, 240, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(45, 31, 20, 0.08);
}

.nav-logo-text {
    transition: color 0.3s ease;
}

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

.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

/* ============================================
   Product Cards
   ============================================ */
.product-card {
    will-change: transform;
}

/* ============================================
   Hours Rows
   ============================================ */
.hours-row:hover {
    background: rgba(232, 93, 43, 0.04);
    border-radius: 8px;
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -8px;
    margin-right: -8px;
    transition: all 0.2s ease;
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.from-bottom {
        transform: translateY(40px);
        opacity: 0;
    }
    
    .reveal.from-bottom.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal.from-left {
        transform: translateX(-40px);
        opacity: 0;
    }
    
    .reveal.from-left.revealed {
        opacity: 1;
        transform: translateX(0);
    }
    
    .reveal.from-right {
        transform: translateX(40px);
        opacity: 0;
    }
    
    .reveal.from-right.revealed {
        opacity: 1;
        transform: translateX(0);
    }
    
    .reveal.scale-in {
        transform: scale(0.95);
        opacity: 0;
    }
    
    .reveal.scale-in.revealed {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   Custom Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FFF8F0;
}

::-webkit-scrollbar-thumb {
    background: #e8d5a8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4b87a;
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: rgba(232, 93, 43, 0.2);
    color: #2D1F14;
}
