*,
*::before,
*::after {
  margin: 0;
  box-sizing: border-box;
}

:root {
  --ff-main: "Inter", sans-serif;
  --ff-secondary: "Manrope", sans-serif;

  --col-main: #6e72ed;
  --col-dark: #000;
  --col-light: #fff;
  --col-gray: #e6e6e6;
  --col-secondary-text: #434343; /* Language toggle color */
  --col-pilot-bg: #f5f5f5;
  --col-pilot-pattern: rgb(237 237 237 / 0.7);
  --col-social: #232323;
  --col-loc-shadow: rgb(189 191 255);
}

body {
  font-family: var(--ff-main);
}

ul {
  padding-inline: 0;
}

h2 {
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.2em;
}

nav {
  padding: 1.5rem 0;
  border-bottom: 2px solid var(--col-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 600;
  font-size: 2.25rem;
  color: var(--col-main);
}

.button {
  font-size: 1.125rem;
  font-family: var(--ff-secondary);
  font-weight: 600;
  text-decoration: none;

  background-color: var(--col-dark);
  color: var(--col-light);

  padding: 0.8em 1.4em;

  border-radius: 0.625rem;
  border: none;

  cursor: pointer;
}

header {
  padding: clamp(8rem, 10vw, 12rem) 0;
  text-align: center;
}

/* UTILITY CLASSES */

.hero__container,
.nav__container {
  width: 85%;
  margin: 0 auto;
}

.row {
  display: flex;
  justify-content: space-between;
}

.column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container--max--width {
  max-width: 1440px;
  /* max-width: 1950px; -- Stack Overflow */
  margin: 0 auto;
}

.contact__container,
.pilot__container {
  width: 70%;
  margin-left: 14%;
  padding: clamp(7rem, 14vw, 12.5rem) 0 clamp(9rem, 18vw, 16.5rem);
  max-width: 810px;
}

/* SECTIONS */
/* Hero section */

.hero__title {
  font-size: 3.75rem;
  max-width: 35rem;
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: 1.5rem;
  max-width: 40rem;
  margin-bottom: 3.5rem;
  line-height: 1.33em;
}

.hero__list {
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 4em;
  row-gap: 2em;
  flex-wrap: wrap;
  /* gap: clamp(4rem, 9%, 6rem); */
}

.hero__items {
  font-size: 1.75rem;
  font-weight: 600;
  list-style: none;
  position: relative;
}

.hero__items::before {
  content: url("images/check-circle.svg");
  position: absolute;
  bottom: 0;
  left: -1.5em;
  transform: translateY(10%);
}

/* Pilot Section */

.pilot {
  padding-top: clamp(2rem, 5vw, 7rem);
  background-color: var(--col-pilot-bg);
  background-image: url("images/countries-loc.svg"),
    repeating-linear-gradient(
      -75deg,
      var(--col-pilot-pattern),
      var(--col-pilot-pattern) 2px,
      var(--col-pilot-bg) 2px,
      var(--col-pilot-bg) 50px
    );
  background-repeat: no-repeat;
  background-position: right bottom;
  position: relative;
  background-size: contain;
}

.pilot span {
  color: var(--col-main);
}

/* Contact Section */

.contact h2 {
  margin-bottom: 0.5em;
}

.contact p {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4.25em;
  line-height: 1.4em;
}

.button--contact > span {
  font-weight: bold;
}

.email {
  text-decoration: none;
  color: var(--col-main);
}

/* Footer */

footer {
  background-color: var(--col-dark);
  color: var(--col-light);
  padding: 1.75rem 3.75rem;
}

footer div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer ul {
  display: flex;
  padding: 0;
}

.support__div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.support__div img{
  aspect-ratio: attr(width) / attr(height);
}

.social {
  width: 2.25rem;
  height: 2.25rem;
  background-color: var(--col-social);
  border-radius: 50%;
  list-style: none;
  display: grid;
  place-items: center;
}

.social + .social {
  margin-left: 1em;
}

.social a {
  color: var(--col-light);
  text-decoration: none;
}

/* Media Queries */

@media (min-width: 1560px) {
  .pilot {
    border-radius: 0.75rem;
  }
}

@media (min-width: 1880px) {
  html {
    font-size: 18px;
  }
}

@media (max-width: 840px) {
  html {
    font-size: 14px;
  }

  .pilot {
    padding-top: 0;
    min-height: 600px;
  }

  .container {
    width: 90%;
  }
}

@media (max-width: 539px) {
  html {
    font-size: 12px;
  }

  .button--nav {
    display: none;
  }

  .hero__items::before {
    transform: translateY(20%) scale(0.75);
  }

  .hero__title {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.67rem;
  }

  .container {
    width: 85%;
  }

  .container--2 {
    width: 85%;
    padding: clamp(4rem, 6.25vw, 5.5rem) 0;
  }

  .container--2 {
    padding: 8rem 0;
    margin-left: 6%;
  }

  .contact p {
    font-weight: 400;
    line-height: 1.7em;
  }

  footer {
    text-align: center;
    padding: 1rem;
  }

  .support__div img {
    width: 60%;
    height: auto;
  }
}
