/*
 * 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
*/

#footer-bottom a {
color:#000;
}
#footer-bottom a:hover {
opacity: 0.7;
}

#mobile-nav {
justify-content:center;
align-items:center;
background-color: #75815e;
color: #fff;
}

#mobile-subnav {
background-color: #fff;

}

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

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

#mobile-subnav ul > li > a {
color: #75815e;
}

main#content #sidenav {
  padding:1.6rem 3rem 3rem 0px;
}


#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: #75815e !important;
}

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

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

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

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

h2,h3,h4,h5,h6 {
/* color: #75815e; */
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 h2 {
  color: #80CEEC;
}


.promo_title {
  transform: translate(2em, 0);
}

#sub-footer-title {
  transform: translate(-2em, 0);
}

.slide_text_inner,
#intro-title,
.promo_title,
#sub-footer-title{
  font-size: 3rem;
  white-space: nowrap;
  overflow: visible;
  opacity: 1;
  
  -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;
}

#intro-title,
.promo_title,
#sub-footer-title {
  padding: 0 2em;  /* padding to allow gradient fade outside */
}
  
.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 {
  -webkit-mask-image: none;
  mask-image: none;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  opacity: 1;
 
  padding-right: 2em;
}

#intro-title.is-visible.final,
.promo_title.is-visible.final,
#sub-footer-title.is-visible.final {
 padding-left: 2em;
}

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

@media (min-width: 1200px) and (max-width:1550px){
  header #top-bar .inner #nav-wrapper nav ul li a{
    font-size: .9rem;
  }
	
}

@media (min-width: 1250px) and (max-width:1350px) {
  header #top-bar .inner #nav-wrapper nav ul li{margin-left: 0.25rem; margin-right: 0.25rem;}
}


.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;
    background-color: #A3BD00;
	background-color: #fff;
    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;
}

#promos .swiper-slide .promo_text h2, #sub-footer-title h2{
	line-height:1.1 !important;
}
@media (min-width: 64em){
	header #heroimage .swiper-slide .slide_text{
		bottom: 8rem !important;
	}
	.home p.reviews-p{
		font-size:1.1rem !important;
	}
}
@media screen and (min-width: 1250px) {
	header #top-bar .inner #nav-wrapper nav{
            display: flex;
          }
	header #top-bar .inner #menuicon{
		display:none;
	}
/* 	header #top-bar .inner #nav-wrapper nav ul li a{
		font-size:.8rem;
	} */
}
@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: 1;
	font-size:5rem;
	}

  .promo_title {
    transform: translate(0em, 0);
  }
  
  #sub-footer-title {
    transform: translate(0em, 0);
  }
}


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

#aveda-logo-footer-desktop {
  margin-top: 5rem !important;
  img {
    max-width: 150px !important;
  }
}

 @media screen and (max-width: 768px) {
	/*  #aveda-logo-footer-desktop {
	 	display: none!important;
	 }
	 
	 #aveda-logo-footer-mobile {
	 	display: flex!important;
	 }
	 
	 #aveda-logo-footer-mobile img{
	 	filter: unset !important;
	 } */
	 
	 
}
h1.page-title, .wp-singular h1#page-title{
	font-size: 2.5rem !important;
}
 @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) {
/* 	h1.page-title{
	font-size: 3rem !important;
} */
    main#content:not(.home) article,
	main#content:not(.blog) article,
	main#content:not(.single) article{
        width: 70%;
    } 
	
	.wp-singular.single main#content article.post.single-post,
	.blog main#content article.post, body.page-template-template-main-specials main#content article{
	width: 100% !important;
	}
	
	    main#content:not(.home) aside {
        width: 25%;
    }
	
	.wp-singular h1#page-title {
        line-height: 1.1 !important;
    }
}
h1.page-title {
  padding-top: 1.5rem;
  text-transform: uppercase;
}





/*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  {
    background-position: center;
	background-image: url() !important;
}*/


/*GRID LAYOUTS*/
.grid-layout{
  display:grid;
  gap: 1.5rem !important;
}
/*GRID LAYOUTS*/
.grid-layout {
  display: grid;
  grid-template-columns: 1fr; /* mobile: single column */
  gap: 0;
  margin-bottom: 3rem;

  /* Shared column styles */
  .grid-left-col,
  .grid-right-col {
    margin-bottom: .75rem;

    img {
      width: 100%;
      height: auto;
      display: block;
    }

    p:last-child,
    ul:last-child,
    ol:last-child {
      margin-bottom: 0;
    }
  }

  /* On mobile, .reverse swaps stacking order so the right column appears on top */
  &.reverse {
    @media (max-width: 39.9375em) {
      .grid-left-col  { 
        grid-row: 2; 

      }
      .grid-right-col { 
        grid-row: 1; 
        
      }
    }
  }
  

 

  /* Column ratios kick in at medium+ */
  /* Using fr units (and minmax(0, …)) so `gap` doesn't push tracks past 100% */
  @media (min-width: 640px) {
    gap: 1.5rem;

    &.grid-50-50 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    &.grid-60-40 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
    &.grid-40-60 { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
    &.grid-33-67 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
    &.grid-67-33 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
    &.grid-33-67.product-grid{grid-template-columns: minmax(0, .75fr) minmax(0, 3fr);}
  }

  /* Per-variant spacing tweaks */
  &.grid-60-40 {
    margin-bottom: 2rem;
  }

  /* Full-width variant: only the left column shows, right is hidden */
  &.grid-full-width {
    margin-bottom: 2rem;

    .grid-left-col  { width: 100%; }
    .grid-right-col { display: none; }
  }
}
.grid-layout.margin-even{
  margin-bottom:1rem;
 
}
.grid-layout.border-bottom{
  border-bottom:1px solid var(--secondary);
  padding-bottom:3rem;
  margin-bottom:3.5rem;
}
.grid-3-boxes div{
  border:1px solid var(--secondary);
  margin-bottom:1.5rem;
  padding:1.5rem;
}
.grid-3-boxes div p:last-child, .box-border p, .box-border ul, .box-border ul:last-child li:last-child{margin-bottom:0;}

.grid-3-boxes div h3, .grid-3-boxes div p{text-align:center}

.footer-booking{
	background-color:var(--color-bg-footer);
	padding:1rem;
	text-align:center;
}
.footer-booking a.button{
	border: 1px solid #fff;
	width: 180px;
    padding: .5em 1.5em;
    color: #fff;
    font-size: 1.1rem;
    font-weight: normal;
    letter-spacing: .1rem
1.6px
;
    text-decoration: none;
    border-radius: 3rem;
}
.footer-booking a.button:hover{
	background-color:#75815e;
}
#mobile-menu .menu-primary-container ul li{
	padding:0;
}
#mobile-menu .menu-primary-container ul li a{font-size: 1.25rem;}
#mobile-menu .menu-primary-container ul.sub-menu li a{font-weight:600;}
#nav-main .button.nav-cta > a, #mobile-menu .button.nav-cta > a{font-size: 1.25rem;}
@media (min-width:40em){
	.footer-booking{
		display:none;
	}
  .grid-3-boxes{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:20px;
  }
}

  
/* .service-section:last-child .serv_wrapper:last-child .im-service-row.has-description + .im-service-row.serv-desc-row {
    margin-bottom: 0 !important;
} */


hr {
    
    border-color: var(--secondary );
    height:20px;
    /* border-radius: 20px; */
}

/* Center SEO section text vertically against the image (desktop) */
@media (min-width: 1024px) {
  #seo-section .seo-flex {
    align-items: center;
  }
}

/* Home promo slider (mobile): breathing room for the button and pagination dots */
@media (max-width: 767px) {
  .promo-box .promosSwiper {
    padding-bottom: 3.5rem !important;
  }
  .promo-box .promosSwiper .swiper-promos-pagination {
    bottom: 1rem !important;
  }
  .promo-box .promosSwiper .promo_text a.button {
    margin-bottom: 1.5rem !important;
  }
}

/* Subfooter 2: background image band above the footer (images set via ACF) */
#subfooter2 {
  width: 100%;
  height: 350px;
  background-image: var(--subfooter2-mobile);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
@media (min-width: 768px) {
  #subfooter2 {
    height: 350px;
    background-image: var(--subfooter2-desktop);
  }
}

/* Footer (mobile): left-align the Aveda logo with the text below it */
@media (max-width: 767px) {
  #foot1 #aveda-logo-footer-desktop {
    justify-content: flex-start !important;
  }
}

/* Footer buttons (mobile): smaller text/padding so labels don't wrap */
@media (max-width: 767px) {
  #foot4 .menu a {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    padding: 0.5rem 1rem !important;
    letter-spacing: 1px !important;
  }
}
