/* ============================================
   Path Valley Family Restaurant — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: #2e7d32;
    color: #fefdf8;
}

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

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34d399, #10b981);
    bottom: 10%;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 200px solid #fbbf24;
    top: 30%;
    left: 8%;
    animation: spin 20s linear infinite;
    opacity: 0.08;
}

.shape-square {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #86efac, #4ade80);
    border-radius: 24px;
    bottom: 20%;
    right: 10%;
    transform: rotate(45deg);
    animation: float 6s ease-in-out infinite;
}

.shape-ring {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 20px solid #fcd34d;
    top: 15%;
    right: 20%;
    animation: float 12s ease-in-out infinite reverse;
}

.shape-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, #86efac 2px, transparent 2px);
    background-size: 16px 16px;
    bottom: 30%;
    left: 15%;
    animation: float 7s ease-in-out infinite;
}

/* ============================================
   Animations
   ============================================ */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(3deg);
    }
    66% {
        transform: translateY(10px) rotate(-2deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   Scroll Reveal (Progressive Enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Always visible for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(22, 63, 24, 0.08);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2e7d32;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* ============================================
   Cards & Interactive Elements
   ============================================ */
button, a {
    transition: all 0.2s ease;
}

input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

/* ============================================
   Image Hover Effects
   ============================================ */
img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .shape-circle-2 {
        width: 120px;
        height: 120px;
    }
    
    .shape-triangle {
        border-left-width: 60px;
        border-right-width: 60px;
        border-bottom-width: 100px;
    }
    
    .shape-square {
        width: 80px;
        height: 80px;
    }
    
    .shape-ring {
        width: 100px;
        height: 100px;
        border-width: 10px;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    nav, .geo-shape, #mobile-menu-btn {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
