/* Site-wide additions for CodeKelly Technology Ltd multi-page site */
body { font-family: 'Inter', sans-serif; }

html { scroll-behavior: smooth; }

#spinner {
    opacity: 1;
    visibility: visible;
    transition: opacity .4s ease-out, visibility 0s linear 0s;
    z-index: 99999;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}
#spinner:not(.show) {
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease-out, visibility 0s linear .4s;
}

.glass { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); }

/* WhatsApp floating button (desktop) */
.whatsapp-float {
    position: fixed;
    width: 58px;
    height: 58px;
    bottom: 24px;
    right: 24px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 999;
    transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

/* Back to top */
.back-to-top-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #1e293b;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Sticky mobile CTA bar */
.sticky-cta {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    display: flex;
    z-index: 998;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
}
.sticky-cta-btn {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
@media (max-width: 1023.98px) {
    body { padding-bottom: 56px; }
    .whatsapp-float { bottom: 76px; }
}

/* Focus states for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #1d4ed8;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    padding: .5rem 1.25rem;
    border-radius: 999px;
}

details.faq-item summary { cursor: pointer; list-style: none; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .2s ease; }
