:root {
  --brown: #382302;
  --orange-back: #d6781d;
  --orange-front: #fa7a00;
  --white: #fff;
  --black: #000;
  --light-grey: #f2f1f1;
  --dark-grey: #3d3d3f;
}

html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

*:focus {
  outline: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
  width: 100%;
}

a,
a:visited {
  color: inherit;
  text-decoration: inherit;
}

section a,
section a:visited,
footer a,
footer a:visited {
  text-decoration: underline;
  font-weight: bold;
}

body {
  margin: 0;
  color: var(--dark-grey);
  background-color: var(--white);
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

nav {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 4rem;
  margin-bottom: 1rem;
}

nav a {
  width: 100px;
}

.scroll-down {
  display: inline-block;
  position: absolute;
  bottom: 0.5rem;
  left: calc(50% - 1.5rem);
  border-radius: 50%;
  height: 3rem;
  width: 3rem;
  transition: all 0.25s ease;
}

.scroll-down::after {
  border-bottom: 2px solid var(--black);
  border-left: 2px solid var(--black);
}
.scroll-down::before {
  border-bottom: 4px solid var(--white);
  border-left: 4px solid var(--white);
}
.scroll-down::after,
.scroll-down::before {
  content: "";
  display: inline-block;
  position: absolute;
  left: 1rem;
  top: 0.85rem;
  height: 1rem;
  width: 1rem;
  transform: rotate(-45deg);
  transition: all 1s ease;
  animation: 1s ease-out infinite down;
  animation-play-state: paused;
}
.scroll-down:hover::before,
.scroll-down:hover::after {
  animation-play-state: running;
}
.scroll-up::before,
.scroll-up::after {
  animation-name: up;
  transform: rotate(135deg);
}
#presentation {
  text-align: center;
}
#presentation ul {
  margin: auto;
  width: fit-content;
}
#presentation li {
  text-align: left;
}
#logo {
  display: block;
  margin: 0 auto 4rem;
  height: 7rem;
}
.career-links {
  float: right;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.links a {
  display: inline-block;
  margin: 1.5rem 0.5em;
}

.links img {
  height: 1.5rem;
  width: 1.5rem;
  object-fit: contain;
}

.flex,
section {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
}

#lang-switcher {
  position: absolute;
  top: 0;
  left: 0;
  margin: 1rem;
  z-index: 1;
  font-size: 0.85em;
  font-weight: bold;
}

#manifesto #lang-switcher, #foss #lang-switcher {
  position: fixed;
}

#lang-switcher a {
  text-decoration: underline;
  font-weight: normal;
  color: var(--dark-grey);
}

#lang-switcher a:hover {
  opacity: 1;
}

section li {
    margin-bottom: 0.5em;
}

section {
  position: relative;
  width: 100%;
}

section,
iframe,
.half,
.image-wrapper img {
  min-height: 100vh;
}

section p, ul {
  max-width: 750px;
}

p {
    padding-top: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom:0.2rem;
    margin-top: 0.1rem;
    margin-bottom: 1rem;
}

h1 {
  padding: 0.5rem 1rem;
}

h2 {
    padding-top: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 0.25rem;
    margin-top: 0.5rem;
    margin-bottom: 0.15rem;
    font-size: 1.2em;
}

h3 {
    padding: 0.5rem 1rem 0.15rem;
    margin-top: 0.5rem;
    margin-bottom: 0.15rem;
    font-size: 1em;
}

ul {
    margin-top: 0.25rem;
}

section div h1 {
  position: sticky;
  position: -webkit-sticky;
  z-index: 1;
  top: 0;
  background-color: white;
}

section div h1::after {
  border-bottom: 2px solid #f48d33;
  content: "";
  display: block;
}

.offers {
  margin: 15px;
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(450px, 550px));
}

.offer {
  display: flex;
}

.offer > * {
    padding: 0 0.5rem 0 0.5rem;
    float: left;
    width: 100%;
}

.offer > img {
  width: 25rem;
  float: left;
}

.offer h2 {
    padding-left: 0;
}

.offer p {
  padding: 0;
  line-height: 1.5rem;
}

#employees_landscape {
  width:100%;
  height: 400px;
  text-align: center;
}

.employee_gallery {
  width: 100%
}

.employee_row {
  display: flex;
  flex-direction: row;
  width: min(90%, 800px);
  height: 40vh;
  justify-content: space-between;
  margin: auto;
}

.employee_row .crop_employee {
  width: 15%;
  overflow: hidden;
}

.employee_row .crop_employee img {
  transform: translateX(-50%);
  height: 100%;
  display: block;
}

#employees_description {
  width: 50%;
  text-align: center;
  margin: auto;
}

.employees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(720px, 1fr));
}

.employee {
  margin: 15px;
  display: grid;
  grid-template-columns: 240px minmax(450px, 550px);
  justify-content: center;
  align-items: center;
}
.employee img {
  width: 100%;
}
.employee p {
  min-width: 450px;
  max-width: 550px;
  padding: 0;
  padding-left: 30px;
  line-height: 1.5rem;
}

#manifesto, #foss {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.half {
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.image-wrapper img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

section:last-of-type,
section:last-of-type .half,
section:last-of-type iframe {
  min-height: calc(100vh - 4.8125rem);
}
footer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 4.5rem;
}

footer ul {
  display: inline-flex;
  width: 50%;
  height: 2.5rem;
  margin: 0;
  padding-left: 0;
  align-items: center;
  justify-content: space-around;
  list-style: none;
  border-right: solid 1px var(--dark-grey);
}

footer li {
  width: 150px;
  text-align: center;
}
footer #legals {
  display: inline-block;
  width: 50%;
  padding-left: 1rem;
  text-align: left;
}

.mobile {
  display: none;
}

iframe {
  min-width: 500px;
}

@keyframes down {
  0% {
    top: 0.85rem;
  }
  50% {
    top: 1.75rem;
  }
  100% {
    top: 0.85rem;
  }
}

@keyframes up {
  0% {
    top: 0.85rem;
  }
  50% {
    top: 0rem;
  }
  100% {
    top: 0.85rem;
  }
}

@media screen and (max-width: 768px) {
  .mobile {
    display: inline;
  }

  .desktop {
    display: none;
  }

  #logo {
    height: 5rem;
    margin-bottom: 2.5rem;
  }

  #presentation nav {
    margin-top: 0rem;
  }

  nav a {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .half {
    width: 100%;
  }

  .image-wrapper {
    display: none;
  }

  .offers {
    grid-template-columns: 100%;
    padding-bottom: 48px;
  }
  .offer {
    grid-template-columns: calc(100% - 10px);
  }
  .offer img {
    max-width: 240px;
    margin: 0 auto;
  }
  .offer p {
    text-align: left;
    padding-left: 0.5rem;
    min-width: unset;
  }

  .employees {
    grid-template-columns: 100%;
    padding-bottom: 48px;
  }
  .employee {
    grid-template-columns: calc(100% - 10px);
  }
  .employee img {
    max-width: 240px;
    margin: 0 auto;
  }
  .employee p {
    text-align: left;
    padding-left: 0.5rem;
    min-width: unset;
  }

  .offices .half {
    height: 50vh;
    min-height: 50vh;
    overflow: hidden;
  }

  .offices iframe {
    min-height: 50vh;
  }

  .map {
    order: 2;
    overflow: hidden;
  }

  #lang-switcher {
    margin: 0.5rem;
  }

  #presentation #lang-switcher {
    bottom: 0;
    right: 0;
    left: auto;
  }

  #manifesto {
    padding-top: 0;
  }

  #manifesto #lang-switcher {
    position: absolute;
    top: 0;
  }

  footer {
    flex-direction: column;
    height: auto;
  }

  footer ul {
    width: 100%;
    border-right: none;
    margin: 1rem 0;
  }

  footer li {
    width: 70px;
  }

  footer #legals {
    width: 100%;
    padding-left: 0;
    text-align: center;
    margin-bottom: 0.5rem;
  }
}
