/* 
 * Carrot Cake Lady — Complete Stylesheet
 * 
 * This file contains additional styles and progressive enhancement rules.
 * Critical above-the-fold styles are inlined in index.html for instant render.
 */

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 2px;
}

/* Subtle hover transitions for menu cards */
.menu__card {
    will-change: transform;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero__scroll {
        animation: none;
    }
}

/* Print styles */
@media print {
    .nav,
    .mobile-menu,
    .hero__scroll,
    .map,
    .contact__form {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section--alt {
        background: white;
        color: black;
    }
    
    .section__title,
    .hero__title {
        color: black;
    }
    
    .btn--primary {
        background: #333;
        color: white;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .btn--primary {
        border: 2px solid ButtonText;
    }
    
    .menu__card {
        border: 1px solid ButtonText;
    }
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .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; }
}

/* Additional responsive adjustments */
@media (max-width: 480px) {
    .nav {
        padding: 0.75rem 1rem;
    }
    
    .nav__logo {
        font-size: 1.25rem;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .contact__form {
        padding: 1.5rem;
    }
}
