/* Kate's Place - Nutrition & Wellness
 * Custom styles for classic, elegant design
 */

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom selection color */
::selection {
    background-color: #166534;
    color: #fefdf8;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #166534;
    outline-offset: 2px;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Navbar transition */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(254, 253, 248, 0.97);
    box-shadow: 0 1px 20px rgba(20, 83, 45, 0.1);
    backdrop-filter: blur(10px);
}

/* Scroll reveal animations - progressive enhancement */
/* Default state: visible for accessibility */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only animate when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    nav, .scroll-reveal, button, #mobile-menu-btn {
        display: none !important;
    }
    
    body {
        color: #14532d;
        background: white;
    }
    
    section {
        page-break-inside: avoid;
    }
}
