/*
Theme Name:   wildPLAN
Theme URI:    https://www.wildplan.com.au/
Description:  wildPLAN child theme for Hello Elementor. Header is a theme template, everything else is built in Elementor.
Author:       Bang Media
Author URI:   https://www.bangmedia.com.au/
Template:     hello-elementor
Version:      1.0.0
Text Domain:  wildplan
*/

/*
 * Only the header and a few base rules live here. Page, footer and template
 * styling lives in Elementor (global variables, global classes and the kit's
 * custom CSS), so it stays editable in the builder.
 */

:root {
	/* Site grid, shared with the wpl-container class in Elementor:
	   1170px content, 30px gutters (20px on mobile). */
	--wp-content: 1170px;
	--wp-gutter: 30px;
	--wp-blue: #4598e2;
	--wp-slate: #4c606d;
	--wp-ink: #222222;
	--wp-header-h: 110px;
}

body {
	font-family: "Montserrat", sans-serif;
	color: var(--wp-slate);
	background: #fff;
}

a {
	color: var(--wp-blue);
}

a:hover,
a:focus {
	color: #9ac3e2;
}

/* Header ------------------------------------------------------------------ */

.wp-header {
	position: relative;
	z-index: 100;
	height: var(--wp-header-h);
	background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.8));
	font-family: "Montserrat", sans-serif;
}

.wp-header__inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	box-sizing: border-box;
	max-width: calc(var(--wp-content) + var(--wp-gutter) * 2);
	height: 100%;
	margin: 0 auto;
	/* Nav links carry 15px of side padding, so the last label still lines up
	   with the content edge. */
	padding: 0 calc(var(--wp-gutter) - 15px) 0 var(--wp-gutter);
}

.wp-header__logo {
	display: block;
	margin-top: 35px;
	line-height: 0;
}

.wp-header__logo img {
	display: block;
	width: 160px;
	height: auto;
}

.wp-nav__menu,
.wp-nav__menu .sub-menu,
.wp-panel__menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wp-nav__menu {
	display: flex;
	margin-top: 32px;
}

.wp-nav__menu > li {
	position: relative;
}

.wp-nav__menu a {
	display: block;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.wp-nav__menu > li > a {
	padding: 18px 15px;
	border: 1px solid transparent;
	font-size: 13px;
	font-weight: 700;
	line-height: 14px;
	color: var(--wp-slate);
}

.wp-nav__menu > li > a:hover,
.wp-nav__menu > li > a:focus-visible,
.wp-nav__menu > .current-menu-item > a {
	color: var(--wp-blue);
}

.wp-nav__menu > .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	margin-left: 8px;
	vertical-align: middle;
	border-top: 4px solid;
	border-right: 4px solid transparent;
	border-left: 4px solid transparent;
}

.wp-nav__menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	box-sizing: border-box;
	min-width: 476px;
	padding: 5px 0;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.15);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
	display: none;
}

/* display rather than visibility, so closed menus never widen the page. */
.wp-nav__menu > li:hover > .sub-menu,
.wp-nav__menu > li:focus-within > .sub-menu {
	display: block;
}

.wp-nav__menu .sub-menu a {
	padding: 9px 20px;
	font-size: 13px;
	font-weight: 400;
	line-height: 14px;
	color: #333;
}

.wp-nav__menu .sub-menu a:hover,
.wp-nav__menu .sub-menu a:focus-visible,
.wp-nav__menu .sub-menu .current-menu-item > a {
	color: var(--wp-blue);
	background: #f5f5f5;
}

/* Mobile toggle and panel */

.wp-header__toggle {
	display: none;
}

.wp-panel {
	display: none;
}

/* The original site overlays the header on the page from 1000px up, on every
   template. Pages start with a hero; templates carry their own top padding. */
@media (min-width: 1000px) {
	.wp-header {
		position: absolute;
		top: var(--wp-admin--admin-bar--height, 0px);
		right: 0;
		left: 0;
	}
}

@media (max-width: 767px) {
	.wp-header {
		background: #fff;
	}

	:root {
		--wp-gutter: 20px;
	}

	.wp-header__inner {
		align-items: center;
		padding: 0 var(--wp-gutter);
	}

	.wp-header__logo {
		margin-top: 0;
	}

	.wp-nav {
		display: none;
	}

	.wp-header__toggle {
		position: relative;
		z-index: 1002;
		display: block;
		width: 44px;
		height: 44px;
		margin-right: -11px;
		padding: 0;
		background: transparent;
		border: 0;
		border-radius: 0;
		cursor: pointer;
	}

	/* Hello's reset paints buttons pink on hover and focus. */
	.wp-header__toggle:hover,
	.wp-header__toggle:focus {
		background: transparent;
	}

	.wp-header__toggle:focus-visible {
		outline: 2px solid var(--wp-blue);
		outline-offset: 2px;
	}

	.wp-header__bars,
	.wp-header__bars span {
		display: block;
	}

	.wp-header__bars {
		position: relative;
		width: 22px;
		height: 16px;
		margin: 0 auto;
	}

	.wp-header__bars span {
		position: absolute;
		left: 0;
		width: 100%;
		height: 2px;
		background: var(--wp-slate);
		transition: transform 0.25s, opacity 0.25s;
	}

	.wp-header__bars span:nth-child(1) { top: 0; }
	.wp-header__bars span:nth-child(2) { top: 7px; }
	.wp-header__bars span:nth-child(3) { top: 14px; }

	.wp-header.is-open .wp-header__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.wp-header.is-open .wp-header__bars span:nth-child(2) { opacity: 0; }
	.wp-header.is-open .wp-header__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	.wp-panel {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 1001;
		display: block;
		box-sizing: border-box;
		width: min(330px, 85vw);
		padding: 40px 20px;
		overflow-y: auto;
		background: rgba(255, 255, 255, 0.85);
		border-right: 4px solid var(--wp-blue);
		transform: translateX(-100%);
		visibility: hidden;
		transition: transform 0.3s, visibility 0.3s;
	}

	.wp-header.is-open .wp-panel {
		transform: none;
		visibility: visible;
	}

	.wp-panel__logo {
		display: block;
		margin: 0 0 20px 10px;
	}

	.wp-panel__logo img {
		display: block;
		width: 160px;
		height: auto;
	}

	.wp-panel__menu a {
		display: block;
		padding: 9px 0;
		font-size: 15px;
		font-weight: 600;
		line-height: 20px;
		color: var(--wp-slate);
		text-decoration: none;
	}

	.wp-panel__menu .indented-menu-item > a {
		padding-left: 30px;
	}

	.wp-panel__menu .current-menu-item > a,
	.wp-panel__menu a:hover {
		color: var(--wp-blue);
	}

	body.wp-panel-open {
		overflow: hidden;
	}
}
