/* Responsive QA fixes — keep logos/diagrams fully visible instead of cropped
   when Webflow's tablet/mobile rules force a fixed hero image height. */
@media (max-width: 991px) {
  .uui-heroheader08_image[src*="logo"],
  .uui-heroheader08_image[src*="technical-drawing"] {
    object-fit: contain;
    height: auto;
    max-height: 22rem;
  }
}
@media (max-width: 767px) {
  .uui-heroheader08_image[src*="logo"],
  .uui-heroheader08_image[src*="technical-drawing"] {
    max-height: 17.5rem;
  }
}

/* --- Case study cards: uniform, compact grid (all case-study lists) --- */
.w-dyn-list .w-dyn-items.w-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  margin-left: 0;
  margin-right: 0;
}

/* Webflow clearfix pseudo-elements would occupy grid cells */
.w-dyn-list .w-dyn-items.w-row:before,
.w-dyn-list .w-dyn-items.w-row:after {
  content: none;
}

.w-dyn-list .w-dyn-items.w-row > .w-dyn-item.w-col {
  float: none;
  width: auto;
  padding: 0;
  display: flex;
}

.w-dyn-list .w-dyn-items.w-row > .w-dyn-item.w-col > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  padding: 20px;
  border: 1px solid #ededed;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

.w-dyn-list .w-dyn-items.w-row > .w-dyn-item.w-col > a:hover {
  border-color: #dcdcdc;
  box-shadow: 0 10px 26px rgba(16, 24, 40, .09);
  transform: translateY(-3px);
}

.w-dyn-list .w-dyn-items.w-row > .w-dyn-item.w-col > a img {
  border: 0;
  width: 100%;
  height: 104px;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  padding: 8px;
  background: #fbfbfb;
}

.w-dyn-list .w-dyn-items.w-row > .w-dyn-item.w-col > a h3,
.w-dyn-list .w-dyn-items.w-row > .w-dyn-item.w-col > a > div {
  margin-top: 16px;
  padding: 0 2px;
  margin-bottom: 0;
  color: #2b2b2b;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.5;
  transition: color .2s ease;
}

.w-dyn-list .w-dyn-items.w-row > .w-dyn-item.w-col > a:hover h3,
.w-dyn-list .w-dyn-items.w-row > .w-dyn-item.w-col > a:hover > div {
  color: #0a0a0a;
}

@media screen and (max-width: 767px) {
  .w-dyn-list .w-dyn-items.w-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .w-dyn-list .w-dyn-items.w-row > .w-dyn-item.w-col > a { padding: 16px; border-radius: 12px; }
  .w-dyn-list .w-dyn-items.w-row > .w-dyn-item.w-col > a img { border: 0; height: 88px; }
}

@media screen and (max-width: 479px) {
  .w-dyn-list .w-dyn-items.w-row { grid-template-columns: 1fr; gap: 14px; }
}

/* Consistent section rhythm around CMS lists */
.w-dyn-list { margin-left: auto; margin-right: auto; }
.w-dyn-list .w-dyn-items.w-row + .w-pagination-wrapper { margin-top: 32px; }

/* News pagination */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 0;
  padding: 0 24px;
}
.news-pagination button {
  min-width: 40px;
  padding: 9px 16px;
  border: 1px solid #d8dee2;
  border-radius: 8px;
  background: #fff;
  color: #363636;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.news-pagination button:hover:not(:disabled) {
  border-color: #17a2b8;
  color: #17a2b8;
}
.news-pagination button.is-active {
  background: #17a2b8;
  border-color: #17a2b8;
  color: #fff;
}
.news-pagination button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* ---- Testimonials list ---- */
.w-dyn-list .w-dyn-items.w-row > .collection-item.w-col-6 {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 28px 30px;
  border: 1px solid #ededed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.w-dyn-list .w-dyn-items.w-row > .collection-item.w-col-6:hover {
  border-color: #dcdcdc;
  box-shadow: 0 10px 26px rgba(16, 24, 40, .08);
}
.w-dyn-list .w-dyn-items.w-row > .collection-item.w-col-6 img.image-12 {
  width: auto;
  max-width: 160px;
  max-height: 70px;
  height: auto;
  object-fit: contain;
  border: 0;
  margin-top: auto;
}
.w-dyn-list .w-dyn-items.w-row > .collection-item.w-col-6 .text-block-9 {
  font-weight: 700;
}
.w-dyn-list .w-dyn-items.w-row > .collection-item.w-col-6 .text-block-11 {
  font-size: 13px;
  color: #667085;
}
@media (min-width: 992px) {
  .w-dyn-list .w-dyn-items.w-row:has(> .collection-item.w-col-6) {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 991px) {
  .w-dyn-list .w-dyn-items.w-row:has(> .collection-item.w-col-6) {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .w-dyn-list .w-dyn-items.w-row > .collection-item.w-col-6 { padding: 22px; }
}

/* ---- Subtle hover / focus motion ---- */
.w-dyn-list .w-dyn-items.w-row > .w-dyn-item.w-col > a img {
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.w-dyn-list .w-dyn-items.w-row > .w-dyn-item.w-col > a:hover img,
.w-dyn-list .w-dyn-items.w-row > .w-dyn-item.w-col > a:focus-visible img {
  transform: scale(1.03);
}
.w-dyn-list .w-dyn-items.w-row > .w-dyn-item.w-col > a:focus-visible {
  outline: none;
  border-color: #17a2b8;
  box-shadow: 0 0 0 3px rgba(23, 162, 184, .18), 0 10px 26px rgba(16, 24, 40, .09);
  transform: translateY(-3px);
}
.w-dyn-list .w-dyn-items.w-row > .collection-item.w-col-6 {
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.w-dyn-list .w-dyn-items.w-row > .collection-item.w-col-6:hover {
  transform: translateY(-2px);
}

/* Inline links + nav */
.w-nav-link, .rich-text-block a, .w-richtext a {
  transition: color .2s ease, opacity .2s ease;
}
.w-nav-link:focus-visible,
.w-button:focus-visible,
.news-pagination button:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(23, 162, 184, .22);
  border-radius: 6px;
}
.w-button, .button, .uui-button {
  transition: transform .2s cubic-bezier(.22,.61,.36,1), box-shadow .2s ease, background-color .2s ease;
}
.w-button:hover, .button:hover, .uui-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 24, 40, .12);
}
.w-button:active, .button:active, .uui-button:active { transform: translateY(0); }

.news-pagination button {
  transition: background-color .2s, border-color .2s, color .2s, transform .18s ease;
}
.news-pagination button:hover:not(:disabled) { transform: translateY(-1px); }
.news-pagination button:active:not(:disabled) { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .w-dyn-list .w-dyn-items.w-row > .w-dyn-item.w-col > a:hover,
  .w-dyn-list .w-dyn-items.w-row > .w-dyn-item.w-col > a:focus-visible,
  .w-dyn-list .w-dyn-items.w-row > .collection-item.w-col-6:hover,
  .w-button:hover, .button:hover, .uui-button:hover,
  .news-pagination button:hover:not(:disabled) { transform: none; }
  .w-dyn-list .w-dyn-items.w-row > .w-dyn-item.w-col > a:hover img,
  .w-dyn-list .w-dyn-items.w-row > .w-dyn-item.w-col > a:focus-visible img { transform: none; }
}

/* ---- Cookie consent card ---- */
.rah-cookie-card {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9999;
  width: min(420px, calc(100vw - 32px));
  padding: 22px 22px 18px;
  background: #fff;
  border: 1px solid #e6e8ea;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(16, 24, 40, .18);
  font-family: Lato, sans-serif;
  animation: rah-cookie-in .35s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes rah-cookie-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.rah-cookie-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: #101828;
}
.rah-cookie-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #475467;
}
.rah-cookie-text a { color: #17a2b8; text-decoration: underline; }
.rah-cookie-options { margin-top: 14px; display: grid; gap: 10px; }
.rah-cookie-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: #475467;
  cursor: pointer;
}
.rah-cookie-option.is-locked { cursor: default; opacity: .8; }
.rah-cookie-option input { margin-top: 3px; accent-color: #17a2b8; }
.rah-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.rah-cookie-btn {
  flex: 1 1 auto;
  padding: 10px 14px;
  border: 1px solid #d8dee2;
  border-radius: 9px;
  background: #fff;
  color: #344054;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease,
              transform .18s cubic-bezier(.22,.61,.36,1), box-shadow .2s ease;
}
.rah-cookie-btn:hover { border-color: #17a2b8; color: #17a2b8; transform: translateY(-1px); }
.rah-cookie-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(23, 162, 184, .22); }
.rah-cookie-btn-primary {
  background: #17a2b8;
  border-color: #17a2b8;
  color: #fff;
}
.rah-cookie-btn-primary:hover { background: #128496; border-color: #128496; color: #fff; }
@media (max-width: 479px) {
  .rah-cookie-card { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px; }
  .rah-cookie-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .rah-cookie-card { animation: none; }
  .rah-cookie-btn:hover { transform: none; }
}

/* ---------------------------- Contact form ---------------------------- */
.rah-contact-form-section {
  padding: 72px 5% 88px;
  background: #fff;
}
.rah-contact-form-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px;
  border: 1px solid #ededed;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
.rah-contact-form-title { margin: 0 0 8px; font-size: 28px; line-height: 1.2; }
.rah-contact-form-sub { margin: 0 0 24px; color: #667085; font-size: 16px; }
.rah-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rah-field { display: flex; flex-direction: column; margin-bottom: 16px; }
.rah-field label { font-size: 14px; font-weight: 600; margin-bottom: 6px; color: #344054; }
.rah-field input,
.rah-field textarea {
  font: inherit;
  font-size: 16px;
  padding: 11px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  color: #101828;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.rah-field input:focus,
.rah-field textarea:focus {
  outline: none;
  border-color: #0e9ba5;
  box-shadow: 0 0 0 4px rgba(14, 155, 165, .14);
}
.rah-field input[aria-invalid="true"],
.rah-field textarea[aria-invalid="true"] { border-color: #d92d20; }
.rah-field-error { margin-top: 6px; font-size: 13px; color: #d92d20; }
.rah-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rah-contact-submit {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: #0e9ba5;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 10px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.rah-contact-submit:hover { background: #0b8790; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(14, 155, 165, .25); }
.rah-contact-submit[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.rah-contact-note { margin: 14px 0 0; font-size: 13px; color: #667085; }
.rah-contact-ok,
.rah-contact-error {
  padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 15px;
}
.rah-contact-ok { background: #ecfdf3; color: #05603a; border: 1px solid #abefc6; }
.rah-contact-error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
@media (max-width: 640px) {
  .rah-contact-grid { grid-template-columns: 1fr; }
  .rah-contact-form-wrap { padding: 22px; }
  .rah-contact-form-section { padding-top: 40px; padding-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .rah-contact-submit:hover { transform: none; }
}
