/* =============================================
   A1 Imports Center of Greenville — Custom Styles
   ============================================= */

/* Base & resets */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

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

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

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

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

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

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

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

/* Hero text animation - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .hero-badge {
        animation: fadeInUp 0.8s ease forwards;
    }
    .hero-headline {
        animation: fadeInUp 0.8s ease 0.15s forwards;
        opacity: 0;
    }
    .hero-subheadline {
        animation: fadeInUp 0.8s ease 0.3s forwards;
        opacity: 0;
    }
    .hero-ctas {
        animation: fadeInUp 0.8s ease 0.45s forwards;
        opacity: 0;
    }
    .hero-trust {
        animation: fadeInUp 0.8s ease 0.6s forwards;
        opacity: 0;
    }
}

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

/* Scroll reveal - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

/* Coral gradient button hover glow */
button[type="submit"]:hover,
a[href="tel:+12523641024"]:hover {
    transform: translateY(-1px);
}

/* Input focus styles */
input:focus,
textarea:focus {
    outline: none;
}

/* Product card image zoom */
.group img {
    will-change: transform;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f7f7f8;
}
::-webkit-scrollbar-thumb {
    background: #d8d8e0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8b8c8;
}

/* Selection color */
::selection {
    background-color: rgba(255, 107, 66, 0.2);
    color: #2a2a3a;
}
