/* reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
  position: relative;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}

/* defauts */
a,
a:hover,
a:active,
a:visited {
	color: inherit;
	text-decoration: none;
}

html {
	min-height: 100vh;
	font-family: Arial;
  font-size: 10px;
	color: #292929;
}

body {
  padding: 50px;
  text-align: center;
	background: #fff url('img/background.jpg') no-repeat center bottom;
}

/* fonts */
@font-face {
  font-family: "Haas Grot Roman";
  src: url("font/Haas_Grot_Roman.woff2") format("woff2"),
       url("font/Haas_Grot_Roman.woff") format("woff");
}

@font-face {
  font-family: "Haas Grot Bold";
  src: url("font/Haas_Grot_Bold.woff2") format("woff2"),
       url("font/Haas_Grot_Bold.woff") format("woff");
	font-weight: bold;
}

/* components */
.m-logo svg {
	width: 500px;
	max-width: 100%;
	height: auto;
}

.m-header {
	margin-top: 50px;
  font-size: 4.8rem;
	line-height: 5.2rem;
  font-family: 'Haas Grot Bold';
}

.m-intro {
	margin-top: 50px;
	font-size: 2.4rem;
	line-height: 2.8rem;
	font-family: 'Haas Grot Roman';
}

.m-brands {
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-direction: row;
	-ms-flex-direction: row;
	flex-direction: row;
	-webkit-flex-wrap: wrap;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-justify-content: space-around;
	-ms-flex-pack: justify;
	justify-content: space-around;
	-webkit-align-content: flex-start;
	-ms-flex-line-pack: start;
	align-content: flex-start;
	-webkit-align-items: flex-start;
	-ms-flex-align: start;
	align-items: flex-start;
	max-width: 650px;
	margin: 50px auto 0 auto;
}

.m-brands__item {
	-webkit-flex: 0 1 25%;
	-ms-flex: 0 1 25%;
	flex: 0 1 25%;
	margin-bottom: 30px;
	font-size: 1.4rem;
	font-weight: bold;
}

.m-brands__item-logo {
		display: block;
		margin: auto;
		width: 80px;
		height: 80px;
}

.m-brands__item-logo svg {
	position: absolute;
	top: 0;
	left: 0;

	filter: drop-shadow(0px 1px 10px rgba(0, 0, 0, 0.33));

	-webkit-transition: top 200ms ease-in-out;
	-moz-transition:    top 200ms ease-in-out;
	-o-transition:      top 200ms ease-in-out;
	-ms-transition:     top 200ms ease-in-out;
	transition:         top 200ms ease-in-out;
}

.m-brands__item-title {
	margin-top: 10px;
	padding: 0 5px;
	font-family: 'Haas Grot Bold';
}

.m-brands__item:hover svg {
	top: -10px;
}

.m-footer {
	margin-top: 55px;
}

.m-footer__info {
	margin-top: 44px;
	font-size: 1.6rem;
}

/* responsive styles */
@media only screen and (max-width: 600px) {
	body {
	  padding: 50px 15px;
	}

	.m-logo svg {
		width: 280px;
	}

	.m-header {
		margin-top: 30px;
		font-size: 3.6rem;
		line-height: 4.2rem;
	}

	.m-intro {
		margin-top: 30px;
	}

	.m-brands__item {
		-webkit-flex: 0 1 50%;
		-ms-flex: 0 1 50%;
		flex: 0 1 50%;
	}

	.m-footer__info {
		font-size: 1.4rem;
	}
}

@media only screen and (min-width: 1920px) {
	body {
		background-size: 100% auto;
	}
}
