/* Custom styles — overrides and additions to Tailwind */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF6F0;
}
::-webkit-scrollbar-thumb {
    background: #d6cdbf;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a39182;
}

/* Navbar transitions */
#navbar.scrolled {
    background: rgba(250, 246, 240, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

#navbar.scrolled .nav-logo-text {
    color: #26221f;
}

#navbar.scrolled .nav-logo-sub {
    color: #a39182;
}

#navbar.scrolled .nav-icon-path,
#navbar.scrolled .nav-icon-fill {
    color: #26221f;
}

/* Mobile menu animations */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
#menu-btn.active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu-btn.active #bar2 {
    opacity: 0;
}
#menu-btn.active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Service card hover */
.service-card {
    transform: translateY(0);
}
.service-card:hover {
    transform: translateY(-4px);
}

/* Testimonial card hover */
.testimonial-card {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-2px);
}

/* Decorative line animation */
@media (prefers-reduced-motion: no-preference) {
    .service-card {
        transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.5s ease;
    }
}

/* Selection color */
::selection {
    background: #c45530;
    color: #FAF6F0;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #c45530;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile link animation */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Select dropdown styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%23a39182' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
