/*
Theme Name: Good Grief Perth!
Author: CDALogic
Description: Wordpress theme built with css grid framework
Version: 2.1
Date: March 2024
*/

:root {
	font-size: 10px;
	--text-color: #181e2e;
	--text-size: 2rem;
	--font-primary: "Quicksand", sans-serif;
	--font-headings: "Neuton", serif;
	--aqua: #177487;
	--blue: #213068;
	--cream-light: #fef3e3;
	--cream-medium: #fbe6cf;
	--cream-dark: #f0dbc5;
	--green: #8fcfb0;
	--green-light: #d9f2e6;
	--orange: #de8b56;
	--brown: #79300c;
	--brown-dark: #231c14;
	--link-color: var(--brown);
	--btn-color: #fff;
	--btn-bg-color: var(--blue);
	--top-bar-bg-color: var(--green);
	--main-menu-link-color: #fff;
	--hamburger-bg-color: var(--aqua);
	--hamburger-bar-color: var(--blue);
	--footer-bg-color: var(--blue);
	--footer-color: #fff;
	color: var(--text-color);
}
* {
	box-sizing:border-box;
	margin: 0;
	padding: 0;
	line-height: 1;
	outline: 0;
}
body {
	background: var(--cream-light);
	background: #fff;
	font-family: var(--font-primary);
	overflow-x: hidden;
}
/*
===================================================================================================================
FRAMEWORK
===================================================================================================================
*/
.container {	
	margin: 0 auto;
	max-width: 1200px;
	padding: 0 20px;
	position: relative;
}
.container-fluid {	
	margin: 0 auto;
	max-width: 100%;
	padding: 0 20px;
}
#page {
	background: var(--cream-light);
	background: #fff;
	min-height: 100vh;
}
.row-grid-mobile {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-gap: 20px;
}
.no-gap {
	grid-gap: 0;
}
.big-gap {
	grid-gap: 60px;
}
/*
===================================================================================================================
TYPOGRAPHY
===================================================================================================================
*/
.sans-serif {
	font-family: var(--font-primary);
}
.serif {
	font-family: var(--font-headings);
}
h1,
h2,
h3,
h4,
h5,
p,
ul,
dt,
dd,
p {
	margin-bottom: 20px;
}
.font-xl {
	font-size: 150%;
}
.font-l {
	font-size: 125%;
}
.font-s {
	font-size: 75%;
}
.font-xs {
	font-size: 50%;
}
.text-upp {
	text-transform: uppercase;
}
/*
===================================================================================================================
HEADINGS
===================================================================================================================
*/
h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4 {
	color: var(--blue);
	font-family: var(--font-headings);
	font-weight: 400;
	line-height: 1.2;
	text-wrap: pretty;
}
h1,
.h1 {
	font-size: clamp(4rem, 5vw, 10rem);
}
h2,
.h2 {
	font-size: clamp(3.5rem, 4vw, 4.7rem);
}
h3,
.h3 {
	font-size: clamp(3.5rem, 4vw, 3.5rem);
}
h4,
.h4 {
	font-size: clamp(1.2rem, 4vw, 2.2rem);
}
h5,
.h5 {
	font-size: clamp(1rem, 4vw, 2rem);
}
/*
===================================================================================================================
PARAGRAPH TEXT
===================================================================================================================
*/
p,
.p,
address {
	font-size: var(--text-size);
	line-height: 1.4;
	text-wrap: pretty;
}
p:last-of-type {
	margin-bottom: 0;
}
address {
	font-style: normal;
	margin-bottom: 20px;
}
/*
===================================================================================================================
IMAGES
===================================================================================================================
*/
img {
	height: auto;
	max-width: 100%;	
}
/*
===================================================================================================================
VIDEOS
===================================================================================================================
*/
.video-container {
	padding-bottom: 56.25%;
	padding-top: 30px; height: 0; overflow: hidden;
	position: relative;
}
.video-container iframe,
.video-container object,
.video-container embed {
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}
/*
===================================================================================================================
LISTS
===================================================================================================================
*/
ul {
	/* list-style-type: none; */
	padding-left: 0;
}
ul:after {
	clear: both;
	content: "";
	display: block;	
	float: none;
}
li {
	font-size: var(--text-size);
	font-weight: inherit;
	list-style-type: disc;
	line-height: 1.4;
	margin-left: 20px;
	margin-bottom: 15px;
}
ul li {
	list-style-type: disc;
}
dt,
dd {
	font-weight: 300;
	line-height: 1;
	margin-bottom: 10px;
}
li a {
	display: block;
}
figure {
	margin: 0;
}
/*
===================================================================================================================
LINKS
===================================================================================================================
*/
a, 
a:hover, 
a:active, 
a:focus {
	text-decoration: none;
  	transition: all 0.25s ease-in-out;
}
a {
	color: var(--link-color);
	font-weight: bold;
}
a.btn,
.btn,
.elementor-button {
	background: var(--btn-bg-color);
	color: var(--btn-color);	
	display: inline-block;
	font-size: 2rem;
	margin: 0 auto 20px auto;
	max-width: max-content;
	padding: 20px;
	text-align: center;
	text-transform: uppercase;
}
a.btn:hover,
.btn:hover,
.elementor-button:hover {
	box-shadow: 0 5px 5px rgba(0,0,0,0.2);
	transform: scale(1.1);
}
/*
===================================================================================================================
FIXES
===================================================================================================================
*/
.clearfix,
.clear {
	clear: both;
	float: none;
}
.kc_row:not(.kc_row_inner),
.kc-elm {
	clear: both;
	float: none !important;
}
.kc_row:after {
	clear: both !important;
	content: "";
	display: block !important;
	float: none !important;
}
.no-margin * {
	margin: 0;
}
/*
===================================================================================================================
ALIGNMENTS
===================================================================================================================
*/
.center {
	text-align: center;
}
.right {
	text-align: right;
}
.align-middle {
	display: grid;
	align-content: center;
}
.align-bottom {
	display: grid;
	align-content: end;
}
.object-cover {
	object-fit: cover;
}
.center-center {
	align-items: center;
	display: flex;
	justify-content: center;
}
/*
===================================================================================================================
FORM ELEMENTS
===================================================================================================================
*/
input[type="color"], 
input[type="date"], 
input[type="datetime"], 
input[type="datetime-local"], 
input[type="email"], 
input[type="month"], 
input[type="number"],
input[type="password"], 
input[type="tel"], 
input[type="text"], 
input[type="time"], 
input[type="url"], 
input[type="week"], 
textarea {
	background: rgba(255,255,255,1);
	border: 1px solid rgba(200,200,200,1);
	border-radius: 5px;
	display: block;
	font-family: var(--font-primary);
	font-size: 1.6rem;
	height: auto;
	margin-bottom: 20px;
	padding: 20px;	
	width: 100%;
}
input[type="submit"] {
	background: var(--btn-bg-color);
	border: 0;
	color: var(--btn-color);
	cursor: pointer;
	display: block;
	font-size: 19px;
	font-weight: 600;
	letter-spacing: 1px;		
	margin-bottom: 0;
	padding: 20px;
	text-transform: uppercase;	
	width: auto;
}
textarea {
	line-height: 1.4;
	min-height: 100px;
}
::placeholder {
    color: inherit;
	font-family: var(--font-primary);
    opacity: 0.7;
}
label {
	display: block;
	font-size: var(--text-size);
	margin-bottom: 5px;
}
.wpcf7-response-output {
	font-size: 2rem !important;
}
/*
===================================================================================================================
UP BUTTON
===================================================================================================================
*/
#up {	
	bottom: 10%;
	border: 2px solid rgba(255,255,255,0.5);
	background: rgba(0,0,0,0.5);	
	position: fixed;	
	right: 10px;	
	text-align: center;	
	z-index: 999;
}
#up a {
	color: rgba(255,255,255,0.5);
	display: flex;
	font-size: 3.5rem;
	height: 50px;
	justify-content: center;
	width: 50px;
}
#up a .fa {
	align-self: center;
}
/*
===================================================================================================================
MAIN NAVIGATION MENU
===================================================================================================================
*/
#top-bar {
	align-items: center;
	background: linear-gradient(to right, var(--top-bar-bg-color), var(--blue));
	background: var(--top-bar-bg-color);
	color: yellow;
	display: flex;
	justify-content: space-between;
	left: 0;
	padding-left: 20px;
	position: fixed;
	top: 0;
	transition: all 0.25s ease-in-out;
	width: 100%;
	z-index: 999;
}
.menu-is-open #top-bar {
	transition: all 0.25s ease-in-out;
}
/* #menu-container {
	height: 100%;
	left: -100%;
	overflow-y: scroll;
	padding: 10px;
	position: fixed;
	text-align: center;
	transition: all 0.25s ease-in-out;
	width: 100%;
	z-index: 11;  	
} */
/* .open {
	left: 0 !important;
  	transition: all 0.25s ease-in-out;
} */
.show {
	display: block;
}
#main-menu {
	height: 100%;
	margin-bottom: 0;
	position: fixed;
	right: -100%;
	text-align: center;
	transition: all 0.25s ease-in-out;
	width: 100%;
}
.menu-is-open #main-menu {
	background: var(--top-bar-bg-color);
	right: 0;
}
#main-menu li {
	list-style-type: none;
	margin: 0;
}
#main-menu li a {
	color: var(--main-menu-link-color);
	font-size: 1.8rem;
	padding: 10px 20px;
	text-transform: uppercase;
}
#main-menu li a:hover {
	background: #fff;
	color: var(--blue);
}
#main-menu li:last-child a {
	background: var(--blue);
	color: #fff;
}
#hamburger {
	align-content: space-between;
	background: var(--hamburger-bg-color);
	cursor: pointer;
	display: grid;
	height: 50px;
	padding: 10px;	
	transition: all 0.5s 0.5s ease-in-out;
	width: 50px;
	z-index: 999;
}
.bar {	
	border-bottom: 6px solid var(--hamburger-bar-color);
	transition: all 0.25s ease-in-out;
  	width: 100%;
}
#bar-wrapper {
	position: relative;
}
#bar-2 {
	position: relative;

}
#bar-3 {
	left: 0;
	position: absolute;
	top: 0;
}
.bar.blackout {
	border-bottom: 3px solid transparent;
  	transition: all 0.5s ease-in-out;
}
.menu-is-open #bar-1,
.menu-is-open #bar-4 {
	border-color: transparent;
	box-shadow: none;
	transition: none;
}
.menu-is-open #bar-2 {
	transform: rotate(45deg);
}
.menu-is-open #bar-3 {
	transform: rotate(-45deg);
}
.menu-is-open #fly-out-overlay {
	background: rgba(0,0,0,0.5);
	cursor: pointer;
	display: block;
	height: 100%;
	left: 0;
	position: fixed;
	top: 0;
	transition: all 0.25s ease-in-out;
	width: 100%;
}
#logo {
    align-items: center;
    display: grid;
    font-size: 2rem;
    grid-template-columns: 1fr 2fr;
    justify-content: center;
    max-width: 200px;
	padding: 10px 10px 10px 0;
    transition: all 0.25s ease-in-out;
	text-align: center;
}
#logo-text {
	transition: all 0.25s ease-in-out;
}
#main-menu .sub-menu {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0 0 20px 0;
	text-align: left;
}
#main-menu .menu-item.open > .sub-menu {
	display: block;
}
.submenu-toggle {
	background: none !important;
	border: none !important;
	cursor: pointer !important;
	font-size: 4rem !important;
	margin-left: 10px;
	padding: 0 !important;
}
.submenu-toggle::after {
	color: deeppink;
	content: '▾'; /* Down arrow */
	display: inline-block;
	transform: rotate(0deg);
	transition: transform 0.3s ease;
}
.menu-item.open .submenu-toggle::after {
	transform: rotate(180deg); /* Up arrow when open */
}
#main-menu .sub-menu li {
	border-bottom: 0;
}
#main-menu .sub-menu li a {
	font-size: 1.8rem;
	padding: 12px 20px;
}
/*
===================================================================================================================
FOOTER
===================================================================================================================
*/
#footer-main {
	background: var(--footer-bg-color);
	color: var(--footer-color);
	padding: 40px 5% 0 5%;
}
#footer-main li {
	font-size: 1.4rem;
	margin-bottom: 0;
}
#footer-main li:last-child {
	border-bottom: 0;
}
#footer-main li a,
#footer-main .fly-out-open-button {
	padding: 20px 0;
}
.footer-fixed {
	bottom: 0;
	left: 0;
	position: fixed;	
	width: 100%;
	z-index: -1;
}
#footer-legal {
	padding: 20px;
}
.footer-logo {
	margin-bottom: 20px;
	max-width: 220px !important;
	text-align: center;
}
.footer-column {
	margin-bottom: 40px;
	text-align: center;
}
.footer a {
	color: var(--cream-medium);
}
.footer a:hover {
	color: var(--orange);
}
.associate-logo {
	margin: 0 auto 20px auto;
	max-width: 150px;
}
/*
===================================================================================================================
ANIMATIONS
===================================================================================================================
*/
.grayscale img {
	filter: grayscale(100);
	transition: all 0.5s ease-in-out;
}
.grayscale img:hover {
	filter: grayscale(0);
	transition: all 0.25s ease;
}
.letter-char {
    animation: letterFadeIn 0.4s forwards;
    display: inline-block;
    opacity: 0;
    transform: translateY(0.3em);
	vertical-align: bottom;
}
.letter-enter {
	line-height: 1;
	margin-top: 10px;
    visibility: hidden;
    white-space: normal;
    word-break: keep-all;
}
@keyframes letterFadeIn {
    to {
        opacity: 1;
        transform: translateY(0.1em);
    }
}
/*
===================================================================================================================
NATIVE CONTENT
===================================================================================================================
*/




.e-n-accordion-item-title {
	background: var(--green);
}

.elementor-widget-n-accordion .e-n-accordion-item-title-icon {
    background: #fff;
	order: 2;
    padding: 5px;
}
.elementor-widget-n-accordion svg {
    fill: var(--blue) !important;
}
.clip-left {
	clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
}

.center-flex {
	align-items: center;
	display: flex;
	gap: 15px;
	justify-content: center;
}




.loop {
	display: grid;
	grid-gap: 40px;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}
.loop li {
	border: 1px solid rgba(0,0,0,0.15);
	box-shadow: 0px 5px 10px rgba(0,0,0,0.05);
	list-style-type: none;
	transition: all 0.25s ease-in-out;
}
.loop li a {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.loop a p {
	color: #111;
	font-size: 1.6rem;
	font-weight: 400;
}
.loop img {
	margin-bottom: 10px;
	transition: all 0.5s ease-in-out;
}
.loop-content {
	padding: 20px;
}
.loop h2 {
	font-size: 2.6rem;
	font-weight: 300;
}
.loop li:hover {
	transform: scale(105%);
	transition: all 0.5s ease-in-out;
}
.loop li:hover img {
	filter: brightness(0.5);
	transition: all 0.25s ease-in-out;
}


/*
===================================================================================================================
MEDIA QUERIES
===================================================================================================================
*/
@media only screen and (min-width: 641px) {
	.row-grid {
		display: grid;
		grid-template-columns: repeat(12, 1fr);
		grid-gap: 20px;
	}
	.span-1 {
		grid-column: span 1;
	}
	.span-2 {
		grid-column: span 2;
	}
	.span-3 {
		grid-column: span 3;
	}
	.span-4 {
		grid-column: span 4;
	}
	.span-5 {
		grid-column: span 5;
	}
	.span-6 {
		grid-column: span 6;
	}
	.span-7 {
		grid-column: span 7;
	}
	.span-8 {
		grid-column: span 8;
	}
	.span-9 {
		grid-column: span 9;
	}
	.span-10 {
		grid-column: span 10;
	}
	.span-11 {
		grid-column: span 11;
	}
	.span-12 {
		grid-column: span 12;
	}
	#logo a {
		display: block;
	}
	#logo {
		max-width: 280px;
		padding: 0;
		text-align: left;
	}
	.logo-shrink {
		max-width: 200px !important;
		padding: 10px;
		transition: all 0.2s;
	}
	.logo-shrink #logo-text {
		transition: all 0.25s ease-in-out;
		max-width: 100px;
	}
	.footer-column-left {
		text-align: left;
	}
	.footer-column-center {
		text-align: center;
	}
	.footer-column-right {
		text-align: right;
	}
	.associate-logo {
		margin: 0;
		max-width: 100%;
	}
}
@media only screen and (min-width: 900px) {
	#top-bar {
		align-items: center;
		padding: 5px 5%;
		transition: all 0.4s;
	}
	.bar-shrink {
		padding: 0 !important;
		transition: all 0.4s;
	}
	#main-menu {
		background: transparent;
		display: flex;
		height: auto;
		right: auto;
		position: static;
		text-align: center;
		transition: all 0.25s ease-in-out;
		width: auto;
	}
	#hamburger {
		display: none;
	}
	#main-menu li a {
		display: flex;
	}
	#top-bar.bar-shrink {
		background: #f5f5f5;
	}
	.bar-shrink #main-menu a {
		color: #222;
	}
	.bar-shrink #main-menu li:last-child a {
		transition-delay: 0.25s;
		border-radius: 80px 0 0 80px;
	}
	/* #main-menu .current_page_item a {
		color: var(--cwg-red);
	} */
	#main-menu .sub-menu {
		background: rgba(255,255,255,0.5);
		backdrop-filter: blur(20px);
		display: none;
		position: absolute;
		text-align: left;
		z-index: 4;
	}
	#main-menu .sub-menu li {
		float: none;
	}
	#main-menu .sub-menu li a {
		color: #111;
		font-size: 1.6rem;
		padding: 15px;
	}
	#main-menu .menu-item-has-children:hover .sub-menu {
		display: block;
	}
	/* #main-menu li a:after {
		background: transparent;
		content: "";
		display: block;
		height: 3px;
		margin:10px auto 0 auto;
		margin-top: 10px;
		transition: all 0.25s ease-in-out;
		width: 0px;
	}
	#main-menu li:hover a:after {
		background: white;
		content: "";
		display: block;
		height: 3px;
		transition: all 0.25s ease-in-out;
		width: 100%;
	}
	#main-menu .sub-menu {
		background: #f6efe7;
		display: none;
		padding: 10px;
		position: absolute;
		text-align: left;
		z-index: 4;
	}
	#main-menu .sub-menu li {
		float: none;
	}
	#main-menu .sub-menu li:last-child a {
		padding-right: 20px;
	}
	#main-menu .sub-menu li a {
		color: #4d93b7;
		text-shadow: 0;
	}
	#main-menu li:hover .sub-menu li a:after {
		display: none !important;
	}
	#main-menu .menu-item-has-children:hover .sub-menu {
		display: block;
	} */

}