/* ============================================
   Boss Cleaners — Custom Styles
   ============================================ */

/* Base */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: rgba(13, 148, 136, 0.2);
    color: #0f766e;
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Light (scrolled) state */
#navbar.scrolled .nav-logo {
    color: #0f766e;
    border-color: #0f766e;
}

#navbar.scrolled .nav-logo-icon {
    color: #0f766e;
}

#navbar.scrolled .nav-logo-text {
    color: #1e293b;
}

#navbar.scrolled .nav-link {
    color: #64748b;
}

#navbar.scrolled .nav-link:hover {
    color: #0f766e;
}

#navbar.scrolled .nav-cta {
    color: #0f766e;
    border-color: #0f766e;
}

#navbar.scrolled .nav-menu-btn {
    color: #1e293b;
}

/* Dark (hero) state */
#navbar .nav-logo {
    color: #5eead4;
    border-color: rgba(94, 234, 212, 0.4);
}

#navbar .nav-logo-icon {
    color: #5eead4;
}

#navbar .nav-logo-text {
    color: #f1f5f9;
}

#navbar .nav-link {
    color: rgba(241, 245, 249, 0.7);
}

#navbar .nav-link:hover {
    color: #5eead4;
}

#navbar .nav-cta {
    color: #5eead4;
    border-color: rgba(94, 234, 212, 0.4);
}

#navbar .nav-cta:hover {
    color: #042f2e;
}

#navbar .nav-menu-btn {
    color: #f1f5f9;
}

/* Mobile menu */
#mobile-menu.open {
    translate: 0 0;
}

/* ============================================
   HERO
   ============================================ */
.cta-primary {
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.3);
}

.cta-primary:hover {
    box-shadow: 0 8px 30px rgba(20, 184, 166, 0.4);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-eyebrow {
    will-change: transform, opacity;
}

.section-title {
    will-change: transform, opacity;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.service-card:last-child {
    border-bottom: none;
}

/* ============================================
   PROCESS CARDS
   ============================================ */
.process-card {
    border-right: 1px solid #e2e8f0;
}

.process-card:last-child {
    border-right: none;
}

/* ============================================
   TESTIMONIAL CARDS
   ============================================ */
.testimonial-card {
    transition: transform 0.5s ease, background-color 0.5s ease, box-shadow 0.5s ease;
}

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

/* ============================================
   REVEAL ANIMATIONS
   (progressive enhancement — content is visible
   by default; JS adds the animated state)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

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

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }

    /* Hero animations */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(24px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ============================================
   FOCUS STYLES
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ============================================
   MOBILE NAV LINKS
   ============================================ */
.mobile-nav-link {
    position: relative;
}

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

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
    .service-card {
        border-right: none;
    }

    .process-card {
        border-right: none;
    }
}
