* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #ccce6b;
  --background: 33, 37, 41;
  --background-dark: #1c2023;
  overflow-x: hidden;
  font-family: "Open Sans", Arial, sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: 5.3em;
}

html,
body {
  overscroll-behavior-y: none;
}

svg {
  max-width: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  max-width: 1200px;
  padding-inline: 1em;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

header {
  display: flex;
  justify-items: center;
  align-items: center;
  background: linear-gradient(rgba(var(--background), 0.95),
      rgba(var(--background), 0.95)),
    url("./img/slides/slide-corporate-10-2.jpg") 50% / cover fixed;
  height: 100vh;
  clip-path: ellipse(90% 100% at center 0%);
  color: white;
}

header h2 {
  margin: 0;
  font-size: 2em;
  position: relative;
  display: inline-block;
}

header h2::before,
header h2::after {
  content: url("./img/slides/slide-title-border-light.png");
  height: 10px;
  margin: 0 1em;
  position: absolute;
  transform: translateY(-50%);
}

header h2::before {
  left: -3em;
}

header h2::after {
  right: -3em;
}

header h1 {
  font-size: 4em;
}

.nav {
  position: fixed;
  clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 0);
  top: 0;
  z-index: 99;
  width: 100%;
  transition: 0.3s ease-in-out;
}

nav {
  display: flex;
  justify-content: space-between;
}

nav input[type="checkbox"] {
  display: none;
}

.nav-active {
  background-color: var(--background-dark);
  box-shadow: 5px -1px 12px -5px grey;
}

.nav-links {
  display: flex;
  align-items: center;
  column-gap: 1em;
}

.nav-links a {
  color: white;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent);
}

.btn {
  background: var(--accent);
  color: #000;
  padding: 1em 2em;
  text-decoration: none;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18em;
  margin: 1.5em auto 0 auto;
  border-radius: 0.25em;
}

.btn svg {
  width: 2em;
}

header .btn {
  margin-top: 3em;
}

main {
  display: flex;
  flex-direction: column;
  column-gap: 2em;
  margin-block: 2em;
}

section {
  padding-block: 3em;
}

#badges {
  padding-block: 5em;
}

#badges .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  text-align: center;
  align-items: center;
  padding-bottom: 4em;
  border-bottom: 1px solid rgba(100, 100, 100, 0.3);
}

#badges .container div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
}

#badges p.number {
  font-size: 2em;
  font-weight: bold;
}

#why-us .container,
#services .container,
#about-us .container {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 2em;
  margin-block: 1em;
}

#why-us ul li {
  position: relative;
  list-style: none;
  line-height: 2em;
  padding-left: 2.5em;
  margin-block: 1em;
}

#why-us ul li::before {
  content: url("./img/check2.svg");
  position: absolute;
  left: 1em;
  transform: translate(-50%, 0);
}

#cta-help {
  text-align: center;
  background-color: var(--background-dark);
  color: white;
  padding-block: 5em;
  display: flex;
  flex-direction: column;
  gap: 2em;
}

#cta-help p {
  font-size: 2em;
  font-weight: lighter;
}

#cta-help a {
  font-size: 1.3em;
  gap: 0.5em;
}

#cta-help a svg {
  width: 1.3em;
}

#about-us .container div:first-of-type,
#services .container div:first-of-type {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

#about-us .container div:first-of-type h2,
#services .container div:first-of-type h2 {
  margin: 0;
}

#about-us #office {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  align-items: center;
  gap: 2em;
}

#about-us #office img:first-of-type {
  grid-row: 1 / -1;
}

#gallery {
  background-color: lightgrey;
}

#gallery .container div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2em;
  place-items: center;
}

#gallery img {
  max-width: 100%;
}

#map {
  padding: 0;
}

#map iframe {
  width: 100%;
  height: 80vh;
  border: 0;
}

#contact {
  max-width: 600px;
  margin: 0 auto;
  padding-inline: 1em;
  text-align: center;
}

h2 {
  font-weight: normal;
  margin-bottom: 2em;
  font-size: 1.8em;
}

.bold {
  font-weight: bold;
}

#contact>p {
  margin-block: 2.5em;
  color: rgba(0, 0, 0, 0.8);
}

#contact article {
  margin: 0 auto;
  text-align: left;
  color: white;
  background-color: var(--background-dark);
  padding: 2em;
  border-radius: 1em;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

#contact a {
  color: var(--accent);
  text-decoration: none;
}

#contact article label,
button {
  display: block;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

.location,
.working-hours,
.phone {
  display: flex;
  align-items: center;
  gap: 1em;
}

input,
textarea {
  border-radius: 0.5em;
  padding: 1em;
  width: 100%;
  border: 0;
}

textarea {
  resize: vertical;
}

#contact .btn {
  width: 100%;
  border: 0;
  cursor: pointer;
  padding-block: 1.5em;
}

footer {
  text-align: center;
  color: rgba(200, 200, 200, 0.6);
  background-color: var(--background-dark);
  clip-path: ellipse(55% 100% at center 100%);
  padding: 4em 2em;
  display: flex;
  flex-direction: column;
  gap: 2em;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  color: #d9db85;
  text-decoration: underline;
}

@media only screen and (orientation: portrait) {
  header {
    clip-path: ellipse(150% 100% at center 0%);
  }

  header .container div {
    display: flex;
    flex-direction: column;
    gap: 1em;
  }

  h2 {
    margin-bottom: 1em;
  }

  header h2 {
    font-size: 1.5em;
  }

  header h2::before,
  header h2::after {
    margin: 0 4em;
  }

  header h1 {
    font-size: 2em;
  }

  nav.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: space-between;
    text-align: left;
  }

  #mobile-nav~label {
    display: flex;
    align-items: center;
    justify-content: end;
    cursor: pointer;
  }

  #mobile-nav~label::after {
    color: white;
    content: url("./img/hamburger.svg");
    transition: 0.3s all;
  }

  #mobile-nav:checked~label::after {
    content: url("./img/cross.svg");
  }

  .nav-links {
    grid-column: 1 / -1;
    background-color: var(--background-dark);
    border-radius: 0.25em;
    display: none;
  }

  #mobile-nav:checked~.nav-links {
    display: flex;
    flex-direction: column;
  }

  #mobile-nav:checked~.nav-links a {
    width: 100%;
    padding-block: 1em;
    text-align: center;
  }

  section {
    padding-block: 2em;
  }

  #why-us .container,
  #services .container,
  #about-us .container {
    flex-direction: column;
    text-align: center;
  }

  .container li {
    text-align: left;
  }

  footer {
    clip-path: ellipse(70% 100% at center 100%);
  }
}