/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #B85C38;
    color: #fefcf8;
}

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #B85C38;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-line {
    transition: all 0.3s ease;
}

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

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

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

.mobile-link {
    position: relative;
}

/* Hero */
.hero-bg {
    will-change: transform;
}

.hero-reveal {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Reveal Animations */
.reveal {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-img {
    transition: transform 1.2s ease;
}

.reveal-img.revealed {
    transform: scale(1.05);
}

/* Service Cards */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(61, 43, 31, 0.08);
}

/* Form */
input:focus,
select:focus,
textarea:focus {
    border-color: #e9a082 !important;
    box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.1);
}

/* Map overlay */
.map-section {
    position: relative;
}

.map-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(253, 252, 248, 0.1), transparent);
    pointer-events: none;
}

/* Decorative elements */
.leaf-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5c-8 0-15 8-15 18 0 10 7 18 15 22 8-4 15-12 15-22 0-10-7-18-15-18z' fill='%23B85C38' fill-opacity='0.03'/%3E%3C/svg%3E");
}

/* Smooth image loading */
img {
    opacity: 0;
    transition: opacity 0.6s ease;
}

img.loaded {
    opacity: 1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .service-card:hover {
        transform: none;
    }
}
