/* ==========================================================================
   Saudi ERP brand overrides
   Loaded after style.css so the template's own rules stay untouched.
   ========================================================================== */

/* --- Logo sizing -----------------------------------------------------------
   The stock template logo was an SVG with a built-in 148x45 intrinsic size.
   The Saudi ERP wordmark is wider (≈3.7:1), so it needs a slightly larger box
   to read at the same optical weight, and the raster needs explicit widths
   wherever the template relied on the SVG's intrinsic size. */

header.style-1 .header-logo,
header.style-2 .header-logo {
    width: 190px;
    line-height: 0;
}

header.style-1 .header-logo img,
header.style-2 .header-logo img {
    width: 100%;
    height: auto;
}

@media (max-width: 1399px) {

    header.style-1 .header-logo,
    header.style-2 .header-logo {
        width: 150px;
    }
}

header.style-1 .mobile-logo-area .mobile-logo-wrap img,
header.style-2 .mobile-logo-area .mobile-logo-wrap img {
    width: 150px;
    height: auto;
}

/* Footer logo: the template gave this one no width at all. */
.footer-section.style-2 .contact-area-and-logo-wrapper>a {
    line-height: 0;
    flex: 0 0 auto;
}

.footer-section.style-2 .contact-area-and-logo-wrapper>a img {
    width: 190px;
    height: auto;
}

@media (max-width: 991px) {
    .footer-section.style-2 .contact-area-and-logo-wrapper>a img {
        width: 160px;
    }
}

/* --- Floating WhatsApp button ------------------------------------------- */
.wa-float {
    position: fixed;
    left: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    line-height: 1;
    z-index: 9999;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wa-float:hover,
.wa-float:focus-visible {
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 8px 26px rgba(37, 211, 102, 0.5);
}

/* expanding wave rings */
.wa-float::before,
.wa-float::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25d366;
    opacity: 0.55;
    z-index: -1;
    animation: wa-wave 2.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.wa-float::after {
    animation-delay: 1.2s;
}

@keyframes wa-wave {
    0% {
        transform: scale(1);
        opacity: 0.55;
    }

    100% {
        transform: scale(2.1);
        opacity: 0;
    }
}

@media (max-width: 767px) {
    .wa-float {
        left: 16px;
        bottom: 16px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .wa-float::before,
    .wa-float::after {
        animation: none;
    }
}

/* --- "Backed by Shyphan" badge ------------------------------------------
   Sits in the eyebrow slot of .section-title, so it inherits the section's
   own rhythm and type scale instead of introducing a new block. */
.section-title .backed-badge {
    display: flex;
    width: -webkit-fit-content;
    width: fit-content;
    margin-left: auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 9px 20px 9px 16px;
    border: 1px solid var(--borders-color);
    border-radius: 40px;
    background-color: var(--white-color);
    line-height: 1;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.section-title .backed-badge:hover,
.section-title .backed-badge:focus-visible {
    border-color: var(--primary-color1);
    box-shadow: 0 4px 16px rgba(1, 14, 208, 0.08);
}

.section-title .backed-badge span {
    font-family: var(--font-poppins);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-color);
    white-space: nowrap;
}

.section-title .backed-badge img {
    display: block;
    width: auto;
    height: 32px;
}

@media (max-width: 575px) {
    .section-title .backed-badge {
        gap: 9px;
        padding: 7px 14px 7px 12px;
    }

    .section-title .backed-badge img {
        height: 26px;
    }
}

/* Desktop: sit the badge at the top-right of the section, opposite the heading.
   .section-title is capped at 759px, so anchor to the container instead. */
@media (min-width: 992px) {
    .home6-about-section .container {
        position: relative;
    }

    .home6-about-section .section-title .backed-badge {
        position: absolute;
        top: 4px;
        right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
        margin: 0;
        z-index: 2;
    }
}

/* --- Accent colour: green -> brand blue ---------------------------------
   The template's "AI startup" theme keys every accent off --primary-color4
   (originally lime #9CD338). Re-pointing it at the Saudi ERP blue recolours
   buttons, hovers, icons and the scroll bar in one place. */
:root {
    --primary-color4: #1266F1;
    --primary-color4-opc: 18, 102, 241;
    --progress-fill: #1266F1;
}

/* The lime fill carried black label text; blue needs white to stay legible
   (5.0:1). The .transparent variant is excluded - it paints text, not fill. */
.primary-btn1.ai-primary-color:not(.transparent) {
    color: var(--white-color);
}

.primary-btn1.ai-primary-color:not(.transparent)>span {
    background-image: linear-gradient(0deg, var(--white-color) 0%, var(--white-color) 100%);
    color: var(--white-color);
}

.primary-btn1.ai-primary-color:not(.transparent)>span::after {
    color: var(--white-color);
}

.primary-btn1.ai-primary-color:not(.transparent)>span svg {
    stroke: var(--white-color);
}

/* remaining hard-coded lime in the template */
.home5-integration-section .integration-wrapper .logo-area {
    background-color: #D2E2FD;
}

/* feature-tab underline sweep */
.home6-feature-section .feature-tab-wrapper .project-management-nav-and-content .feature-tab .feature-nav-tabs .single-tab {
    background: linear-gradient(to bottom, #1266F1 0%, #1266F1 98%);
    background-size: 0px 3px;
    background-repeat: no-repeat;
    background-position: right 100%;
}

/* --- Client logo grid --------------------------------------------------- */
.client-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
}

.client-logo {
    background-color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px 24px;
    min-height: 118px;
    /* outline instead of a grid-gap background, so a partly filled last row
       leaves no empty boxes behind */
    outline: 1px solid var(--borders-color);
    outline-offset: -1px;
    transition: background-color 0.3s ease;
}

.client-logo img {
    max-width: 100%;
    width: auto;
    /* one optical height for every mark, whatever its own proportions */
    max-height: 52px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.client-logo:hover img,
.client-logo:focus-within img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 991px) {
    .client-logo-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .client-logo {
        padding: 20px 18px;
        min-height: 100px;
    }

    .client-logo img {
        max-height: 42px;
    }
}

@media (max-width: 575px) {
    .client-logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .client-logo img {
        transition: none;
    }
}

/* orbiting dot on the about-section stat ring (hard-coded lime in the template) */
.home6-about-section .circle-stats .ball {
    background: #1266F1;
}

/* --- Integration diagram centre badge -----------------------------------
   The stock SVG carried an intrinsic 143px width; the raster logo has none,
   so without this it stretches to the full 257px badge and the ERP sphere
   spills past the circular mask. Mirrors the template's own breakpoints. */
.home5-integration-section .integration-wrapper .logo-area img {
    width: 140px;
    height: auto;
}

@media (max-width: 991px) {
    .home5-integration-section .integration-wrapper .logo-area img {
        width: 120px;
    }
}

@media (max-width: 576px) {
    .home5-integration-section .integration-wrapper .logo-area img {
        width: 100px;
    }
}
