/* ===== Custom Styles for Lisa Zehner Health Insurance Broker ===== */

:root {
    --midnight-900: #050D1A;
    --midnight-800: #0A1628;
    --midnight-700: #0F1F36;
    --midnight-600: #142A47;
    --mint-400: #5EEAD4;
    --mint-500: #34D399;
    --gold-400: #FBBF24;
    --gold-500: #D4A017;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(5, 13, 26, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 160, 23, 0.1);
}

/* ===== Mobile Menu ===== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

.menu-line {
    display: block;
}

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

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

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

/* ===== Service Cards ===== */
.service-card {
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(212, 160, 23, 0.05);
}

/* ===== Process Steps ===== */
.process-step {
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-4px);
}

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

.faq-item.active .faq-content {
    max-height: 200px;
    padding-top: 0;
    padding-bottom: 1.5rem;
}

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

/* ===== Scroll Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

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

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

::-webkit-scrollbar-track {
    background: var(--midnight-900);
}

::-webkit-scrollbar-thumb {
    background: var(--midnight-600);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-500);
}

/* ===== Selection ===== */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: var(--gold-400);
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .service-card,
    .process-step {
        transition: none;
    }

    .service-card:hover,
    .process-step:hover {
        transform: none;
    }

    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .service-card {
        padding: 1.5rem;
    }

    #about .grid > :first-child {
        order: 2 !important;
    }
}

@media (max-width: 640px) {
    .font-serif.text-5xl {
        font-size: 2.5rem;
    }
}
