/* Custom styles — overrides and enhancements beyond Tailwind */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar glass effect */
.nav-scrolled {
    background: rgba(253, 248, 240, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(140, 80, 50, 0.08);
}

.nav-transparent {
    background: transparent !important;
    box-shadow: none !important;
}

/* Mobile menu animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.open .menu-line:first-child {
    transform: translateY(5px) rotate(45deg);
}
#mobile-menu.open .menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu.open .menu-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    width: 20px;
    margin-left: 0;
    margin-right: 0;
}

/* Subtle hover lift for service cards */
.group:hover {
    transform: translateY(-4px);
}

/* Selection color */
::selection {
    background: #f9c4aa;
    color: #6e2615;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8f0;
}
::-webkit-scrollbar-thumb {
    background: #f0c4a0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e8a078;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .card-float-1, .card-float-2, .card-float-3, .card-float-4 { animation: none; }
    .reveal { opacity: 1 !important; transform: none !important; }
    .group:hover { transform: none; }
}
