* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  margin: 0;
  padding: 0;
}

section {
  padding-block-start: 70px;
  min-height: 100dvh;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  & button {
    appearance: none;
    border: 0;
    background-color: transparent;
    cursor: pointer;
    display: none;

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

  @media screen and (max-width: 768px) {
    width: 100%;
    padding-inline: 1rem;
  }
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  padding-inline: 1rem;

  transition: background-color 150ms ease, color 150ms ease,
    box-shadow 150ms ease;

  &.bg {
    background-color: #fff;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);

    & a {
      color: #000;
    }
  }

  & ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    width: 100%;
    padding-inline: 0;
    z-index: -1;

    @media screen and (max-width: 768px) {
      flex-direction: column;
      background-color: #fff;
      padding-block-end: 1.5rem;
      transition: transform 150ms ease;
      transform: translateY(-125%);
      position: absolute;
      background-color: #fff;
      box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);

      & a {
        color: #000 !important;
      }

      &.open {
        transform: translateY(50%);
      }
    }
  }

  & a {
    text-decoration: none;
    text-underline-offset: 4px;
    color: #fff;
    font-weight: 500;

    &:hover {
      text-decoration: underline;
    }
  }

  @media screen and (max-width: 768px) {
    flex-direction: column-reverse;
    background-color: #fff;
    padding-block-start: 0.5rem;
    padding-inline: 0;
    justify-content: center;
  }
}

.logo-container {
  @media screen and (min-width: 769px) {
    margin-inline-start: auto;
  }
}

.logo {
  height: 40px;
}

.hero-section {
  background-image: linear-gradient(hsl(0 0% 0% / 0.7), hsl(0 0% 0% / 0.4)),
    url(./hero.jpg);

  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.red {
  color: #bf2928 !important;
}

.content {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.hero-inner {
  padding: 1rem;

  & h1,
  h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 8vw, 5rem);
    text-align: center;
  }

  & h2 {
    font-size: clamp(0.875rem, 2vw, 1.5rem);
    font-weight: 500;
  }
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;

  & img {
    width: 100%;
    object-fit: contain;
  }

  @media screen and (min-width: 768px) {
    grid-template-columns: 1fr 1fr;
  }
}

.link {
  color: #bf2928;
  text-decoration: none;

  &:hover {
    text-decoration: underline;
  }
}

ul.extra-padding {
  & > li:not(:last-child) {
    padding-block-end: 0.5rem;
  }
}
