/* Before adding any unnecessary CSS rules, please check out the Snap documentation at https://bit.ly/3PqSii8. */
/* Override Styles */
/*
.service-style-1 h2 {margin: 10px 0;}
.ry-menu .ry-nav li .dropdown-toggle {padding: 30px 0;}
ul#quick-links li a {display: block;width: 100%;}
#in-services-3 ul li a {margin-left: 0px;margin-top:30px}
*/
[x-cloak] { display: none !important; }
.promotions img { min-width: 22rem; max-width:22rem;}
#in-services-style-2.squares .ry-each:before, #in-services-style-2.squares .ry-each img {border-radius: 0;}
.mobile-menu-icon a{display: flex;height: 100%;width: 100%;justify-content: center;align-items: center;}
body.fancybox-active .ry-sticky-menu.fixed {z-index: 9999;}
.testimonials-swiper p,
.testimonials-swiper-2 p{
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 4
}



.service-hover {
    position: absolute;
    z-index: 9;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: white;
}

/* Show service-hover when parent with data-target is hovered */
[data-target]:hover .service-hover {
    opacity: 1;
}

/* Apply the overlay effect when parent is hovered */
[data-target]:hover .service-hover::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: -1; /* Make sure it's behind the text */
}
.mm-navbar {
	color: #ffffff;
}
/* Match interior body copy to homepage size on tablet/desktop */
@media (min-width: 768px) {
  #contents .leading-6.text-gray-600,
  #contents .leading-6.text-gray-600 p,
  #contents .leading-6.text-gray-600 li {
    font-size: 1.25rem;    /* 20px */
    line-height: 1.75rem;  /* 28px */
  }
}

/* HP Edits */

	/*fonts*/

	/*btns*/

/*Modal*/
/* Header */
	/**/
.snap-mobile-menu {
    background: white;
}

mm-burger {
    color: #374151;
}
.ry-menu .ry-nav li.primary .caret {
    border-color: #374151;
}

.ry-menu .ry-nav li.primary:hover .caret {
    border-color: var(--color-secondary-background);
}
.with-gradient:before {
    background-image: linear-gradient(to bottom, white, transparent, transparent);
}
.ry-menu .ry-nav li.dropdown .dropdown-menu li {
    background: var(--color-primary-background);
    color: var(--color-primary-text);
}

span.caret {
    border-color: #616161;
}

body[data-page-name="index"] #navigation {
	position: absolute;
	z-index: 3;
	padding-bottom: 20px;
}

.cta-btn:nth-child(1) {
    background-color: var(--color-primary-background);
}

.cta-btn:nth-child(1):hover {
    background-color: white;
}

.cta-btn {
    border-radius: 99px
}

#bottom-cta .cta-btn {
    background-color: transparent;
    color: var(--color-secondary-background);
    border: 1px solid var(--color-secondary-background);
	height: 50px;
}

#bottom-cta .cta-btn:hover {
    background-color: var(--color-secondary-background);
    color: white;
    opacity: 0.5;
}

/* Button */
	/**/

/* Hero */
	/**/
#hp-slider, #hp-slider .swiper-wrapper, .homepage-swiper .swiper-slide img {
    height: 100vh !important;
    object-fit: cover;
	object-position:top
}

#hp-slider .swiper-pagination-bullet {
    background-color: white;
}

.with-gradient:before {
    background-image: none !important;
}

.homepage-swiper h1 {
	text-shadow: 3px 3px 3px rgb(0 0 0 / 40%);
	letter-spacing: 4px;
	font-size: clamp(1.625rem, 0.95rem + 3.375vw, 5rem);
	line-height: 120%;
}

.slider-info-center-bottom {
	max-width: 100% !important;
}

#hp-slider .slider-info {
    bottom:20px
}

#hp-slider .slider-info h1{
    font-size: 5rem !important;
    font-weight:600;
    line-height:1.2 !important
}

#hp-slider .swiper-button-prev,
#hp-slider .swiper-button-next {
    display:none
}

#hp-slider a.ry-btn {
  display: flex !important;
}

@media(min-width:991px) {
	.homepage-swiper .swiper-slide .with-gradient::after {
		content: "";
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 35%; 
		background: linear-gradient(
			to top,
			rgba(0, 0, 0, 0.65) 0%,
			rgba(0, 0, 0, 0.2) 60%,
			rgba(0, 0, 0, 0) 100%   
		);
	}

	.homepage-swiper .swiper-slide {
		position: relative;
	}

	.homepage-swiper .swiper-slide img {
		display: block;
		width: 100%;
		height: auto;
	}
 
}

@media(max-width:992px) {
    #hp-slider .slider-info h1{
        font-size: 2rem !important;
    }
    #hp-slider .slider-info h1 span {
        margin-top:5px
    }
	.homepage-swiper .swiper-slide .with-gradient::after {
		height: 100%;
		content: "";
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		background: linear-gradient(
			to top,
			rgba(0, 0, 0, 0.65) 0%,
			rgba(0, 0, 0, 0.2) 60%,
			rgba(0, 0, 0, 0) 100%   
		);
	}
	#hp-slider .slider-info {
    	padding-inline: 10vw;
		display: none;
	}
}

/* CTA */
	/**/

/* Welcome */
	/**/
#welcome-wrap .text-wrapper h2 {
    text-align: left !important;
}

#welcome-wrap .ry-text p {
    text-align: left !important;
}

#welcome-wrap .ry-btn {
    margin-left: 0 !important;
    margin-right: auto !important;
}

.module-welcome.style-5 .ry-each.image-wrapper{
    border: none;
}

.module-welcome.style-5 .ry-each.image-wrapper .photo img {
    object-fit: contain;
}

.module-welcome.style-5 .ry-flex{
    align-items: center;
} 

.module-welcome.style-5 .ry-each.image-wrapper .photo {
    padding-top: 40%;
}

#welcome-wrap :before {
    background-color: white;
}

.module-welcome .photo img.img-responsive {
    filter: brightness(100%);
}

/* Services */
	/**/
.module-services.style-11:before {
	background: transparent;
}

.ry-services.style2 .ry-btn-primary {
    color: var(--color-secondary-background);
    background-color: transparent;
    border: 1px solid var(--color-secondary-background);
}

.ry-services.style2 .ry-btn-primary:hover {
    color: white;
    background-color: var(--color-secondary-background);
    border: 1px solid var(--color-secondary-background);
}

.module-services.style-11 div > a.ry-btn {
	display: inline-block !important;
	margin-left: 0 !important;
	margin-right: auto !important;
}

.module-services.style-11 div:has(> a.ry-btn) {
	text-align: left !important;
}

#services-7 .each-block {
    border-radius: 50%;
}

.ry-services.style2 .ry-each .photo:before {
	height: 100% !important;
	background: transparent !important;
	border-radius: 50% !important;
	border: 6px solid var(--color-secondary-background) !important;
}

.ry-services.style2 .ry-each .photo:after {
	background-color: var(--color-secondary-background) !important;
}

.ry-services.style2 .ry-each .photo img {
	position: absolute !important;
	top: 10% !important;
	left: 50% !important;
	transform: translateX(-50%) !important;
	width: 65% !important;
	height: auto !important;
	object-fit: contain !important;
}

.ry-services.style2 .ry-each .title div {
	font-size: 15px !important;
	line-height: 1.2 !important;
	color: var(--color-primary-background) !important;
	padding-bottom: 0rem;
}

.ry-services.style2 .ry-each .each-block:hover .title div {
	color: white !important;
}

@media (max-width: 1080px) {
    .ry-services.style2 .each-block .photo:before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 150px;
        z-index: 2;
        background: linear-gradient(to bottom, #0000, #173753);
    }
}

.ry-services.style2 .ry-each .title div {
    color: white !important;
}

@media (width < 1080px) {
    #section-hp-services:before, .module-19.style2:before, .ry-services.style2::before {
        opacity: 1;
    }
}

.photo img.img-responsive {
  filter: brightness(75%); 
}

.ry-services.style2 .ry-each .photo img {
  top: 0% !important;
  width: 100% !important;
}

.ry-services.style2 .ry-each .photo img.img-responsive {
    height: 100% !important;
    object-fit: cover !important;
}

/* Meet the Team */
	/**/
#section-hp-team #loadMoreTeam {
    border: 1px solid #ffffff !important;
    color: #ffffff !important;
}

#section-hp-team::before {
    background-image: url('https://s3.amazonaws.com/static.organiclead.com/Site-93e4bc94-3e30-41db-b479-99f52d736df9/images/PerfectEC_Team_Background_Image.jpg');
	background-repeat: no-repeat;
  	background-position: center;
  	background-size: cover;
	box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.5);
    border-top: 14px solid var(--color-primary-background);
    border-bottom: 14px solid var(--color-primary-background);
}

/* Insurance */
	/**/
div#hp-insurance-1 {
    background-color: white;
}

#hsa-card-link {
    width: fit-content;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    cursor: pointer;
    text-decoration: none;
	padding: 2rem 4rem;
}

#hsa-card-link:hover {
    transform: scale(1.05); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

#hsa-card-link:active {
    transform: scale(0.98);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#hsa-card-link img {
    display: block;
    border-radius: inherit;
}

/* Brand */
	/**/
#hp-brands-6::before {
    background-color: white;
}

/* Request Appointment */
	/**/
.ry-section:nth-child(2n+1) {
    background-image: url('https://s3.amazonaws.com/static.organiclead.com/Site-93e4bc94-3e30-41db-b479-99f52d736df9/images/PerfectEC_Image_Background.jpg');
	background-repeat: no-repeat;
  	background-position: center;
  	background-size: cover;
}

.form-group {
  display: flex !important;
}

/* Testimonials */
	/**/
.testimonials-swiper svg{
    color: rgb(253 224 71 / var(--tw-text-opacity, 1));
}

.ry-section:nth-child(2n) {
    background-image: url('https://s3.amazonaws.com/static.organiclead.com/Site-93e4bc94-3e30-41db-b479-99f52d736df9/images/PerfectEC_Image_Background.jpg');
	background-repeat: no-repeat;
  	background-position: center;
  	background-size: cover;

}

.module-testimonials .mt-3.sm\:mt-6.text-base.md\:text-xl p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
}

div#testimonial-container {
    display: none;
}

.reviews-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr; /* 1 column on mobile */
}

.load-more-btn {
    background-color: var(--color-primary-background) !important;
    border: 2px solid var(--color-primary-background) !important;
    border-radius: 99px !important; 
}

.load-more-btn:hover {
    background-color: var(--color-secondary-background) !important;
    border: 2px solid var(--color-secondary-background) !important;
}

@media (min-width: 640px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
  }
}

@media (min-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(5, 1fr); /* 5 columns on desktop */
  }
}

/* Footer: tablets and smaller desktops */
@media (min-width: 768px) and (max-width: 1279px) {
    #ry-footer .grid.grid-cols-12 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 40px;
        row-gap: 32px;
        text-align: left;
    }

    #ry-footer .grid.grid-cols-12 > .col-span-full {
        grid-column: auto;
        min-width: 0;
    }

    #ry-footer .grid.grid-cols-12 > .col-span-full:last-child ul {
        margin-left: 0;
        margin-right: 0;
    }

    #ry-footer .grid.grid-cols-12 > .col-span-full:last-child li > span:last-child {
        white-space: nowrap;
    }
}

/* Media Queries */
@media (max-width: 1080px) {
    .module-welcome.style-5 .ry-each.image-wrapper .photo{
        padding-top: 10%;
    }   
	.module-welcome.style-5 .ry-each.image-wrapper .photo img {
    left: 0;
	}
}


@media (max-width: 1023px) {
    #hp-slider, #hp-slider .swiper-wrapper, .homepage-swiper .swiper-slide img{
        height: 100% !important;
    }
    body[data-page-name="index"] #navigation {
    position: relative;
    }
}

@media (max-width: 767px) {
    body[data-page-name="index"] h6, h2, h3, p,
    .mt-3, .block  {
        text-align: center !important;
    }
}

@media (max-width: 1024px) {
    #welcome-wrap .text-wrapper p,
    #welcome-wrap .text-wrapper h2, h3, h6  {
        text-align: center !important;
    }

    #welcome-wrap a.ry-btn {
      display: inline-block !important;
    }
}
/* Header: tablet landscape and smaller desktops */
@media (min-width: 1024px) and (max-width: 1279px) {
    #navigation-style-3 {
        display: grid;
        grid-template-columns:
            minmax(0, 1fr) minmax(0, 1fr)
            180px
            minmax(0, 1fr) minmax(0, 1fr);
        gap: 16px;
    }

    #navigation-style-3 > .cta-btn {
        width: 100%;
        min-width: 0;
        height: 64px;
    }

    #navigation-style-3 > .flex-shrink-0 img {
        width: 100%;
        max-width: 180px;
        height: auto;
    }

    #navigation-style-3 .cta-btn a {
        font-size: 12px;
        letter-spacing: 1px;
    }

    #navigation-style-3 .cta-icon-wrap {
        min-width: 28px;
    }

    #navigation-style-3 .cta-icon {
        width: 28px;
        height: 28px;
    }
}
/* End - HP Edits*/


@media (min-width: 1024px) {
    #ry-pg-body :is(.navigation-3) {
        padding-bottom: 2rem;
    }
}

body[data-page-name="frames"] #hp-brands-6::before {
	display: none;
}

body[data-page-name="contact-us"] div#footer-map {
    display: none;
}