/* ===== Custom Styles for Spradlin Insulation Co ===== */

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

/* Base styles */
body {
    overflow-x: hidden;
}

/* Navigation styles */
.nav-link {
    color: #4a224a;
}

.nav-link:hover {
    color: #D4A843;
}

.nav-text-color {
    color: #3a1a3a;
}

.nav-text-sub {
    color: #a07018;
}

.nav-icon {
    color: #6B3A6B;
}

/* Light navbar (default) */
.navbar-light .nav-link {
    color: #4a224a;
}

.navbar-light .nav-link:hover {
    color: #D4A843;
}

.navbar-light .nav-text-color {
    color: #3a1a3a;
}

.navbar-light .nav-text-sub {
    color: #a07018;
}

.navbar-light .nav-icon {
    color: #6B3A6B;
}

/* Dark navbar (scrolled) */
.navbar-dark .nav-link {
    color: #e8dce8;
}

.navbar-dark .nav-link:hover {
    color: #D4A843;
}

.navbar-dark .nav-text-color {
    color: #f5f0f7;
}

.navbar-dark .nav-text-sub {
    color: #D4A843;
}

.navbar-dark .nav-icon {
    color: #e8dce8;
}

/* Mobile nav links */
.mobile-nav-link {
    color: #4a224a;
}

.mobile-nav-link:hover {
    color: #D4A843;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Default visible state for progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #b889b8;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9c5a9c;
}

/* Selection color */
::selection {
    background: #D4A843;
    color: #3a1a3a;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #D4A843;
    outline-offset: 2px;
}

/* Button hover effects */
button, a {
    transition: all 0.3s ease;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.2);
}

/* Image lazy loading placeholder */
img {
    background-color: #e8dce8;
}

/* Subtle hover lift for cards */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(107, 58, 107, 0.15);
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #6B3A6B, #D4A843);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Decorative divider */
.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #6B3A6B, #D4A843);
    border-radius: 2px;
}

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(212, 168, 67, 0.3); }
    50% { box-shadow: 0 0 40px rgba(212, 168, 67, 0.6); }
}

/* Print styles */
@media print {
    nav, .scroll-indicator, button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
}
