/* ============================================
   Connie's Hawaiian Shaved Ice — Custom Styles
   ============================================ */

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: #0f3d2e;
    color: #f8f5f0;
}

/* Focus styles */
:focus-visible {
    outline: 3px solid #0f3d2e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: rgba(248, 245, 240, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 61, 46, 0.08);
}

#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(15, 61, 46, 0.08);
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobile-menu {
    box-shadow: 0 20px 60px rgba(15, 61, 46, 0.15);
}

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #0f3d2e;
    transition: width 0.3s ease;
}

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

/* ============================================
   Scroll Reveal Animations (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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; }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1a5c43;
}

/* ============================================
   Form select arrow
   ============================================ */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230f3d2e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

/* ============================================
   Image hover effects
   ============================================ */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* ============================================
   Hero image subtle float animation
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-10px); }
    }

    #hero .relative > div:first-child {
        animation: float 6s ease-in-out infinite;
    }
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    #navbar,
    #contact,
    button {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    .font-serif {
        color: #000 !important;
    }
}
