/* Custom styles for Lewis Tree and Stump */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAFAF8;
}
::-webkit-scrollbar-thumb {
    background: #781F39;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #A02847;
}

/* Selection color */
::selection {
    background: #781F39;
    color: #FDECEF;
}

/* Navbar scroll state */
.navbar-scrolled #nav-bg {
    opacity: 1;
}

.navbar-scrolled .logo-text {
    color: #781F39;
}

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

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

.service-card:hover {
    transform: translateY(-4px);
}

/* Gallery image hover */
.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Button ripple effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

/* Mobile menu animation */
.mobile-menu-open {
    transform: translateY(0) !important;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #781F39 !important;
    box-shadow: 0 0 0 3px rgba(120, 31, 57, 0.1) !important;
}

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

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

/* Print styles */
@media print {
    header,
    footer,
    .cta-banner {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
