/* ===== Custom Styles for Reliable Restoration NY ===== */

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

/* Custom selection color */
::selection {
    background-color: #f0c86e;
    color: #102a43;
}

/* ===== Hero Animations ===== */
.hero-badge {
    animation: fadeInDown 0.8s ease-out both;
}

.hero-headline {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-sub {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-trust {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-scroll {
    animation: fadeInUp 0.8s ease-out 1s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Scroll Reveal (Progressive Enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Default state: always visible (JS is progressive enhancement) */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Navbar Scroll State ===== */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
}

.navbar-scrolled .nav-link {
    color: #102a43 !important;
}

.navbar-scrolled .nav-link:hover {
    color: #d4940a !important;
}

/* ===== Service Card Hover ===== */
.service-card {
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ===== Button Hover Effects ===== */
a, button {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ===== Input Focus ===== */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(240, 200, 110, 0.2);
}

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

#back-to-top:not(.visible) {
    transform: translateY(20px);
}

/* ===== Mobile Menu ===== */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4940a;
    transition: width 0.3s ease;
}

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

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.25rem;
    }
    
    @media (min-width: 768px) {
        .hero-headline {
            font-size: 3rem;
        }
    }
    
    @media (min-width: 1024px) {
        .hero-headline {
            font-size: 3.75rem;
        }
    }
    
    @media (min-width: 1280px) {
        .hero-headline {
            font-size: 4.5rem;
        }
    }
}

/* ===== Utility Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(240, 200, 110, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(240, 200, 110, 0); }
}

.pulse-gold {
    animation: pulse-gold 2s infinite;
}

/* ===== Focus Visible (Accessibility) ===== */
*:focus-visible {
    outline: 2px solid #f0c86e;
    outline-offset: 2px;
}

/* ===== Print Styles ===== */
@media print {
    nav, #back-to-top, .hero-scroll {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
