/* Custom styles for Equity ADUs & Remodeling */

/* Base styles */
:root {
    --color-mint-400: #86efac;
    --color-mint-500: #22c55e;
    --color-mint-600: #16a34a;
    --color-midnight-900: #102a43;
    --color-midnight-950: #0a1a2e;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Custom animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

.animation-delay-200 {
    animation-delay: 200ms;
}

.animation-delay-400 {
    animation-delay: 400ms;
}

.animation-delay-600 {
    animation-delay: 600ms;
}

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

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

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

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Input styles */
.input-field {
    transition: all 0.3s ease;
}

.input-field:focus {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Navbar */
#navbar {
    background: transparent;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

#navbar.scrolled .nav-link {
    color: #334e68;
}

#navbar.scrolled .nav-link:hover {
    color: #16a34a;
}

#navbar.scrolled .btn-primary {
    color: white;
}

#navbar.scrolled .text-midnight-900 {
    color: #102a43 !important;
}

/* Mobile menu */
#mobile-menu {
    animation: fadeIn 0.3s ease-out;
}

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #d9e2ec;
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Service cards */
.service-card {
    transition: all 0.5s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: rgba(34, 197, 94, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Gallery items */
.gallery-item {
    position: relative;
    cursor: pointer;
}

/* FAQ */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-content.open {
    max-height: 200px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2.5rem;
    }
    
    .text-7xl {
        font-size: 4rem;
    }
}
