/* Custom styles and overrides */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: #C1694F;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A8553A;
}

/* Selection color */
::selection {
    background: #C1694F;
    color: #F5F0EB;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #C1694F;
    outline-offset: 2px;
}

/* Image frame animation */
.image-frame {
    transition: transform 0.3s ease;
}

.image-frame:hover {
    transform: scale(1.02);
}

/* Button hover effects */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

/* Service card image hover */
.service-card img {
    transition: transform 0.3s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

/* Testimonial card hover */
.bg-white.rounded-2xl {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-white.rounded-2xl:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(44, 36, 32, 0.1);
}

/* Form input focus animation */
input:focus,
textarea:focus {
    animation: focusPulse 0.3s ease;
}

@keyframes focusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(193, 105, 79, 0.4);
    }
    100% {
        box-shadow: 0 0 0 4px rgba(193, 105, 79, 0.1);
    }
}

/* Mobile menu transition */
.mobile-menu {
    will-change: transform;
}

/* Navigation background on scroll */
nav.scrolled {
    box-shadow: 0 4px 20px rgba(44, 36, 32, 0.1);
}

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

/* Print styles */
@media print {
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    nav,
    .mobile-menu {
        display: none;
    }
}
