/* *** global styles */

* {
   scroll-behavior: smooth;
}

body {
   font-family: Helvetica, sans-serif;
   font-size: 100%;
   margin: 0;
}

b {
   color: var(--accent1);
   font-weight: inherit;
}

a {
   color: var(--accent2);
   transition: all 0.2s ease-out;
}

a:hover {
   color: var(--accent1);
}

section {
   display: flex;
   flex-direction: column;
   justify-content: center;
   padding: 0 3em 0 3em;
}

h1 {
   text-transform: uppercase;
   font-size: 2em;
   font-weight: normal;
   text-align: center;
}

ul {
   list-style-type: none;
   padding: 0;
}

/* row layout for big screens */

main,
ul {
   display: flex;
   justify-content: space-evenly;
   align-items: center;
   width: 100%;
   list-style-type: none;
}

/* * header styles */

header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   height: 5vh;
   padding: 1em 2em 1em 2em;
   position: sticky;
   top: 0;
   background-color: var(--bg);
}

.logo {
   height: 100%;
   display: flex;
   align-items: center;
   text-decoration: none;
}

.logo img {
   height: inherit;
}

.logo h1 {
   text-transform: none;
   font-size: 1.2em;
   text-align: left;
   color: var(--accent1);
}

nav a {
   margin: 0 2em 0 2em;
   text-decoration: none;
}

/* * main styles */

main {
   height: 90vh;
}

.slogan {
   width: 30vw;
}

.slogan h1 {
   text-transform: none;
   font-size: 4vw;
   font-weight: normal;
   text-align: left;
}

main img {
   height: 30vw;
   border-radius: var(--border);
   box-shadow: var(--shadow);
}

/* * sections styles */

/* objectives */

.objective {
   background-color: var(--bg-accent);
   color: var(--text-white);
   height: 100vh;
   padding: 0 30%;
}

.objective h1 {
   text-align: left;
   font-size: 2em;
}

/* missions */

.missions {
   height: auto;
}

.missions h1 {
   margin: 3em 0 3em 0;
}

.missions-list {
   flex-direction: column;
}

.mission-item {
   display: flex;
   flex-direction: row;
   justify-content: center;
   align-items: center;
   margin-bottom: 10em;
}

.mission-item:nth-of-type(2) {
   flex-direction: row-reverse;
}

.mission-item h2 {
   font-weight: normal;
   font-size: 1.5em;
   max-width: 30%;
}

.mission-item img {
   margin: 0 3em 0 3em;
   border-radius: var(--border);
   box-shadow: var(--shadow);
   max-width: 60vw;
   max-height: 40vh;
}

/* partners */

.partners {
   margin-bottom: 10em;
}

.partners h1 {
   margin-top: 0;
}

.partners-list {
   display: flex;
   justify-content: space-evenly;
}

.partner-icon {
   margin: 1em 1em 0 1em;
   height: 5em;
}

/* contact */

footer {
   background-image: url(../images/banner.jpg);
   background-size: cover;
   background-repeat: no-repeat;
   padding: 3em 3em 1em 3em;
   color: var(--text-white);
}

footer h1 {
   text-align: left;
   margin: 0;
}

footer a {
   display: flex;
   align-items: center;
   color: var(--text-white);
}

.coordinates-list {
   flex-direction: column;
   align-items: flex-start;
}

.coordinates-list li {
   margin-top: 1em;
}

.socialmedia {
   display: flex;
   flex-direction: row;
   justify-content: flex-start;
}

.socialmedia li {
   margin-right: 1em;
}

.copyright {
   display: flex;
   justify-content: space-between;
   color: var(--text-white);
   font-size: 0.8em;
}

/* *** mobile view */

@media (max-width: 768px) {
   /* *** global */

   ul,
   .mission-item {
      flex-direction: column;
   }

   /* header */

   header {
      justify-content: center;
   }

   nav {
      display: none;
   }

   /* main */

   main {
      flex-direction: column-reverse;
      justify-content: center;
   }

   .slogan {
      width: 80%;
   }

   .slogan h1 {
      font-size: 2.5em;
      width: 50vw;
   }

   main img {
      width: 80%;
      height: auto;
   }

   /* objectives */

   .objective {
      padding: 0 2em;
   }

   /* missions */

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

   .mission-item h2,
   .mission-item img {
      max-width: 80%;
      width: 100%;
   }

   .mission-item:nth-of-type(2) {
      flex-direction: column;
   }
}
