/* Homepage on phones (below 768px) only: readable text, a working service grid, normal scrolling.
   Added 5 Dec 2026 (Han: "the mobile homepage has a lot of design issues"). Desktop is untouched: every rule is
   inside the media query, and the full-screen slider (jquery.fullPage) still runs from 768px (public/legacy/home-1.js).
   Colours and the service card grid come from mobile.css (loaded first). */
@media (max-width: 767px) {

  /* Normal page flow instead of the slider's fixed-height screens. */
  .chimps-home #fullpage,
  .chimps-home #fullpage .section,
  .chimps-home #fullpage .intro {
    display: block;
    height: auto !important;
    position: static;
  }
  .chimps-home #fullpage .background-image { display: none; }
  .chimps-home #fp-nav { display: none; }
  .chimps-home .main { height: auto; background: var(--paper); }

  /* The service card grid is in mobile.css (shared with Printing Services). */
  .chimps-home .service-list { padding-top: 16px; }

  /* Introduction: dark text on the page background, left-aligned for reading. */
  .chimps-home #section2 .banner-content {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 28px 20px 40px;
    text-align: left;
    color: var(--ink-soft);
    font-family: 'Roboto-Regular', sans-serif;
    font-size: 15px;
    line-height: 1.6;
  }
  .chimps-home #section2 .banner-content > * { max-width: 620px; }
  .chimps-home #section2 .banner-content code,
  .chimps-home #section2 .banner-content br { display: none; }
  .chimps-home #section2 .banner-content h1 {
    margin: 0 0 16px;
    font-family: 'Roboto-Light', sans-serif;
    font-size: clamp(2.8rem, 2rem + 2.5vw, 3.6rem);
    line-height: 1.2;
    color: var(--brown);
    text-align: left;
    text-wrap: balance;
  }
  .chimps-home #section2 .banner-content h2,
  .chimps-home #section2 .banner-content h3 {
    margin: 0 0 16px;
    text-align: left;
    text-wrap: pretty;
    text-shadow: none;
  }
  .chimps-home #section2 .banner-content h2 {
    font-family: 'Roboto-Light', sans-serif;
    font-size: 18px;
    line-height: 1.55;
    color: var(--ink);
  }
  .chimps-home #section2 .banner-content h3 {
    font-family: 'Roboto-Regular', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-soft);
  }
  .chimps-home #section2 .banner-content a { display: block; margin-top: 24px; }
  .chimps-home #section2 .banner-content .btn {
    display: block;
    width: 100%;
    min-height: var(--target-size);
    padding: 12px 16px;
    border: 0;
    border-radius: 3px;
    background: var(--brown);
    color: #fff;
    font-family: 'Roboto-Regular', sans-serif;
    font-size: 16px;
  }
  .chimps-home #section2 .banner-content .btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

  .chimps-home #footer.service-footer { margin-top: 0; }
}
