/*
Theme Name: saltdportfolio
Template: generatepress
Version: 1.0.0
*/

/* Font */

@font-face {
    font-family: 'Proxima Nova Rg';
    src: url('/wp-content/themes/saltdportfolio/fonts/ProximaNova-Regular.woff2') format('woff2'),
        url('/wp-content/themes/saltdportfolio/fonts/ProximaNova-Regular.woff') format('woff'),
        url('/wp-content/themes/saltdportfolio/fonts/ProximaNova-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir Light';
    src: url('/wp-content/themes/saltdportfolio/fonts/ave.woff2') format('woff2'),
        url('/wp-content/themes/saltdportfolio/fonts/ave.woff') format('woff'),
        url('/wp-content/themes/saltdportfolio/fonts/ave.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Popup */

#mc_embed_signup {
	width: 100% !important;
}

.popmake #mc_embed_signup .button {
  padding: 8px 30px !important;
  display: inline-block !important;
  border: solid 2px var(--contrast) !important;
  background-color: var(--contrast) !important;
	color: #fff !important;
	font-size: inherit !important;
	border-radius: 100px !important;
line-height: inherit !important;
	height: unset !important;
}

.popmake #mc_embed_signup .button:hover {
  background-color: transparent !important;
  color: var(--contrast) !important;
}

#mc_embed_signup div#mce-responses {
	width: 100%;
	margin: 0 !important;
}

/* Global */

html {
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Proxima Nova Rg';
}

p, a, span, body {
  font-family: 'Avenir Light';
}

h1 {
  font-size: 60px;
}

p {
  margin-bottom: 1em;
}

#page {
  position: relative;
}

.full-height {
  min-height: 100vh;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
}

.wp-block-group__inner-container {
  width: 100%;
}

p.custom-width {
  max-width: 800px;
  margin: 0 auto 1em;
}

.button, .wp-block-button .wp-block-button__link {
  padding: 8px 30px;
  display: inline-block;
  border: solid 2px var(--contrast);
  background-color: var(--contrast) !important;
}

.wp-block-button.pink a {
	border: solid 2px pink !important;
	background-color: pink !important;
}

.wp-block-button.pink a:hover {
	color: pink !important;
}

.button:hover, .wp-block-button .wp-block-button__link:hover {
  background-color: transparent !important;
  color: var(--contrast) !important;
}

.entry-content > .has-contrast-2-background-color {
  min-height: 100vh;
}

/* Header */

header .grid-container {
  display: flex;
  justify-content: flex-end;
  justify-content: end;
  max-width: 100%;
  padding: 0 20px;
}

.nav-toggler, .nav-toggler:hover, .nav-toggler:focus {
  background-color: transparent;
  border: none;
  z-index: 99999;
  position: relative;
}

.button-menu-container {
  height: 20px;
}

.button-menu-container > div {
  width: 32px;
  height: 2px;
  background: #333;
  transition: 0.3s all;
}

.button-menu-container > div.middle {
  margin: 7px 0;
}

header {
  position: absolute;
  width: 100%;
  top: 20px;
  right: 0;
  padding-top: 20px;
}

body.logged-in header {
  top: 32px;
}

header nav {
  position: fixed;
  top: 0;
  right: -351px;
  height: 100%;
  width: 350px;
  transition: 0.3s ease;
  background: #e8e6e6;
  z-index: 999;
  padding: 30px 40px;
}

header.open nav {
  right: 0px;
}

#page.open::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  background: #ffffff78;
  z-index: 99;
  top: 0;
  left: 0;
}

header.open .top {
  transform: rotate(45deg);
  position: relative;
  top: 9px;
}

header.open .bottom {
  transform: rotate(-45deg);
  position: relative;
  top: 7px;
}

header.open .middle {
  display: none;
}

header img {
  width: 140px;
}

header .menu {
  margin: 0;
  list-style: none;
}

.menu-main-menu-container {
  width: 100%;
}

.nav-conatainer a {
  width: 100%;
  display: block;
  text-align: center;
  padding: 10px;
  font-size: 23px;
  opacity: 0.8;
  transition: 0.1s all;
}

.nav-conatainer {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.nav-conatainer a:hover {
  opacity: 1;
}

/* Footer */

.site-footer {
  position: relative;
}

.footer-logo {
  position: absolute;
  right: 30px;
  bottom: 20px;
  width: 150px;
}

/* Home */

.home-body .left p {
  max-width: 350px;
  margin: 50px 0;
}

.home-body h1 {
  margin-top: 40px;
}

.home-body .wp-block-social-links {
  margin-top: 40px;
}

.home-body img {
  height: 500px;
  object-fit: contain;
}

/* About */

.about {
  margin-bottom: 100px;
}

.about h1 {
  font-size: 32px;
}

.about h4 {
  font-size: 16px;
  font-weight: 600;
}

/* Portfolio */

.portfolio p.custom-width {
  margin: 40px auto;
}

.post-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.post-card {
  flex-wrap: wrap;
  margin: 30px 0;
  padding-bottom: 60px;
  max-width: 48%;
  width: 100%;
  max-height: max-content;
}

.post-card > img {
  width: 100%;
  max-width: 200px;
  object-fit: contain;
  max-height: 395px;
  box-shadow: 9px 7px 15px -10px;
  border-radius: 31px;
  height: 395px;
}

@media screen and (max-width: 767px) {

	.post-card h2, .post-card .content > p {
		min-height: unset !important;
		text-align: center;
	}

	.post-card > img {
		box-shadow: unset !important;
		max-width: 80% !important;
		margin: 0 auto;
	}

}

.post-card .content {
  width: 100%;
  max-width: calc(100% - 250px);
  margin-left: 50px;
  padding: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}

.post-card .content > h2 {
  order: 1;
}

.post-card .content > div {
  order: 2;
  margin: 25px 0 5px;
}

.post-card .content > p {
  order: 3;
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
  margin-left: 5px;
}

.wpsm_counterbox .wpsm_number {
  font-weight: 700 !important;
  color: #414141 !important;
  letter-spacing: 2px !important;
  line-height: 1.3em !important;
}

.post-card .insta-link {
  display: flex;
  align-items: center;
  margin-top: 30px;
}

.post-card .insta-link svg {
  margin-right: 10px;
  fill: #414141;
}

.post-card h2 {
  font-size: 35px;
  margin-top: 15px;
  min-height: 110px;
}

.post-card h4 {
  margin-bottom: 15px;
  font-weight: bold;
  margin-top: 25px;
}

.wpsm_count-icon {
  display: none !important;
}

.wpsm_count-title {
  display: none !important;
}

.wpsm_counterbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 0 !important;
}

.wpsm_counterbox, .wpsm_counterbox h3 {
  font-family: 'Proxima Nova Rg' !important;
  font-weight: 400 !important;
}

.wpsm_count-title, .wpsm_number {
  min-height: unset !important;
  margin: 0 !important;
}

.wpsm_row > div {
  width: 85px;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--contrast);
  margin-right: 5px;
  border: solid 4px #888;
}

.wpsm_row > div:last-child {
  margin-right: unset !important;
}

.counter::after {
  content: "%";
}

.counter-container .wpsm_row {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: space-between;
}

#wpsm_counter_b_row_144 .counter::after {
  display: none;
}

.counter, .wpsm_count-title, #wpsm_counter_b_row_144 .wpsm_counterbox .wpsm_number {
  font-size: 16px !important;
  color: #fff;
}

.wpsm_count-title {
  margin-left: 15px !important;
}

/* Services */

.social-services-nav h3 a {
  font-family: 'Proxima Nova Rg';
  display: block;
}

@media screen and (max-width: 900px) {
	.social-services-nav {
		justify-content: space-between;
	}

	.social-services-nav > .wp-block-column {
		max-width: 40% !important;
	}

}

.services p.custom-width {
  margin: 40px auto;
}

.services .wp-block-separator {
  border-bottom: none !important;
  border-top: 1px solid #aeaeae;
  margin-bottom: 18px;
}

.services img {
	max-width: 270px;
	box-shadow: 9px 7px 15px -10px;
	border-radius: 10px !important;
}

/* Resources */

body.post-type-archive-resource, body.post-type-archive-resource #page {
  background-color: #e8e6e6;
}

.resource {
  max-width: 800px;
  margin: 0 auto 70px;
}

.resource h1 {
  text-align: center;
  margin: 50px 0 40px;
}

.resource-type h2 {
  text-align: center;
  font-size: 40px;
}

.resource-type h2::after {
  content: "";
  width: 100px;
  height: 2px;
  display: block;
  margin: 20px auto 35px;
  background-color: var(--contrast);
}

.resource-wrapper {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-height: 365px;
  overflow: hidden;
  transition: 0.3s;
}

.resource-wrapper.open {
  max-height: 100%;
}

.resource-wrapper > a {
  max-width: 31%;
  margin: 0 1% 50px;
  width: 100%;
  display: block;
  height: max-content;
}

.resource-wrapper img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.resource-wrapper span {
  font-size: 20px;
  font-weight: bold;
  font-family: 'Avenir Light';
  text-align: center;
  display: block;
  margin-top: 15px;
}

#loadResources {
    display: block;
    margin: 10px auto;
}

.wpcf7-form input:not(.wpcf7-submit) {
  width: 100%;
  margin-bottom: 15px;
}

.wpcf7-submit {
  width: max-content;
}

@media screen and (max-width: 768px) {

  .home-body .left p {
    max-width: 100%;
  }

  h1 {
  font-size: 42px;
  }

  .home-body .wp-block-social-links {
    margin-bottom: 0;
  }

  .home-body img {
    height: unset;
    width: 85%;
    margin: 0 auto 40px;
    display: block;
  }

  .about {
    flex-direction: column-reverse;
  }

  .post-card {
    max-width: 100%;
    padding-bottom: 0;
  }

  .post-card h2, .resources .items h2 {
    font-size: 32px;
  }

  .post-container {
    margin-bottom: 40px;
  }

  .items .wp-block-group__inner-container {
    padding: 0;
  }

  .resource-items {
    margin-bottom: 70px;
  }

  .modal .container {
    padding: 50px 30px 10px;
  }

  .modal {
    padding: 40px 20px;
  }

  .modal h3 {
    font-size: 24px;
  }

  .services {
    padding-bottom: 40px;
  }

  .footer-logo {
    width: 100px;
  }

  header nav {
    width: 300px;
  }

  header img {
    width: 100px;
  }

  header {
    top: 0;
  }

  header nav {
    padding: 20px 30px;
  }

  .post-card img, .post-card .content {
    max-width: 100%;
  }

  .post-card .content {
    margin: 20px 0;
  }

  .resource-type h2 {
    font-size: 30px;
  }

  .resource-wrapper > a {
    max-width: 100%;
  }

  .resource-wrapper {
    max-height: 1000px;
  }

  .resource-wrapper img {
    height: 250px;
  }

}

/* resource contact */

.resource-contact h1 {
  margin: 50px auto;
}

.resource-contact form {
  max-width: 700px;
  margin: 0 auto;
}

.
