/* 
Theme Name: IONYX Digital - Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: WordPress theme by IONYX Digital. Based on the Hello Elementor Child theme. 
Author: IONYX Digital, Elementor Team
Author URI: https://ionyxdigital.com.au/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/**
* BASE STYLES
*/
/* CSS Variables */
/* Elementor Colour Variables
var(--e-global-color-primary); // Primary
var(--e-global-color-secondary); // Secondary
var(--e-global-color-text); // Text
var(--e-global-color-accent); // Accent
var(--e-global-color-058574c); // Light Grey
var(--e-global-color-4f9f4bf); // Mid Grey
var(--e-global-color-084321b); // Dark Grey / Off Black
var(--e-global-color-65a6e9a); // White
var(--e-global-color-425b0ef); // Black
var(--e-global-color-ceab239); // Success
var(--e-global-color-0eb5bad); // Alert / Error
*/
:root {
	--theme-border-radius: 4px; /* Border radius for various elements */
}

/* Headings */
h1,h2,h3,h4,h5,h6 {
    -webkit-margin-before: 2rem;
    margin-block-start: 2rem;
	-webkit-margin-after: 1rem;
    margin-block-end: 1rem;
}
/* Remove top margin from first heading in container */
h1:first-child, .elementor-widget-heading h1, 
h2:first-child, .elementor-widget-heading h2, 
h3:first-child, .elementor-widget-heading h3, 
h4:first-child, .elementor-widget-heading h4, 
h5:first-child, .elementor-widget-heading h5, 
h6:first-child,  .elementor-widget-heading h6 {
    -webkit-margin-before: 0rem;
    margin-block-start: 0rem;
}
/* Outline stroke on text */
.font-outline-stroke {
	-webkit-text-fill-color: transparent;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: var(--e-global-color-secondary);
}

/* Lists */
ul, ol {
	margin: 30px 0;
}
	ul li, ol li {
		margin: 0 0 5px 0;
	}

/* Tables */
table td, table th {
	border: 1px solid var(--e-global-color-058574c);
}
table tbody tr:hover>td, table tbody tr:hover>th {
	background-color: unset;
}

table caption+thead tr:first-child td, table caption+thead tr:first-child th, 
table colgroup+thead tr:first-child td, table colgroup+thead tr:first-child th, 
table thead:first-child tr:first-child td, table thead:first-child tr:first-child th {
	-webkit-border-before: 0;
	border-block-start: 0;
}

/* Odd table rows */
table tbody>tr:nth-child(odd)>td, table tbody>tr:nth-child(odd)>th {
	background-color: transparent;
}

/* Button icons */
.elementor-button-icon .e-font-icon-svg {
	position: relative;
    top: 2px;
	fill: currentColor;
}


/**
* HEADER
*/

.elementor-nav-menu .menu-item .sub-arrow {
	padding: 0 0 0 8px;
}

#header-nav {
	transition-property: top, padding;
	transition-duration: .3s;
}

#header.hide-sticky-header #header-nav {
	top: -100%!important;
}

ul.elementor-nav-menu--dropdown a, ul.elementor-nav-menu--dropdown a:focus, ul.elementor-nav-menu--dropdown a:hover {
	border-inline-start: 0;
}


/**
* FOOTER
*/
#footer-cols .footer-menu p {
	-webkit-margin-after: .6rem;
    margin-block-end: .6rem;
}
#footer-cols .footer-menu a {
	color: inherit;
	text-decoration: inherit;
	transition: color 0.3s;
}
#footer-cols .footer-menu a:hover {
	color: var(--e-global-color-primary);
}


/**
* PAGINATION
*/
.elementor-pagination {
    display: flex;
    gap: 6px;
    margin-top: 48px;
    justify-content: center;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    transition: all .3s;
    color: var(--e-global-color-text);
    border: 1px solid var(--e-global-color-text);
    &:hover {
        color: var(--e-global-color-primary); 
        border-color: var(--e-global-color-primary); 
    }
    
    &.current {
        background-color: var(--e-global-color-primary); 
        border-color: var(--e-global-color-primary); 
        color: white;
    }
}


/**
* ELEMENTOR BLOCKS
*/

/* Inherit color and text decoration for column links */
a.e-con {
	color: inherit;
	text-decoration: inherit;
}

/* Heading with link - inherit parent text decoration */
.elementor-widget-heading .elementor-heading-title a {
	text-decoration: inherit;
}

/* Icon list */
.elementor-widget .elementor-icon-list-item a {
	text-decoration: none;
}

/* Flip box */
.elementor-widget-flip-box .elementor-flip-box__layer {
	text-decoration: inherit;
}
.elementor-widget-flip-box.elementor-flip-box--effect-fade .elementor-flip-box__layer {
	transition: all .3s ease-in-out;
}

/* Image Carousel - verticaly centre images */
.elementor-widget-image-carousel .elementor-image-carousel {
	align-items: center;
}

/* Image Carousel - adjust nav arrow spacing */
.elementor-element.elementor-arrows-position-outside .swiper, 
.elementor-element.elementor-arrows-position-outside .swiper-container,
.elementor-lightbox.elementor-arrows-position-outside .swiper,
.elementor-lightbox.elementor-arrows-position-outside .swiper-container {
	width: calc(100% - 140px);
}

/* Image Carousel - equal height logos  */
.logo-carousel-equal-height.elementor-widget-image-carousel .swiper-slide img {
	max-height: 70px;
}

/* Image Carousel - Display caption over image  - add "caption-over-image" CSS class */
.caption-over-image.elementor-widget-image-carousel .elementor-image-carousel {
	align-items: center;
}
.caption-over-image.elementor-widget-image-carousel .swiper-slide-inner {
	display: flex;
	position: relative;
	justify-content: center;
}
.caption-over-image.elementor-widget-image-carousel .swiper-slide-inner:after {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	display: inline-block;
	background: rgb(5,5,23);
	background: -moz-linear-gradient(180deg, rgba(5,5,23,0.2) 50%, rgba(5,5,23,1) 100%);
	background: -webkit-linear-gradient(180deg, rgba(5,5,23,0.2) 50%, rgba(5,5,23,1) 100%);
	background: linear-gradient(180deg, rgba(5,5,23,0.2) 50%, rgba(5,5,23,1) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#050517",endColorstr="#050517",GradientType=1);
}
.caption-over-image.elementor-widget-image-carousel .elementor-image-carousel-caption {
	position: absolute;
	top: 80%;
	width: 100%;
	max-width: 250px;
	z-index: 1;
}
.caption-over-image.elementor-widget-image-carousel .swiper .elementor-swiper-button {
	top: 80%;
	margin-top: 10px;
}
.caption-over-image.elementor-widget-image-carousel .swiper .elementor-swiper-button-prev {
	left: 20px;
}
.caption-over-image.elementor-widget-image-carousel .swiper .elementor-swiper-button-next {
	right: 20px;
}

/* Image Carousel -  verticle center and set max height on images - add "max-height" CSS class */
.max-height.elementor-widget-image-carousel .elementor-image-carousel {
	align-items: center;
}
.max-height.elementor-widget-image-carousel .swiper-slide img {
	max-height: 130px;
}

/* Sliders - disabled arrows */
.jet-carousel .jet-arrow.slick-disabled {
	pointer-events: none;
    opacity: .5;
}

/* Popup close button */
.elementor-popup-modal .dialog-close-button {
    padding: 15px;
}

.elementor-popup-modal .dialog-lightbox-widget-content {
	max-width: 700px;
    width: calc(100% - 40px);
}
	

/* Offset anchor links to account for sticky header */
body:not(.elementor-editor-active) .elementor-menu-anchor {
	margin: -130px 0 0;
}

/* Add border to vertical menu - add "vertical-menu-dividers" CSS class */
.vertical-menu-dividers.elementor-widget-nav-menu li {
	border-top: 1px solid #F2F2F3;
}
.vertical-menu-dividers.elementor-widget-nav-menu li:last-of-type {
	border-bottom: 1px solid #F2F2F3;
}


/**
* FORMS
*/

/* Remove Forminator Edit button on frontend */
.forminator-edit-module {
	display: none;
}


/**
* RESPONSIVE READY CLASSES
*/

/* Show on Mobile Only */
@media (min-width: 881px) {
	.hidden-show-mobile-only {
		display: none!important;
	}
}


/**
* ANIMATIONS
*/
 
/* Adjust Elementor FadeInUp animation */
.fadeInUp {
    animation-name: fadeInUpShort!important;
}
@keyframes fadeInUpShort {
    from {
        opacity: 0;
        transform: translate3d(0,50px,0);
    }

    to {
        opacity: 1;
        transform: none
    }
}

.fadeInDown {
    animation-name: fadeInDownShort!important;
}
@keyframes fadeInDownShort {
    from {
        opacity: 0;
        transform: translate3d(0,-50px,0);
    }

    to {
        opacity: 1;
        transform: none
    }
}

.fadeInLeft {
    animation-name: fadeInLeftShort!important;
}

@keyframes fadeInLeftShort {
    from {
        opacity: 0;
        transform: translate3d(-50px,0,0);
    }

    to {
        opacity: 1;
        transform: none
    }
}

.fadeInRight {
    animation-name: fadeInRightShort!important;
}

@keyframes fadeInRightShort {
    from {
        opacity: 0;
        transform: translate3d(50px,0,0);
    }

    to {
        opacity: 1;
        transform: none
    }
}


/**
* GRID WITH HOVER STATE
*/

/* Show only on hover */
.grid-item-hover .show-on-hover {
	opacity: 0;
	transition: opacity .3;
}
.grid-item-hover:hover .show-on-hover {
	opacity: 1;
}


/**
* CONTACT INFO SHORTCODE - phone, email, address, opening hours
*/

.contact-info-shortcode__content {
	color: var(--e-global-color-65a6e9a);
	display: flex;
	align-items: flex-start;
	gap: 8px;
	transition: all .3s;
}

a.contact-info-shortcode__content {
	color: var(--e-global-color-65a6e9a);
	text-decoration: none;
}

.contact-info-shortcode__info {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.contact-info-shortcode__label {
	font-weight: 600;
	color: var(--e-global-color-primary);
}

a.contact-info-shortcode__label {
	color: var(--e-global-color-primary);
}

.contact-info-shortcode a:hover,
.contact-info-shortcode a:focus {
	color: var(--e-global-color-65a6e9a);

	svg {
		fill: var(--e-global-color-65a6e9a);
	}
}

/* Label position - top */
.contact-info-shortcode.label-position-top .contact-info-shortcode__info {
	flex-direction: column;
}

/* Icon style - default and inline (left icon and left label)  */
.contact-info-shortcode svg {
	fill: var(--e-global-color-primary);
	width: 16px;
	height: 16px;
	margin-right: 4px;
	margin-top: 4px;
	transition: all .3s;
	flex-shrink: 0;
}

/* Icon position - top */
.contact-info-shortcode.icon-position-top .contact-info-shortcode__content {
	flex-direction: column;

	svg {
		width: 24px;
		height: 24px;
		margin-right: 0;
		margin-top: 0;
		flex-shrink: 0;
	}
}

/* Icon style for left-aligned icon with top label */
.contact-info-shortcode.icon-position-left.label-position-top svg {
	width: 24px;
	height: 24px;
}

/* Header - phone, email, address contact info shortcode styles */
#header-top .contact-info-shortcode {
	.contact-info-shortcode__content {
		color: var(--e-global-color-65a6e9a);
	}

	svg {
		fill: var(--e-global-color-65a6e9a);
	}
}

#header-top .contact-info-shortcode a:hover,
#header-top .contact-info-shortcode a:focus {
	.contact-info-shortcode__content {
		color: var(--e-global-color-65a6e9a);
	}

	svg {
		fill: var(--e-global-color-65a6e9a);
	}
}

/* Footer - phone, email, address contact info shortcode styles */
#footer-cols .contact-info-shortcode {
	.contact-info-shortcode__content {
		color: var(--e-global-color-65a6e9a);
	}
	a.contact-info-shortcode__content:hover {
		color: var(--e-global-color-65a6e9a);
	}

	svg {
		fill: var(--e-global-color-65a6e9a);
	}
}

#footer-cols .contact-info-shortcode a:hover,
#footer-cols .contact-info-shortcode a:focus {
	.contact-info-shortcode__content {
		color: var(--e-global-color-65a6e9a);
	}
	a.contact-info-shortcode__content:hover {
		color: var(--e-global-color-65a6e9a);
	}

	svg {
		fill: var(--e-global-color-65a6e9a);
	}
}


/**
* MENU TAKEOVER
*/

body .menu-takeover {
	display: none;
}

@media (max-width: 880px) {
	body .menu-takeover {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 0;
		transition: all .4s;
		background-color: white;
		z-index: 999;
		overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-direction: column;
        gap: 10px;
        padding-bottom: 0px;
	}

	body .menu-takeover.active {
		height: 100dvh;
		overflow: unset;
        padding-bottom: 20px;
	}
	
}
