/* Custom styles for Michael J. Limas & Associates */

/* CSS Custom Properties */
:root {
    --plum-950: #3b0418;
    --plum-900: #500724;
    --amber-400: #fcd34d;
    --amber-500: #fbbf24;
    --amber-600: #d97706;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Selection color */
::selection {
    background-color: rgba(251, 191, 36, 0.2);
    color: var(--plum-900);
}

/* Hero gradient - plum to amber */
.hero-gradient {
    background: linear-gradient(
        135deg,
        #3b0418 0%,
        #500724 25%,
        #831443 50%,
        #be185d 70%,
        #d97706 85%,
        #fbbf24 100%
    );
}

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

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(80, 7, 36, 0.08);
}

#navbar.scrolled .nav-link {
    color: rgba(59, 4, 24, 0.7);
}

#navbar.scrolled .nav-link:hover {
    color: #3b0418;
}

#navbar.scrolled .menu-line {
    background-color: #3b0418;
}

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Hero badge animation */
.hero-badge {
    animation: fadeInDown 1s ease forwards;
    opacity: 0;
}

/* Hero headline animation */
h1 {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

/* CTA buttons animation */
.hero > .relative > .relative.z-10 > .flex {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

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

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

/* Mobile menu transitions */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Menu button animations */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 5rem;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #fbbf24 !important;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

/* Subtle image hover */
img {
    transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .hero-badge,
    h1,
    .hero > .relative > .relative.z-10 > .flex {
        animation: none;
        opacity: 1;
    }
    
    * {
        transition-duration: 0.01ms !important;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #be185d;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #831443;
}
