/* AFK — mobile layout. Desktop (≥960px) keeps authored inline styles. */

.site-header__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid #14181C;
  background: transparent;
  color: #14181C;
  cursor: pointer;
  flex: 0 0 auto;
}

.site-header__toggle-bars {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-header__toggle-bars::before,
.site-header__toggle-bars::after {
  content: none;
}

.site-header.is-open .site-header__toggle-bars {
  box-shadow: none;
  transform: rotate(45deg);
}

.site-header.is-open .site-header__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(90deg);
}

.site-mobile-menu {
  display: none !important;
}

@media (max-width: 959px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-top: calc(64px + env(safe-area-inset-top, 0px));
  }

  body.nav-open {
    overflow: hidden;
  }

  .site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100 !important;
    padding-top: env(safe-area-inset-top, 0px);
  }

  .site-header__bar {
    flex-wrap: nowrap !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .site-header__logo {
    min-width: 0;
    flex: 1 1 auto !important;
  }

  .site-header__tag {
    display: none !important;
  }

  .site-header__wordmark {
    font-size: 16px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-header__nav,
  .site-header__lang,
  .site-header__cta {
    display: none !important;
  }

  .site-header__toggle {
    display: flex;
  }

  .site-mobile-menu.is-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: calc(64px + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: #F5F2EC;
    padding: 28px 20px calc(32px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: Archivo, system-ui, sans-serif;
    font-size: 22px;
    letter-spacing: 0.02em;
  }

  .site-mobile-menu__nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    color: #14181C;
    border-bottom: 1px solid #DFD9CE !important;
    white-space: normal !important;
  }

  .site-mobile-menu__meta {
    margin-top: auto;
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .site-mobile-menu__lang {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Archivo, system-ui, sans-serif;
    font-size: 14px;
    letter-spacing: 0.1em;
  }

  .site-mobile-menu__lang a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .site-mobile-menu__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 22px;
    font-family: Archivo, system-ui, sans-serif;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #14181C;
    color: #F5F2EC !important;
    text-align: center;
  }

  section,
  footer > div,
  .site-header__bar {
    box-sizing: border-box;
    max-width: 100% !important;
  }

  section {
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 48px !important;
  }

  [style*="grid-template-columns"] {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important;
    min-width: 0;
  }

  [style*="grid-template-columns"] > * {
    min-width: 0 !important;
    max-width: 100%;
  }

  [style*="height:340px"],
  [style*="height:420px"],
  [style*="height:440px"],
  [style*="height:260px"] {
    height: min(52vw, 280px) !important;
  }

  [style*="height:230px"],
  [style*="height:140px"] {
    height: min(42vw, 180px) !important;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  image-slot {
    display: block;
    width: 100%;
    max-width: 100%;
    touch-action: pan-y;
  }

  img {
    touch-action: pan-y;
  }

  a[href^="mailto:"] {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  p, li, span, td {
    overflow-wrap: break-word;
  }

  input,
  select,
  textarea {
    font-size: 16px !important;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  button,
  a {
    max-width: 100%;
  }

  footer [style*="justify-content:space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

.js-enquiry-form .hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 959px) {
  /* Hide design-canvas image editor chrome if it leaks on a public host. */
  image-slot .ctl,
  image-slot [part="controls"] {
    display: none !important;
  }
}
