/* ============================================
   Sanchez Painting — Custom Styles
   Classic & Elegant | Forest Green + Off-White
   ============================================ */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f3ed;
}
::-webkit-scrollbar-thumb {
    background: #1a3c34;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2c5a42;
}

/* Selection */
::selection {
    background: #1a3c34;
    color: #faf9f6;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

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

#navbar.scrolled {
    background-color: rgba(250, 249, 246, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 60, 52, 0.08);
}

.nav-text {
    transition: color 0.3s ease;
}

.nav-text-muted {
    transition: color 0.3s ease;
}

#navbar:not(.scrolled) .nav-text {
    color: #faf9f6;
}

#navbar:not(.scrolled) .nav-text-muted {
    color: #bdd4c7;
}

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

#navbar.scrolled .nav-text-muted {
    color: #5e9474;
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

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

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

#navbar:not(.scrolled) .nav-link {
    color: #d9d4c8;
}

#navbar:not(.scrolled) .nav-link:hover {
    color: #faf9f6;
}

#navbar:not(.scrolled) .nav-link::after {
    background: #d9d4c8;
}

#navbar.scrolled .nav-link {
    color: #1a3c34;
}

.nav-btn {
    color: #faf9f6;
    transition: color 0.3s ease;
}

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

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

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

/* ============================================
   Process Steps
   ============================================ */
.process-step {
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-4px);
}

/* ============================================
   Gallery
   ============================================ */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 60, 52, 0);
    transition: background 0.4s ease;
}

.gallery-item:hover::after {
    background: rgba(26, 60, 52, 0.1);
}

.gallery-item {
    position: relative;
}

/* ============================================
   Animations (Progressive Enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .process-step,
    .gallery-item {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal (below-fold only, progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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='%231a3c34' 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;
    appearance: none;
    -webkit-appearance: none;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
    
    #hero h1 {
        font-size: 2.75rem;
    }
    
    .service-card:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 2.25rem;
    }
    
    .font-serif.text-4xl {
        font-size: 2rem;
    }
}
