/*
Theme Name: Flux
Theme URI:
Author: Kings Digital
Author URI: https://www.kingsdigital.com.au/
Description: Flux is a minimalist, versatile and adaptable theme designed to be applicable to any website. It contains a collection of templates and patterns tailor to different needs and to speed up site building process. It is fully compatible with the site editor, and takes advantage of new design tools introduced in WordPress 6.4. It also contains custom code designed to improve site performance and speed.
Requires at least: 6.0
Tested up to: 6.4.3
Requires PHP: 5.7
Version: 1.1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flux
Tags: blog, news, portfolio, one-column, wide-blocks, accessibility-ready, block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, rtl-language-support, sticky-post, style-variations, threaded-comments, translation-ready
*/

/* CSS Reset
---------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  box-sizing: border-box;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}

b,
strong {
  font-weight: 600;
}

/* Standardize form styling
--------------------------------------------- */

input,
button,
textarea,
select {
  font: inherit;
}

:where(:focus-visible, :focus) {
  outline-style: dotted;
  outline-width: 1px;
  outline-offset: 3px;
  outline-color: var(--wp--custom--color--ring);
}

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
  -webkit-appearance: none;
}

input:not([type="submit"]),
select,
textarea {
  color: var(--wp--preset--color--text);
  border-radius: 5px;
  border: 1px solid var(--wp--custom--color--border);
  overflow: hidden;
  width: 100%;
  background-color: var(--wp--preset--color--gray-50);
}

input:not([type="submit"]),
textarea {
  font-size: var(--wp--preset--font-size--small);
}

input:not([type="submit"]),
select:not([multiple]),
select[multiple] option,
textarea {
  padding: 1rem;
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
  width: auto;
}

li:has(input:is([type="checkbox"], [type="radio"])) {
  display: grid;
  grid-template-columns: 1em auto;
  gap: 0.5rem;
}

.list-checkbox-wrap .nf-field-element li input,
.list-image-wrap .nf-field-element li input,
.list-radio-wrap .nf-field-element li input {
  margin: 0;
}

.list-checkbox-wrap .nf-field-element li label,
.list-image-wrap .nf-field-element li label,
.list-radio-wrap .nf-field-element li label {
  margin-inline-start: 0.5rem;
}

label {
  width: 100%;
  display: block;
}

/* Helper styles that can't be done via theme.json
---------------------------------------------------------------------------- */
[hidden] {
  display: none !important;
}
/* Ninja Forms styles
---------------------------------------------------------------------------- */
.nf-form-fields-required {
  display: none;
}

.nf-after-field,
.nf-field-description {
  font-size: var(--wp--preset--font-size--small);
}

/* buttons */
input[type="submit"],
.submit-container
  .nf-field-element
  :is(input[type="button"], input[type="submit"]),
.nf-field-element :is(button) {
  appearance: none;
  background: var(--wp--custom--button--primary-background);
  border-color: var(--wp--custom--button--primary-border-color);
  border-radius: var(--wp--custom--button--border-radius);
  border-style: solid;
  border-width: var(--wp--custom--button--border-width);
  box-shadow: none;
  color: var(--wp--custom--button--primary-text) !important;
  cursor: pointer;
  font-weight: 700;
  outline: none;
  padding-block: 0.5rem;
  padding-inline: 1rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.submit-wrap {
  max-width: max-content;
}
input[type="submit"]:hover,
input[type="submit"]:active,
.submit-container
  .nf-field-element
  :is(input[type="button"], input[type="submit"]):hover,
.submit-container
  .nf-field-element
  :is(input[type="button"], input[type="submit"]):active,
.submit-container
  .nf-field-element:hover
  :is(input[type="button"], input[type="submit"]),
.submit-container
  .nf-field-element:focus-within
  :is(input[type="button"], input[type="submit"]),
.nf-field-element :is(button):hover,
.nf-field-element :is(button):active {
  background: var(--wp--custom--button--primary-background-hover);
  border-color: var(--wp--custom--button--primary-border-color-hover);
  color: var(--wp--preset--color--bma-dark) !important;
}

.submit-container .nf-field-element {
  display: inline-flex;
  position: relative;
}
.submit-container
  .nf-field-element
  :is(input[type="button"], input[type="submit"], button) {
  padding-inline-end: 2.75rem;
}

.submit-container .nf-field-element::after {
  background-color: var(--wp--preset--color--bma-light);
  content: "";
  height: 1.25rem;
  inset-block-start: 50%;
  inset-inline-end: 1rem;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M9.41042 3.57733C9.73586 3.25189 10.2635 3.25189 10.5889 3.57733L16.4223 9.41066C16.7477 9.7361 16.7477 10.2637 16.4223 10.5892L10.5889 16.4225C10.2635 16.7479 9.73586 16.7479 9.41042 16.4225C9.08498 16.0971 9.08498 15.5694 9.41042 15.244L13.8212 10.8333H4.16634C3.7061 10.8333 3.33301 10.4602 3.33301 9.99992C3.33301 9.53968 3.7061 9.16658 4.16634 9.16658H13.8212L9.41042 4.75584C9.08498 4.4304 9.08498 3.90277 9.41042 3.57733Z' fill='black'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-size: contain;
  pointer-events: none;
  position: absolute;
  transform: translateY(-50%) translateX(0);
  transition: transform 0.3s ease;
  width: 1.25rem;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M9.41042 3.57733C9.73586 3.25189 10.2635 3.25189 10.5889 3.57733L16.4223 9.41066C16.7477 9.7361 16.7477 10.2637 16.4223 10.5892L10.5889 16.4225C10.2635 16.7479 9.73586 16.7479 9.41042 16.4225C9.08498 16.0971 9.08498 15.5694 9.41042 15.244L13.8212 10.8333H4.16634C3.7061 10.8333 3.33301 10.4602 3.33301 9.99992C3.33301 9.53968 3.7061 9.16658 4.16634 9.16658H13.8212L9.41042 4.75584C9.08498 4.4304 9.08498 3.90277 9.41042 3.57733Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.submit-container .nf-field-element:hover::after,
.submit-container .nf-field-element:focus-within::after {
  background-color: var(--wp--preset--color--bma-dark);
  transform: translateY(-50%) translateX(0.25rem);
}
.ninja-forms-field:not([type="button"]):not([type="submit"]) {
  border-radius: 0.5rem 0.5rem 2rem 0.5rem;
  color: var(--wp--preset--color--bma-sage) !important;
  font-weight: 500;
}
.ninja-forms-field::placeholder {
  color: var(--wp--preset--color--bma-sage);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 500;
}

.nf-field-label label {
  color: var(--wp--preset--color--secondary);
}
.nf-error-msg,
.ninja-forms-req-symbol {
  color: var(--wp--preset--color--status-error);
}

.nf-error.listimage-wrap .nf-field-element ul,
.nf-error .ninja-forms-field {
  border-color: var(--wp--preset--color--status-error);
}
.nf-field-element p {
  margin: 0;
  text-align: right;
  font-size: var(--wp--preset--font-size--small);
  line-height: 1.5;
}
select.ninja-forms-field {
  color: var(--wp--preset--color--bma-sage);
  font-size: var(--wp--preset--font-size--small);
}
.list-select-wrap .nf-field-element:after {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M16.59 8.59009L12 13.1701L7.41 8.59009L6 10.0001L12 16.0001L18 10.0001L16.59 8.59009Z' fill='%2348665E'/%3E%3C/svg%3E");
  height: 1rem;
  width: 1rem;
  display: block;
  z-index: 9;
  position: absolute;
  top: 50%;
  right: 20px;
  background-position: center center;
  transform: translateY(-50%);
}
select.ninja-forms-field {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
/* Utility classes
---------------------------------------------------------------------------- */
.font-body,
.body-font {
  font-family: var(--wp--preset--font-family--body);
}

.font-heading,
.heading-font {
  font-family: var(--wp--preset--font-family--heading);
}

.font-bold {
  font-weight: 700;
}

.truncate {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Theme color utility classes
--------------------------------------------- */
.w-full {
  width: 100%;
}
.mw-auto-calc {
  max-width: calc(100vw - 20rem);
}
.m-auto {
  margin: auto;
}
.mr-auto {
  margin-right: auto;
  margin-left: 0 !important;
}
.ml-auto {
  margin-right: 0 !important;
  margin-left: auto;
}
.mw-full {
  max-width: 100%;
}

.color-primary {
  color: var(--wp--preset--color--primary);
}

.color-secondary {
  color: var(--wp--preset--color--secondary);
}

.color-bma-khaki {
  color: var(--wp--preset--color--bma-khaki);
}

.color-bma-light {
  color: var(--wp--preset--color--bma-light);
}

.color-bma-dark {
  color: var(--wp--preset--color--bma-dark);
}

.color-bma-mustard {
  color: var(--wp--preset--color--bma-mustard);
}

.color-bma-sage {
  color: var(--wp--preset--color--bma-sage);
}

.color-accent {
  color: var(--wp--preset--color--accent);
}

.background-primary {
  background-color: var(--wp--preset--color--primary);
}

.background-secondary {
  background-color: var(--wp--preset--color--secondary);
}

.background-bma-khaki {
  background-color: var(--wp--preset--color--bma-khaki);
}

.background-bma-light {
  background-color: var(--wp--preset--color--bma-light);
}

.background-bma-dark {
  background-color: var(--wp--preset--color--bma-dark);
}

.background-bma-mustard {
  background-color: var(--wp--preset--color--bma-mustard);
}

.background-bma-sage {
  background-color: var(--wp--preset--color--bma-sage);
}

.background-accent {
  background-color: var(--wp--preset--color--accent);
}

.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}

/* Global block styles
---------------------------------------------------------------------------- */

html {
  scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + 4rem);
}

/* Scroll reveal animations
---------------------------------------------------------------------------- */
.flux-scroll-reveal-enabled .flux-scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 2rem, 0);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--flux-scroll-reveal-delay, 0ms);
  will-change: opacity, transform;
}

.flux-scroll-reveal-enabled main .is-visible,
.flux-scroll-reveal.is-visible,
.flux-scroll-reveal-disabled .flux-scroll-reveal,
.flux-scroll-reveal-unsupported .flux-scroll-reveal {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .flux-scroll-reveal-enabled .flux-scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Header */
:where(header, header a) {
  transition: all ease 0.3s;
}

header {
  position: sticky;
  width: 100%;
  max-width: 100%;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 100; /* Adjust as needed to ensure the navbar is above other content */
  margin-block-start: 0;
  margin-block-end: 0;
}

header.is-style-transparent-overlay {
  --_bg: transparent;
  position: fixed;
}

/* Control header styling when it's sticking */
header {
  --_bg: var(--wp--custom--color--nav-bg, inherit);
  --_nav-link-color: var(--wp--custom--color--nav-link, inherit);
  background: var(--_bg);
  color: var(--_nav-link-color);
}

header.sticking {
  --_bg: var(--wp--custom--color--nav-bg-sticking, inherit);
  --_nav-link-color: var(--wp--custom--color--nav-link-sticking, inherit);
}

@media screen and (min-width: 1201px) {
  .entry-content
    > :where(
      .wp-block-group,
      .wp-block-cover,
      .wp-block-columns,
      .wp-block-query,
      .wp-block-post-content,
      .alignfull,
      .alignwide
    ) {
    padding-left: 15rem !important;
  }
}

@media screen and (max-width: 767px) {
  .wp-block-buttons.is-content-justification-right {
    justify-content: flex-start;
  }
}
img {
  pointer-events: none;
}
