/* ============================================
   Expert Carpet Cleaning — Custom Styles
   Premium Dark Luxury · Terracotta + Sand
   ============================================ */

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1209;
}
::-webkit-scrollbar-thumb {
    background: #3d2e1a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5a4228;
}

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

/* --- Selection --- */
::selection {
    background: rgba(200, 149, 108, 0.3);
    color: #f0e4d4;
}

/* --- Base Typography --- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    text-wrap: balance;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* --- Mobile Menu --- */
.mobile-link {
    display: block;
}

/* --- Hero --- */
.hero-section {
    position: relative;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(200, 149, 108, 0), transparent);
    transition: background 0.4s ease;
}

.service-card:hover::before {
    background: linear-gradient(90deg, transparent, rgba(200, 149, 108, 0.5), transparent);
}

/* --- Fade-in Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .fade-up {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fade-up {
        opacity: 1;
        transform: none;
    }
}

/* --- Form Styles --- */
select option {
    background: #1a1209;
    color: #f0e4d4;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* --- Back to Top --- */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .font-display {
        text-wrap: wrap;
    }
}
