/* Custom styles for Hogs Fork Creek Services */

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(196, 97, 58, 0.3);
    color: #e8d5bc;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1410;
}
::-webkit-scrollbar-thumb {
    background: #2c2320;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c8956c;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(26, 20, 16, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 184, 150, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* Menu button animation */
.menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 50px;
}

/* Service cards */
.service-card {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Why cards */
.why-card {
    opacity: 1;
}

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

/* Scroll reveal (progressive enhancement) */
.js-enabled .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-enabled .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.js-enabled .reveal-delay-1 { transition-delay: 0.1s; }
.js-enabled .reveal-delay-2 { transition-delay: 0.2s; }
.js-enabled .reveal-delay-3 { transition-delay: 0.3s; }
.js-enabled .reveal-delay-4 { transition-delay: 0.4s; }

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

/* Select styling */
select option {
    background: #2c2320;
    color: #e8d5bc;
}

/* Image hover zoom */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.6s ease;
}

.rounded-2xl.overflow-hidden:hover img {
    transform: scale(1.03);
}
