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

:root {
    scroll-behavior: smooth;
}

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

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(250, 246, 241, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-scrolled .font-serif,
.nav-scrolled .text-warmgray-900 {
    color: #1a140e !important;
}

.nav-scrolled .text-warmgray-700 {
    color: #3d3228 !important;
}

/* Hero image parallax-like effect on scroll */
#hero img {
    transition: transform 0.3s ease;
}

/* Service card hover lift */
#services .group:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#services .group {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Scroll reveal animations (below fold only) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Mobile menu animation */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 20px;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Form input focus glow */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 86, 40, 0.1);
}

/* Selection color */
::selection {
    background: rgba(184, 65, 26, 0.15);
    color: #1a140e;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9a8878;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}
