/* Custom Styles for Southern Bros. Auction Services */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF0E8;
}
::-webkit-scrollbar-thumb {
    background: #D4A57E;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6B1B2A;
}

/* Selection color */
::selection {
    background: #F9CFD8;
    color: #6B1B2A;
}

/* Hero ornament animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

/* Section label */
.section-label {
    position: relative;
    display: inline-block;
}

.section-label::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #6B1B2A, #F9CFD8);
}

.section-label::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 40px;
    width: 20px;
    height: 2px;
    background: #F9CFD8;
}

/* Service card hover effects */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #6B1B2A, #F9CFD8);
    transition: height 0.5s ease;
}

.service-card:hover::before {
    height: 100%;
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(107, 27, 42, 0.1);
}

/* Process step hover */
.process-step {
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-4px);
}

/* Navbar transition */
#navbar {
    backdrop-filter: blur(0px);
    transition: all 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 248, 244, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(107, 27, 42, 0.08);
}

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

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

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

/* Hamburger animation */
.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 5px;
}

/* Intersection observer animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Input focus styles */
input:focus,
textarea:focus,
select:focus {
    border-color: #6B1B2A !important;
    box-shadow: 0 0 0 3px rgba(107, 27, 42, 0.1) !important;
}

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

/* Print styles */
@media print {
    #navbar,
    #menuBtn,
    .animate-fade-up {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
