/* the phone menu, the footer and the phone header */
.site-menu {
  margin: 0;
  width: min(22rem, 88vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
  border: 0;
  inset-inline-start: auto;
  inset-inline-end: 0;
  background: var(--surface);
  color: var(--ink);
  display: none;
  flex-direction: column;
  gap: 1.5rem;
}

.site-menu[open] {
  display: flex;
}

.site-menu::backdrop {
  background: rgb(15 25 35 / 0.45);
}

.site-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-menu__links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.site-menu__links a,
.site-menu__links button {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.25rem;
  border: 0;
  border-block-end: 1px solid var(--line);
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}

.site-menu__foot {
  margin-block-start: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
  .site-menu[open] {
    animation: menu-in 260ms var(--ease-drawer);
  }
}

@keyframes menu-in {
  from {
    transform: translateX(calc(100% * var(--dir)));
  }
}

/* the footer: a navy band, then the copyright and payment marks on the page colour */
.site-footer {
  margin-block-start: 5rem;
  background: var(--brand);
  color: #fff;
}

.site-footer__main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 3rem 2.5rem;
}

.site-footer__about {
  max-width: 26rem;
}

.site-footer__name {
  margin: 0 0 0.75rem;
  padding-block-end: 0.75rem;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
}

.site-footer__name::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 2.5rem;
  height: 2px;
  background: rgb(255 255 255 / 0.45);
}

.site-footer__text {
  margin: 0;
  font-size: 0.9375rem;
  opacity: 0.9;
}

.site-footer__social {
  display: flex;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.site-footer__social a,
.site-footer__badge {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.08);
}

.site-footer .mark {
  width: 1.1rem;
  height: 1.1rem;
}

.site-footer__contact {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  align-content: start;
}

.site-footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-size: 0.9375rem;
}

.site-footer__bottom {
  background: var(--background);
  color: var(--ink);
}

.site-footer__bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1rem;
  font-size: 0.8125rem;
}

.site-footer__bottom-row p {
  margin: 0;
}

.site-footer__policies {
  display: flex;
  gap: 1rem;
}

.payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.payment {
  height: 1.25rem;
  width: auto;
}

@media (max-width: 900px) {
  .site-header__nav,
  .site-header__actions > .site-header__languages,
  .site-header__actions > .site-header__branch {
    display: none;
  }

  .site-header__bar {
    grid-template-columns: 1fr auto;
    min-height: 3.5rem;
    padding-inline: 0.5rem;
  }

  .site-header__menu-open {
    display: inline-grid;
  }

  .site-footer__bottom-row {
    justify-content: center;
    text-align: center;
  }
}
