/* CSS Reset */
/* Resetting margins, paddings, and borders */
html, body,
h1, h2, h3, h4, h5, h6,
a, p, span,
em, small, strong,
sub, sup,
mark, del, ins, strike,
abbr, dfn,
blockquote, q, cite,
code, pre,
ol, ul, li, dl, dt, dd,
div, section, article,
main, aside, nav,
header, hgroup, footer,
img, figure, figcaption,
address, time,
audio, video,
canvas, iframe,
details, summary,
fieldset, form, label, legend,
table, caption,
tbody, tfoot, thead,
tr, th, td {
  border: 0;
  margin: 0;
  padding: 0;
}

/* Box sizing */
html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

/* Sizing - Height */
body {
  min-height: 100vh;
}

/* Typography */
body {
  font-size: 1rem;
  line-height: 1.5;
}

* {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

a,
a:visited {
  color: inherit;
}

/* Resetting specific element styles */
ol,
ul {
  list-style: none;
}

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

img {
  border-style: none;
}

a {
  text-decoration: none;
}

/* Basic rules */
.page {
  font-family: 'Open Sans', sans-serif;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.sr-only{
  height: 1px; 
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.btn {
  border-radius: 30px;
  display: flex;
  font-weight: 600;
  justify-content: center;
  padding: 16px 32px;
}

.logo {
  height: 32px;
}

/* Page header */
.page-header {
  background-color: hsl(193, 100%, 96%);
  background-image: url(images/bg-hero-desktop.svg);
  background-repeat: no-repeat;
  background-size: cover;
  padding: 60px 80px;
}

/* Page header top */
.page-header__top {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.page-header__top-link {
  background-color: hsl(0, 0%, 100%);
  box-shadow: 0px 0px 15px 0px hsl(197, 72%, 82%);
  flex-basis: 200px;
  color: hsl(192, 100%, 9%);
  transition: color .3s;
}

.page-header__top-link:hover {
  color: hsl(208, 11%, 55%)
}

/* Page header main */
.page-header__main {
  display: flex;
  padding-top: 70px;
}

/* Page header main section */
.page-header__section {
  flex: 50%;
}

.page-header__section:last-child {
  padding-left: 20px;
}

.page-header__title {
  color: hsl(192, 100%, 9%);
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  margin-top: 50px;
}

.page-header__copy {
  color: hsl(192, 100%, 9%);
  font-size: 1.125rem;
  margin-top: 20px;
  max-width: 500px;
}

.page-header__main-link {
  background-color: hsl(322, 100%, 66%);
  box-shadow: 0px 0px 15px 3px hsl(197, 72%, 82%);
  color: hsl(0, 0%, 100%);
  margin-top: 30px;
  transition: background-color .3s;
  width: 250px;
}

.page-header__main-link:visited {
  color: hsl(0, 0%, 100%);
}

.page-header__main-link:hover {
  background-color: hsl(322, 100%, 73%);
}

/* Page main */
.page-main {
  background-color: hsl(0, 0%, 100%);
  flex: 1;
  padding: 120px 80px;
  position: relative;
}

/* Page main article */
.page-main__article {
  background-color: hsl(0, 0%, 100%);
  box-shadow: 0px 0px 15px 3px rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 30px 30px 30px 60px;
}

.article {
  display: flex;
}

.article:not(:last-child) {
  margin-bottom: 40px;
}

.article__section {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.article__section:last-child {
  margin-left: 80px;
}

.article__title {
  color: hsl(192, 100%, 9%);
  font-size: 1.7rem;
}

.article__copy {
  color: hsl(210,8.9%,43.9%);
  font-size: 1.125rem;
  margin-top: 20px;
}

/* Page main stack element */
.page-main__stack {
  align-items: center;
  background-color: hsl(0, 0%, 100%);
  box-shadow: 0px 0px 15px 3px rgba(0,0,0,0.1);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  margin: 150px auto -180px;
  padding: 50px;
  text-align: center;
  width: 60%;
}

.page-main__stack-title {
  color: hsl(192, 100%, 9%);
  font-size: 1.7rem;
}

.page-main__stack-link {
  background-color: hsl(322, 100%, 66%);
  box-shadow: 0px 0px 15px 3px rgba(0, 0, 0, 0.1);
  color: hsl(0, 0%, 100%);
  margin-top: 30px;
  transition: background-color .3s;
  width: 350px;
}

.page-main__stack-link:visited {
  color: hsl(0, 0%, 100%);
}

.page-main__stack-link:hover {
  background-color: hsl(322, 100%, 73%);
}

/* Page footer */
.page-footer {
  background-color: hsl(192, 100%, 9%);
  color: hsl(0, 0%, 100%);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 160px 80px 40px;
}

.page-footer__logo {
  display: inline-block;
  filter:  brightness(0) invert(1);
  margin-bottom: 40px;
}

/* page footer contact section */
.page-footer__contact {
  flex-basis: 370px;
}

.page-footer__contact-item {
  align-items: flex-start;
  display: flex;
}

.page-footer__contact-item:not(:last-child) {
  margin-bottom: 30px;
}

.page-footer__contact-icon {
  margin-right: 20px;
  margin-top: 3px;
}

/* Page footer navigation section */
.nav-one,
.nav-two {
 padding-top: 75px;
}

.page-footer__nav-item:not(:last-child) {
  margin-bottom: 20px;
}

.page-footer__nav-link:hover {
  text-decoration: underline;
}

/* Page footer social section */
.page-footer__social {
  padding-top: 75px;
}

.page-footer__social-icons {
  align-items: center;
  border-radius: 50%;
  border: 1px solid #fff;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  transition: border .3s, color .3s;
  width: 36px;
}

.page-footer__social-icons:hover {
  border: 1px solid hsl(322, 100%, 66%);
  color: hsl(322, 100%, 66%);
}

.page-footer__social-icons:not(:last-child)  {
  margin-right: 10px;
}

/* Page footer copyright section */
.page-footer__copyright {
  flex: 100%;
  margin-top: 30px;
  text-align: right;
}

@media (max-width: 991px) {
  .page-header {
    background-image: url(images/bg-hero-mobile.svg);
  }
  
  .page-header__main {
    flex-wrap: wrap;
  }

  .page-header__section {
    flex: 100%;
    text-align: center;
  }

  .page-header__section:last-child {
    padding-left: 0;
  } 

  .page-header__copy {
    max-width: 100%;
  }

  .page-header__main-link {
    margin-bottom: 100px;
    margin-left: auto;
    margin-right: auto;
    width: 500px;
  }

  .page-main__article {
    padding: 30px;
  }
  
  .article {
    flex-wrap: wrap;
  }
  
  .article:not(:last-child) {
    margin-bottom: 80px;
  }
  
  .article__section {
    flex: 100%;
    text-align: center;
  }
  
  .article__section:last-child {
    margin-left: 0;
  }
  
  .article__section--alternate:first-child {
    order: 2;
  }
  
  .article__section--alternate:last-child {
    order: 1;
  }
  
  .article__title {
    margin-top: 100px;
  }
  
  .page-main__stack {
    width: 100%;
  }
 
  .page-footer__contact,
  .page-footer__nav,
  .page-footer__social {
    flex-basis: 100%;
  }
  
  .nav-two {
    padding-top: 20px;
  }

  .page-footer__nav-item:not(:last-child) {
    margin-bottom: 20px;
  }
  
  .page-footer__copyright,
  .page-footer__social {
    text-align: center;
  }
}

@media (max-width: 767px) {
  .page-header {
    padding: 60px 40px;
  }
  
  .page-header__title {
    font-size: 2rem;
  }
  
  .page-main {
    padding: 120px 40px;
  }
  
  .page-footer {
    padding: 160px 40px 40px;
  }
}

@media (max-width: 575px) {
  .page-header {
    padding: 60px 20px;
  }
  
  .page-header__top {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  
  .page-header__top-link {
    display: none;
  }
  
  .page-header__title {
    font-size: 2rem;
  }
  
  .page-header__copy {
    font-size: 1rem;
  }
  
  .page-header__main-link {
    width: 100%;
  }
  
  .page-main {
    padding: 120px 20px;
  }

  .page-main__article {
    padding: 30px 20px;
  }
  
  .article__title {
    font-size: 1.5rem;
  }

  .article__copy {
    font-size: 1rem;
  }
  
  .page-main__stack {
    padding: 30px 20px;
  }
  
  .page-main__stack-title {
    font-size: 1.5rem;
  }
  
  .page-main__stack-link {
    width: 100%;
  }
  
  .page-footer {
    padding: 160px 20px 40px;
  }
}
