/* Global */

html {
  font-family: EB Garamond, serif;
  font-size: 14px;
  line-height: 1.5;
}

body {
  margin: auto;
}

main {
  max-width: 1000px;
  margin: auto;
}

button {
  padding: 9px 17px;
  font-size: 10px;
  border: 1px solid #afafaf;
  border-radius: 4px;
  color: #afafaf;
  background-color: white;
  cursor: pointer;
}

input[type=submit] {
  padding: 11px 23px;
  font-size: 14px;
  border: 1px solid #afafaf;
  border-radius: 4px;
  color: #afafaf;
  background-color: white;
  cursor: pointer;
}

input[type=text] {
  padding: 8px;
  border: 1px solid #d7d7d7;
  border-radius: 2px;
}

textarea {
  border: 1px solid #d7d7d7;
  border-radius: 2px;
}

select {
  padding: 8px;
  color: #5f5c63;
  background-color: white;
  border: 1px solid #d7d7d7;
  border-radius: 2px;
}

input[type=text], textarea, select {
  font-size: 0.8rem;
}

textarea {
  resize: none;
}

.section-heading {
  font-size: 3rem;
  margin: 40px 0px 20px 0px;
  text-align: center;
}

/*
* Header
*/

header {
  top: 0;
  border-bottom: 1px solid #e5e5e5;
  z-index: 1000;
  background-color: white;
}

header ul {
  display: flex;
  flex-direction: row;
  list-style: none;
}

header ul a {
  text-decoration: none;
}

.container-header {
  display: flex;
  flex-direction: row;
  margin: auto;
}

.header-logo {
  display: flex;
  align-items: center;
  text-align: center;
  margin-left: 30px;
  font-size: 1.1rem;
  font-weight: 700;
}

.header-nav ul {
  gap: 30px;
}

.header-nav ul a {
  color: black;
}

.header-hamburger-menu {
  display: none;
  align-items: center;
  margin-left: auto;
  margin-right: 30px;
  font-size: 1.5rem;
}

.header-hamburger-menu button {
  color: black;
  border: none;
  cursor: pointer;
  padding: 7px;
}

/* Mobile header */

.hamburger-menu-container {
  display: none;
  position: fixed;
  width: 100%;
  top: -20%;
  z-index: 1;
  transition: 0.2s all linear;
  border-bottom: 1px solid #e5e5e5;
}

.hamburger-menu-container.active {
  display: none;
  position: fixed;
  top: 49px;
  background-color: whitesmoke;
}

.hamburger-menu-container ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0px 20px;
  padding: 10px;
  gap: 5px;
}

.hamburger-menu-container ul a {
  text-decoration: none;
  color: black;
  font-size: 1.2rem;
}


/* Socials */
.header-socials {
  margin-left: auto;
  margin-right: 30px;
}

.header-socials ul {
  gap: 20px;
}

.header-socials ul li a {
  color: #4b4b4b;
}

/*
* Cards
*/

.card {
  display: flex;
  flex-direction: row;
  box-sizing: border-box;
  width: 100%;
  border-bottom: 2px solid #e5e5e5;
}

/* Cards - Text area*/
.card-col-text {
  display: inline-block;
  padding: 20px 40px;
  margin: auto;
  box-sizing: border-box;
}

.card-text-heading1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.card-text-heading2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.card-text-lead {
  font-size: 1.2rem;
  margin: 10px 0px;
}

.card-text-body {
  margin: 10px 0px;
}

/* Cards - Image area*/
.card-col-img {
  overflow: hidden;
  box-sizing: border-box;
}

.card-col-img img {
  height: 100%;
  float: right;
  object-fit: cover;
}

/* Cards - Striped card reverse*/
.card:nth-child(even) {
  flex-direction: row-reverse;
}

.card:nth-child(even) .card-col-img img {
  float: left;
}

/* 
* Gallery
*/
/*
https://css-tricks.com/adaptive-photo-layout-with-flexbox/
*/

.container-gallery {
  margin: auto;
  max-width: 1400px;
  width: 100%;
  height: 100%;
}

.container-gallery img {
  width: 100%;
  height: 100%;
}

.container-gallery ul {
  display: flex;
  flex-direction: row;
  padding: 0px;
  list-style-type: none;
}

/* 
* Features 
*/

.container-features {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  height: 100%;
}

.features-block {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 50px;
  align-content: center;
  align-items: center;
  text-align: center;
}

.features-heading {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 20px 0px;
}

/* 
* Form 
*/

.form-container {
  max-width: 700px;
  margin: auto;
  padding: 30px;
}

.form-container button {
  font-size: 12px;
}

.form-container label {
  font-weight: 600;
}

.form-wrapper-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.form-wrapper-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}

.form-wrapper-row:last-child input[type=submit] {
  margin-left: auto;
}

.form-wrapper-col, .form-wrapper-row {
  margin-top: 15px;
}

/* Radio wrapper */
.form-wrapper-radio {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  margin-top: 15px;
}

.form-wrapper-radio .form-wrapper-row {
  margin: 0px;
}

.form-wrapper-radio .form-wrapper-row label {
  margin-right: 10px;
  font-weight: 500;
}

/* 3-col block wrapper */
.form-wrapper-col3 {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 15px;
}

.form-wrapper-col3 .form-wrapper-col {
  width: calc(100% / 3);
}

/* 
* Footer 
*/

footer {
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  padding: 30px 0px;
}

.container-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-socials ul {
  display: flex;
  flex-direction: row;
  list-style: none;
  padding: 0px;
  gap: 10px;
}

.footer-socials ul li {
  width: 30px;
  height: 30px;
  padding: 8px;
  text-align: center;
  border: 1px solid #4b4b4b;
  border-radius: 50%;
}

.footer-socials ul li a {
  color: #4b4b4b;
}

.footer-text {
  color: #4b4b4b;
  font-size: 0.9rem;
  margin-top: 10px;
}


/* 
* Media queries 
*/

@media screen and (min-width: 850px) {
  /* Header */
  .container-header {
      width: 850px;
  }

  /* Cards */
  .card-col-text {
      width: calc(100% / 3 * 2);  /* 2/3 of container */
  }

  .card-col-img {
      height: 350px;
  }
  .card-col-img img {
      width: 100%;
  }

  /* Cards - first card */
  .card:first-child {
      height: 600px;
  }

  .card:first-child .card-col-text {
      width: 50%;
  }

  .card:first-child .card-col-img {
      height: 100%;
      width: 450px;
  }

  /* Features */
  .features-block {
      width: calc(100% / 3);
  }

  .features-block:nth-child(-n + 3) {
      border-bottom: 2px solid #afafaf;
  }

  .features-block:nth-child(2), .features-block:nth-child(5) {
      border-left: 2px solid #afafaf;
      border-right: 2px solid #afafaf;
  }

  /* Form */

}

@media screen and (min-width: 601px) and (max-width: 850px) {
  /* Header */
  .header-socials {
      display: none;
  }

  /* Cards */
  .card {
      height: 400px;
  }

  .card-text-heading1 {
      font-size: 2.5rem;
  }

  .card-col-text {
      width: 50%;
      padding: 20px 30px;
  }

  .card-col-img {
      width: 50%;
      height: 100%;
  }

  .card-col-img img {
      width: 100%;
  }

  /* Gallery */
  .container-gallery ul li:not(:first-child, :nth-child(2)) {
      display: none;
  }

  /* Features */
  .features-block {
      width: 50%;
  }

  .features-block:nth-child(odd) {
      border-right: 2px solid #afafaf;
  }

  .features-block:nth-child(-n + 4) {
      border-bottom: 2px solid #afafaf;
  }
}

@media screen and (max-width: 601px) {
  /* Header */
  header {
      position: sticky;
      top: 0;
  }

  .header-logo {
      padding: 13px 0px;
  }

  .header-nav ul {
      display: none;
  }

  .hamburger-menu-container {
      display: block;
  }

  .hamburger-menu-container.active {
      display: block;
  }

  .header-hamburger-menu {
      display: flex;
  }

  .header-hamburger-menu button:hover {
      background-color: #e3e3e3;
  }

  .header-socials {
      display: none;
  }

  /* Cards */
  .card {
      flex-direction: column-reverse;
  }

  .card:nth-child(even) {
      flex-direction: column-reverse;
  }

  .card-text-heading1 {
      font-size: 2.5rem;
  }

  .card-col-img {
      width: 100%;
      height: 450px;
  }

  .card-col-img img {
      width: 100%;
      height: 100%;
  }

  /* Gallery */
  .container-gallery ul {
      flex-direction: column;
  }

  .container-gallery ul li:not(:first-child) {
      display: none;
  }

  /* Features */
  .features-block {
      width: 100%;
      border-bottom: 2px solid #afafaf;
  }

  /* Form */
  .form-wrapper-col3 {
      flex-direction: column;
  }

  .form-wrapper-col3 .form-wrapper-col {
      width: 100%;
  }

  .form-wrapper-radio {
      flex-direction: column;
      align-items: normal;
      margin-top: 20px;
  }

  .form-wrapper-radio .form-wrapper-row {
      margin: 0px;
  }

  .form-wrapper-radio .form-wrapper-row label {
      font-size: 1.3rem;
  }
}