/* Homepage QA: mobile-only layout using the shared typography scale.
 * Keep the existing ACF copy, category links and floating artwork.
 */
@media (max-width: 767px) {
  body .home-container {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    align-items: stretch;
    background-position: center;
    background-size: cover;
  }
  body .home-container .glass-container {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
    padding: 16px 20px 24px;
    margin: 0;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: rgba(255, 255, 255, .08);
    -webkit-backdrop-filter: blur(8.4px);
    backdrop-filter: blur(8.4px);
    justify-content: flex-start;
  }
  body .home-container .header-home {
    position: relative;
    inset: auto;
    width: 100%;
    padding: 0;
    min-height: 42px;
    flex: none;
  }
  body .home-container .header-actions { gap: 8px; }
  body .home-container :is(.lang-switcher, .cta-button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    height: 42px;
    min-height: 42px;
    box-sizing: border-box;
    font: var(--ui-small-semibold);
    letter-spacing: 0;
    line-height: 20px;
    white-space: nowrap;
    text-align: center;
  }
  body .home-container .lang-switcher { width: 42px; padding: 0; border-width: 1px; }
  body .home-container .cta-button { min-width: 120px; padding: 10px 20px; }
  body .home-container .main-content {
    width: 100%;
    max-width: 350px;
    margin: 60px auto 0;
  }
  body .home-container .main-logo { margin: 0 0 8px; }
  body .home-container .main-logo svg { display: block; width: 44px; height: auto; margin-inline: auto; }
  body .home-container .main-content h1 { margin: 0 0 16px; text-align: center; }
  body .home-container .subtitle { max-width: none; margin: 0 0 20px; font: var(--ui-body); text-align: center; }
  body .home-container .subtitle p { margin: 0 0 8px; font: inherit; }
  body .home-container .subtitle p:last-child { margin-bottom: 0; }
  /* Balance centered copy so short trailing words do not sit alone. */
  body .home-container :is(.main-content h1, .subtitle) { text-wrap: balance; }
  body .home-container .categories { gap: 8px 12px; align-items: stretch; }
  body .home-container .category-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 calc(50% - 6px);
    width: calc(50% - 6px);
    min-width: 0;
    min-height: 44px;
    height: auto;
    padding: 10px 12px;
    box-sizing: border-box;
    border-width: 1px;
    border-radius: 56px;
    font: var(--ui-small-semibold);
    text-align: center;
    white-space: normal;
  }
  /* Restore the real, editable gallery artwork behind the full-width blur. */
  body .home-container .floating-gallery {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
  }
  body .home-container .floating-image {
    display: block;
    max-width: none;
    border-radius: 12px;
    opacity: .75 !important;
    transform: none !important;
    will-change: auto;
  }
  body .home-container .floating-image img { display: block; width: 100%; height: auto; border-radius: inherit; }
  body .home-container .floating-image-1 { top: 13%; left: -80px; right: auto; bottom: auto; width: 180px; }
  body .home-container .floating-image-2 { top: -24px; right: -40px; left: auto; bottom: auto; width: 140px; }
  body .home-container .floating-image-3 { top: 52%; right: -120px; left: auto; bottom: auto; width: 250px; }
  body .home-container .floating-image-4 { top: auto; bottom: -40px; left: -24px; right: auto; width: 160px; }
  body .home-container .floating-image-5 { top: 28%; right: -50px; left: auto; bottom: auto; width: 130px; }
  body .home-container .floating-image-6 { top: auto; bottom: 18%; left: -64px; right: auto; width: 160px; }
}
