/* =====================================================
   HERO SLIDER — FINAL FIXED CSS
   Replace your entire old hero-slider.css with this
   ===================================================== */

/* =========================================
   1. SLIDER WRAPPER
   ========================================= */
.sp-hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    display: block;
}

/* =========================================
   2. EACH SLIDE — display:none by default
   ========================================= */
.sp-slide {
    position: relative;
    width: 100%;
    display: none;         /* hidden by default */
    overflow: hidden;
    transform: translateX(20px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

/* Only .active slide shows */
.sp-slide.active {
    display: block;        /* NOT flex — flex breaks width */
    width: 100%;
    opacity: 1;
    transform: translateX(0);
}
.sp-slide.active .sp-hero-bg img{
    transform: scale(1.06);
}
/* =========================================
   3. BACKGROUND IMAGE — covers full slide
   ========================================= */
.sp-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.sp-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transform: scale(1);
    transition: transform 6s ease;
}

/* Dark overlay — Slide 1 */
.sp-slide-1 .sp-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.88) 0%,
        rgba(0,0,0,0.78) 35%,
        rgba(0,0,0,0.50) 65%,
        rgba(0,0,0,0.25) 100%
    );
    z-index: 2;
}

/* Light overlay — Slide 2 */
.sp-slide-2 .sp-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.95) 0%,
        rgba(255,255,255,0.90) 40%,
        rgba(255,255,255,0.65) 65%,
        rgba(255,255,255,0.15) 100%
    );
    z-index: 2;
}

/* =========================================
   4. INNER WRAPPER — sits above bg image
   ========================================= */
.sp-slide .sp-inner {
    position: relative;
    z-index: 5;
    width: 100%;
}

/* =========================================
   5. HERO WRAP — content layout
   ========================================= */
.sp-hero-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 70px 40px;
    box-sizing: border-box;
    width: 100%;
}

/* =========================================
   6. LEFT CONTENT
   ========================================= */
.sp-hero-left {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.sp-hero-left,
.sp-hero-right{

    opacity: 0;
    transform: scale(0.96);
    filter: blur(8px);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease,
        filter 0.9s ease;
}
.sp-slide.active .sp-hero-left,
.sp-slide.active .sp-hero-right{

    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}
/* Slide 1 heading */
.sp-slide-1 .sp-hero-left h1 {
    font-size: 46px;
    line-height: 1.08;
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px 0;
    letter-spacing: -1px;
}

.sp-slide-1 .sp-hero-left h1 span {
    color: #ff5b2e;
}

.sp-hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,0.88);
    margin: 0 0 28px 0;
    font-weight: 400;
    max-width: 560px;
}

.sp-hero-trust {
    font-size: 14px;
    color: rgba(255,255,255,0.80);
    font-weight: 400;
    margin-top: 6px;
    max-width: 500px;
    line-height: 1.6;
}
/* Slide 2 heading */
.sp-slide-2 .sp-hero-left h1 {
    font-size: 40px;
    line-height: 1.08;
    font-weight: 900;
    color: #111;
    margin: 0 0 14px 0;
    letter-spacing: -1.5px;
}
.sp-slide-2 .sp-hero-wrap{
    padding-top: 25px;
}
.sp-slide-2 .sp-hero-left h1 span {
    color: #ff5b2e;
}
.sp-slide2-sub {
    font-size: 18px;
    color: #444;
    margin: 0 0 22px 0;
    font-weight: 500;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.sp-slide2-tagline {
    font-size: 18px;
    color: #555;
    margin-top: 4px;
    margin-bottom: 12px;
    font-family:'Times New Roman', Times, serif;
}
/* Service boxes */
.sp-slide2-services {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.sp-slide2-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 8px 10px;
    min-width: 78px;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.sp-slide2-service-item:hover {
    box-shadow: 0 6px 18px rgba(255,91,46,0.18);
    transform: translateY(-2px);
    border-color: #ff5b2e;
}

.sp-svc-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sp-svc-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sp-svc-fallback {
    width: 42px;
    height: 42px;
    background: #ff5b2e;
    color: #fff;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}
.sp-slide2-service-item span:last-child {
    font-size: 10px;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.2;
}
.sp-slide2-trust-bar {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    border-left: 3px solid #ff5b2e;
    padding-left: 10px;
    margin-top: 0px;
    line-height: 1.5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* =========================================
   7. BUTTONS
   ========================================= */
.sp-hero-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}
.sp-btn-primary,
.sp-btn-whatsapp {
    min-width: 160px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    padding: 0 22px;
}

.sp-btn-primary {
    background: #ff5b2e;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(255,91,46,0.35);
}

.sp-btn-primary:hover {
    transform: translateY(-2px);
    color: #fff !important;
    background: #e04a1e;
}

.sp-slide-1 .sp-btn-whatsapp {
    background: #fff;
    color: #000 !important;
    box-shadow: 0 8px 20px rgba(37,211,102,0.25);
}

.sp-slide-1 .sp-btn-whatsapp:hover {
    transform: translateY(-2px);
    color: #fff !important;
    background-color: #4aaa42;
}

.sp-slide-2 .sp-btn-whatsapp {
    background: #fff;
    color: #000;
    box-shadow: 0 8px 20px rgb(255, 255, 255);
    border: 2px solid #4aaa42;
}
.sp-slide-2 .sp-btn-whatsapp:hover {
    transform: translateY(-2px);
    color: #fff !important;
    background: #4aaa42;
}

/* =========================================
   8. RIGHT FORM BOX
   ========================================= */
.sp-hero-right {
    width: 340px;
    flex-shrink: 0;
    flex-grow: 0;
}

.sp-form-box {
    background: rgba(10, 18, 40, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 26px 22px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.40);
    width: 100%;
    box-sizing: border-box;
}

.sp-form-box h3 {
    color: #fff;
    text-align: center;
    font-size: 20px;
    margin: 0 0 18px 0;
    font-weight: 700;
    line-height: 1.3;
}
.sp-form-box input {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    padding: 0 16px;
    margin-bottom: 12px;
    font-size: 14px;
    outline: none;
    display: block;
    box-sizing: border-box;
    background: #fff;
    color: #111;
}
.sp-form-box input::placeholder {
    color: #999;
}
.sp-form-box button {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 8px;
    background: #ff5b2e;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
    display: block;
    box-sizing: border-box;
}
.sp-form-box button:hover {
    background: #e04a1e;
}

/* =========================================
   9. DOTS
   ========================================= */
.sp-slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.sp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.8);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    padding: 0;
    outline: none;
}

.sp-dot.active {
    background: #ff5b2e;
    border-color: #ff5b2e;
    transform: scale(1.3);
}

/* =========================================
   10. ARROWS
   ========================================= */
.sp-slider-arrow{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background 0.3s ease,
        transform 0.3s ease,
        opacity 0.3s ease;

    opacity: 0.75;
}
.sp-slider-arrow:hover{
    background: #ff5b2e;
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
}
.sp-arrow-prev { left: 18px; }
.sp-arrow-next { right: 18px; }

/* =========================================
   11. ENQUIRY SIDEBAR
   ========================================= */
.global-sidebar-form {
    transition: opacity 0.3s ease, visibility 0.3s ease, left 0.3s ease;
}

.global-sidebar-form.hide-on-hero {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    left: -200px !important;
    z-index: -1 !important;
}

/* =========================================
   12. TABLET ≤ 991px
   ========================================= */
@media (max-width: 991px) {
    .sp-hero-wrap {
        flex-direction: column;
        align-items: flex-start;
        padding: 50px 24px 44px;
        gap: 28px;
    }

    .sp-hero-left {
        width: 100%;
        max-width: 100%;
    }

    .sp-hero-right {
        width: 100%;
        max-width: 100%;
    }

    .sp-slide-1 .sp-hero-left h1,
    .sp-slide-2 .sp-hero-left h1 {
        font-size: 34px;
    }

    .sp-hero-subtitle {
        font-size: 15px;
        max-width: 100%;
    }

    .sp-slide2-services {
        gap: 8px;
    }

    .sp-slide2-service-item {
        min-width: 76px;
        padding: 8px 10px;
    }

    .sp-form-box {
        padding: 22px 20px;
    }
}

/* =========================================
   13. MOBILE ≤ 767px
   ========================================= */
@media (max-width: 767px) {
    /* HIDE HERO FORM ON MOBILE */
    .sp-hero-right{
    display: none !important;
    }
   .sp-hero-wrap {
    position: relative;
    min-height: 320px;
    padding: 32px 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    gap: 0;
}
 .sp-hero-left {
    width: 100%;
    max-width: 320px;
    align-items: flex-start !important;
    text-align: left !important;
    position: relative;
    z-index: 5;
}
    .sp-slide-1 .sp-hero-left h1,
    .sp-slide-2 .sp-hero-left h1 {
        font-size: 30px;
        line-height: 1.08;
        max-width: 300px;
        letter-spacing: -0.5px;
        margin-bottom: 14px;
    }
    .sp-hero-subtitle{
    max-width: 300px;
    font-size: 15px;
    line-height: 1.5;
}
    .sp-hero-subtitle,
    .sp-hero-trust {
        text-align: center;
        max-width: 100%;
    }
    .sp-hero-buttons {
    flex-direction: row !important;
    margin-bottom: 14px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    width: auto;
}
.sp-hero-subtitle,
.sp-slide2-sub{
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 18px;
}
/* HIDE ONLY EXTRA TEXT */
.sp-slide2-trust-bar,
.sp-slide2-tagline{
    display: none;
}
.sp-slide2-services{
    display: none;
}
/* MOBILE SERVICE BOXES */
.sp-slide2-service-item{
    min-width: 62px;
    padding: 6px 8px;
    gap: 4px;
    border-radius: 8px;
}
.sp-svc-icon{
    width: 26px;
    height: 26px;
}
.sp-slide2-service-item span:last-child{
    font-size: 9px;
    line-height: 1.15;
}
.sp-btn-primary,
.sp-btn-whatsapp {
    width: auto !important;
    min-width: 140px;
    height: 46px;
    padding: 0 18px;
    font-size: 14px;
}
    .sp-slide2-logo {
        justify-content: center;
    }

    .sp-slide2-services {
        justify-content: center;
    }

    .sp-slide2-trust-bar {
        text-align: left;
    }

    .sp-form-box {
        padding: 22px 16px;
    }
   .sp-hero-right{
    width: 100%;
    margin-top: 26px;
}
.sp-form-box {
    padding: 22px 16px;

    width: 100%;

    border-radius: 18px;

    position: relative;
    z-index: 10;
}
}
/* =========================================
   14. SMALL MOBILE ≤ 480px
   ========================================= */
@media (max-width: 480px) {
    .sp-hero-wrap {
        padding: 32px 14px 28px;
        gap: 20px;
    }

    .sp-slide-1 .sp-hero-left h1,
    .sp-slide-2 .sp-hero-left h1 {
        font-size: 24px;
    }

    .sp-hero-subtitle,
    .sp-slide2-sub {
        font-size: 14px;
        line-height: 1.6;
    }

    .sp-btn-primary,
    .sp-btn-whatsapp {
        height: 50px;
        font-size: 14px;
    }

    .sp-form-box {
        padding: 18px 14px;
    }

    .sp-form-box h3 {
        font-size: 17px;
    }

    .sp-form-box input {
        height: 44px;
        font-size: 13px;
    }

    .sp-form-box button {
        height: 44px;
        font-size: 14px;
    }
}
/* =========================================
   MOBILE FORM BELOW HERO
========================================= */

.sp-mobile-form-wrap{
    display: none;
}
@media(max-width:767px){

    .sp-slider-arrow{
        width: 34px;
        height: 34px;

        font-size: 14px;

        opacity: 0.9;
    }
    .sp-arrow-prev{
        left: 10px;
    }
    .sp-arrow-next{
        right: 10px;
    }
}
@media(max-width:767px){

    .sp-mobile-form-wrap{
        display: block;
        padding: 0 18px 20px;
        margin-top: 20px;
        position: relative;
        z-index: 20;
    }
    .sp-mobile-form-box{    
        background: #10152e;
        border-radius: 18px;
        padding: 22px 18px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    }
    .sp-mobile-form-box h3{
        color: #fff;
        text-align: center;
        margin-bottom: 18px;
        font-size: 20px;
        font-weight: 700;
    }

    .sp-mobile-form-box input{
        width: 100%;
        height: 42px;
        border: none;
        border-radius: 10px;
        padding: 0 12px;
        margin-bottom: 12px;
        font-size: 14px;
        box-sizing: border-box;
    }

    .sp-mobile-form-box button{

        width: 100%;
        height: 45px;
        border: none;
        border-radius: 10px;
        background: #ff5b2e;
        color: #fff;
        font-size: 15px;
        font-weight: 700;
    }
}
/* =========================================
   SLIDE 3
========================================= */

.sp-slide-3 .sp-hero-bg::after{
    content:'';
    position:absolute;
    inset:0;

    background:
    linear-gradient(
        90deg,
        rgba(255,255,255,0.96) 0%,
        rgba(255,255,255,0.90) 45%,
        rgba(255,255,255,0.55) 70%,
        rgba(255,255,255,0.10) 100%
    );

    z-index:2;
}
.sp-slide-3 .sp-hero-left{
    max-width: 650px;
}
.sp-slide-3 h1{
    font-size: 45px;
    line-height: 1.05;
    font-weight: 900;
    color:#0c1b3a;
    margin-bottom:18px;
}
.sp-slide-3 h1 span{
    color:#ff5b2e;
}
.sp-slide3-sub{
    font-size:15px;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height:1.7;
    color:#333;
    margin-bottom:26px;
    max-width:560px;
}
/* FEATURES */
.sp-slide3-features{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
    margin-bottom:0;
}
.sp-slide3-feature{
    background:#fff;
    border-radius:14px;
    display:flex;
    align-items:center;
    gap:12px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    min-width:180px;
    padding: 6px;
}
.sp-slide3-feature i{
    width:38px;
    height:38px;
    border-radius:50%;
    background:#fff3ed;
    color:#ff5b2e;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
}
.sp-slide3-feature span{

    font-size:14px;

    font-weight:700;

    color:#0c1b3a;

    line-height:1.4;
}

/* MOBILE */
@media(max-width:767px){
    .sp-slide-3 .sp-hero-left{
        margin-top: 0;
        margin-bottom: 0;
    max-width: 290px;
    justify-content: flex-start;
}
    .sp-slide-3 h1{
        margin-top: 0;
        font-size:24px;
        line-height:1.08;
        margin-bottom: 8px;
    }
    .sp-slide3-sub{
        font-size:13px;
        line-height:1.45;
        margin-bottom: 12px;
        margin-top: 0;
    }
    .sp-slide3-features{
        gap:8px;
        margin-bottom:4px;
    }
    .sp-slide3-feature{
        min-width:100%;
        padding:7px 10px;
        border-radius: 12px;
    }
    .sp-slide3-feature i{
    width: 28px;
    height: 28px;
    font-size: 12px;
}
.sp-slide-3 .sp-hero-wrap{
    min-height: 260px !important;
    justify-content: center !important;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}
}
/* =========================================
   SLIDE 3 FULL WIDTH LAYOUT
========================================= */
.sp-slide-3 .sp-hero-wrap{
    padding-top: 0px;
    padding-bottom: 0px;
    justify-content:space-between;
    align-items: center;
    min-height: 460px;
}
/* .sp-slide-3 .sp-hero-left{
    transform: translateY(-20px);
    max-width: 420px;
    width: 100%;
} */
/* REMOVE EXTRA RIGHT SPACE */
/* =========================================
   SLIDE 3 — RIGHT CERT ICONS GRID (NEW)
   ========================================= */
.sp-slide3-right {
    display: block !important;
    width: 560px;
    flex-shrink: 0;
}
.sp-cert-grid-wrap {
    background: transparent;
    border-radius: 0;
    padding: 16px 14px 10px;
    box-shadow: none;
    backdrop-filter: none;
}
.sp-cert-grid-tagline {
    background: #0c1b3a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 7px 14px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 14px;
}
.sp-cert-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px 8px;
}
.sp-cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.sp-cert-item:hover {
    transform: translateY(-3px);
}

.sp-cert-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.10);
}
.sp-cert-item:hover .sp-cert-circle {
    border-color: #ff5b2e;
    box-shadow: 0 4px 14px rgba(255,91,46,0.20);
}
.sp-cert-circle img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    object-position: center;
    display: block;
}
.sp-cert-fb {
    width: 52px;
    height: 52px;
    background: #ff5b2e;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.sp-cert-item strong {
    font-size: 9.5px;
    font-weight: 800;
    color: #0c1b3a;
    line-height: 1.3;
    display: block;
}

.sp-cert-item small {
    font-size: 8.5px;
    color: #666;
    line-height: 1.3;
    display: block;
    min-height: 18px;
}
/* Tablet */
@media (max-width: 1100px) {
    .sp-slide3-right {
        width: 460px;
    }
    .sp-cert-circle {
        width: 56px;
        height: 56px;
    }
    .sp-cert-circle img {
        width: 80%;
        height: 80%;
    }
}
/* Mobile — hide icons grid */
@media (max-width: 767px) {
    .sp-slide3-right {
        display: none !important;
    }
}

