/*--------------------------------------------------------------
# Mobile experience — layout, spacing, tap targets
# Does NOT modify call-float / whatsapp-float buttons
--------------------------------------------------------------*/

@media (max-width: 767px) {
    /* Safe area + room for fixed contact buttons (handled in whatsapp-float.php) */
    body {
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
        overflow-x: hidden;
    }

    .page-wrapper {
        overflow-x: hidden;
    }

    /* Scroll-to-top — sit above contact buttons, not overlapping */
    .scroll-to-top.show {
        bottom: calc(88px + env(safe-area-inset-bottom, 0px));
        z-index: 9998;
    }

    /* Disable custom cursor on touch devices */
    .custom-cursor__cursor,
    .custom-cursor__cursor-two {
        display: none !important;
    }

    /* ---------- Header / nav ---------- */
    /* Homepage header is absolute on desktop — make it flow on mobile so logo doesn't overlap hero */
    .main-header {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        background: linear-gradient(102.31deg, #F7F7FF 0%, #EDEEFF 51%, #F6F7FF 100%);
    }

    .main-menu__logo {
        padding: 14px 0;
    }

    .main-menu-three__wrapper-inner,
    .main-menu__wrapper-inner {
        padding-left: 12px;
        padding-right: 12px;
    }

    .main-menu-three__logo img,
    .main-menu__logo img {
        max-width: 120px;
        height: auto;
    }

    .main-menu-three__logo {
        padding: 14px 0;
    }

    .mobile-nav__toggler {
        font-size: 22px;
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-nav__content {
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-nav__contact li a {
        font-size: 15px;
        line-height: 1.5;
        word-break: break-word;
    }

    /* ---------- Homepage hero ---------- */
    .banner-one {
        padding: 28px 0 36px !important;
    }

    .banner-one__left {
        margin-top: 0 !important;
        margin-right: 0 !important;
    }

    .banner-one__title {
        font-size: 26px !important;
        line-height: 1.28 !important;
        letter-spacing: -0.02em;
    }

    .banner-one__left .sub-heading {
        list-style: none !important;
        padding-left: 0 !important;
        margin: 18px 0 0;
    }

    .banner-one__left .sub-heading li {
        position: relative;
        padding-left: 22px;
        margin-bottom: 10px;
        font-size: 14px;
        line-height: 1.45;
        color: var(--Freshflow-gray, #666);
    }

    .banner-one__left .sub-heading li:before {
        content: "";
        position: absolute;
        left: 0;
        top: 8px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--Freshflow-primary, #fe7c06);
    }

    .banner-one__left .sub-heading li i {
        font-size: 11px !important;
        line-height: 1.5 !important;
        display: block !important;
        margin-top: 4px;
        color: #888;
        font-style: normal;
    }

    .banner-one__trust-badges {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 18px;
        margin-bottom: 4px;
        max-width: 100%;
    }

    .banner-one__trust-badge {
        font-size: 11px;
        padding: 8px 10px;
        justify-content: flex-start;
        border-radius: 10px;
        width: 100%;
    }

    .banner-one__trust-badge span[class^="icon-"] {
        font-size: 14px;
        flex-shrink: 0;
    }

    .banner-one__btn-box {
        margin-top: 18px;
    }

    .banner-one__btn-box .thm-btn {
        width: 100%;
        min-height: 50px;
        justify-content: center;
        font-size: 15px;
    }

    .banner-one__right {
        margin-top: 28px !important;
        margin-left: 0 !important;
    }

    .banner-one__img img {
        max-width: 280px;
        margin: 0 auto;
        display: block;
    }

    /* ---------- Sections — tighter, cleaner spacing ---------- */
    section {
        padding-left: 0;
        padding-right: 0;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-title__title {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }

    .section-title__tagline {
        font-size: 13px;
    }

    .about-one,
    .services-one,
    .why-choose-one,
    .counter-one,
    .before-and-after,
    .project-one,
    .testimonial-one,
    .contact-one,
    .contact-four,
    .faq-one {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    /* ---------- Services section ---------- */
    /* Desktop hover preview images — hide on mobile (they overlap service text) */
    .services-one__hover-img {
        display: none !important;
    }

    .services-one__left {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .services-one__img-2 {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: 320px;
        margin: 16px auto 0;
    }

    .services-one__img-2 img {
        width: 100% !important;
    }

    .services-one__experience-box {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        margin: 16px auto 0;
        max-width: 100%;
    }

    .services-one__right {
        margin-top: 32px !important;
    }

    .services-one__services-single {
        align-items: flex-start;
        gap: 10px;
    }

    .services-one__content {
        flex: 1;
        min-width: 0;
        padding-right: 8px;
    }

    .services-one__arrow {
        flex-shrink: 0;
    }

    /* ---------- Services cards ---------- */
    .services-one__single,
    .services-two__single {
        margin-bottom: 20px;
    }

    .services-one__title,
    .services-two__title {
        font-size: 18px;
        line-height: 1.35;
    }

    /* ---------- Why choose / counter ---------- */
    .why-choose-one__single {
        margin-bottom: 16px;
    }

    .counter-one__single {
        margin-bottom: 20px;
        text-align: center;
    }

    /* ---------- Before & after ---------- */
    .before-and-after__right {
        margin-top: 30px;
    }

    .twentytwenty-container {
        max-width: 100%;
    }

    /* ---------- Testimonials — compact marquee cards on mobile only ---------- */
    .testimonial-one {
        overflow: hidden;
    }

    .testimonial-one__wrap > .section-title {
        padding-left: 8px;
        padding-right: 8px;
        margin-bottom: 22px;
    }

    .testimonial-one__list.marquee_mode-2 {
        margin: 0 -6px;
    }

    .testimonial-one__list.marquee_mode-2 li {
        width: 250px;
        max-width: 68vw;
        flex-shrink: 0;
        padding: 0 6px;
    }

    .testimonial-one__list.marquee_mode-2 .testimonial-one__single {
        padding: 14px 14px 12px;
        border-radius: 18px;
    }

    .testimonial-one__list.marquee_mode-2 .testimonial-one__client-info {
        margin-bottom: 8px;
    }

    .testimonial-one__list.marquee_mode-2 .testimonial-one__client-name {
        font-size: 14px;
        line-height: 1.2;
    }

    .testimonial-one__list.marquee_mode-2 .testimonial-one__client-img {
        max-width: 44px;
    }

    .testimonial-one__list.marquee_mode-2 .testimonial-one__client-img img {
        border-radius: 10px;
    }

    .testimonial-one__list.marquee_mode-2 .testimonial-one__sub-title {
        font-size: 12px;
        line-height: 1.35;
        display: block;
    }

    .testimonial-one__list.marquee_mode-2 .testimonial-one__text {
        font-size: 11px;
        line-height: 1.45;
        margin-top: 6px;
        margin-bottom: 8px;
    }

    .testimonial-one__list.marquee_mode-2 .testimonial-one__rating-and-date {
        padding-top: 7px;
        border-top-width: 1px;
    }

    .testimonial-one__list.marquee_mode-2 .testimonial-one__rating span {
        font-size: 10px;
    }

    .testimonial-one__list.marquee_mode-2 .testimonial-one__date {
        font-size: 10px;
    }

    .testimonial-one__list.marquee_mode-2 .testimonial-one__quote-icon {
        top: 48px;
        right: 14px;
        opacity: 0.03;
    }

    .testimonial-one__list.marquee_mode-2 .testimonial-one__quote-icon img {
        max-width: 60px;
    }

    /* Testimonials page grid — slightly compact, full width cards */
    .testimonial-page .testimonial-one__single {
        padding: 18px 16px;
        border-radius: 20px;
        margin-bottom: 16px;
    }

    .testimonial-page .testimonial-one__client-name {
        font-size: 16px;
    }

    .testimonial-page .testimonial-one__sub-title {
        font-size: 14px;
    }

    .testimonial-page .testimonial-one__text {
        font-size: 13px;
        line-height: 1.5;
    }

    .testimonial-page .testimonial-one__client-img {
        max-width: 56px;
    }

    /* ---------- Contact form — tap targets + no iOS zoom ---------- */
    .contact-one__input-box input,
    .contact-one__input-box textarea,
    .contact-one__input-box select,
    .contact-four__input-box input,
    .contact-four__input-box textarea,
    .contact-four__input-box select,
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px !important;
        min-height: 48px;
    }

    .contact-four__right {
        padding: 32px 18px !important;
        margin-top: 36px;
    }

    .contact-four__left .section-title__title {
        font-size: 26px !important;
        line-height: 1.3 !important;
    }

    .contact-four__contact-list li {
        margin-bottom: 18px;
    }

    .contact-four__contact-list .content p a {
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    /* Homepage contact — Send Email / phone strip */
    .contact-one__call-box {
        margin-left: 0 !important;
        margin-top: 40px;
        padding: 22px 16px !important;
        width: 100%;
        box-sizing: border-box;
    }

    .contact-one__call-list {
        flex-direction: column;
        align-items: stretch !important;
        gap: 16px;
        width: 100%;
    }

    .contact-one__call-list li {
        width: 100%;
        align-items: flex-start;
        gap: 14px;
    }

    .contact-one__call-icon {
        flex-shrink: 0;
        width: 52px;
        height: 52px;
    }

    .contact-one__call-contact {
        flex: 1;
        min-width: 0;
    }

    .contact-one__call-contact h4 {
        font-size: 15px !important;
        line-height: 1.4 !important;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .contact-one__call-contact h4 a {
        display: inline;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .contact-two__call-box {
        margin-left: 0 !important;
        padding: 22px 16px !important;
    }

    .contact-two__call-contact h4 {
        font-size: 15px !important;
        line-height: 1.4 !important;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .contact-two__call-contact h4 a {
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .thm-btn {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* ---------- Page header (inner pages) ---------- */
    .page-header {
        padding-top: 80px;
    }

    .page-header__inner {
        padding: 48px 0 52px !important;
    }

    .page-header__inner h2 {
        font-size: 26px !important;
        line-height: 1.3 !important;
    }

    .thm-breadcrumb {
        flex-wrap: wrap;
        font-size: 13px;
    }

    /* ---------- FAQ ---------- */
    .faq-one__accrodion-title {
        font-size: 15px;
        line-height: 1.45;
        padding-right: 36px;
    }

    .faq-one__accrodion-content p {
        font-size: 14px;
        line-height: 1.6;
    }

    /* ---------- Footer ---------- */
    .site-footer__top {
        padding-top: 50px;
        padding-bottom: 40px;
    }

    .site-footer__widget {
        margin-bottom: 28px;
    }

    .site-footer__widget-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .site-footer__bottom {
        padding: 20px 0;
        text-align: center;
    }

    .site-footer__bottom-inner {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .site-footer__social-box {
        justify-content: center;
    }

    /* ---------- Sliding text ---------- */
    .sliding-text-one__title {
        font-size: 14px !important;
    }

    /* ---------- Images & media ---------- */
    img {
        max-width: 100%;
        height: auto;
    }

    .project-one__single,
    .blog-one__single {
        margin-bottom: 24px;
    }
}

@media (max-width: 374px) {
    .banner-one__title {
        font-size: 23px !important;
    }

    .banner-one__trust-badges {
        grid-template-columns: 1fr;
    }

    .banner-one__trust-badge {
        font-size: 12px;
    }

    .testimonial-one__list.marquee_mode-2 li {
        width: 230px;
        max-width: 72vw;
    }
}
