﻿/* -------------------------------- 

File#: _1_main-footer-v4
Title: Main Footer v4
Descr: Footer navigation template
Usage: codyhouse.co/license

-------------------------------- */
/* reset */
*, *::after, *::before {
  box-sizing: border-box;
}

* {
  font: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}

body {
  background-color: hsl(0, 0%, 100%);
  font-family: system-ui, sans-serif;
  color: hsl(230, 7%, 23%);
  font-size: 1rem;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  color: hsl(230, 13%, 9%);
  font-weight: 700;
}

h1 {
  font-size: 2.0736rem;
}

h2 {
  font-size: 1.728rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.2rem;
}

ol, ul, menu {
  list-style: none;
}

button, input, textarea, select {
  background-color: transparent;
  border-radius: 0;
  color: inherit;
  line-height: inherit;
  appearance: none;
}

textarea {
  resize: vertical;
  overflow: auto;
  vertical-align: top;
}

a {
  color: hsl(250, 84%, 54%);
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

@media (min-width: 64rem) {
  body {
    font-size: 1.25rem;
  }

  h1 {
    font-size: 3.051rem;
  }

    h2 {
    font-size: 2.44rem;
  }

    h3 {
    font-size: 1.75rem;
  }

    h4 {
    font-size: 1.5625rem;
  }
}

/* variables */
:root {
  /* colors */
  --mo1-color-primary-hsl: 250, 84%, 54%;
  --mo1-color-bg-hsl: 0, 0%, 100%;
  --mo1-color-contrast-high-hsl: 230, 7%, 23%;
  --mo1-color-contrast-higher-hsl: 230, 13%, 9%;
  --mo1-color-contrast-medium-hsl: 225, 4%, 47%;

  /* spacing */
  --mo1-space-3xs: 0.25rem;
  --mo1-space-xs: 0.5rem;
  --mo1-space-sm: 0.75rem;
  --mo1-space-md: 1.25rem;
  --mo1-space-lg: 2rem;

  /* typography */
  --mo1-text-sm: 0.833rem;
  --mo1-text-xs: 0.694rem;
}

@media(min-width: 64rem){
  :root {
    /* spacing */
    --mo1-space-3xs: 0.375rem;
    --mo1-space-xs: 0.75rem;
    --mo1-space-sm: 1.125rem;
    --mo1-space-md: 2rem;
    --mo1-space-lg: 3.125rem;

    /* typography */
    --mo1-text-sm: 1rem;
    --mo1-text-xs: 0.8rem;
  }
}

/* icons */
.mo1-icon {
  height: var(--mo1-size, 1em);
  width: var(--mo1-size, 1em);
  display: inline-block;
  color: inherit;
  fill: currentColor;
  line-height: 1;
  flex-shrink: 0;
  max-width: initial;
}

/* component */
.footer-v4 {
  position: relative;
  z-index: 1;
}

.footer-v4__nav {
  margin-bottom: var(--mo1-space-lg);
}

.footer-v4__nav-item {
  margin-bottom: var(--mo1-space-sm);
}
.footer-v4__nav-item a {
  color: hsl(var(--mo1-color-contrast-high-hsl));
  font-size: 1.25em;
}
.footer-v4__nav-item a:hover {
  color: hsl(var(--mo1-color-primary-hsl));
}

.footer-v4__logo {
  margin-bottom: var(--mo1-space-sm);
}
.footer-v4__logo a, .footer-v4__logo svg, .footer-v4__logo img {
  width: 104px;
  height: 30px;
  display: block;
}

.footer-v4__print {
  color: hsl(var(--mo1-color-contrast-medium-hsl));
  font-size: var(--mo1-text-sm);
  margin-bottom: var(--mo1-space-sm);
}

.footer-v4__socials {
  display: flex;
  align-items: center;
}
.footer-v4__socials a {
  text-decoration: none;
  display: inline-block;
  margin-right: var(--mo1-space-xs);
  color: hsl(var(--mo1-color-contrast-medium-hsl));
}
.footer-v4__socials a:hover {
  color: hsl(var(--mo1-color-contrast-high-hsl));
}
.footer-v4__socials a svg {
  display: block;
  width: 1.25em;
  height: 1.25em;
  color: inherit;
}

@media (min-width: 64rem) {
  .footer-v4 {
    text-align: center;
  }

  .footer-v4__nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-v4__nav-item {
    display: inline-block;
    margin: var(--mo1-space-3xs) var(--mo1-space-xs);
  }
  .footer-v4__nav-item a {
    font-size: 0.75em;
  }
  .footer-v4__nav-item:first-child {
    padding-left: 0;
  }
  .footer-v4__nav-item:last-child {
    padding-right: 0;
  }

  .footer-v4__logo {
    display: inline-block;
  }

  .footer-v4__print {
    font-size: var(--mo1-text-xs);
  }

  .footer-v4__socials {
    justify-content: center;
  }
  .footer-v4__socials a {
    margin: 0 var(--mo1-space-3xs);
  }
  .footer-v4__socials a svg {
    width: 1em;
    height: 1em;
  }
}

/* utility classes */
.mo1-max-width-lg {
  max-width: 80rem;
}

.mo1-container {
  width: calc(100% - 2*var(--mo1-space-md));
  margin-left: auto;
  margin-right: auto;
}

.mo1-padding-y-lg {
  padding-top: var(--mo1-space-lg);
  padding-bottom: var(--mo1-space-lg);
}