/* ========================================
   Sylmar Donuts Ice Cream — Custom Styles
   ======================================== */

/* Base & Reset */
*, *::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 Color */
::selection {
    background-color: #2e6d40;
    color: #fdfcf9;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0e6;
}
::-webkit-scrollbar-thumb {
    background: #95c4a0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #65a874;
}

/* ========================================
   Floating Animations
   ======================================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(1deg);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(-1deg);
    }
}

@keyframes float-shape {
    0%, 100% {
        transform: translateY(0px) rotate(var(--rotation, 12deg));
    }
    50% {
        transform: translateY(-20px) rotate(calc(var(--rotation, 12deg) + 5deg));
    }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

.floating-card-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

.floating-shape {
    --rotation: 12deg;
    animation: float-shape 6s ease-in-out infinite;
}

/* ========================================
   Scroll Reveal (progressive enhancement)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s 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; }
}

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

#navbar.scrolled {
    background: rgba(253, 252, 249, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 74, 40, 0.08);
}

/* ========================================
   Menu Cards
   ======================================== */
.menu-card {
    background: transparent;
}

/* ========================================
   Review Cards
   ======================================== */
.review-card {
    background: #fdfcf9;
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-link {
    display: block;
}

/* ========================================
   Form Styles
   ======================================== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 109, 64, 0.15);
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .floating-card {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        margin-bottom: 1rem;
    }
    
    #hero .relative {
        margin-top: 1rem;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    nav, .floating-shape, .floating-card {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
