/* ============================================
   Aunty Nani's Hawaiian Cookies — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Selection Color */
::selection {
    background-color: #d4af37;
    color: #0a1a2e;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: transparent;
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

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

#navbar.scrolled .nav-logo-text {
    color: #102a43;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #d4af37;
    transition: width 0.3s ease;
}

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

#navbar.scrolled .nav-link {
    color: #243b53;
}

#navbar.scrolled .nav-link:hover {
    color: #b8922e;
}

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

#mobile-menu.open #bar1 {
    transform: rotate(45deg) translate(3px, 3px);
}

#mobile-menu.open #bar2 {
    opacity: 0;
}

#mobile-menu.open #bar3 {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

/* ============================================
   Hero Section
   ============================================ */
#hero {
    position: relative;
}

@keyframes scroll-indicator {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

.animate-scroll-indicator {
    animation: scroll-indicator 1.5s ease-in-out infinite;
}

/* ============================================
   Scroll Reveal Animations
   Only apply when user prefers motion
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-left {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-right {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
}

/* ============================================
   Menu Section
   ============================================ */
#menu .group:hover .h-px {
    border-color: #f5dfaa;
}

/* ============================================
   Form Styles
   ============================================ */
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='%23627d98' stroke-width='2'%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;
    padding-right: 2.5rem;
}

/* ============================================
   Image Hover Effects
   ============================================ */
overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 767px) {
    html {
        font-size: 15px;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero h1 span {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    html {
        font-size: 16px;
    }
}

/* ============================================
   Focus Styles for Accessibility
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #navbar,
    #gallery,
    .animate-scroll-indicator {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
