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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;

  overflow-x: hidden;

  font-family: var(--font-primary);

  font-size: 16px;
  line-height: 1.65;

  color: var(--traffiq-text);

  background: var(--traffiq-white);

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  max-width: 100%;
  font: inherit;
}

input,
select,
textarea {
  min-width: 0;
}

button,
input {
  border: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  overflow-wrap: break-word;
  text-wrap: balance;
}

p,
li {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.container {
  width: min(
    var(--container-max),
    calc(100% - 80px)
  );

  margin-inline: auto;
}

.section {
  padding-block: 120px;
}

.sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);

  white-space: nowrap;

  border: 0;
}

:focus-visible {
  outline: 3px solid var(--traffiq-mint);
  outline-offset: 4px;
}

::selection {
  color: var(--traffiq-deep-teal);
  background: var(--traffiq-mint);
}


@media (max-width: 1024px) {

  .container {
    width: min(
      var(--container-max),
      calc(100% - 56px)
    );
  }

  .section {
    padding-block: 96px;
  }

}


@media (max-width: 767px) {

  .container {
    width: min(
      var(--container-max),
      calc(100% - 40px)
    );
  }

  .section {
    padding-block: 72px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

}


@media (max-width: 360px) {

  .container {
    width: calc(100% - 28px);
  }

}


@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

}
