/* Logic Leap additions on top of the Startup template */

.brand-logo { max-height: 46px; width: auto; }

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--ll-primary);
    color: #fff;
    font-weight: 800;
    flex: none;
}

.footer-bottom { background: rgba(var(--ll-dark-rgb), 1); filter: brightness(.8); }

.navbar .btn-link.nav-link { text-decoration: none; }

/* Navbar theme toggle & icon alignment */
.navbar button.nav-link {
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    display: inline-flex;
    align-items: center;
}

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav button.nav-link {
        width: 100%;
        text-align: start;
        justify-content: flex-start;
    }
}

/* Site-wide Dropdown Menus & Items */
.dropdown-menu {
    --bs-dropdown-link-active-bg: var(--ll-primary);
    --bs-dropdown-link-active-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--bs-border-color-translucent);
    overflow: hidden;
    padding: 0.35rem;
}

.dropdown-item {
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--ll-primary);
    background-color: rgba(var(--ll-primary-rgb), 0.08);
}

.dropdown-item.active,
.dropdown-item:active {
    color: #ffffff !important;
    background-color: var(--ll-primary) !important;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
    color: #ffffff;
    background-color: rgba(var(--ll-primary-rgb), 0.22);
}

[data-bs-theme="dark"] .dropdown-item.active,
[data-bs-theme="dark"] .dropdown-item:active {
    color: #ffffff !important;
    background-color: var(--ll-primary) !important;
}

/* Site-wide input focus / outline styling matching brand purple */
:focus-visible {
    outline-color: var(--ll-primary);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--ll-primary) !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.25rem rgba(var(--ll-primary-rgb), 0.25) !important;
}

.form-control.is-invalid:focus,
.was-validated .form-control:invalid:focus {
    border-color: var(--bs-form-invalid-border-color, #dc3545) !important;
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-danger-rgb, 220, 53, 69), 0.25) !important;
}

.form-check-input:checked {
    background-color: var(--ll-primary) !important;
    border-color: var(--ll-primary) !important;
}

/* Features section image in Why Us */
.features-img-wrapper {
    min-height: 350px;
}

.features-img {
    object-fit: contain !important;
    object-position: center !important;
    transition: transform 0.4s ease;
}

.features-img-wrapper:hover .features-img {
    transform: scale(1.02);
}

/* Icons in feature lists and cards */
.icon-box {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .375rem;
    flex: none;
}

/* Cards that grow with their content */
.card-item {
    height: 100%;
    padding: 2rem;
    border-radius: .375rem;
    background: var(--ll-light);
    transition: .4s;
}

.card-item:hover { box-shadow: 0 0 30px var(--ll-shadow); transform: translateY(-4px); }

.step-number {
    font-size: 3rem;
    line-height: 1;
    font-weight: 800;
    color: rgba(var(--ll-primary-rgb), .18);
}

/* Video with a play button */
.video-card {
    position: relative;
    overflow: hidden;
    border-radius: .375rem;
    background: #000;
    aspect-ratio: 16 / 9;
    max-width: 100%;
}

.video-card video { width: 100%; height: 100%; object-fit: cover; display: block; }

.video-card .video-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 0;
    background: var(--ll-primary);
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 0 0 12px rgba(var(--ll-primary-rgb), .3);
}

/* FAQ */
.faq .accordion-button {
    outline: none !important;
    box-shadow: none !important;
}

.faq .accordion-button:not(.collapsed) {
    color: var(--ll-primary);
    background: rgba(var(--ll-primary-rgb), .08);
    box-shadow: none !important;
}

.faq .accordion-button:focus,
.faq .accordion-button:active,
.accordion-button:focus,
.accordion-button:active {
    outline: none !important;
    box-shadow: none !important;
}

.faq .accordion-button::after,
.accordion-button::after {
    content: "" !important;
    display: inline-block !important;
    width: 0.55rem !important;
    height: 0.55rem !important;
    border-style: solid !important;
    border-width: 0 2.5px 2.5px 0 !important;
    border-color: var(--ll-primary) !important;
    background: none !important;
    background-image: none !important;
    background-color: transparent !important;
    -webkit-mask: none !important;
    mask: none !important;
    transform: rotate(45deg) !important;
    transition: transform 0.25s ease-in-out !important;
    flex-shrink: 0 !important;
}

.faq .accordion-button:not(.collapsed)::after,
.accordion-button:not(.collapsed)::after {
    background: none !important;
    background-image: none !important;
    background-color: transparent !important;
    border-color: var(--ll-primary) !important;
    transform: rotate(-135deg) !important;
}

.faq .accordion-button:hover::after,
.faq .accordion-button:focus::after {
    border-color: var(--ll-primary) !important;
}

/* Rich text written in the control panel */
.rich-text img { max-width: 100%; height: auto; }
.rich-text h2, .rich-text h3 { margin-top: 1.5rem; }

.trust-strip { background: var(--ll-light); }
.trust-strip li { display: flex; align-items: center; gap: .5rem; }

/* Team, testimonials and partner logos */
.flex-none { flex: none; }
.team-photo { aspect-ratio: 1 / 1; object-fit: cover; }
.team-photo-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    background: rgba(var(--ll-primary-rgb), .12);
    color: var(--ll-primary);
    font-size: 5rem;
    font-weight: 800;
}
.testimonial-item blockquote { font-size: 1rem; }
.vendor-carousel .owl-item img.partner-logo { max-height: 80px; width: auto; margin-inline: auto; object-fit: contain; }

/* Pricing table: the featured plan stands above its neighbours */
.pricing-plan.is-featured { z-index: 1; }
@media (min-width: 992px) {
    .pricing-plan.is-featured { padding-block: 1.5rem; }
}

/* Blog */
.blog-cover { aspect-ratio: 16 / 10; object-fit: cover; }

/* AI assistant widget */
.chat-widget { position: fixed; inset-block-end: 1.5rem; inset-inline-start: 1.5rem; z-index: 1050; }
.chat-fab { width: 60px; height: 60px; font-size: 1.5rem; display: grid; place-items: center; padding: 0; }
.chat-panel {
    position: absolute;
    inset-block-end: 75px;
    inset-inline-start: 0;
    width: min(370px, calc(100vw - 2rem));
    max-height: min(560px, calc(100vh - 120px));
    display: flex;
    flex-direction: column;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); font-size: 1.2rem; flex: none; }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; min-height: 200px; }
.chat-msg { max-width: 85%; padding: .55rem .85rem; border-radius: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; line-height: 1.6; }
.chat-msg.assistant { align-self: flex-start; background: var(--bs-tertiary-bg); color: var(--bs-body-color); border-end-start-radius: .2rem; }
.chat-msg.user { align-self: flex-end; background: var(--ll-primary); color: #fff; border-end-end-radius: .2rem; }
.chat-msg.user a { color: #fff; }
.chat-msg.typing { display: inline-flex; gap: .25rem; }
.chat-msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .4; animation: chat-dot 1s infinite; }
.chat-msg.typing i:nth-child(2) { animation-delay: .15s; }
.chat-msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .chat-msg.typing i { animation: none; opacity: .7; } }
.chat-privacy { padding: .5rem 1rem; border-top: 1px solid var(--bs-border-color); font-size: .75rem; }
.chat-input { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--bs-border-color); }

/* Content from the rich-text editor */
.rich-text h4 { margin-top: 1.25rem; }
.rich-text blockquote { border-inline-start: 4px solid var(--ll-primary); padding: .5rem 1rem; margin: 1.5rem 0; background: rgba(var(--ll-primary-rgb), .06); border-radius: .25rem; }
.rich-text pre { background: var(--bs-tertiary-bg); padding: 1rem; border-radius: .375rem; overflow-x: auto; direction: ltr; text-align: left; }
.rich-text a { text-decoration: underline; }

/* Dark mode text visibility for footer and topbar */
[data-bs-theme="dark"] footer.bg-dark,
[data-bs-theme="dark"] footer .text-light,
[data-bs-theme="dark"] footer a.text-light,
[data-bs-theme="dark"] footer h2.text-light,
[data-bs-theme="dark"] footer p,
[data-bs-theme="dark"] footer small,
[data-bs-theme="dark"] .topbar .text-light,
[data-bs-theme="dark"] .topbar a.text-light {
    color: var(--ll-body-color, #e9e0f0) !important;
}

[data-bs-theme="dark"] footer h2,
[data-bs-theme="dark"] footer h2.text-light {
    color: #ffffff !important;
}

[data-bs-theme="dark"] footer a.text-light:hover {
    color: var(--ll-primary) !important;
}

footer .footer-about,
footer .footer-about p {
    color: #ffffff !important;
}

.footer-bottom,
.footer-bottom p,
.footer-bottom a {
    color: rgba(255, 255, 255, 0.85) !important;
}

.footer-bottom a:hover {
    color: #ffffff !important;
}

/* Newsletter form input in footer & dark mode (no white border) */
.footer-about #newsletter-email,
.footer-about .input-group .form-control,
#newsletter-email {
    border: 0 !important;
    box-shadow: none !important;
}

[data-bs-theme="dark"] .footer-about #newsletter-email,
[data-bs-theme="dark"] .footer-about .input-group .form-control,
[data-bs-theme="dark"] #newsletter-email {
    border: 0 !important;
    border-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

[data-bs-theme="dark"] .footer-about .input-group .btn {
    border: 0 !important;
}

/* Custom service select & dropdowns */
.custom-service-select .form-select {
    cursor: pointer;
    text-align: start;
    user-select: none;
}

.custom-service-select .dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--bs-border-color-translucent);
}

.custom-service-select .dropdown-item {
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
    text-align: start;
    white-space: normal;
}

.custom-service-select .dropdown-item:hover,
.custom-service-select .dropdown-item:focus {
    background-color: rgba(var(--ll-primary-rgb), 0.12) !important;
    color: var(--ll-primary) !important;
}

.custom-service-select .dropdown-item.active,
.custom-service-select .dropdown-item:active {
    background-color: var(--ll-primary) !important;
    color: #ffffff !important;
}

/* Native select options fallback */
select.form-select,
select.form-control,
select {
    accent-color: var(--ll-primary);
}

select option:checked,
select option:focus,
select option:active {
    background-color: var(--ll-primary) !important;
    background: var(--ll-primary) linear-gradient(0deg, var(--ll-primary) 0%, var(--ll-primary) 100%) !important;
    color: #ffffff !important;
}

select option:hover {
    background-color: var(--ll-primary) !important;
    color: #ffffff !important;
}

/* Breadcrumb navigation icons & spacing */
.front-breadcrumb-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
}

.front-breadcrumb-nav .breadcrumb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-inline-start: 0.85rem;
    margin-inline-end: 0.55rem;
    font-size: 1.15rem;
    vertical-align: middle;
    line-height: 1;
}

/* ==========================================================================
   Badges & Tags (Background: #1E1029)
   ========================================================================== */
.badge,
.tag-badge,
.section-title ~ .d-flex .btn-light.m-1,
.blog-tags a,
.post-tags a {
    background-color: #1E1029 !important;
    color: #e9d5ff !important;
    border: 1px solid rgba(var(--ll-primary-rgb, 143, 59, 158), 0.38) !important;
    border-radius: 0.45rem !important;
    font-weight: 550;
    transition: all 0.2s ease !important;
}

.section-title ~ .d-flex .btn-light.m-1:hover,
.blog-tags a:hover,
.post-tags a:hover {
    background-color: var(--ll-primary) !important;
    color: #ffffff !important;
    border-color: var(--ll-primary) !important;
    transform: translateY(-1.5px);
}

.badge.text-bg-success,
.badge.bg-success {
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

.badge.text-bg-success::before,
.badge.bg-success::before {
    content: "";
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.75);
    margin-inline-end: 0.3rem;
    flex-shrink: 0;
}

/* ==========================================================================
   Buttons inside Accent / Primary Containers (CTA Banner, Quote, Contact Box)
   Prevents button hover background from matching the container background
   ========================================================================== */
.bg-primary .btn-dark,
.bg-primary a.btn-dark,
.bg-primary button.btn-dark,
.cta-banner .btn-dark {
    background-color: var(--ll-dark, #1e1029) !important;
    border-color: var(--ll-dark, #1e1029) !important;
    color: #ffffff !important;
    transition: all 0.25s ease-in-out !important;
}

.bg-primary .btn-dark:hover,
.bg-primary .btn-dark:focus,
.bg-primary .btn-dark:active,
.bg-primary a.btn-dark:hover,
.bg-primary a.btn-dark:focus,
.bg-primary a.btn-dark:active,
.bg-primary button.btn-dark:hover,
.bg-primary button.btn-dark:focus,
.bg-primary button.btn-dark:active,
.cta-banner .btn-dark:hover,
.cta-banner .btn-dark:focus,
.cta-banner .btn-dark:active {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--ll-dark, #1e1029) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
    transform: translateY(-2px);
}

.bg-primary .btn-outline-light,
.bg-primary a.btn-outline-light,
.cta-banner .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.8) !important;
    color: #ffffff !important;
    transition: all 0.25s ease-in-out !important;
}

.bg-primary .btn-outline-light:hover,
.bg-primary .btn-outline-light:focus,
.bg-primary .btn-outline-light:active,
.bg-primary a.btn-outline-light:hover,
.bg-primary a.btn-outline-light:focus,
.bg-primary a.btn-outline-light:active,
.cta-banner .btn-outline-light:hover,
.cta-banner .btn-outline-light:focus,
.cta-banner .btn-outline-light:active {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--ll-dark, #1e1029) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   Error & Validation Styling in Dark Mode
   ========================================================================== */
[data-bs-theme="dark"] {
    --bs-form-invalid-color: #ff6b72;
    --bs-form-invalid-border-color: #ff6b72;
}

[data-bs-theme="dark"] .invalid-feedback,
[data-bs-theme="dark"] .invalid-tooltip {
    color: #ff6b72 !important;
    font-weight: 500;
}

[data-bs-theme="dark"] .text-danger {
    color: #ff6b72 !important;
}

[data-bs-theme="dark"] .form-control.is-invalid,
[data-bs-theme="dark"] .was-validated .form-control:invalid {
    border-color: #ff6b72 !important;
}

[data-bs-theme="dark"] .form-control.is-invalid:focus,
[data-bs-theme="dark"] .was-validated .form-control:invalid:focus {
    border-color: #ff6b72 !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 114, 0.25) !important;
}


