/*
 Theme Name:   MJ Nardone
 Template:     generatepress
 Author: Community Web Development
 Author URI: http://www.comminternet.com/
 Version: 1.0
*/

/* iOs 100vh fix */

body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

html {
  height: -webkit-fill-available;
}

/* clearfix */
.clear {
	clear: both;
}

.cf:before,
.cf:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.cf:after {
    clear: both;
}

/* prevent tel clicks on desktops */
a[href^="tel"] { pointer-events: none; }

/* allow tel clicks on phones */
@media (max-width: 767px) {
	a[href^="tel"] { pointer-events: auto; }
}

/* remove dropdown arrows */
/*
.menu-item-has-children .dropdown-menu-toggle {
	font-size: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	white-space: nowrap;
	width: auto;
}
*/

/* GLOBALS */

p:empty {
	display: none;
}

.alignleft, .alignright, .aligncenter {
	margin-top: 1em;
	margin-bottom: 1em;
}

.wp-caption {
    border: 1px solid #ccc;
    padding-top: 5px;
}

.wp-caption .wp-caption-text {
	text-align: center;
	padding: 1em;
	margin: 0;
}

.copyright-bar ul.menu {
	margin-left: 0;
}

.copyright-bar ul.menu li {
	display: inline;
	margin: 0 10px;
}

.copyright-bar p.branding {
	margin-bottom: 0;
}

button:not(.menu-toggle), html input[type="button"], input[type="reset"], input[type="submit"], .button, .button:visited, .wp-block-button .wp-block-button__link {
	border-radius: 3px;
}
/* HEADER */

/*
.main-navigation .main-nav ul li[class*="current-menu-"]:hover > a,
.main-navigation .main-nav ul li[class*="current-menu-"]:focus > a {
	color: #fff !important;
}
*/

.main-navigation .main-nav ul:not(.sub-menu) > li > a {
	border-radius: 3px;
}

.main-navigation .main-nav ul.sub-menu {
	margin-top: -2px;
	border-radius: 3px;
	border-top-left-radius: 0px;
}

.main-navigation .main-nav ul.sub-menu li:first-child a {
	border-top-right-radius: 3px;
}

.main-navigation .main-nav ul.sub-menu li:last-child a {
	border-bottom-left-radius: 3px;
	border-bottom-right-radius: 3px;
}

.main-navigation .main-nav ul.sub-menu li a {
	font-family: "Didact Gothic", sans-serif;
	font-size: 18px;
	text-transform: none;
}

#sticky-navigation {
	background: #fff;
}

#sticky-navigation.main-navigation .main-nav ul:not(.sub-menu) > li > a {
	border-radius: 0;
}

#sticky-navigation.main-navigation .main-nav ul.sub-menu {
	margin-top: 0;
}

.site-logo {
	float: left;
}

body #masthead .header-widget .widget {
	padding: 10px 0 0 0;
}

body #masthead .header-widget .widget span {
	margin-left: 10px;
}

body #masthead .header-widget .widget span.map {
	color: #9e2432;
}

body #masthead .header-widget .widget a {
	background: #9e2432;
	padding: 5px 15px;
	color: #fff;
	display: inline-block;
	margin-left: 20px;
	font-weight: bold;
	text-shadow: -1px -1px rgba(0,0,0,0.5);
	border-radius: 3px;
}

/* SIDEBAR */

.sidebar .widget {
	border-radius: 3px;
	text-align: center;
}

.sidebar .widget-title {
	text-shadow: 1px 1px rgba(255,255,255,1);
	border-bottom: 5px solid #9E2432;
	display: inline-block;
}

.sidebar .widget.gform_widget .widget-title,
.home .sidebar .widget-title {
	margin: 0;
}

.sidebar .widget.widget_nav_menu .widget-title {
	border: 0px;
}

.sidebar .widget.widget_nav_menu ul li {
	padding: 0;
}

.sidebar .widget.widget_nav_menu ul li a {
	background: #9E2432;
	display: block;
	padding: 10px;
	font-weight: bold;
	color: #fff;
	border-top: 1px solid rgba(255,255,255,0.35);
	border-bottom: 1px solid rgba(0,0,0,0.2);
	line-height: 1.35;
}

.sidebar .widget.widget_nav_menu ul li a:hover {
	background: #495965;
}

.sidebar .widget.widget_nav_menu ul li:first-child a {
	border-top-left-radius: 3px;
	border-top-right-radius: 3px;
	border-top: 0px;
}

.sidebar .widget.widget_nav_menu ul li:last-child a {
	border-bottom-left-radius: 3px;
	border-bottom-right-radius: 3px;
	border-bottom: 0px;
}

/* Footer */

body .site-footer .footer-widgets-container .inside-footer-widgets {
	margin: 0;
}

.site-footer .footer-widgets-container .inner-padding {
    padding: 0;
}

.inside-footer-widgets .footer-widget-1,
.inside-footer-widgets .footer-widget-2 {
	width: calc(37.5% - 40px);
	margin-right: 40px;
	padding-top: 30px;
}

.inside-footer-widgets .footer-widget-3 {
	width: 25%;
	padding-top: 30px;
}

.inside-footer-widgets .footer-widget-1 {
	background: rgba(255,255,255,0.15);
	padding: 30px;
	margin-right: 40px;
	border-radius: 3px;
	border: 2px solid #fff;
}

body .site-footer #footer-widgets {
	/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#2e3338+0,495965+50,2e3338+100 */
	background: rgb(46,51,56); /* Old browsers */
	background: -moz-linear-gradient(left,  rgba(46,51,56,1) 0%, rgba(73,89,101,1) 50%, rgba(46,51,56,1) 100%); /* FF3.6-15 */
	background: -webkit-linear-gradient(left,  rgba(46,51,56,1) 0%,rgba(73,89,101,1) 50%,rgba(46,51,56,1) 100%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to right,  rgba(46,51,56,1) 0%,rgba(73,89,101,1) 50%,rgba(46,51,56,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2e3338', endColorstr='#2e3338',GradientType=1 ); /* IE6-9 */
}

body .site-footer .footer-widgets-container .inside-footer-widgets h2 {
	font-size: 27px;
	text-transform: none;
}

body .site-footer .footer-widgets-container .inside-footer-widgets a {
	text-decoration: underline;
}

body .site-footer .footer-widgets-container .inside-footer-widgets a:hover {
	text-decoration: none;
}

body .site-footer .footer-widgets-container .inside-footer-widgets h2,
body .site-footer .footer-widgets-container .inside-footer-widgets h3,
body .site-footer .footer-widgets-container .inside-footer-widgets h4 {
	color: #fff;
}

body .site-footer .footer-widgets-container .inside-footer-widgets h2 {
	text-shadow: -1px -1px rgba(0,0,0,0.75);
}

body .site-footer .footer-widgets-container .inside-footer-widgets h4 {
	margin: 10px 0;
}

body .site-footer .footer-widgets-container .inside-footer-widgets .social-media a {
	font-size: 24px;
	margin-right: 10px;
	display: inline-block;
	text-align: center;
	height: 40px;
	width: 40px;
	background: #fff;
	color: #495965;
	border-radius: 24px;
	border: 2px solid #fff;
}

body .site-footer .footer-widgets-container .inside-footer-widgets .social-media a:hover {
	background: rgba(255,255,255,0.25);
	color: #fff;
}

body .site-footer .footer-widgets-container .inside-footer-widgets p.flex-parent {
	margin-bottom: 18px;
	display: flex;
}

body .site-footer .footer-widgets-container .inside-footer-widgets p.flex-parent i {
	text-align: center;
	width: 30px;
	padding-top: 6px;
}

.site-footer {
	border-top: 16px solid #9E2432;
}

.site-footer #footer-widgets {
	border-top: 10px solid #fff;
	border-bottom: 10px solid #fff;
}

/* Gravity Forms */

body .gform_wrapper {
    margin: 0px;
}

body .gform_wrapper ul.gform_fields li.gfield {
    padding-right: 0;
}

body .gform_wrapper .gform_footer input.button,
body .gform_wrapper .gform_footer input[type="submit"],
body .gform_wrapper .gform_page_footer input.button,
body .gform_wrapper .gform_page_footer input[type="submit"] {
    width: 100%;
    margin: 0;
    font-size: 21px;
}

body .gform_wrapper .gform_footer {
    padding: 0;
}

body .gform_wrapper input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),
body .gform_wrapper .gform_footer input.button,
body .gform_wrapper .gform_footer input[type="submit"],
body .gform_wrapper .gform_page_footer input.button,
body .gform_wrapper .gform_page_footer input[type="submit"],
body .gform_wrapper textarea {
    border-radius: 3px;
}

/* HERO */

.page-hero {
	position: relative;
	background-attachment: fixed;
	background-size: 100% auto;
}

.page-hero svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 200px;
  left: 0;
  right: 0;
  fill: #fff;
}

.page-hero .page-title {
	text-shadow: 0 2px 5px rgba(0,0,0,0.75);
	position: relative;
}

.fauxverlay {
	content: " ";
	background: rgba(0,0,0,0.25);
	height: 100%;
	width: 100%;
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
}

/* Homepage Slider */

.fader,
.page-hero.home-hero,
.home-hero .overlay {
	height: 100vh;
	overflow: hidden;
	width: 100%;
	text-align: center;
}

.page-hero.home-hero {
	padding-top: 100px;
}

.home-hero .overlay,
.home-hero .inside-page-hero {
	height: calc(100vh - 100px);
}

.fader {
  position: relative;
  z-index: -1;
}

.fader img {
	position:absolute;
	top: 0;
	left: 50%;
    -webkit-transform: translate(-50%, 0%);
    -moz-transform: translate(-50%, 0%);
    -ms-transform: translate(-50%, 0%);
    -o-transform: translate(-50%, 0%);
    transform: translate(-50%, 0%);
	width: 2560px;
	height: auto;
	background-size: cover;
	background-position: top;
	border: none;
	max-width: 2560px;
}

.home-hero .overlay {
	color: #fff;
	position: absolute;
	z-index: 9;
	/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#ffffff+0,ffffff+100&1+0,0+25,0+100 */
	background: -moz-linear-gradient(top,  rgba(255,255,255,1) 0%, rgba(255,255,255,0) 15%, rgba(255,255,255,0) 100%); /* FF3.6-15 */
	background: -webkit-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 15%,rgba(255,255,255,0) 100%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to bottom,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 15%,rgba(255,255,255,0) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#00ffffff',GradientType=0 ); /* IE6-9 */
}

.home-hero .overlay .fader-buttons {
	position: absolute;
	z-index: 99;
	top: 40%;
	width: 100%;
}

.home-hero .overlay .fader-buttons button {
	background: none;
	float: left;
	font-size: 36px;
	color: rgba(255,255,255,0.85);
}


.home-hero .overlay .fader-buttons button:hover {
	color: #fff);
}

.home-hero .overlay .fader-buttons #fader-next {
	float: right;
}

.home-hero .overlay .hero-message {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 240px;
	z-index: 99;
}

.home-hero svg {
	/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#000000+0,000000+50&0+0,0.5+50 */
	background: -moz-linear-gradient(top,  rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 50%); /* FF3.6-15 */
	background: -webkit-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.5) 50%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to bottom,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.5) 50%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#80000000',GradientType=0 ); /* IE6-9 */
}

.home-hero .overlay .hero-message h1,
.home-hero .overlay .hero-message h2 {
	color: #fff;
	padding: 0;
}

.home-hero .overlay .hero-message h1,
.home-hero .overlay .hero-message .button {
	display: inline-block;
	margin: 0 20px;
}

.home-hero .overlay .hero-message .button {
	position: relative;
	top: -12px;
}

.home-hero .overlay .hero-message .button i {
	margin-left: 10px;
}

.home .sidebar {
	text-align: center;
}

/* PORTFOLIO */

#portfolio-cta {
	width: 100%;
	position: fixed;
	bottom: 0;
	padding: 10px;
	text-align: center;
	margin: 0 auto;
	box-sizing: border-box;
	display: flex;
	background: #fff;
	z-index: 9;
	box-shadow: 0 0 5px rgba(0,0,0,0.5);
	justify-content: center;
	align-items: center;
}

#portfolio-cta h2 {
	color: #231F20;
	margin: 0 15px 0 0;
}

#portfolio-cta h2 span {
	color: #9E2432;
}

#portfolio-cta .button {
	padding: 5px 15px;
}

.page-id-14 .site-info {
    padding-bottom: 110px;
}

/* Blog */
body.blog .masonry-container article {
	padding: 40px;
}

body.blog .masonry-container article .inside-article .post-image,
body.blog .masonry-container article .inside-article .entry-summary {
	margin-top: 1em;
}

h1.post-title-cwd {
	font-size: 48px;
}

h1.post-title-cwd,
.post-date-cwd {
	position: relative;
	z-index: 1;
	margin: 0;
	line-height: 1.15;
}

/* 21" iMac */
@media (max-width: 1920px) {

	.page-hero {
		padding-top: 180px;
		padding-bottom: 220px;
		background-size: auto 900px;
	}

	/* HOME SLIDER */
	
	.fader img {
		height: 100%;
		width: auto;
	}

	.home-hero .overlay .hero-message {
		height: 160px;
	}

}

/* larger laptop */
@media (max-width: 1600px) {
	/* HOME SLIDER */

	.home-hero .overlay .hero-message {
		height: 140px;
	}
}

/* 15" MacBook */
@media (max-width: 1440px) {
	
	/* HOME SLIDER */
	.page-hero.home-hero {
		padding-top: 75px;
	}

	.home-hero .overlay,
	.home-hero .inside-page-hero {
		height: calc(100vh - 75px);
	}

	.home-hero .overlay .hero-message h1 {
		font-size: 48px;
	}
	
	.home-hero .overlay .hero-message .button {
		top: -8px;
	}

	.page-hero {
		padding-top: 140px;
		padding-bottom: 140px;
		background-size: auto 720px;
	}
	
	.page-hero svg {
	  height: 120px;
	}
	
}

/* smaller desktops */
@media (max-width: 1279px) {
	
	.footer-widgets {
		padding: 60px 20px;
	}

	.inside-footer-widgets .footer-widget-1 {
		width: calc(100% - 40px);
		margin: 0 20px 20px 20px;
	}
	
	.inside-footer-widgets .footer-widget-2,
	.inside-footer-widgets .footer-widget-3 {
		width: 50%;
		margin: 0;
		padding: 40px 20px 0 20px;
	}
	
	body .inside-footer-widgets > div:nth-child(2n+1) {
		clear: none;
	}
	
	body.blog #content.site-content {
		padding-right: 0;
		padding-left: 0;
	}
}

/* Generatepress Preset Breakpoints iPad portrait*/
@media (max-width: 1024px) {

	.page-hero {
		background-size: auto 580px;
	}
	
	.fader,
	.page-hero.home-hero,
	.home-hero .overlay {
		height: 625px;
	}

	.home-hero .overlay,
	.home-hero .inside-page-hero {
		height: 550px;
	}

	body.blog .masonry-container article {
		padding: 20px;
	}

	h1.post-title-cwd {
		font-size: 36px;
	}

	.post-date-cwd {
		font-size: 16px;
	}
	
}

/* UNCANNY VALLEY - when float breaks */

@media (min-width: 769px) and (max-width: 1000px) {

	.site-logo {
		width: 240px;
		margin: 0;
	}

	body .inside-header {
		display: block;
	}
	
	.home-hero .overlay .hero-message h1 {
		font-size: 36px;
	}
	
	.home-hero .overlay .hero-message h1, .home-hero .overlay .hero-message .button {
		display: inline-block;
		margin: 0 10px;
	}
	
	.home-hero .overlay .hero-message .button {
		top: -5px;
	}
	
}

/* Custom iPad breakpoint */
@media (max-width: 768px) {

	body .navigation-branding img, 
	body .site-logo.mobile-header-logo img {
		height: 80px;
	}

	.main-navigation .main-nav ul li .dropdown-menu-toggle {
		padding: 0 5% 0 0;
		right: 0;
		text-align: right;
		width: 100%;
		position: absolute;
	}
	
	#mobile-header .menu-toggle {
		font-size: 30px;
	}
		
	body .slideout-navigation.main-navigation .main-nav ul ul li a {
		font-size: 18px;
		text-transform: none;
	}
	
	.slideout-navigation.main-navigation .main-nav ul ul li:first-child a {
		padding-top: 20px;
	}
	
	.slideout-navigation.main-navigation .main-nav ul ul li:last-child a {
		padding-bottom: 20px;
	}
	
	.slideout-widget a.button {
		text-align: center;
		text-shadow: -1px -1px rgba(0,0,0,0.5);
		font-family: "Didact Gothic", sans-serif;
		font-size: 21px;
		padding: 10px;
	}
	
	.slideout-widget a.button i {
		margin-right: 10px;
	}
	
	body .main-navigation .main-nav ul li.menu-item-has-children>a {
		padding-left: 0;
	}
	
	body .main-navigation .main-nav ul li .dropdown-menu-toggle {
		display: none;
	}
	
	#mobile-header {
		background: #fff;
	}
	
	#right-sidebar {
		max-width: 480px;
		margin-right: auto;
		margin-left: auto;
	}
	
	.inside-footer-widgets .footer-widget-2, .inside-footer-widgets .footer-widget-3 {
		float: left;
	}
	
	/* HOME */
	
	.page-hero.home-hero {
		padding-top: 0;
	}
	
	.fader,
	.page-hero.home-hero,
	.home-hero .overlay,
	.home-hero .inside-page-hero {
		height: 480px;
		overflow: unset;
	}
	
	.fader {
		overflow: hidden;
	}
	
	.page-hero.home-hero {
		height: 560px;
	}
	
	.home-hero .overlay .hero-message {
		height: 160px;
		bottom: -175px;
	}
	
	.home-hero .overlay .hero-message h1 {
		text-shadow: none;
		color: #000;
		margin: 0 0 10px 0;
		font-size: 42px;
		display: block;
		padding: 0 20px;
	}
	
	.home-hero .overlay .hero-message a.button {
		top: 0;
		margin: 0 auto;
	}
	
}

/* Generatepress Preset Breakpoints under tablet */
@media (max-width: 719px) {

	body {
		font-size: 16px;
	}
	
	h1, h2, h3 {
		text-align: center;
	}
	
	button:not(.menu-toggle), html input[type="button"], input[type="reset"], input[type="submit"], .button, .button:visited, .wp-block-button .wp-block-button__link {
		font-size: 21px;
	}

	.inside-footer-widgets .footer-widget-1,
	.inside-footer-widgets .footer-widget-2,
	.inside-footer-widgets .footer-widget-3 {
		float: none;
		clear: both;
		margin: 0 auto !important;
		width: 100%;
		text-align: center;
	}
	
	.inside-footer-widgets .footer-widget-1 {
    	padding: 20px;
    	margin-bottom: 40px;
	}
	
	.inside-footer-widgets .footer-widget-2,
	.inside-footer-widgets .footer-widget-3 {
		padding: 40px 0 0 0;
	}
	
	body .site-footer .footer-widgets-container .inside-footer-widgets p.flex-parent {
		display: block;
		margin-bottom: 8px;
	}
	
	p.branding a {
		display: block;
	}
	
	.page-hero {
		padding-top: 80px;
		padding-bottom: 80px;
		background-size: auto 420px;
	}

	.page-hero svg {
    	height: 80px;
	}

	.page-hero .page-title {
		line-height: 1.15;
	}
	
	/* home */
	
	.home-hero .overlay .fader-buttons button {
		font-size: 24px;
		color: rgba(255,255,255,0.65);
		padding: 10px;
	}

	.fader,
	.page-hero.home-hero,
	.home-hero .overlay,
	.home-hero .inside-page-hero {
		height: 320px;
	}

	.page-hero.home-hero {
		height: 400px;
	}
	
	.home-hero .overlay .hero-message {
		bottom: -180px;
	}
	
	.home-hero .overlay .hero-message h1 {
		font-size: 34px;
		line-height: 1.15;
	}
	
	.home-hero .overlay .hero-message a.button {
		padding: 5px 20px;
	}
	
	#portfolio-cta .button,
	#portfolio-cta h2 {
		font-size: 21px;
	}
	
	body.blog .masonry-container article .inside-article .entry-title {
		text-align: left;
	}
	
	h1.post-title-cwd {
		font-size: 30px;
	}
	
	.post-date-cwd {
		font-size: 14px;
	}
	
}

/* small phone slike iPhone SE */
@media (max-width: 359px) {

	body .navigation-branding img, body .site-logo.mobile-header-logo img {
		height: 60px;
	}

	#mobile-header .menu-toggle {
		font-size: 24px;
	}
	
	.page-hero .page-title {
		line-height: 1.15;
		font-size: 32px;
	}
	
	.page-hero {
		padding-top: 60px;
		padding-bottom: 60px;
		background-size: auto 320px;
	}

	.page-hero svg {
    	height: 60px;
	}
	
	/* home */
	
	.fader,
	.page-hero.home-hero,
	.home-hero .overlay,
	.home-hero .inside-page-hero {
		height: 240px;
	}
	
	.page-hero.home-hero {
		height: 300px;
	}
	
	.home-hero .overlay .hero-message h1 {
		font-size: 30px;
	}
	
	#portfolio-cta .button,
	#portfolio-cta h2 {
		font-size: 18px;
	}
	
}