/* =========================================================
   THE LIMITLESS GROUP — Custom CSS
   Tailwind extensions and fine-tuned component styles
   ========================================================= */

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

/* --- Navbar scroll state --------------------------------- */
#navbar.scrolled {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
}

/* --- Companies dropdown ---------------------------------- */
.companies-dropdown-open #companies-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

#companies-dropdown {
    transform: translateY(-4px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

/* --- Scroll indicator animation -------------------------- */
@keyframes scroll-line {
    0%   { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.animate-scroll-line {
    animation: scroll-line 1.5s ease-in-out infinite;
}

/* --- Focus ring override for accessibility --------------- */
*:focus-visible {
    outline: 2px solid #0099FF;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Form input focus ------------------------------------ */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* --- Smooth hover transitions for nav links -------------- */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: #0099FF;
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* --- Card subtle lift animation -------------------------- */
.card-hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.12);
}

/* --- Button loading state -------------------------------- */
button[type="submit"].loading {
    opacity: 0.75;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- Mobile menu transition ------------------------------ */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

/* --- Inline font weight fix (Tailwind CDN limitation) ---- */
.font-800 {
    font-weight: 800;
}

/* --- Print styles ---------------------------------------- */
@media print {
    #navbar,
    footer {
        display: none;
    }
}
