/* Custom styles for Herman's Homework */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Ensure mobile menu animations work */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #c13d1e;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4522a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #f3beaa;
    color: #6a2618;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .service-card:hover .service-icon {
        transform: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    a, button {
        transition: none;
    }
}

/* Print styles */
@media print {
    nav, #contact-form, .cta-wave, button {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .font-display {
        font-family: Georgia, serif;
    }
}
