/* Custom styles for RC Tree Service Inc */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf6f2;
}
::-webkit-scrollbar-thumb {
    background: #b92b2b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9c2121;
}

/* Selection color */
::selection {
    background: #b92b2b;
    color: white;
}

/* Navbar transition */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(254, 252, 251, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(127, 28, 28, 0.08);
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu active state */
#mobile-menu.open {
    display: block;
}

#mobile-menu.hidden {
    display: none;
}

/* Menu button animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.5rem;
}

/* Mobile link hover */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #b92b2b;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 100%;
}

/* Card hover effects */
.group:hover .group-hover\:-translate-y-1 {
    transform: translateY(-4px);
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(185, 43, 43, 0.15);
}

/* Image hover zoom */
img {
    transition: transform 0.7s ease;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    img {
        transition: none;
    }
    .group:hover .group-hover\:scale-105 {
        transform: none;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }

    /* Adjust hero on mobile */
    #hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }
}

/* Print styles */
@media print {
    #navbar,
    #contact-form,
    #form-success,
    .reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
