/* Custom Styling for CLARIO LEGAL & ASSOCIATES */

html {
    scroll-behavior: smooth;
}

/* Preloader styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0d1017;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(195, 146, 46, 0.1);
    border-radius: 50%;
    border-top-color: #C3922E;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating Actions Area */
.floating-actions {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: white !important;
    font-size: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none !important;
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-3px);
}

.btn-whatsapp {
    background-color: #25d366;
}

.btn-whatsapp:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Floating Call Button on Bottom Right next to Back-To-Top */
.floating-call {
    position: fixed;
    bottom: 30px;
    right: 100px;
    z-index: 9999;
}

.btn-call {
    background-color: #C3922E;
}

.btn-call:hover {
    box-shadow: 0 6px 20px rgba(195, 146, 46, 0.4);
}

/* Back to top adjustments to match floating layout */
#back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #0f172a;
    color: #C3922E;
    border: 2px solid #C3922E;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    z-index: 9999;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

#back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top-btn:hover {
    background-color: #C3922E;
    color: white;
    transform: scale(1.1) translateY(-3px);
}

/* Sticky Contact CTA button (floating slide-out on screen side) */
.sticky-contact-cta {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: right bottom;
    z-index: 9999;
}

.sticky-contact-cta a {
    display: block;
    background-color: #C3922E;
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 12px 25px;
    border-radius: 6px 6px 0 0;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: all 0.3s ease;
}

.sticky-contact-cta a:hover {
    background-color: #0f172a;
    color: #C3922E;
    padding-top: 18px;
}

/* Navigation items hover optimization */
.header-menu nav > ul > li > a {
    position: relative;
    transition: color 0.3s ease;
}

.header-menu nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #C3922E;
    transition: width 0.3s ease;
}

.header-menu nav > ul > li:hover > a::after {
    width: 100%;
}

.header-menu nav > ul > li.active > a {
    color: #C3922E !important;
}

.header-menu nav > ul > li.active > a::after {
    width: 100%;
}

/* Clean up service page content typography */
.service-details-content h2,
.service-details-content h3 {
    color: #0f172a;
    font-weight: 800;
    margin-top: 30px;
    margin-bottom: 15px;
}

.service-details-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 20px;
}

.service-details-content ul {
    margin-bottom: 25px;
}

.service-details-content ul li {
    font-size: 16px;
    color: #475569;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-details-content ul li i {
    color: #C3922E;
}
