/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2392765a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem !important; }

/* ─── Navbar ─── */
#navbar { background: transparent; }
#navbar.scrolled { background: rgba(253, 251, 247, 0.97); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(180, 140, 100, 0.1); }

/* ─── Hero Animations ─── */
.hero-anim { opacity: 0; transform: translateY(24px); animation: fadeUp 0.8s ease forwards; }
.hero-anim:nth-child(1) { animation-delay: 0.2s; }
.hero-anim:nth-child(2) { animation-delay: 0.4s; }
.hero-anim:nth-child(3) { animation-delay: 0.6s; }
.hero-anim:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Scroll Line ─── */
.scroll-line { animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ─── Reveal on Scroll ─── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ─── Mobile Menu ─── */
#mobileMenu.open { opacity: 1; pointer-events: all; }
#mobileMenu.closed { opacity: 0; pointer-events: none; }
.mobile-link { transition: opacity 0.3s ease; }

/* ─── Service Card Hover ─── */
.group:hover .group-hover\:text-terra-700 { color: #a34e30; }

/* ─── Custom Selection ─── */
::selection { background: rgba(184, 92, 56, 0.2); color: #5f301f; }

/* ─── Focus Styles ─── */
:focus-visible { outline: 2px solid #B85C38; outline-offset: 2px; }

/* ─── Smooth transitions for interactive elements ─── */
a, button { transition: all 0.25s ease; }

/* ─── Mobile responsive tweaks ─── */
@media (max-width: 640px) {
    .font-serif { line-height: 1.2; }
}
