/* IUMA DIMENSION PUBLIC V30.8 — mobile composition and brand refinement. */

/*
 * The logo source deliberately carries a generous transparent stage. On the
 * compact header that stage made the visible mark read at roughly half of the
 * intended size. Crop it through the existing overflow frame; the source and
 * its proportions remain untouched.
 */
@media (max-width: 820px) {
  .site-nav .brand {
    width: 128px;
    height: 50px;
  }

  .site-nav .brand img {
    width: 154px;
    max-width: none;
    height: 103px;
    object-fit: fill;
    transform: translate(-17px, -26px);
  }

  /* Footer: retain every destination, but remove the inherited 620px stage. */
  .site-footer,
  .site-footer .footer-grid {
    min-height: 0;
  }

  .site-footer .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-content: start;
    gap: 18px 24px;
    padding: 42px 0 30px;
  }

  .site-footer .footer-identity {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
  }

  .site-footer .footer-brand {
    width: 108px;
    height: 52px;
  }

  .site-footer .footer-brand img {
    width: 150px;
    max-width: none;
    height: 100px;
    object-fit: fill;
    transform: translate(-20px, -24px);
  }

  .site-footer .footer-identity p {
    font-size: clamp(16px, 4.4vw, 20px);
    line-height: .98;
  }

  .site-footer .footer-public {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .site-footer .footer-social {
    grid-column: 2;
  }

  .site-footer .footer-grid nav {
    gap: 0;
  }

  .site-footer .footer-grid a {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .site-footer .footer-social a {
    min-height: 44px;
  }

  .site-footer .footer-legal {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }

  .site-footer .footer-legal span {
    grid-column: 1 / -1;
    margin: 0;
    padding: 10px 0 4px;
  }

  /* Auxiliary journeys share the fixed header already; remove doubled offsets. */
  .contact-page-v18 .contact-shell,
  .auth-login-v18 {
    margin-top: 0;
  }

  .register-company .register-context,
  .register-page .register-context {
    min-height: 680px;
  }

  .register-page .register-form,
  .register-company .register-form {
    min-height: 0;
  }

  .register-page .register-form {
    padding-block: 52px 64px;
  }

  .back-link,
  .auth-alternatives a,
  .check-field a,
  .text-action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .record-button,
  .password-field-v18 > button {
    min-height: 44px;
  }

  .password-field-v18 > button {
    bottom: 22px;
  }
}

@media (min-width: 821px) and (max-width: 900px) and (max-height: 500px) {
  .site-footer .footer-grid a,
  .site-footer .footer-social a,
  .record-button,
  .password-field-v18 > button,
  .back-link,
  .auth-alternatives a,
  .check-field a {
    min-height: 44px;
  }

  .back-link,
  .auth-alternatives a,
  .check-field a {
    display: inline-flex;
    align-items: center;
  }
}

/* Tablet keeps the editorial split, with viable columns and no title collision. */
@media (min-width: 701px) and (max-width: 820px) {
  .faq-page .faq-hero {
    min-height: 0;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    padding: 28px 32px 44px;
  }

  .faq-page .faq-hero > div {
    min-height: 350px;
    padding: 52px 24px 42px;
  }

  .faq-page .faq-hero h1 {
    font-size: 42px;
  }

  .faq-page .faq-hero > p {
    max-width: 360px;
    margin: 0;
    padding: 0 0 0 42px;
    font-size: 16px;
  }

  .faq-page .faq-contact {
    min-height: 0;
    padding-block: 62px;
  }

  .faq-page .faq-contact h2 {
    margin-block: 48px 34px;
  }

  .contact-page-v18 .contact-shell {
    width: calc(100% - 48px);
    min-height: 0;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    margin: 28px auto 54px;
  }

  .contact-page-v18 .contact-context-v18 {
    min-height: 660px;
    padding: 40px 28px 46px;
  }

  .contact-page-v18 .contact-context-v18 h1 {
    margin-top: 58px;
    font-size: 48px;
  }

  .contact-page-v18 .contact-channels-v18 {
    width: calc(100% + 52px);
  }

  .contact-page-v18 .form-sheet-v18 {
    width: 100%;
    margin: 0;
    padding: 48px 36px 42px 64px;
  }
}

@media (max-width: 700px) {
  /* Home: a little more vertical field is necessary to retain all four discs. */
  .home-ecosystem-v18 .static-ecosystem-photo-v304 {
    height: clamp(390px, 105vw, 430px);
  }

  /* FAQ: remove the desktop-sized blank stage above and inside the hero. */
  .faq-page .faq-hero {
    min-height: 0;
    padding: 26px 18px 46px;
  }

  .faq-page .faq-hero > div {
    min-height: 300px;
    padding: 44px 14px 38px;
  }

  .faq-page .faq-hero h1 {
    margin-top: 28px;
    font-size: clamp(37px, 11vw, 43px);
  }

  .faq-page .faq-hero > p {
    max-width: 330px;
    margin: 32px 6px 0 auto;
    padding: 0;
    font-size: 15px;
  }

  .faq-body-v18 {
    padding-block: 36px 52px;
  }

  .faq-body-v18 .faq-categories {
    margin-bottom: 24px;
  }

  .faq-page .faq-contact {
    min-height: 0;
    padding-block: 54px;
  }

  .faq-page .faq-contact h2 {
    margin: 38px 0 28px 8%;
    font-size: clamp(40px, 11.4vw, 46px);
  }

  .faq-page .faq-contact > div {
    margin-left: 0;
  }

  /* Contact: one fixed-header offset is sufficient. */
  .contact-page-v18 .contact-shell {
    padding-top: 0;
  }

  .contact-page-v18 .contact-context-v18 {
    min-height: 0;
    padding: 38px 24px 42px;
  }

  .contact-page-v18 .contact-context-v18 .eyebrow {
    margin-top: 42px;
  }

  .contact-page-v18 .contact-context-v18 h1 {
    margin-top: 42px;
  }

  .contact-page-v18 .form-sheet-v18 {
    margin-block: 16px 48px;
  }

  /* Access: the route carried both auth padding and a second 66px margin. */
  .auth-login-v18 {
    padding-top: 0;
  }

  .auth-login-v18 .auth-context {
    min-height: 380px;
    padding: 38px 24px 42px;
  }

  .auth-login-v18 .auth-form-wrap {
    padding-block: 42px 52px;
  }

  .auth-login-v18 .auth-form-wrap form {
    gap: 24px;
    padding-block: 32px 34px;
  }

  /* Registration: let real form content set height instead of desktop minima. */
  .register-page .register-context,
  .register-company .register-context {
    min-height: 640px;
  }

  .register-page .register-context > div {
    margin-top: 44px;
  }

  .register-page .register-form,
  .register-company .register-form {
    min-height: 0;
  }

  .register-page .register-form {
    padding-block: 46px 58px;
  }

  .register-page .register-form form {
    padding-top: 30px;
  }

  .register-page .register-form .form-grid {
    gap-block: 24px;
  }
}

@media (max-width: 340px) {
  .site-footer .footer-grid {
    gap-inline: 18px;
  }

  .site-footer .footer-identity {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
  }

  .site-footer .footer-identity p {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav .brand img,
  .site-footer .footer-brand img {
    animation: none !important;
    transition: none !important;
  }
}
