/* Custom Styles for Your Heating & Air Guy */

:root {
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --stone-100: #f5f5f4;
    --stone-400: #a8a29e;
    --stone-900: #1c1917;
    --stone-950: #0c0a09;
}

/* Custom Font Setup */
.font-display {
    font-family: 'Playfair Display', serif;
}

.font-sans {
    font-family: 'Lato', sans-serif;
}

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

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

::-webkit-scrollbar-track {
    background: var(--stone-950);
}

::-webkit-scrollbar-thumb {
    background: var(--emerald-800);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--emerald-700);
}

/* Selection Color */
::selection {
    background: var(--emerald-700);
    color: var(--stone-100);
}

/* Navigation Active State */
nav a.active {
    color: var(--amber-400);
}

/* Gradient Text Utility */
.text-gradient {
    background: linear-gradient(135deg, var(--emerald-400), var(--emerald-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow Effects */
.glow-emerald {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.glow-amber {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

/* Hover Card Effect */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Pulse Animation for Badge */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.animate-pulse-ring {
    animation: pulse-ring 2s infinite;
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Stagger Animation Delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
}

#mobile-menu:not(.hidden) {
    max-height: 400px;
    opacity: 1;
}
