/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background-color: rgba(114, 47, 55, 0.15);
    color: #722F37;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #fafaf8;
}
::-webkit-scrollbar-thumb {
    background: #d4a8a8;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #722F37;
}

/* Animations */
@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.animate-scroll-line {
    animation: scrollLine 1.5s ease-in-out infinite;
}

/* Scroll Reveal */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

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

/* Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: #722F37;
    transition: height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover::before {
    height: 100%;
}

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

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(114, 47, 55, 0.15);
}

/* Navbar Transition */
.nav-transparent .nav-text {
    color: #1c1917;
}
.nav-transparent .nav-text-muted {
    color: #78716c;
}

/* Mobile Menu */
.mobile-menu-open #mobile-menu {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-menu-open #bar1 {
    transform: rotate(45deg) translate(3px, 3px);
}
.mobile-menu-open #bar2 {
    opacity: 0;
}
.mobile-menu-open #bar3 {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

.mobile-link {
    position: relative;
}

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

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

/* Form Select */
select option {
    background: white;
    color: #1c1917;
}

/* Map Container */
.map-container {
    position: relative;
    overflow: hidden;
}

.map-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(114, 47, 55, 0.15);
    pointer-events: none;
}

/* Image Hover */
img {
    display: block;
}
