/* Base styles */
html {
    scroll-behavior: smooth;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f8f3ee;
}
::-webkit-scrollbar-thumb {
    background: #e5d3bc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4b896;
}

/* Selection */
::selection {
    background: #f2c0b2;
    color: #6a261d;
}

/* Header transitions */
#site-header.scrolled {
    background: rgba(252, 250, 248, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Nav links */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c03d26;
    transition: width 0.25s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Service cards */
.service-card {
    transform: translateY(0);
}

/* Process steps */
.process-step {
    opacity: 1;
}

/* Testimonial cards */
.testimonial-card {
    transform: translateY(0);
}

/* FAQ */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-content.open {
    max-height: 300px;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .service-card, .process-step, .testimonial-card {
        transition: none;
    }
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.25s ease;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Subtle image parallax on hero */
.hero-bg {
    will-change: transform;
}

/* Print styles */
@media print {
    #site-header, #mobile-toggle, #mobile-menu {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
