/* Custom styles for Rex Wraps */

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

/* Navbar transitions */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(250, 248, 244, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 1px 20px rgba(26, 60, 42, 0.08);
}

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

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Nav link underline animation */
.nav-link {
    position: relative;
}

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

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

/* Mobile menu */
#mobile-menu {
    max-height: 0;
}

#mobile-menu.open {
    max-height: 400px;
}

.mobile-nav-link {
    position: relative;
    padding-left: 0;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8fb592;
}

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

/* Form focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(61, 122, 70, 0.1);
}

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

/* Gold accent hover glow */
a[href^="tel"] {
    position: relative;
}

/* Selection color */
::selection {
    background: rgba(26, 60, 42, 0.15);
    color: #1a3c2a;
}
