/* ============================================
   Adkins Upholstery — Custom Styles
   ============================================ */

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

body {
    overflow-x: hidden;
}

::selection {
    background: #ff6b3f;
    color: #ffffff;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out forwards;
}

.hero-content > div:first-child {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.hero-content h1 {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-content p {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-content > div:last-child {
    animation: fadeInUp 1s ease-out 0.7s both;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Card Elevation --- */
.card-elevated {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-elevated:hover {
    transform: translateY(-4px);
}

/* --- Navbar Transition --- */
#navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.15);
}

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

/* --- Mobile Menu --- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* --- Smooth Image Loading --- */
img {
    display: block;
    max-width: 100%;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #d4d0cc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff6b3f;
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #ff6b3f;
    outline-offset: 2px;
}

/* --- Utility --- */
@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }
}
