/*!
 * Theme Name: Ignatius Piazza
 * Description: Custom Theme developed by Websites in a Flash
 * Template: wiaf_foundation
 * Version: 0.23
 * Author: Websites in a Flash
 * Tags: HTML5, CSS3, Custom Theme
 *
 */

 /* @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,700;1,400;1,700&family=Nanum+Myeongjo:wght@400;700;800&display=swap'); */

 @import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=Noto+Sans:wght@600;800&display=swap');


 :root {
   --heading-font: 'Noto Sans', sans-serif;
   --body-font: 'Montserrat', sans-serif;

   --header-height: 100px;

   --wrapper: clamp(290px, 85vw, 1280px);
   --wrapper-width: 1280px;

   --main: #09378c;
   --text: #000;
   --dark-text: #111;
   --light-blue: #0c53d9;
   --blue: #09378c;
   --dark-blue: #052155;

   --green: #09378c;
   --dark-green: #052155;
 }


body {
  font-family: var(--body-font) !important;
}

main > section > article > :last-child {
  margin-bottom: 0 !important;
}
main > section {
  margin-top: 60px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 800;
  color: var(--dark-text);
}

header .siteheader a {
  font-family: var(--body-font);
  text-transform: none;
  font-weight: 800;
}

h3 {
  margin-bottom: 8px;
}

p {
  line-height: 1.9rem;
}

a {
  color: var(--dark-green);
}

.heading-font {
  font-family: var(--heading-font);
}

.heading-font strong {
  font-weight: 800;
}

.green-block {
  background: var(--green);
}

.wp-block-columns, .wp-block-media-text {
  margin: 0;
}

.wp-block-button__link {
  font-size: 1rem;
  font-family: var(--heading-font);
  background: none;
  border: 2px solid var(--text);
  color: var(--dark-text);
  padding: 10px 35px;
}

.wp-block-button__link:hover {
  background: var(--dark-text);
  border: 2px solid var(--dark-green);
  color: var(--background);
  transform: none;
}

.team-name {
  font-family: var(--heading-font);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0;
}

.services .service-block {
  margin: 0 auto;
}

.service-block img {
  max-width: 100px !important;
  display: block;
  margin: auto;
}

.case-study {
  margin: 60px 0 80px 0;
}

.wp-block-social-link {
  margin: 30px 20px !important;
}

/* MAIN HEADER */

:root {
  --header-height: 220px;
}

header {
  background: #000;
  height: var(--header-height);
  color: #FFF;
  display: flex;
  align-content: center;
  z-index: 100;
}

.header-wrapper {
  width: var(--wrapper);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 20px 0;
  background: url('img/ignatius-piazza-hdr.jpg') bottom right no-repeat;
}

header a {
  color: #FFF;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
}


header a:hover {
  color: var(--light-blue);
}

.siteheader {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #FFF;
  line-height: 1em;
}

.sitedesc {
  font-size: .9em;
  line-height: 1.2em;
}

.logo-img {
    max-width: 250px;
}

nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li a,
.submenu li {
  margin: 0 15px;
}

.nav ul li:last-of-type a {
  margin-right: 0;
}

.nav .sub-menu li:last-child a {
  margin-right: 18px;
}

.nav .sub-menu li:last-child {
  margin-bottom: 0;
}

.nav .sub-menu {
  display: none;
  position: absolute;
  z-index: 100;
  padding: 14px;
  padding-top: 0;
  margin: 0;
  background: var(--dark-blue);
}

.nav .sub-menu li {
  margin: 18px 0;
}

.menu-item-has-children>a::after {
  content: "\2022";
  display: inline-block;
  color: var(--text);
  margin-left: 0.5rem;
}

.menu-item-has-children:hover .sub-menu {
  display: block;
}

.hamburger {
  display: none;
}

.bar {
  height: 3px;
  width: 20px;
  margin: 5px 0;
  background: var(--text);
  -webkit-transition: var(--transition);
  transition: var(--transition);
}

.logo-icon {
  display: none;
}

.post_details {
  display: flex;
  justify-content: space-between;
}
/* STICKY TOGGLE */
/* @media screen and (min-width: 951px) {
  .sticky {
    position: fixed;
    width: 100%;
    animation-duration: 1s;
    animation-name: slidein;
    animation-iteration-count: 1;
    box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.5);
    height: 100px;
  }

  .sticky .logo-img {
    max-width: 200px;
  }

  @keyframes slidein {
    from {
      top: -200px;
    }

    to {
      top: 0;
    }
  }

  .sticky.slideout {
    animation-duration: 0.5s;
    animation-name: slideout;
    animation-iteration-count: 1;
  }

  @keyframes slideout {
    from {
      opacity: 1;
    }

    to {
      top: -200px;
    }
  }

} */

/* Sidebar */

.sidebar .widget_block {
  margin-bottom: 40px;
}
.sidebar .wp-block-search__label,
.sidebar .wp-block-archives__label,
.sidebar .label {
  font-family: var(--heading-font);
  font-weight: 800;
  color: var(--dark-text);
  font-size: var(--sm-fs);
}

/* -- Video -- */
.video_display figure {
  width: 48%;
}

.video_display>div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.wp-embed-aspect-16-9 .wp-block-embed__wrapper,
.wp-embed-aspect-4-3 .wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.wp-embed-aspect-4-3 .wp-block-embed__wrapper {
  padding-bottom: 75%;
}

.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe,
.wp-embed-aspect-4-3 .wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/* Header Mobile */
@media screen and (max-width: 951px) {
  :root {
  	--header-height: 3.5rem;
  }

  header a {
    font-size: var(--body-fs);
  }

  .header-wrapper {
    width: var(--wrapper);
    margin: 0 auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    display: grid;
    grid-template-rows: var(--header-height) auto;
    grid-template-columns: auto auto;
    padding: 0;
  }

  .logo-icon {
    display: block;
    max-height: var(--header-height);
    padding: 15px;
  }

  .logo-img {
    display: none;
  }

  .nav {
    background: var(--background);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    grid-row: 2;
    grid-column-start: 1;
    grid-column-end: 3;
    position: relative;
    -webkit-transform: scaleY(0);
    transform: scaleY(0);
    -webkit-transform-origin: top;
    transform-origin: top;
    -webkit-transition: var(--transition);
    transition: var(--transition);
    z-index: 100;
	}

  .nav.active {
    transform: scaleY(1);
  }

  .header-inner-wrapper {
    width: var(--wrapper);
    height: var(--header-height);
    margin: auto;
    display: flex;
    grid-row: 1;
    grid-column-start: 1;
    grid-column-end: 3;
    justify-content: space-between;
    align-items: center;
  }

  .site-title, .hamburger {
    display: flex;
    height: var(--header-height);
    align-items: center;
  }

  .site-title a {
    display: flex;
    align-items: center;
    max-height: var(--header-height);
    max-width: 80%;
  }

	.nav ul {
		display: block;
    padding: 0 14px;
    width: var(--wrapper);
	}

	.nav ul li {
		margin: 18px;
	}

	.nav ul li a {
		margin: 0;
	}

	.nav .sub-menu {
		display: block;
		position: static;
    padding-left: 25px;;
	}

  .sub-menu li, .sub-menu li:last-child a, .sub-menu li:first-child a {
    margin: 0;
  }

  .menu-item-has-children > a::after {
    display: none;
  }

  .hamburger {
    height: var(--header-height);
  }


	.hamburger.active .bar:nth-child(2) {
    -webkit-transform: translateX(10vw);
    transform: translateX(10vw);
    opacity: 0;
	}

	.hamburger.active .bar:nth-child(1) {
		-webkit-transform: translateY(8px) rotate(405deg);
		transform: translateY(8px) rotate(405deg);
	}

	.hamburger.active .bar:nth-child(3) {
		-webkit-transform: translateY(-8px) rotate(-45deg);
		transform: translateY(-8px) rotate(-45deg);
	}
}


/* HEADER */
.logo-img {
  height: calc(var(--header-height) - 40px);
  width: auto;
}

header a {
  font-weight: 300;
}

nav ul {
  padding-bottom: 10px;
}

.bar {
  background: var(--text);
	width: 25px;
	height: 4px;
  border-radius: 2px;
}

/* FOOTER */
footer {
  background-color: transparent;
}

.footer__inner-container {
  padding: 0;
}

.copyright {
  font-size: 0.85rem;
  margin: 10px auto;
  font-family: var(--heading-font);
}

/********** MOBILE **********/
@media screen and (max-width: 951px) {
  :root {
    --header-height: 4.5rem !important;
  }

  .logo-img {
    display: block !important;
    height: calc(var(--header-height) - 30px)
  }
}

@media only screen and (max-width: 769px) {
  .about-cover {
    min-height: 400px;
  }
}

@media screen and (max-width: 600px) {
  .service-block .wp-block-media-text__content {
    text-align: center;
  }

  .case-study h2 {
    margin-top: 35px;
  }
}



@media screen and (max-width: 426px) {
  h2, blockquote p {
    font-size: 1.5rem !important;
  }

  .about-cover {
    min-height: 300px;
  }
}
