/*
 Theme Name:   GMB Bricks Child
 Theme URI:    https://gmb.digital/
 Description:  Used to extend the Bricks theme.
 Author:       The Team @ Grow My Business
 Author URI:   https://gmb.digital/about
 Template:     bricks
 Version:      1.1
 Text Domain:  gmb
*/

/*
 * Prevent Horizontal Overflow
 */

html {
	height: 100%;
}

body {
	min-height: 100%;
	overflow-x: hidden;
}

section.brxe-section {
    overflow-x: clip;
}

/*
 * Prevent content of elements with ratio class from stretching (e.g. images)
 */
[class*="ratio-"] {
    object-fit: cover;
    object-position: center;
}

/*
 * Prevent buttons inner text and the nav menu items from wrapping
 */
.brxe-button,
.nav-menu,
.text-button {
    white-space: nowrap;
}

/*
 * Set 'scroll to' offset for elements with ids (for in-page linking)
 */
[id] {
    scroll-margin-top: calc(var(--spacing-lrg) * 1.5);
}

/*
 * Underline default values
 */
.underline,
.trusted-by {
  position: relative;
  z-index: 1;
}

.underline::after {
  content: '';
	position: absolute;
  bottom: 0;
  left: 0;
  z-index: -1;
  
  background-image: url('/wp-content/uploads/2024/08/Underline.svg');
 	background-size: contain;
 	background-repeat: no-repeat;
  
  width: 100%;
  height: 0.4em;
  margin-bottom: -0.2em;
}

.underline.yellow::after {  
  background-image: url('/wp-content/uploads/2024/08/Yelllow_underline-1.png');
}

.underline.single::after {  
  background-image: url('/wp-content/uploads/2024/10/Line-1.png');
}

.trusted-by::before,
.trusted-by::after {
	content: '';
	position: absolute;
	bottom: 100%;
	right: 100%;
	z-index: -1;
  
	background-image: url('/wp-content/uploads/2024/10/woo.png');
 	background-size: contain;
 	background-repeat: no-repeat;
  
	width: 1em;
	height: 1em;
	margin-bottom: -0.4em;
}

.trusted-by::after {
	bottom: 100%;
	left: 100%;
  
	background-image: url('/wp-content/uploads/2024/10/heart.png');
  
	width: 1.1em;
	height: 1.1em;
	margin-bottom: -0.3em;
}

/*
 * List Styles
 */
.brxe-text ul {
    padding-left: 2em;
}

.brxe-text ul li:not(:last-child) {
    margin-bottom: 0.3em;
}

/*
 * Prevent separation between dividers and sections
 */
.bricks-shape-divider-inner[style*="bottom: 100%"] {
    bottom: calc(100% - 1px) !important;
}

/*
 * Stacking Section CSS
 */
[data-section-stack] {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-stack-group,
[data-section-stack] {
  overflow: hidden;
  position: relative;
}

.ss-dot-nav {
  width: var(--content-padding); /* Horizontal Padding of Section */

  position: absolute;
  top: 0;
  left: 0;
  z-index: 990;
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  grid-gap: 0.8rem;
}

.ss-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--color-primary);
  border-radius: 100rem;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 300ms ease, height 300ms ease;
}

.ss-dot:hover {
  opacity: 0.9;
}

.ss-dot.active {
  opacity: 1;
  height: 1.8rem;
}

@media screen and (max-width: 768px) {
  .ss-dot-nav {
    display: none;
  }
}


/*
 * Text Navigable Splide
 */
.splide-text-nav-wrap {
  width: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  grid-gap: 1.6rem;
  margin: 0 auto 6.4rem auto;

  border-radius: 100rem;
  outline: 2px solid var(--color-primary);
  outline-offset: 0.8rem;

  max-width: 90vw;
}

.splide-text-nav-wrap span.brxe-button.bricks-button {
	cursor: pointer;
}

.text-nav-splide {
  padding-bottom: var(--spacing-med);
}

@media screen and (max-width: 980px) {
  .splide-text-nav-wrap {
    display: none;
  }
}

/*
 * Enable overflow for shadows on table of contents
 */
.brxe-post-toc {
  overflow: visible;
}

/*
 * Gravity Forms Styles
 */
/* Form Styles */

.gform_wrapper form {
    --btn-bg-color: var(--color-primary);
    --btn-text-color: #fff;
    --text-color: rgba(0, 0, 0, 0.9);
    --border-color: rgba(0, 0, 0, 0.2);
    --field-bg-color: rgba(0, 0, 0, 0);
    --border-radius: 0.8rem;
    --border-width: 1px;
}

.gform_wrapper  form.light,
.light-form .gform_wrapper form {
    --btn-bg-color: #fff;
    --btn-text-color: #212121;
    --text-color: rgba(255, 255, 255, 0.9);
    --border-color: rgba(255, 255, 255, 0.2);
    --field-bg-color: rgba(255, 255, 255, 0.05);
}

.gform_wrapper input,
.gform_wrapper textarea,
.gform_wrapper select {
    background: var(--field-bg-color);
    color: #fff;
    border: var(--border-width) solid var(--border-color);
    padding: 1.2rem 1.6rem !important;
    border-radius: var(--border-radius);
    color: var(--text-color);
    line-height: 2rem;
	font-size: var(--font-size-base) !important;
}

.gform_wrapper.gravity-theme label.gfield_label {
    font-size: 0.9em;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 0.4rem;
}

.gform_wrapper select {
    appearance: none;
    -webkit-appearance: none;
    background-size: 10px auto;
    background-position: right 10px top 50%;
    background-repeat: no-repeat;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEyIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xOTVfMTczOCkiPgo8cGF0aCBkPSJNMSAxLjVMNiA2LjVMMTEgMS41IiBzdHJva2U9IiMyMTIxMjEiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMTk1XzE3MzgiPgo8cmVjdCB3aWR0aD0iMTIiIGhlaWdodD0iOCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K);
}

.gform_wrapper  form.light select,
.light-form .gform_wrapper form select {
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEyIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xOTVfMTczOCkiPgo8cGF0aCBkPSJNMSAxLjVMNiA2LjVMMTEgMS41IiBzdHJva2U9IiNmZmYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMTk1XzE3MzgiPgo8cmVjdCB3aWR0aD0iMTIiIGhlaWdodD0iOCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4);
}

.ginput_complex span {
    display: block !important;
}

.gform_wrapper input::placeholder,
.gform_wrapper textarea::placeholder,
.gform_wrapper select:not(:focus) {
    color: color-mix(in srgb, var(--text-color), transparent 40%);
}

body .gform_wrapper input:not([type="submit"]):not([type="button"]):focus,
body .gform_wrapper textarea:focus {
    border-color: var(--text-color) !important;
	color: var(--text-color) !important;
    outline: none;
}

.gform_wrapper input[type="submit"] {
	width: 100%;
}

.gform_wrapper input[type="submit"],
.gform_wrapper input[type="button"] {
    background: var(--btn-bg-color);
    color: var(--btn-text-color);
    border: none;
	border-radius: 100px !important;
    
    font-weight: 600;
    text-align: center;
    padding: 2rem 3rem !important;
    
    cursor: pointer;
    transition: filter 200ms ease;
}

.gform_wrapper input[type="submit"]:hover,
.gform_wrapper input[type="button"]:hover {
    background: color-mix(in srgb, var(--btn-bg-color), var(--color-dark) 20%);
}

.gform_required_legend,
.gform_wrapper .gform_heading {
	display: none;
}

.gform_wrapper .gform_footer {
    padding-bottom: 0 !important;
}

.gform_wrapper .gform_footer input {
    margin-bottom: 0 !important;
}

.gform_wrapper .gfield--type-html {
    font-size: 0.85em;
}

.gform_ajax_spinner {
    margin-left: 2rem;
}

.gfield_validation_message {
    display: none;
}

/*
 * Add rounded corners to images and embeds in posts
 */
 .wp-block-image img {
  border-radius: 1rem;
}

.wp-block-embed iframe {
  border-radius: 2rem;
}

/*
 * Style tippy tool tips
 */
.tippy-box {
  background: var(--color-light);
  box-shadow: 0px 2px 8px 0 rgba(0, 0, 0, 0.16);
  border-radius: 0.85rem;
  padding: 0.75rem;
}

.tippy-content {
  color: var(--color-dark);
  line-height: var(--line-height);
}

.tippy-arrow {
  color: var(--color-light);
}

/*
 * Citation styles
 */
.cite {
    font-size: 0.7em;
    vertical-align: super;
    color: var(--color-primary);
}


/*
 * Popup Content styles
 */
.brx-popup-content {
	padding: 0;
	background: transparent;
}