/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* Density scale for padding/margins */
:root {
	--density: 1;
}

@media (max-width: 768px) {
	:root {
		--density: 0.9;
	}
	.brxe-button {
  		min-height: 4.4rem; /* 44px tap target */
	}	
}
	
/* Bricks headers default margins */
h1.brxe-heading {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

h2.brxe-heading {
  margin-top: 3.5rem;
  margin-bottom: 2rem;
}

h3.brxe-heading {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.brxe-heading:first-child {
  margin-top: 0;
}

/* Push footer to the bottom of the screen */
.brx-body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Sticky header box shadow */
header.scrolling {
	box-shadow: var(--shadow-l);
}

/* Text link styling */
.brxe-text a, .brxe-text-link {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
	text-decoration-color: color-mix(in srgb, currentColor 60%, transparent);
	transition:
		color 0.2s ease,
		text-decoration-color 0.2s ease;
}

/* Text link hover styling */
.brxe-text a:hover, .brxe-text-link:hover {
	text-decoration-color: currentColor;
}

/* Button styling */
.brxe-button {
	white-space: nowrap;
	box-shadow: var(--shadow-s);
	transition:
		background-color 0.12s cubic-bezier(0.4, 0, 0.2, 1),
		color            0.12s cubic-bezier(0.4, 0, 0.2, 1),
		box-shadow       0.16s cubic-bezier(0.4, 0, 0.2, 1),
		transform        0.12s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button hover styling */
.brxe-button:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-m);
}

/* Button active styling */
.brxe-button:active {
	transform: translateY(0px);
	box-shadow: var(--shadow-s);
}

/*** Desktop menu ***/

/* Dropdown shadow and radius */
.nav-desktop .brxe-dropdown > .brxe-div {
	border-radius: 0.5rem;
	box-shadow: var(--shadow-l);
}

/* Add padding / clickable area to menu items */
.nav-desktop .menu-item > a, .nav-desktop .brxe-dropdown {
	display: inline-flex;
	gap: 0.4em;          /* space between text and arrow */
	padding: 0.75em 1em;
}

/* Prepare menu item */
.nav-desktop .menu-item > a {
	position: relative;
	text-decoration: none;
}

/* Setup hover bar */
.nav-desktop .menu-item > .brxe-text-link::after {
	content: "";
	position: absolute;
	left: 0.8em;
	right: 0.8em;
	bottom: calc(1em - 6px);
	height: 2px;
	background-color: currentColor;

	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.25s ease;
}

/* Display hover bar */
.nav-desktop > .brxe-block > .menu-item > a:hover::after {
	transform: scaleX(1);
}

/* Display bar for the current page */
.nav-desktop > .brxe-block > .menu-item > a[aria-current="page"]::after {
	transform: scaleX(1);
}

.nav-desktop .brxe-dropdown > .brxe-div {
	left: 0px;
}

/* Setup dropdown items */
.nav-desktop .brxe-dropdown .menu-item > a {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 0.5em 0.75em;
	border-radius: 0.375rem;
}

/* Show background on current item */
.nav-desktop .brxe-dropdown .menu-item > a[aria-current="page"] {
	background-color: color-mix(in srgb, currentColor 6%, transparent);
}

/* Show background on hover & current item */
.nav-desktop .brxe-dropdown .menu-item > a:hover {
	background-color: color-mix(in srgb, currentColor 12%, transparent);
}

/*** Mobile menu ***/

/* Add padding / clickable area to menu items */
.nav-mobile .menu-item > a:not(.brxe-button), .nav-mobile .brxe-dropdown {
	display: inline-flex;
	gap: 0.4em;          /* space between text and arrow */
	padding: 0.9em 1em;
	text-decoration: none;
}

/* Dropdown styling */
.nav-mobile .menu-item > a, .nav-desktop .brxe-dropdown {
	display: flex;
	align-items: center;
	justify-content: space-between;

	padding: 0.5em 1em;
	min-height: 48px;
}

.nav-mobile .brxe-dropdown .menu-item > a {
	margin-left: 0em;
	padding: 0.5em 1em;
	font-size: 90%;
}

/* Show background on active */
.nav-desktop .menu-item.current-menu-item > a {
	background-color: color-mix(in srgb, currentColor 8%, transparent);
}

/* Shadow S – desktop */
:root {
	--shadow-s: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Shadow S – mobile */
@media (max-width: 767px) {
	:root {
		--shadow-s: 0 1px 2px rgba(0, 0, 0, 0.06);
	}
}
	
/* Shadow M – desktop */
:root {
	--shadow-m:
		0 6px 14px rgba(0, 0, 0, 0.14),
		0 2px 6px rgba(0, 0, 0, 0.10);
}

	/* Shadow M – mobile */
@media (max-width: 767px) {
:root {
	--shadow-m:
		0 4px 12px rgba(0, 0, 0, 0.12),
		0 1px 4px rgba(0, 0, 0, 0.08);
	}
}
/* Shadow L – desktop */
:root {
	--shadow-l:
		0 12px 24px rgba(0, 0, 0, 0.16),
		0 4px 8px rgba(0, 0, 0, 0.10);
}

/* Shadow L – mobile */
@media (max-width: 767px) {
	:root {
		--shadow-l:
			0 8px 16px rgba(0, 0, 0, 0.14),
			0 3px 6px rgba(0, 0, 0, 0.08);
	}
}