/* AILVBO mobile fix 2026-12-02
   Additive overlay only. Do not replace index-4ba35bf2.css.
   Covers the five signed-off mobile issues. Desktop layout stays as live
   except the footer YouTube contrast and the documentation checkbox size,
   which apply at all widths.
*/

/* 3. Documentation checkbox — enlarge hit area on every page that has it
      (/contact/, /rfq/, /ar/contact/, /ar/rfq/ and any future copy).
      Do not change form action or markup. */
input[type="checkbox"][name="request_documentation"] {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: #ff6b35;
  cursor: pointer;
}
label:has(> input[type="checkbox"][name="request_documentation"]) {
  cursor: pointer;
}

/* 4. Footer YouTube link — raise contrast on the dark footer only.
      Does not restyle in-body YouTube links (About / Contact mid-page).
      URL is unchanged. */
footer a[href="https://www.youtube.com/@AILVBO-Official"] {
  color: #f0f0f0;
}
footer a[href="https://www.youtube.com/@AILVBO-Official"]:hover,
footer a[href="https://www.youtube.com/@AILVBO-Official"]:focus {
  color: #ff6b35;
}

/* 1, 2, 5 — English homepage hero and category grid, mobile widths only.
   sm breakpoint on the live stylesheet is 640px. */
@media (max-width: 639px) {
  /* 1. Move hero arrows off the subtitle, down to the same row as the
        slide dots. Do not cover the CTA or the dots. Desktop unchanged. */
  #home button[aria-label="Previous slide"],
  #home button[aria-label="Next slide"] {
    top: auto;
    bottom: 2rem;
    transform: none;
  }
  #home button[aria-label="Previous slide"] {
    left: calc(50% - 7rem);
    right: auto;
  }
  #home button[aria-label="Next slide"] {
    left: auto;
    right: calc(50% - 7rem);
  }
  #home > .relative.z-10 {
    padding-bottom: 6rem;
    box-sizing: border-box;
  }

  /* 2. Product Categories: wrap as a two-column grid instead of a
        horizontal scroller that only shows ~two of six cards. */
  #categories .flex.overflow-x-auto.snap-x {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    overflow-x: visible;
    overflow-y: visible;
    scroll-snap-type: none;
    justify-content: stretch;
    padding-bottom: 0;
  }
  #categories .flex.overflow-x-auto.snap-x > button.w-52 {
    width: auto;
    min-width: 0;
    max-width: none;
    flex-shrink: 1;
    scroll-snap-align: unset;
    padding: 1.15rem;
  }

  /* 5. Hero "decorative" typography is baked into the two banner JPEGs
        (not a DOM node). On a tall narrow viewport object-cover crops
        the wide banners through the centre, leaving clipped fragments
        such as "um foil con", "Ma", and "So". Shift the crop to the
        photo side on mobile only; image files themselves are not changed. */
  #home img[src*="ailvbo-aluminum-foil-container-factory-stamping-and-packing-area"] {
    object-position: 8% 50%;
  }
  #home img[src*="ailvbo-homepage-banner-foil-container-forming-machine"] {
    object-position: 0% 50%;
  }
}
