/* Custom styles that extend beyond Tailwind */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9ee;
}
::-webkit-scrollbar-thumb {
    background: #f1a07e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #df6133;
}

/* Selection color */
::selection {
    background: #f7c4b0;
    color: #6d2717;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

/* Subtle hover lift on cards */
.group:hover {
    transform: translateY(-2px);
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .group:hover img {
        transform: none;
    }
    .group:hover {
        transform: none;
    }
    #mobile-menu {
        transition: none;
    }
}
