/* ===== CUSTOM STYLES ===== */

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

/* Custom selection color */
::selection {
    background-color: #4ade80;
    color: #0f1f5e;
}

/* ===== NAVBAR SCROLL STATE ===== */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 31, 94, 0.08);
    box-shadow: 0 1px 20px rgba(15, 31, 94, 0.06);
}

.nav-scrolled .nav-link {
    color: #0f1f5e;
}

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

.nav-scrolled .font-heading,
.nav-scrolled span:first-child {
    color: #0f1f5e;
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    .scroll-reveal:nth-child(2) { transition-delay: 0.08s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.16s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.24s; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.32s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.40s; }
}

/* ===== FAQ ACCORDION ===== */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1), padding 0.35s ease;
}

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

.faq-icon {
    flex-shrink: 0;
}

/* ===== BACK TO TOP ===== */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* ===== INPUT FOCUS STYLES ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ===== MOBILE MENU ANIMATION ===== */
#mobile-menu {
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SUBTLE PULSE ON HERO BADGE ===== */
@keyframes gentle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.animate-pulse {
    animation: gentle-pulse 2.5s ease-in-out infinite;
}

/* ===== IMAGE LAZY LOADING FALLBACK ===== */
img {
    background-color: #f0f3ff;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 640px) {
    .font-heading {
        letter-spacing: -0.01em;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    header, #back-to-top, button {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
