/*
 * Theme Name: Imaginal Marketing Group
 * Description: Imaginal Marketing Group's custom theme based on Tailwind
 * Author: IMPP
 * Author URI: https://www.imaginalmarketing.com
 * Version: 1.01
*/

body:not(.home) main button, body:not(.home) main button:visited, input[type=submit]{
	background-color: transparent !important;
	color: #fff !important;
	border: 2px solid #bf322b !important;
    padding: .75em 1.5em !important;
    margin: .7rem 0 !important;
    display: inline-block;
    text-transform: uppercase;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    letter-spacing: .1rem !important;
    text-decoration: none !important;
    border-radius: 3rem !important;
    cursor: pointer;
	text-transform: uppercase !important;
}
body:not(.home) main button, body:not(.home) main button:visited{color: var(--primary) !important}
body:not(.home) main button:hover, input[type=submit]:hover{
	background-color: var(--primary) !important;
	color: #fff !important;
}

#menu-services-homepage{padding-left:0;}
.intro-inner .section__line{
	top:0 !important;
	height: 12% !important;
}

.intro-inner .section__line-after{
	height: 12% !important;
}

main h1{
  font-size: 2.25rem;
  line-height: 1.1;
}
main h2{ margin-bottom: .5rem; line-height: 1.1; font-size: clamp(1.25rem, 3vw, 1.6rem);
    color: var(--primary);
    font-weight: 600;}

main p{
  margin-bottom: 1.5rem;
}

main ul, main ol{
	margin-top: 0;
	padding-top: 0;
	margin-bottom: 1.5rem;
	padding-left: 2rem;
 }

:is(h2, h3, h4, h5, h6):has(+ p) {
  margin-bottom: .5rem;
}
:is(h2, h3, h4, h5, h6):has(+ ul) {
  margin-bottom: .5rem;
}

main p:has(+ul){
	margin-bottom: .5rem;
}

main ul{ list-style: disc; }

main ul li, main ol li{
	line-height: 1..4;
	margin-bottom: .75rem;
}
main ul li:last-child, main ol li:last-child{
	margin-bottom: 0;
}

ul:not(main#content section ul){padding-left: 0;margin-left: 0;}

@media (min-width: 40em){
main h1{
  font-size: 3rem;
}
}

@media (min-width: 64em){
main h1{
  font-size: 3.25rem;
}
}

#mobile-nav {
justify-content:center;
align-items:center;
background-color: var(--color-primary);
color: #fff;
}

#mobile-subnav {
background-color: #000;
}

#mobile-subnav ul {
padding:1rem 0;
}

#mobile-subnav ul > li {
text-align: center;
padding:0.5rem 0;
}

#mobile-subnav ul > li > a {
color: var(--color-primary);
}

#sidenav ul li {
text-align: right;
}

#sidenav ul li a {
    text-transform: uppercase;
	font-size: 1rem;
	text-align: right;
	justify-content: flex-end;
}

#sidenav ul.is_sidenav li a {
align-items:baseline;
}

#sidenav ul.is_sidenav li a:hover {
color: var(--color-primary) !important;
}

/* sidenav blog */
#sidenav .blog-sidebar-item ul li{
	text-align:center !important;
}

#nav-main .button.nav-cta > a{
	  background-color: var(--primary);
    color: #fff;
    display: inline-block;
    text-transform: uppercase;
    font-size: 1.1rem;
    font-weight: normal;
    letter-spacing: 0.1rem;
    cursor: pointer;
    width: 100%;
    border-width: 1px;
    border-style: solid;
    border-color: var(--primary);
    border-image: initial;
    padding: 0.5rem 1rem !important;
    margin: 0.7rem 0px;
    text-decoration: none;
    border-radius: 3rem;
}

#nav-main .button.nav-cta > a:hover {
	background-color: #fff;
  color: var(--primary) !important;
}

#nav-main .font-bold > a {
  font-weight: 700 !important;
}

#blog-posts .entry-content > div > a.button {
display:inline-block;
margin-top: 2rem;
}

h2,h3,h4,h5,h6 {
color: #fff;
text-transform: uppercase;
}

p {letter-spacing: normal;}
.serv_wrapper .serv_subcat_disclaimer {
    margin-top: 50px;
    margin-bottom: 50px;
}

   .reveal-image {
        display: block;
       max-width: 100%; 
       height: auto;
       clip-path: inset(50% 0% 50% 0%); 
       transition: clip-path 1.5s ease-out; 
     }
    
  .reveal-image.is-visible {
        clip-path: inset(0% 0% 0% 0%); 
   }

 .slide_text_inner,
 #intro-title,
 .promo_title,
 #sub-footer-title{
    font-size: 3rem;
    white-space: nowrap;
    overflow: visible;
    opacity: 1;
    padding: 0 2em; /* padding to allow gradient fade outside */
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 15%,
      black 85%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 15%,
      black 85%,
      transparent 100%
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 0% 100%;
    mask-size: 0% 100%;
    animation-fill-mode: forwards;
    transition: padding 0.3s ease;
  }

  .slide_text_inner.is-visible,
  #intro-title.is-visible,
  .promo_title.is-visible,
  #sub-footer-title.is-visible{
    animation: maskwipe 3s steps(60, end) forwards;
  }

  /* Remove mask and padding after animation ends */

  .slide_text_inner.is-visible.final,
  #intro-title.is-visible.final,
  .promo_title.is-visible.final,
  #sub-footer-title.is-visible.final{
    -webkit-mask-image: none;
    mask-image: none;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    opacity: 1;
    padding-left: 0;
    padding-right: 0;
  }

  @keyframes maskwipe {
    from {
      -webkit-mask-size: 0% 100%;
      mask-size: 0% 100%;
    }
    to {
      -webkit-mask-size: 120% 100%;
      mask-size: 120% 100%;
    }
  }


.photo-gallery > .columns {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background-color: #000;}
.photo-gallery > .columns a img {
    aspect-ratio: 1/1;
    object-fit: cover;
    width: 100%;
    transition: all 0.4s ease;
    opacity: 0.75;
  }
.photo-gallery > .columns:hover a img {
      transform: scale(1.1);
      opacity: 1;
    }
	
body.blog article.tease-post{
  margin-bottom: 2.5rem;
}

article.post-type-post > img{
	width: 100% !important;
	height: auto!important;
}

 .gform_fileupload_rules{ font-weight: bold; }
 
.gform_wrapper.gravity-theme .gform_drop_area{
    display: flex;
    justify-content: center;
    align-items: center;
		flex-direction:column;
    width: 100%;
    padding: 2rem;
    text-align: center;
    border: 1px dashed #888;
    border-radius: 4px;
    margin: 0!important;
 }


#sidebar h4{
  text-align: center !important;
}

body.single img.featured-img{
	max-width: 600px;
}


#lastMinute h1 {
	font-size:15px!important;
}

@media screen and (max-width: 39.9375em){
  #sidebar ul, #sidebar ul li{ margin-left: 0; }
}


@media screen and (max-width: 768px){
  #heroimage .slide_text_inner {
  	padding:0!important;
  }
  
  h1{
	line-height: 2rem;
	/* font-size:5rem; */
  line-height: 1;
	}
}


@media screen and (max-width: 1024px){
  #sub-footer-title {
  	padding:0!important;
	white-space:wrap;
	width:100%;
  }
  
  #sub-footer-title h2 {
  	font-size: 4rem !important;
    text-align: center;
    display: block;
    width: 100%;
  }
	

    #promos .swiper-pagination {

        padding-top: 2rem;
    }

}

 @media screen and (max-width: 480px) {
	 #lastMinute {bottom:100px !important;}
	 #im-sms-wrap {height:100px !important;}
}

@media (min-width: 480px) {
	#lastMinute {
	  /* left: unset !important; */
	   /*right: 24px !important; */
	  /* bottom: 130px !important; */
	  left: 24px;
	  bottom: 5px !important;
	}
	
	.close-btn {
        display: block !important;
        position: absolute;
        left: 5px;
        top: 5px;
        color: #fff;
		cursor: pointer;
    }
}



@media (min-width: 1024px) {
    main#content:not(.home) article {
        width: 80%;
    }
	
	    main#content:not(.home) aside {
        width: 20%;
    }
}




/*To replace blog header*/
body.blog header.header #headerimage, body.single-post header.header #headerimage, body.category header.header #headerimage, body.search header.header #headerimage, body.archive header.header #headerimage  {
	display:block !important;
    background-position: left 55% center !important;
	background-image: url(/wp-content/uploads/2025/09/25-37493228126-InteriorHeader-P1-11.webp) !important;
}



 .promo_title h2, #subfooter h2 {
  color: #fff;
}
.promo_text a.button {
  background-color: black;
}


body:not(.home) .promo_text a.button {
  background-color: transparent;
  color: #fff;
}

body:not(.home) .promo_text a.button:hover {
  color: #fff !important;
}

.promo_text a.button:hover {
  background-color: var(--color-primary) !important;
}

.contact-info.location-location h2 {
  display: none;
}

.social_icons-component {
  margin-top: 0.5rem;
}

.contact-info.location-location a:hover {
  color: var(--primary);
}