﻿/* ==========================================================================
   JSL Studio Custom Responsive CSS (Mobile View Only Overrides)
   ========================================================================== */

/* 1. Global Layout & Overflow Guard — MOBILE ONLY */
/* NOTE: Desktop uses GSAP ScrollSmoother which manages its own scroll.
   Applying overflow:hidden globally on desktop breaks it entirely. */
@media only screen and (max-width: 991px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    #antra-smooth-wrapper, #antra-smooth-content {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

img {
    max-width: 100%;
    height: auto;
}

/* Watermark Text Overflow Fixes */
.project-text,
.gallary-text,
.history-text,
.footer-text {
    max-width: 100% !important;
    overflow: hidden !important;
    pointer-events: none;
}

/* Running Ticker Text — clipped on MOBILE ONLY to prevent horizontal scroll.
   On desktop GSAP handles the layout so no clipping needed. */
@media only screen and (max-width: 991px) {
    .running-text,
    .carouselTicker,
    .carouselTicker__wrap,
    .carouselTicker__list,
    .text-anim {
        overflow: hidden !important;
        max-width: 100vw !important;
    }
}

/* 2. Responsive Section Padding Scaling (Tablet & Mobile) */
@media only screen and (max-width: 991px) {
    .pt-180 { padding-top: 70px !important; }
    .pb-130 { padding-bottom: 60px !important; }
    .pt-130 { padding-top: 60px !important; }
    .pt-80  { padding-top: 50px !important; }
    .pb-60  { padding-bottom: 40px !important; }
    .pt-50  { padding-top: 40px !important; }

    /* GSAP Visibility Safeguard on Mobile */
    .slide-anim,
    .fade-top,
    .fade-wrapper,
    [data-text-animation],
    .about-content-3,
    .about-content-9,
    .testi-carousel-wrap,
    .section-heading {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
}

@media only screen and (max-width: 767px) {
    .pt-180 { padding-top: 50px !important; }
    .pb-130 { padding-bottom: 40px !important; }
    .pt-130 { padding-top: 40px !important; }
    .pt-80  { padding-top: 35px !important; }
    .pb-60  { padding-bottom: 30px !important; }
    .pt-50  { padding-top: 30px !important; }
}

/* 3. Mobile Header & Navigation */
@media only screen and (max-width: 991px) {
    .header .primary-header-inner {
        padding: 15px 0 !important;
    }
    
    .header .primary-header-inner .header-logo img {
        max-width: 180px !important;
    }
    
    .header-btn-wrap {
        display: none !important;
    }

    .mobile-side-menu {
        width: 320px !important;
        max-width: 85vw !important;
    }
}

/* 4. Hero Banner USP Section (Desktop Bar | Mobile 2x2 Grid) */
.banner-usp-wrap {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 0;
}

.banner-usp-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.banner-usp-item .circle {
    width: 8px;
    height: 8px;
    background-color: var(--tl-color-theme-primary, #b8860b);
    border-radius: 50%;
    display: inline-block;
}

.banner-usp-item .title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 0;
    color: var(--tl-color-heading-primary, #1c1c1d);
}

@media only screen and (max-width: 767px) {
    .banner-usp-wrap {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .banner-usp-item {
        background: #ffffff;
        border: 1px solid rgba(0,0,0,0.08);
        border-radius: 12px;
        padding: 10px 12px !important;
        justify-content: center !important;
        text-align: center !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    }

    .banner-usp-item .circle {
        width: 6px;
        height: 6px;
        flex-shrink: 0;
    }

    .banner-usp-item .title {
        font-size: 13px !important;
        font-weight: 600 !important;
    }
}

/* 5. Hero Slider Section - Phone View Centering */
@media only screen and (max-width: 767px) {
    .slider-content-wrap {
        padding-top: 140px !important;
        padding-bottom: 50px !important;
        text-align: center !important;
    }
    
    .slider-content-wrap .section-heading {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center !important;
    }

    .slider-content-wrap .section-heading .sub-heading {
        font-size: 12px !important;
        padding: 6px 14px !important;
        white-space: normal !important;
        text-align: center !important;
        display: inline-block !important;
        margin: 0 auto 15px auto !important;
    }

    .slider-content-wrap .section-heading .section-title {
        font-size: clamp(1.8rem, 7.5vw, 2.8rem) !important;
        line-height: 1.25 !important;
        text-align: center !important;
    }
    
    .slider-content-wrap .bottom-content {
        padding-left: 0 !important;
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center !important;
    }

    .slider-content-wrap .bottom-content .antra-desc {
        text-align: center !important;
        margin-bottom: 25px !important;
    }

    .slider-content-wrap .bottom-content .antra-desc p {
        font-size: 14px !important;
        line-height: 1.6 !important;
        text-align: center !important;
    }

    .slider-content-wrap .bottom-content .antra-btn {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }
}

/* 6. Process / History Section: Desktop Swiper Unchanged | Mobile 2-Column Grid */
@media only screen and (max-width: 767px) {
    .history-section {
        padding-bottom: 40px !important;
    }

    .history-section .history-element {
        display: none !important;
    }

    .history-carousel-wrap {
        clip-path: none !important;
        overflow: hidden !important;
    }

    .history-carousel-wrap:before {
        display: none !important;
    }

    .history-carousel {
        overflow: hidden !important;
    }

    .history-carousel .swiper-wrapper {
        display: flex !important;
        flex-wrap: wrap !important;
        transform: none !important;
        width: 100% !important;
        margin: 0 -6px !important;
    }

    .history-carousel .swiper-slide {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 6px !important;
        margin-bottom: 16px !important;
        margin-right: 0 !important;
        height: auto !important;
    }

    .history-item {
        text-align: center !important;
        background: #ffffff;
        border: 1px solid rgba(0,0,0,0.08);
        border-radius: 16px;
        padding: 12px 10px !important;
        height: 100% !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.04);
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .history-item .history-img {
        width: 100% !important;
        height: 100px !important;
        margin: 0 auto 10px auto !important;
        border-radius: 12px;
        overflow: hidden;
    }

    .history-item .history-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 12px !important;
    }

    .history-item .history-content .circle {
        display: none !important;
    }

    .history-item .history-content .title {
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        margin-bottom: 6px !important;
        text-align: center !important;
    }

    .history-item .history-content .title a {
        color: #1c1c1d !important;
    }

    .history-item .history-content p {
        font-size: 11px !important;
        line-height: 1.35 !important;
        color: #666666 !important;
        text-align: center !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
}

/* 7. About Us Section & 10+ Experience Counter Fix */
@media only screen and (max-width: 991px) {
    .about-content-3, .about-content-9 {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }

    .about-img-wrap-3 {
        height: auto !important;
        max-width: 100% !important;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .about-img-wrap-3 .about-img-1,
    .about-img-wrap-3 .about-img-2 {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .about-img-wrap-3 .about-img-1 img,
    .about-img-wrap-3 .about-img-2 img {
        height: 220px !important;
        object-fit: cover !important;
        border-radius: 16px;
    }

    .about-img-wrap-3 .about-counter {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        margin-top: -40px;
        margin-left: 15px;
        align-self: flex-start;
        padding: 12px 18px !important;
        background-color: var(--tl-color-theme-primary, #b8860b);
        border-radius: 16px !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        display: inline-flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    /* Section 3 Badge Counter */
    .about-img-wrap-3 .about-counter .title {
        font-size: 32px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        margin-bottom: 0 !important;
        color: #ffffff !important;
        display: inline-flex !important;
        align-items: center !important;
        height: auto !important;
    }

    .about-img-wrap-3 .about-counter .title .odometer,
    .about-img-wrap-3 .about-counter .title .odometer-auto-theme,
    .about-img-wrap-3 .about-counter .title .odometer-inside {
        font-size: 32px !important;
        line-height: 1 !important;
        height: auto !important;
        display: inline-block !important;
        font-family: inherit !important;
        color: #ffffff !important;
    }

    .about-img-wrap-3 .about-counter p {
        font-size: 13px !important;
        line-height: 1.2 !important;
        color: #ffffff !important;
        margin-bottom: 0 !important;
        display: block !important;
    }

    /* Section 9 Counter & Content Fix */
    .about-img-9 {
        height: auto !important;
        max-height: 280px !important;
    }

    .about-content-9 {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        margin-top: 20px !important;
        gap: 15px !important;
        max-width: 100% !important;
    }

    .about-content-9 .about-counter {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 15px !important;
        margin-bottom: 10px !important;
    }

    .about-content-9 .about-counter .title {
        font-size: 56px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        margin-bottom: 0 !important;
        color: var(--tl-color-theme-primary, #b8860b) !important;
        display: inline-flex !important;
        align-items: center !important;
        height: auto !important;
    }

    .about-content-9 .about-counter .title .odometer,
    .about-content-9 .about-counter .title .odometer-auto-theme,
    .about-content-9 .about-counter .title .odometer-inside {
        font-size: 56px !important;
        line-height: 1 !important;
        height: auto !important;
        display: inline-block !important;
        font-family: inherit !important;
        color: var(--tl-color-theme-primary, #b8860b) !important;
    }

    .about-content-9 .about-counter p {
        font-size: 13px !important;
        line-height: 1.3 !important;
        color: #1c1c1d !important;
        margin: 0 !important;
        display: block !important;
        writing-mode: horizontal-tb !important;
        text-transform: uppercase !important;
        text-align: left !important;
        font-weight: 600 !important;
    }

    .about-content-9 .about-desc {
        border-left: none !important;
        padding-left: 0 !important;
        width: 100% !important;
    }

    .about-content-9 .about-desc p {
        margin-bottom: 25px !important;
        font-size: 14px !important;
        line-height: 1.65 !important;
        color: #555555 !important;
    }
}

/* 8. Testimonials Section Mobile Fix */
@media only screen and (max-width: 991px) {
    .testi-img {
        margin-bottom: 25px;
    }

    .testi-img img {
        border-radius: 18px;
        max-height: 300px;
        width: 100%;
        object-fit: cover;
    }

    .testi-carousel-wrap {
        padding: 24px 20px !important;
        border-radius: 18px;
    }

    .testi-top-content {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        margin-bottom: 20px !important;
    }
}

/* 9. Footer "JSL Studio" Watermark Text - Single Line Fix */
@media only screen and (max-width: 767px) {
    .footer-section .footer-text {
        bottom: 0 !important;
    }

    .footer-section .footer-text span {
        white-space: nowrap !important;
        font-size: clamp(32px, 9vw, 54px) !important;
        display: inline-block !important;
        letter-spacing: -1px;
    }

    .copyright-content {
        text-align: center !important;
    }
}

/* 10. Mobile Line Break Control */
@media only screen and (max-width: 767px) {
    .section-title br,
    .sub-heading br,
    .antra-desc br,
    .about-content-3 br,
    .about-desc br,
    .video-title br,
    .footer-widget p br {
        display: none !important;
    }
}

/* ============================================================
   11. MOBILE-ONLY SECTION FIXES (max-width: 767px)
   All changes below ONLY affect mobile. Desktop untouched.
   ============================================================ */

/* 11a. Banner USP Section — Add top padding */
@media only screen and (max-width: 767px) {
    .banner-usp-section {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    .banner-usp-wrap {
        padding-top: 5px !important;
    }
}

/* 11b. About Section — 2-column grid with left/right spacing */
@media only screen and (max-width: 767px) {
    .about-section-3 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    /* Stack image on top, content below — give left/right margin */
    .about-section-3 .container {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .about-section-3 .row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .about-section-3 .col-lg-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Image: full width, nice rounded corners */
    .about-section-3 .counter-top-img {
        width: 100% !important;
        border-radius: 16px !important;
        overflow: hidden !important;
    }

    .about-section-3 .counter-top-img img {
        width: 100% !important;
        height: auto !important;
        border-radius: 16px !important;
        object-fit: cover !important;
    }

    /* Content: full width */
    .about-section-3 .about-content-3 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .about-section-3 .about-content-3 .section-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
        line-height: 1.2 !important;
    }

    .about-section-3 .about-content-3 p {
        font-size: 14px !important;
        line-height: 1.65 !important;
        color: #555 !important;
    }

    .about-section-3 .about-btn {
        margin-top: 20px !important;
    }
}

/* 11c. Counter Section (10+, 200+, 95%, 100%) — top padding + full-width text */
@media only screen and (max-width: 767px) {
    /* The counter row sits outside sections — add top spacing */
    .row.gy-5.fade-wrapper.pb-80 {
        padding-top: 30px !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Make counter items display in a neat 2-column grid */
    .row.gy-5.fade-wrapper.pb-80 .col-lg-3 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    /* Counter items: full-width text, no clipping */
    .counter-item {
        padding: 16px 10px !important;
        text-align: left !important;
    }

    .counter-item .title {
        font-size: clamp(2.5rem, 12vw, 4rem) !important;
        line-height: 1 !important;
        width: 100% !important;
        display: flex !important;
        align-items: baseline !important;
        gap: 2px !important;
    }

    .counter-item .sub-title {
        font-size: 13px !important;
        line-height: 1.3 !important;
        width: 100% !important;
        white-space: normal !important;
        color: #666 !important;
        margin-top: 4px !important;
    }

    /* Fix odometer width so numbers don't get clipped */
    .counter-item .odometer {
        max-width: 100% !important;
        overflow: visible !important;
    }
}

/* 11d. Testimonial Section — reduce top padding + full-width heading text */
@media only screen and (max-width: 767px) {
    .testimonial-section-5 {
        padding-top: 30px !important;
    }

    /* Make both the "Our clients say" label col AND the heading col full width */
    .testimonial-section-5 .section-heading-wrap {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .testimonial-section-5 .section-heading-wrap .col-lg-4,
    .testimonial-section-5 .section-heading-wrap .col-lg-8 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Section heading container: no left padding */
    .testimonial-section-5 .section-heading-2 {
        padding-left: 0 !important;
        width: 100% !important;
    }

    /* "Here's What Warm Words Our Clients Say" — full width, wraps naturally */
    .testimonial-section-5 .section-title {
        font-size: clamp(1.7rem, 7.5vw, 2.4rem) !important;
        line-height: 1.2 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        white-space: normal !important;
        word-break: break-word !important;
        margin-bottom: 16px !important;
    }

    /* Rating + review info: stack cleanly */
    .testi-top-content-wrap-5 {
        margin-top: 15px !important;
        width: 100% !important;
    }

    .testi-top-content {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .testi-top-content .left-content {
        width: 100% !important;
    }

    .testi-top-content .left-content .rating {
        font-size: 2.5rem !important;
    }

    .testi-top-content .right-content {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .testi-top-content .right-content p {
        font-size: 14px !important;
        line-height: 1.6 !important;
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    /* Also hide forced <br> inside this quote on mobile */
    .testi-top-content .right-content p br {
        display: none !important;
    }
}

/* 11e. Request / CTA Section ("Have A Project In Mind?") — mobile layout fix */
@media only screen and (max-width: 767px) {
    /* Reduce top gap — running-text ticker takes space */
    .request-section {
        padding-top: 0 !important;
        padding-bottom: 50px !important;
    }

    .request-section .running-text {
        margin-bottom: 20px !important;
    }

    /* Container: give horizontal breathing room */
    .request-section .container {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    /* Stack the two columns vertically */
    .request-wrap {
        flex-direction: column !important;
        display: flex !important;
        padding-top: 20px !important;
    }

    .request-wrap .col-lg-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .request-content {
        padding: 0 !important;
        width: 100% !important;
    }

    /* Sub-heading "GET IN TOUCH" badge */
    .request-content .sub-heading {
        font-size: 11px !important;
        margin-bottom: 12px !important;
    }

    /* "Have A Project In Mind?" title — full width, no clipping */
    .request-content .section-title,
    .request-content h2 {
        font-size: clamp(1.8rem, 8vw, 2.6rem) !important;
        line-height: 1.15 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    /* Contact items below the title */
    .request-item-wrap {
        margin-top: 18px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .request-item span {
        font-size: 11px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.06em !important;
        display: block !important;
        margin-bottom: 4px !important;
    }

    .request-item p,
    .request-item a {
        font-size: 14px !important;
        line-height: 1.5 !important;
        display: block !important;
    }

    /* Form section */
    .request-form-wrap {
        padding: 22px 0 !important;
        border-radius: 16px !important;
        margin-top: 28px !important;
    }
}

/* =========================================================
   Running Text — Infinite Scroll (CSS Animation)
   ========================================================= */
.running-text {
    overflow: hidden;
    padding: 14px 0;
}

.running-text-inner {
    display: flex;
    width: max-content;
    animation: runningTextScroll 80s linear infinite;
}

.running-text-inner:hover {
    animation-play-state: paused;
}

.running-text-list {
    display: flex;
    flex-shrink: 0;
    gap: 95px;
    list-style: none;
    margin: 0;
    padding: 0;
    padding-right: 95px;
}

.running-text-list li {
    font-family: var(--tl-ff-heading);
    display: inline-block;
    white-space: nowrap;
    font-size: 114px;
    color: var(--tl-color-common-white);
    text-transform: uppercase;
    font-weight: 500;
    line-height: 1;
}

@keyframes runningTextScroll {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

@media only screen and (max-width: 992px) {
    .running-text-list li {
        font-size: 80px;
    }
}

@media only screen and (max-width: 767px) {
    .running-text-list {
        gap: 24px;
        padding-right: 24px;
    }
    .running-text-list li {
        font-size: 48px;
    }

    /* Custom Mobile Fixes */
    /* 1. Mobile Menu Link Font Size */
    .mobile-side-menu a,
    .mobile-side-menu .mean-nav ul li a,
    .mobile-side-menu .side-menu-list li a {
        font-size: 15px !important;
    }

    /* 2. Process Grid - 2 columns */
    .process-wrap {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
    }
    .process-wrap .col-xl-3.col-lg-6.col-md-6,
    .process-wrap > div {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 3. List alignment with icon */
    .service-details-list-wrap {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }
    .service-details-list-wrap ul {
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    .service-details-list-wrap ul li {
        display: flex !important;
        align-items: flex-start !important;
        gap: 10px !important;
        text-align: left !important;
        line-height: 1.4 !important;
        margin-bottom: 0 !important;
    }
    .service-details-list-wrap ul li i {
        margin-top: 4px !important;
        flex-shrink: 0 !important;
    }
}
