/*
 Theme Name:     Grow My Business Divi Child
 Theme URI:      https://www.growmybusiness.co.nz
 Description:    Divi Child Theme for Grow My Business
 Author:         Ben Elwood
 Author URI:     https://www.growmybusiness.co.nz
 Template:       Divi
 Version:        1.0.0
*/

/* Theme customization starts here
------------------------------------------------------- */

#et-boc {
	/* max-width: 2000px !important;
	margin: 0 auto; */
}

body.et-fb .splide {
	visibility: visible;
}

header {
	position: absolute;
	width: 100%;
	z-index: 99;
}

p {
	-webkit-font-smoothing: subpixel-antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* #preloader {
	transition: opacity 800ms ease;
}

#preloader.hidden,
body.et-fb #preloader {
	opacity: 0;
	pointer-events: none;
}

body.et-fb #preloader {
	display: none;
} */

.a-mask {
	opacity: 0;
	mask-size: 90vw auto;
	-webkit-mask-size: 90vw auto;
	
	mask-position: 42vw 0;
	-webkit-mask-position-x: 42vw;
	-webkit-mask-position-y: 0;
	
	mask-repeat: no-repeat;
	-webkit-mask-repeat: no-repeat;
}

.a-mask.active {
	opacity: 1;
	/* mask: url(https://attend.co.nz/wp-content/uploads/2023/10/a-shape-css.svg) 42vw 0 / 90vw auto; */
	mask-image: url(https://attend.co.nz/wp-content/uploads/2023/10/a-shape-css.svg);
	-webkit-mask-image: url(https://attend.co.nz/wp-content/uploads/2023/10/a-shape-css.svg);
}

#page-container {
    max-width: 100vw;
    overflow-x: clip;
}

.a-mask.alt {
	mask-size: 80vw auto;
	mask-position: -31vw 0;
	-webkit-mask-size: 80vw auto;
	-webkit-mask-position-x: -31vw;
	-webkit-mask-position-y: 0;
}

/* .indent h1,
.indent h2 {
	text-indent: 100px;
} */

/* .indent h1 > div:first-child > div:first-child,
.indent h2 > div:first-child > div:first-child {
	text-indent: 100px;
} */

#et-boc {
	border-top: 1px solid #2e3047;
	border-bottom: 1px solid #2e3047;
}

h1 > div,
h2 > div {
	overflow: hidden;
	max-width: max-content;
}

h1,
h2 {
	box-sizing: border-box;
	font-kerning: none;
	-webkit-text-rendering: optimizeSpeed;
	text-rendering: optimizeSpeed;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}

.a-frame-wrapper .pin-spacer {
	height: auto !important;
}

/* Experiences */

.experiences {
	display: flex;
	grid-gap: 24px;
	width: fit-content;
	height: 100%;
}

.experience {
	display: block;
	width: 25vw;
	height: 80vh;
	max-height: 700px;
	border-radius: 2px;
	overflow: hidden;
	position: relative;
}

.experiences .experience {
	height: 100%;
	min-height: 400px;
	max-height: none;
}

#horizontal .et_pb_code_inner {
	height: 100%;
}

.experience .featured-image {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	z-index: -1;
}

.experience img {
	height: 100%;
	width: 100%;
	object-fit: cover;
}

.experience .featured-image::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(0deg, rgba(23, 17, 18, 0.6), transparent);
	opacity: 0.7;
	transition: opacity 300ms ease-in-out;
}

.experience h3 {
	color: #fff;
	font-size: 34px;
	text-align: center;
	padding-bottom: 20px;
}

.experience .te-reo-tag {
	color: #fff;
	background: #2e3047;
	font-size: 14px;
	text-align: center;
	padding: 1px 8px;
	border-radius: 2px;
	margin-bottom: 16px;
}

.experience .te-reo-tag[data-eng="christchurch"],
.experience .te-reo-tag[data-eng="wellington"] {
	background: #e66f4b;
}

.experience .te-reo-tag[data-eng="coromandel"],
.experience .te-reo-tag[data-eng="queenstown"] {
	background: #397367;
}

.experience .te-reo-tag[data-eng="marlborough sounds"] {
	background: #87bcde;
}

.experience .icon {
	height: 24px;
	width: 24px;
	background-image: url("https://attend.co.nz/wp-content/uploads/2023/09/right-angle-arrow.svg");
	background-size: contain;
	background-position: center center;
	background-repeat: no-repeat;
	display: block;
}

.experience {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	padding: 50px;
	transition: padding-bottom 300ms ease-in-out;
}

.experience:hover {
	padding-bottom: 60px;
}

.experience:hover .featured-image::before {
	opacity: 1;
}

/* Splide Arrows */

.splide__arrows {
	position: absolute;
	top: calc(50% - 60px);
	left: 0;
	display: flex;
	grid-gap: 20px;
	width: 100%;
	display: flex;
	flex-direction: row-reverse;
	justify-content: space-between;
}

.splide__arrow {
	position: relative;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 60px;
	height: 60px;
	background: #fff;
	border: 1px solid #181112;
	/* transform: translateX(-25%); */
	opacity: 1 !important;
	cursor: pointer;
	transition: opacity 200ms ease-in-out;
	color: #2e3047;
}

.splide__arrow:hover {
	opacity: 0.7 !important;
}

.splide__arrow.splide__arrow--next {
	order: -99;
	/* transform: translateX(25%); */
}

.splide__arrow svg {
/* 	display: none; */
}

.splide__arrow::after {
	content: "";
	position: absolute;
	top: 53%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 24px;
	height: 24px;
	/* background: url("https://attend.co.nz/wp-content/uploads/2023/09/right-angle-arrow.svg");https://attend.staging.gmbdev.cloud/wp-content/uploads/2024/10/Frame-2.svg */
	background: url("https://attend.staging.gmbdev.cloud/wp-content/uploads/2024/10/Frame-2.svg");
	background-size: contain;
	background-position: center center -5px;
	background-repeat: no-repeat;
}

.splide__arrow.splide__arrow--prev::after {
	transform: translate(-50%, -50%) rotate(180deg) scaleY(-1);
}

/* Mobile Menu */
.dvmm_mobile__menu li.button {
	display: block;
	line-height: 1.7em;
	color: #fff;
	background: #ed1c25;
	width: fit-content;
	font-weight: 600;
	width: 100%;
	padding: 12px 24px;
	border-radius: 0px;
	text-align: center;
	transition: background 200ms ease-in-out;
}

.dvmm_mobile__menu li.button:hover {
	background: #cb1d25;
}

.dvmm_mobile__menu li.button.secondary {
	background: #fff;
}

.dvmm_mobile__menu li.button.secondary:hover {
	background: #f2f2f2;
}

body #page-container .dvmm_mobile__menu li.button.secondary a {
	background: #fff;
	color: #212121 !important;
}

.dvmm_mobile__menu li.button a {
	padding: 0 !important;
	background: transparent !important;
}

body #page-container #navigation .dvmm_mobile_menu_wrapper {
	top: calc(100% + 20px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	background: #2e3047;
	border-radius: 0 0 2px 2px;
	width: 100vw;
	left: -5vw;
}

body #page-container #navigation.light-nav .dvmm_mobile_menu_wrapper {
	border-color: rgba(255, 255, 255, 0.15);
	background: #212121;
}

body #page-container .dvmm_mobile_menu_wrapper ul,
body #page-container .dvmm_mobile_menu_wrapper ul li a {
	background-color: transparent;
}

body #page-container #navigation .dvmm_mobile_menu_wrapper ul li a {
	color: #fff !important;
	padding: 12px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	font-weight: 400;
}

body #page-container #navigation.light-nav .dvmm_mobile_menu_wrapper ul li a {
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.05);
}

body
	#page-container
	#navigation
	.dvmm_mobile_menu_wrapper
	ul
	li.current-menu-item
	a {
	border-color: #e9714c;
}

body
	#page-container
	#navigation
	.dvmm_mobile_menu_wrapper
	ul
	li.button.primary
	a {
	color: #fff !important;
}

body
	#page-container
	#navigation
	.dvmm_mobile_menu_wrapper
	ul
	li.button.secondary
	a {
	color: #212121 !important;
}

body #page-container #navigation .dvmm_mobile_menu_wrapper ul li.button a {
	border: none;
}

.dvmm_mobile_menu_wrapper::-webkit-scrollbar {
	width: 0;
}

.dvmm_mobile_menu_wrapper::-webkit-scrollbar-track {
	background: #e5ded3;
}

.dvmm_mobile_menu_wrapper::-webkit-scrollbar-thumb {
	background: #e5ded3;
}

.dvmm_mobile_menu_wrapper::-webkit-scrollbar-thumb:hover {
	background: #e5ded3;
}

@media screen and (max-width: 980px) {
	.experience {
		width: 350px;
		height: 500px;
		max-height: 80vh;
	}

	ul[style="columns: 2; column-gap: 50px;"] {
		columns: 1 !important;
	}
	
	/* .a-mask.active {
		opacity: 1;
		mask: url(https://attend.co.nz/wp-content/uploads/2023/10/a-shape-css.svg) 42vw 0 / 90vw auto;
		mask-repeat: no-repeat;
	
		-webkit-mask: url(https://attend.co.nz/wp-content/uploads/2023/10/a-shape-css.svg) 42vw 0 / 90vw auto;
		-webkit-mask-repeat: no-repeat;
	} */
	
	.a-mask.alt {
		mask-size: 120vw auto;
		mask-position: -10vw 0;
		-webkit-mask-size: 120vw auto;
		-webkit-mask-position-x: -10vw;
		-webkit-mask-position-y: 0;
	}
}

@media screen and (max-width: 767px) {
	body #page-container #navigation .dvmm_mobile_menu_wrapper {
		top: calc(100% + 11px);
	}
}

.et_pb_button::after {
	display: none !important;
}

.gform-button {
	height: 100%;
}

.ginput_complex.ginput_container_name {
    grid-row-gap: 16px;

}

.ginput_complex.ginput_container_name .gform-grid-col {
    margin: 0 !important;
}

.hero-bg-img {
	user-select: none;
	-webkit-user-select: none;
	pointer-events: none;
}

.hero-bg-img {
	transition: opacity 1000ms ease;
}

#benefits-slider {
    z-index: 999;
}

body #page-container #benefits-slider .et_pb_column {
	margin: 0 !important;
	width: 100% !important;
	transition: transform 0.5s;
}
@media screen and (min-width: 981px) {
	.splide__slide:not(.gmb-active) .et_pb_column {
	  transform: scale(0.9);
	}	
}

.services-popups {
	/* display: none; */
}

.show-serv-popup {
	display: flex !important;
	position: relative !important;
}

.hide-serv-popup {
	display: none !important;
}

.close-modal {
	cursor: pointer !important;
}

@media screen and (max-width: 770px) {
	.services-popups {
		flex-direction: column-reverse;
		/* column-gap: 30px !important; */
		padding: 30px !important;
	}

	.services-popups img {
		margin-bottom: 30px;
	}

	.services-popups h3 {
		font-size: 24px !important;
	}

	.close-modal {
		margin-right: -4% !important;
		margin-top: -4% !important;
	}
}

	.homepage-slider .slide-content {
		color: #fff !important;
		padding: 100px 32px 32px 32px;
		border-radius: 3px !important;
		height: 500px;
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		background-size: cover !important;
		background-position: center !important;
		background-repeat: no-repeat !important;
		position: relative;
	}

.homepage-slider .slide-content::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
	pointer-events: none;
}

.homepage-slider .slide-content h2,
.homepage-slider .slide-content p {
	position: relative;
	z-index: 1;
}

.homepage-slider .slide-content h2 {
	font-size: 26px;
	color: #fff !important;
}

.homepage-slider .slide-content p {
	font-size: 18px;
	font-weight: 300 !important;
}

.homepage-slider .splide__arrows {
	top: -70px;
	left: unset;
	right: 0;
	/* margin-right: -40px; */
	width: 150px;
}

#pre-post-packages {
	background: url("/wp-content/uploads/2024/09/91-1.webp");
}

#flight-management {
	background: url("/wp-content/uploads/2024/10/image.webp");
}

#access-rates {
	background: url("/wp-content/uploads/2024/09/getty-images-xGnVDnisoc4-unsplash-1.webp");
}

#concierge-transport {
	background: url("/wp-content/uploads/2024/10/95.webp");
}

#experience-aotearoa {
	background: url("/wp-content/uploads/2024/10/96.webp");
}

#tailored-event-solutions {
	background: url("/wp-content/uploads/2024/10/93.webp");
}

