/* ============================================
   Tony's Upholstery — Custom Styles
   ============================================ */

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

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fdfbf7;
}

::-webkit-scrollbar-thumb {
    background: #d4a0a0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0183b;
}

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #a0183b;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
.mobile-menu-link {
    position: relative;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(253, 251, 247, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

nav.scrolled .nav-link {
    color: #2d2d2d;
}

nav.scrolled .menu-line {
    background: #2d2d2d;
}

nav.scrolled #nav-logo-text {
    color: #2d2d2d;
}

nav.scrolled #nav-logo-icon {
    color: #841735;
}

/* Hero scroll indicator */
.scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-dot {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.6);
    position: absolute;
    top: -12px;
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -12px; }
    100% { top: 40px; }
}

/* Service cards */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

/* Gallery */
.gallery-item {
    height: 280px;
}

@media (min-width: 768px) {
    .gallery-item {
        height: 360px;
    }
}

/* Process steps */
.process-step {
    position: relative;
}

@media (min-width: 1024px) {
    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 40px;
        right: -2rem;
        width: 3rem;
        height: 1px;
        background: rgba(245, 165, 184, 0.4);
    }
}

/* Contact form select */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23721732' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Decorative divider */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    max-width: 200px;
    height: 1px;
    background: #f5a5b8;
}

/* Fade-in animation for scroll reveal */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu animation */
#mobile-menu.open {
    transform: translateX(0);
}

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

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

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
    
    .scroll-dot {
        animation: none;
    }
    
    .gallery-item img,
    .service-card img {
        transition: none;
    }
}
