﻿/* Custom styles for static HTML version */

/* Ensure all pre-rendered SSR elements are fully visible and not stuck at opacity 0 */
[style*="opacity:0"],
[style*="opacity: 0"],
[style*="opacity:0;"],
[style*="opacity: 0;"] {
    opacity: 1 !important;
    transform: none !important;
}

/* Smooth transitions */
a, button {
    transition: all 0.2s ease-in-out;
}

/* Mobile Nav Drawer */
.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #05060f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    z-index: 50;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

html:not(.dark) .mobile-nav-menu {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-nav-menu.open {
    display: block;
    animation: fadeInDown 0.25s ease-out forwards;
}

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

/* Accordion open state for career/FAQ */
[data-accordion-content].open,
div[data-state="open"] {
    display: block !important;
    max-height: 1000px !important;
    opacity: 1 !important;
}

/* Form Toast / Alert Notice */
.form-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: toastPop 0.3s ease-out forwards;
}

.form-toast.success {
    background: #10b981;
    color: #ffffff;
}

.form-toast.error {
    background: #ef4444;
    color: #ffffff;
}

@keyframes toastPop {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Quick Quote Modal */
.quote-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.quote-modal-overlay.open {
    display: flex;
}

.quote-modal-content {
    background: #0d0f1d;
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    padding: 28px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

html:not(.dark) .quote-modal-content {
    background: #ffffff;
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #0f172a;
}
