/* =========================================================
   VELLGRO - MOBILE FIXES (shared by all public pages)
   Loaded last, so these rules override page-level styles.
   ========================================================= */

/* Home page client stories: logo box */
.home-testi-logo-wrap { min-width: 96px; justify-content: center; }
.home-testi-logo-wrap img { max-height: 58px !important; max-width: 170px !important; }

/* Mobile testimonial slider is hidden on desktop */
.mob-testi { display: none; }

@media (max-width: 768px) {

    /* ---------- FOOTER (all pages) ----------
       Navigation (left) | Capabilities (right)
       Contact below, full width */
    footer .footer-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 28px 16px !important;
        align-items: start !important;
    }
    footer .footer-grid > .footer-brand { grid-column: 1 / -1 !important; }
    footer .footer-grid > .footer-col:nth-child(2) { grid-column: 1 !important; grid-row: 2 !important; }
    footer .footer-grid > .footer-col:nth-child(3) { grid-column: 2 !important; grid-row: 2 !important; }
    footer .footer-grid > .footer-col:nth-child(4) { grid-column: 1 / -1 !important; grid-row: 3 !important; }
    footer .footer-col { min-width: 0; }
    footer .footer-col ul li a { overflow-wrap: anywhere; font-size: 13.5px; }
    footer .footer-bottom { flex-direction: column !important; gap: 10px !important; text-align: center; }
    footer .footer-bottom > div { margin-left: 0 !important; }

    /* ---------- HOME: hero = video only ---------- */
    .hero .hero-inner,
    .hero .scroll-cue { display: none !important; }
    .hero::after { display: none !important; }
    .hero video { opacity: 1 !important; }

    /* ---------- ABOUT: hero heading must not overflow ---------- */
    .hero-placeholder-inner,
    .hero-about-copy { max-width: 100% !important; min-width: 0 !important; }
    .hero-about-copy h1 {
        font-size: clamp(32px, 10vw, 44px) !important;
        line-height: 1.1 !important;
    }
    .hero-about-copy h1 span { white-space: normal !important; }
    .hero-about-copy h1 .hero-orange { white-space: nowrap !important; }

    /* ---------- ABOUT: Our Clients cards (2 per row) ---------- */
    .clients-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        padding: 0 14px !important;
    }
    .cl-card { height: 190px !important; }
    .cl-inner { border-radius: 16px !important; }
    .cl-inner::before { inset: 8px !important; border-radius: 10px !important; }
    .cl-img { padding: 14px 12px 46px !important; }
    .cl-img img { max-height: 84px !important; max-width: 86% !important; }
    .cl-content { padding: 6px 8px 14px !important; transform: none !important; text-align: center; }
    .cl-content .client-tag {
        font-size: 10.5px !important;
        letter-spacing: 0.04em !important;
        line-height: 1.3 !important;
        text-align: center;
        overflow-wrap: break-word;
        word-break: normal;
        margin: 0 !important;
    }

    /* ---------- SERVICES: Our Services cards (1 per row) ---------- */
    #servicesGrid.projects-grid,
    .projects-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 18px !important;
        padding: 0 6px;
    }
    .project-card { border-radius: 20px !important; min-width: 0; }
    .project-card-image { height: 190px !important; }
    .project-card-content { padding: 18px 18px 20px !important; min-width: 0; }
    .project-card-type { font-size: 11px !important; line-height: 1.4; }
    .project-title { font-size: 21px !important; line-height: 1.3 !important; margin-bottom: 8px !important; }
    .project-desc { font-size: 14px !important; line-height: 1.6 !important; margin-bottom: 14px !important; }
    .project-tags { gap: 7px !important; margin-bottom: 16px !important; }
    .project-tag { font-size: 11.5px !important; padding: 4px 11px !important; }
    .project-card-footer { flex-direction: row !important; align-items: center !important; gap: 10px; padding-top: 14px !important; }
    .project-card-footer * { font-size: inherit; }

    /* ---------- SERVICES: Testimonials -> stacked slider ---------- */
    .magazine-section { padding: 56px 14px !important; }
    .magazine-wrapper { display: none !important; }
    .mob-testi { display: block; max-width: 520px; margin: 0 auto; }
    .mob-testi-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 14px;
    }
    .mob-testi-track::-webkit-scrollbar { display: none; }
    .mob-testi-slide { flex: 0 0 100%; scroll-snap-align: center; min-width: 0; }
    .mob-testi-card {
        background: #ffffff;
        border-radius: 22px;
        overflow: hidden;
        border: 1px solid rgba(255, 102, 0, 0.16);
        box-shadow: 0 14px 38px rgba(22, 19, 17, 0.1);
    }
    .mob-testi-logo {
        height: 110px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        border-bottom: 1px solid rgba(22, 19, 17, 0.06);
        padding: 14px 24px;
    }
    .mob-testi-logo img { max-height: 70px; max-width: 70%; width: auto; height: auto; object-fit: contain; }
    .mob-testi .testi-right {
        height: auto !important;
        padding: 20px 18px 22px !important;
        justify-content: flex-start !important;
    }
    .mob-testi .testi-top-bar { flex-wrap: wrap; gap: 8px; }
    .mob-testi .testi-story-headline { font-size: 24px !important; }
    .mob-testi .testi-story-quote { font-size: 13.5px !important; }
    .mob-testi .testi-author-row { flex-wrap: nowrap; }
    .mob-testi .testi-author-name { flex-wrap: wrap; font-size: 15.5px !important; }
    .mob-testi .testi-author-role { font-size: 10px !important; line-height: 1.35; }
    .mob-testi .outcomes-card { flex-direction: column !important; align-items: stretch !important; gap: 12px; padding: 12px 14px 12px 18px !important; }
    .mob-testi .outcome-separator { width: 100% !important; height: 1px !important; margin: 0 !important; }
    .mob-testi-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        margin-top: 18px;
    }
    .mob-testi-btn {
        width: 42px; height: 42px; border-radius: 50%;
        border: 1.5px solid #ff6600; background: #ffffff; color: #ff6600;
        font-size: 15px; display: inline-flex; align-items: center; justify-content: center;
        cursor: pointer; box-shadow: 0 6px 16px rgba(255, 102, 0, 0.18);
    }
    .mob-testi-btn:active { background: #ff6600; color: #ffffff; }
    .mob-testi-dots { display: flex; gap: 8px; }
    .mob-testi-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 102, 0, 0.25); transition: all .25s ease; }
    .mob-testi-dot.active { width: 22px; border-radius: 999px; background: #ff6600; }
}

@media (max-width: 380px) {
    .clients-row { gap: 10px !important; padding: 0 10px !important; }
    .cl-card { height: 172px !important; }
    .cl-img img { max-height: 70px !important; }
    .cl-content .client-tag { font-size: 9.5px !important; }
    .project-title { font-size: 19px !important; }
}
