/* ─────────────────────────────────────────────────────────
   HERO MOBILE FIX
   Add this block to your existing hero <style> tag,
   or save as assets/css/hero-mobile.css and link it.
   ───────────────────────────────────────────────────────── */

@media (max-width: 860px) {

  /* ── 1. Hero container — shorter on mobile ────────────── */
  .hero-sliders {
    min-height: 100svh;   /* safe viewport height on mobile browsers */
    height: 100svh;
  }

  /* ── 2. Each slide — use the screenshot as a BG image ─── */
  /*
     We pull the RIGHT panel image (.ss-right img) and use it
     as a background on the .slide-bg::after pseudo-element.
     Since we can't do this in CSS alone for dynamic images,
     we set a data-bg attribute via JS (see script below)
     and apply it here.
  */
  .slide-item .slide-bg::after {
    background-image: var(--slide-bg-img, none) !important;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
  }

  /* Dark overlay on top of the background image */
  .slide-item .slide-bg::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.35) 0%,
      rgba(0,0,0,0.55) 50%,
      rgba(0,0,0,0.85) 100%
    );
    z-index: 1;
  }

  /* ── 3. Caption — push to bottom of screen ────────────── */
  .slide-caption-holder {
    position: absolute;
    bottom: 100px;       /* above the logo bar */
    left: 0; right: 0;
    padding: 0 24px;
    padding-top: 0;
    align-items: flex-end;
    z-index: 10;
  }

  .slide-caption {
    max-width: 100%;
    width: 100%;
  }

  /* ── 4. Text styles on mobile ─────────────────────────── */
  .subheadline {
    font-size: 10px;
    letter-spacing: 0.14em;
    margin-bottom: 10px;
  }

  .headline {
    font-size: clamp(26px, 7vw, 38px);
    line-height: 1.05;
    margin-bottom: 12px;
  }

  .tagline {
    font-size: 14px;
    margin-bottom: 22px;
    color: rgba(255,255,255,.8);
  }

  .btn-primary {
    padding: 13px 22px;
    font-size: 11px;
  }

  /* ── 5. Hide mockup completely on mobile ──────────────── */
  .hero-mockup-wrap { display: none !important; }

  /* ── 6. Slide dots — move to bottom right ─────────────── */
  .slide-dots {
    left: auto;
    right: 20px;
    top: auto;
    bottom: 110px;
    flex-direction: row;
    transform: none;
    gap: 8px;
  }

  /* ── 7. Counter — bottom left ─────────────────────────── */
  .slide-counter {
    bottom: 90px;
    left: 24px;
    font-size: 12px;
  }

  /* ── 8. Progress bar ──────────────────────────────────── */
  .slide-progress {
    bottom: 76px;
    left: 24px;
    width: 80px;
  }

  /* ── 9. Logo bar — smaller on mobile ─────────────────── */
  .hero-logos-slider {
    padding: 12px 16px;
    gap: 0;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .hero-logos-slider::-webkit-scrollbar { display: none; }
  .client-logo {
    flex-shrink: 0;
    padding: 6px 14px;
  }
  .client-logo svg, .client-logo img {
    height: 24px;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .headline { font-size: 24px; }
  .slide-caption-holder { padding: 0 18px; bottom: 90px; }
}