@import url('variables.css');

main {
  min-height: 100vh;
}

img {
  max-width: 100%;
  border-radius: 0.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
button,
a,
li,
figcaption,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.button {
  font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.5;
  font-size: 1rem;
  color: var(--white, #e7eaef);
}

a {
  text-decoration: none;
}

p {
  color: var(--grey, #777983);
}

.p {
  margin-bottom: 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  line-height: 1.25;
  font-weight: 900;
}

h1,
.h1 {
  font-size: 2rem;
  text-align: center;
}

h2,
.h2 {
  font-size: 1.5rem;
}

h3,
.h3 {
  font-size: 1.25rem;
}

h4,
.h4 {
  font-size: 1rem;
}

h5,
.h5 {
  font-size: 0.875rem;
}

h6,
.h6 {
  font-size: 0.75rem;
}

.bold {
  font-weight: 700;
}

.large {
  font-size: 1.25rem;
}

.small {
  font-size: 0.75rem;
}

.extrasmall {
  font-size: 0.625rem;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.block-center {
  margin: auto;
}

.text-black {
  color: var(--black, #070818);
}

.text-darkblue {
  color: var(--darkblue, #14192f);
}

.text-blue {
  color: var(--blue, #252f50);
}

.text-grey {
  color: var(--grey, #777983);
}

.text-white {
  color: var(--white, #e7eaef);
}

.text-green {
  color: var(--green, #5cee69);
}

.text-darkgreen {
  color: var(--darkgreen, #118352);
}

.background-black {
  background-color: var(--black, #070818);
}

.background-darkblue {
  background-color: var(--darkblue, #14192f);
}

.background-blue {
  background-color: var(--blue, #252f50);
}

.background-grey {
  background-color: var(--grey, #777983);
}

.background-white {
  background-color: var(--white, #e7eaef);
}

.background-green {
  background-color: var(--green, #5cee69);
}

.background-darkgreen {
  background-color: var(--darkgreen, #118352);
}

main {
  margin-top: 2rem;
}

/* --------------------- */
/* GRID SYSTEM */
/* --------------------- */

.container {
  max-width: 100%;
  margin-right: var(--gutter-external);
  margin-left: var(--gutter-external);
}

.container--fullwidth {
  width: 100%;
}

.row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: var(--gutter-vertical);
  gap: var(--gutter-internal);
}

.row > * {
  flex-shrink: 0;
  flex-grow: 1;
  flex-basis: 1;
  max-width: 100%;
  padding-right: calc(var(--gutter-internal, 0.5rem) / 2);
  padding-left: calc(var(--gutter-internal, 0.5rem) / 2);
}

/* --------------------- */
/* COMPONENT STYLES */
/* --------------------- */

/* ICON */
.icon {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

.icon--small {
  display: block;
  width: 1rem;
  height: 1rem;
}

.icon--large {
  display: block;
  width: 2rem;
  height: 2rem;
}

/* END OF ICON */

/* NAV */

.nav__wrapper {
  position: fixed;

  right: 0;
  left: 0;
  bottom: 0;

  z-index: 10;
}

.nav__brand {
  display: none;
}

.nav__tabs {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  gap: 0.75rem;

  padding: 1.5rem 1.5rem;
  border-radius: 0.5rem 0.5rem 0 0;
}

.nav__excess {
  width: fit-content;
  padding: 1rem 3rem 1rem 1.5rem;
  position: fixed;
  bottom: 7rem;
  right: 1rem;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav__excess--closed {
  display: none;
}

.nav__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;

  color: var(--white, #e7eaef);
}

.nav__excess .nav__item {
  flex-direction: row;
  gap: 0.75rem;
}

.nav__excess .nav__item-icon {
  margin: 0;
}

.nav__excess .nav__item-name {
  font-size: 0.875rem;
}

.nav__item--active {
  color: var(--green, #5cee69);
}

.nav__item-icon {
  margin: auto;
}

.nav__item-name {
  text-transform: uppercase;
  text-align: center;

  font-size: 0.625rem;
  color: inherit;
  text-decoration: none;
}

/* END OF NAV */

.social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: var(--darkblue, #14192f);
  border-radius: 0.25rem;
  align-items: center;
}

.social__content {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.footer {
  background-color: var(--darkblue);
  margin-top: var(--space-4xl);
  padding-top: 1.5rem;
  padding-bottom: 7.5rem;
}

/* BUTTON */

.button {
  border: none;
  outline: none;
  text-decoration: none;
  display: inline-block;

  padding: 1rem 3rem;
  border-radius: 0.5rem;
}

.button--ghost {
  background: transparent;
  text-decoration: underline;
}

/* END OF BUTTON */

/* CARD */

.card {
  border-radius: 0.25rem;
  background-color: var(--darkblue);
  padding: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.card--transparent {
  background: transparent;
}

.card__highlight {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--space-sm);
}

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card__info {
  font-size: 1rem;
  color: var(--grey);
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.card__info-icon {
  margin-top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
}

.card__links {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-left: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  text-decoration: underline;
}

.card__link--primary {
  font-weight: 700;
  color: var(--green);
}

.card__link--secondary {
  color: var(--white);
}

/* END OF CARD */

/* SECTION */
.section__title {
  margin-bottom: 2rem;
  margin-top: 4rem;
}

.section__title:first-child {
  margin-top: 0;
}

.section__subtitle {
  margin-bottom: 1.5rem;
  margin-top: 3rem;
}

.section__subtitle:first-child {
  margin-top: 0;
}

.section__cardlist {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.section__figurelist {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.section__figurelist--vertical {
  flex-direction: column;
  gap: 1rem;
}
/* END OF SECTION */

/* LIST */

.list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.list--number {
  counter-reset: li;
}

.list--number .list__item {
  counter-increment: li;
}

.list__item {
  position: relative;
  padding-left: 1rem;
}

.list__item::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--blue);
  position: absolute;
  left: 0;
  margin-top: 0.5rem;
}

.list__item--green::before {
  background-color: var(--green);
  color: var(--green);
}

.list__item--number::before {
  height: unset;
  position: unset;
  background-color: unset;

  content: counter(li);
  color: var(--green);
  display: inline-block;

  width: 1rem;
  margin-left: -1rem;
  margin-right: 1rem;
  text-align: right;
}

/* END OF LIST */

/* TIMELINE */

.timeline {
  display: flex;
  flex-direction: column;
  position: relative;

  margin-bottom: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 0.125rem;
  top: 0;
  bottom: 0;
  margin-left: 0.4375rem;
  background-color: var(--darkblue);
}

.timeline__section {
  padding-left: 2rem;
}

.timeline__section::before {
  content: '';
  position: absolute;
  width: 1rem;
  height: 1rem;
  left: 0;
  margin-top: 1rem;
  background-color: var(--darkblue);
}

.timeline__section--active::before {
  background-color: var(--green);
}

/* END OF TIMELINE */

/* FIGURE */

.figure {
  text-align: center;
}

.figure--horizontal {
  display: flex;
  flex-direction: row;
  text-align: left;
  gap: 1rem;
  align-items: center;
}

/* END OF FIGURE */

@media screen and (min-width: 769px) {
  h1,
  .h1 {
    text-align: left;
  }

  .text-center\@tablet {
    text-align: center;
  }

  .text-left\@tablet {
    text-align: left;
  }

  .text-right\@tablet {
    text-align: right;
  }

  .nav {
    display: flex;
    flex-direction: row;
    gap: 3rem;

    background-color: var(--darkblue, #14192f);
    justify-content: center;
    border-radius: 1rem 1rem 0 0;
  }

  .nav__tabs {
    gap: 3rem;
    border-radius: unset;
    background: none;
    padding: 1.5rem 0;
  }

  .nav__excess {
    width: unset;
    position: unset;

    border-radius: unset;
    background: none;

    display: flex;
    flex-direction: row;
    gap: 3rem;
    padding: 1.5rem 0;
  }

  .nav__excess-toggle {
    display: none;
  }

  .nav__excess--closed {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .nav__excess .nav__item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .nav__excess .nav__item-name {
    font-size: 0.625rem;
  }

  .nav__item-icon {
    margin: 0 auto;
  }
  .card {
    width: 100%;
    max-width: 21rem;
  }
}

@media screen and (min-width: 1401px) {
  .text-center\@desktop {
    text-align: center;
  }

  .text-left\@desktop {
    text-align: left;
  }

  .text-right\@desktop {
    text-align: right;
  }

  main {
    margin-top: 14rem;
  }

  .container {
    margin-right: calc(var(--gutter-external) + var(--grid-column-width) + var(--gutter-internal));
    margin-left: calc(var(--gutter-external) + var(--grid-column-width) + var(--gutter-internal));
  }

  .nav__wrapper {
    top: 0;
    left: 0;
    right: 0;
    max-height: 7.5rem;
  }

  .nav__brand {
    display: block;
    text-align: center;
    padding-top: 1rem;
  }

  .nav {
    border-radius: 0 0 1rem 1rem;
  }

  .nav__item,
  .nav__excess .nav__item,
  .nav__excess--closed .nav__item {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
  }

  .nav__excess-toggle {
    display: none;
  }

  .footer {
    padding-bottom: 1.5rem;
  }
}
