/* ========================================
   Multi Office Squad — Custom Styles
   ======================================== */

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

body {
    overflow-x: hidden;
}

::selection {
    background: #b92241;
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f5f5f5;
}
::-webkit-scrollbar-thumb {
    background: #b92241;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9c1b36;
}

/* ========================================
   Hero Reveal Animations (above fold — always visible)
   ======================================== */
.hero-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-reveal:nth-child(1) { transition-delay: 0.1s; }
.hero-reveal:nth-child(2) { transition-delay: 0.2s; }
.hero-reveal:nth-child(3) { transition-delay: 0.3s; }
.hero-reveal:nth-child(4) { transition-delay: 0.4s; }
.hero-reveal:nth-child(5) { transition-delay: 0.5s; }
.hero-reveal:nth-child(6) { transition-delay: 0.6s; }
.hero-reveal:nth-child(7) { transition-delay: 0.7s; }
.hero-reveal:nth-child(8) { transition-delay: 0.8s; }

/* ========================================
   Scroll Reveal (below fold — progressive enhancement)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

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

/* Fallback: ensure all content is visible even without JS */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Navbar
   ======================================== */
#navbar.scrolled {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

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

#mobileMenu {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#mobileMenu.open {
    transform: translateX(0);
}

/* ========================================
   Form Elements
   ======================================== */
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='%239ca3af' 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 0 center;
    padding-right: 2rem;
}

select:focus {
    border-color: #b92241;
}

input:focus, textarea:focus, select:focus {
    border-color: #b92241 !important;
}

/* ========================================
   Service Card Hover
   ======================================== */
.service-card {
    transition: background-color 0.5s ease;
}

/* ========================================
   Image Hover
   ======================================== */
img {
    display: block;
    max-width: 100%;
}

/* ========================================
   Utility
   ======================================== */
.no-underline {
    text-decoration: none;
}
