/* 
Theme Name: AllTeams Flex Theme
Theme URI: https://allteams.co.nz
Description: AllTeams Flex Theme is a child theme of Hello Elementor, created by Elementor team
Author: AllTeams
Author URI: https://allteams.co.nz/
Template: hello-elementor
Version: 1.0.2
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/

:root,
:before,
:after,
body {
  --adbar: 0px;
  --adbar: var(--wp-admin--admin-bar--height, 0px);
  --100vh: 100vh;
  --100vh-minus-adbar: calc(100svh - var(--adbar));
  /* Colors: */
  --primary-colour: #0b3b2b;
  --secondary-colour: #0f533d;
  --accent-colour: #92d57a;
  --button-hover: #94df7a;
  --white: #ffffff;
  --text: #000000;
  --primary-pale-colour: #f5f4f2;
  --pale-grey: #f3f3f3;
  --text-grey: #2e2e2e;
  --outsideWidth: 4vw;
  --dblOutsideWidth: calc(var(--outsideWidth) * 2);
  --tripleOutsideWidth: calc(var(--outsideWidth) * 3);
  --pageWidth-woContent: calc(var(--dblOutsideWidth) + 30vw);
  --contentWidth: calc(100vw - var(--pageWidth-woContent));
  --halfOutsideWidth: calc(var(--outsideWidth) / 2);
  --quarterOutsideWidth: calc(var(--outsideWidth) / 4);
  --headingFont: "Inter", Sans-serif;
  --body-font: "Inter", sans-serif;
  --headingFontNoClamp: calc(2.5rem + calc(calc(1vw - 7.5px) * 3.5));
  --headingFontClamp: clamp(
    40px,
    calc(2.5rem + calc(calc(1vw - 7.5px) * 3.5)),
    80px
  );
  --subheadingFontNoClamp: calc(0.625rem + calc(calc(1vw - 7.5px) * 1.65));
  --subheadingFontClamp: clamp(
    32px,
    calc(1.625rem + calc(calc(1vw - 7.68px) * 1.6493)),
    45px
  );

  /* Fonts - Clamp */
  --h1FontClamp: clamp(2.625rem, 2.1726rem + 2.2619vw, 5rem);
  --h2FontClamp: clamp(2.125rem, 2.006rem + 0.5952vw, 2.75rem);
  --h2HomeClamp: clamp(2.75rem, 2.4405rem + 1.5476vw, 4.375rem);
  --h3FontClamp: clamp(1.375rem, 1.2045rem + 0.4545vw, 1.5rem);
  --h4FontClamp: clamp(1.125rem, 1.0682rem + 0.1515vw, 1.25rem);
  --h5FontClamp: clamp(0.9375rem, 0.9091rem + 0.0758vw, 1rem);
  --h6FontClamp: clamp(1rem, 1.5227rem + 0vw, 1.125rem);
  --pFontClamp: clamp(1rem, 0.9432rem + 0.1515vw, 1.125rem);

  /* spacing */
  --verticalPad: clamp(0.625rem, 6.475vw - 2.475rem, 4rem);
  --outsidePad: clamp(0.625rem, 6.475vw - 2.475rem, 4rem);
  --dblOutsidePad: calc(2 * var(--outsidePad));
  --tripleOutsidePad: calc(3 * var(--outsidePad));
  --fullWidth: calc(100vw - var(--dblOutsidePad));
  --singlePad: clamp(0.5rem, 2.374vw - 0.636rem, 1.5rem);
  --gridGap: clamp(0.625rem, 3.264vw - 0.938rem, 2rem);
  --sidebarPad: 16px;
  --itemThin: 1600px;
  --totalGap: calc(23 * var(--gridGap));
  --borderRad: 10px;
  --boxShadow: 0px 3px 6px #00000029;
  --zeroInset: 0px 0px 0px 0px;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body > .at-flex {
  flex-grow: 1;
}
.remove-padding-top {
  padding-top: 0 !important;
}
.remove-padding-bottom {
  padding-bottom: 0 !important;
}
@media (max-width: 768px) {
  body {
    --outsidePad: 20px;
    --verticalPad: 40px;
  }
}

.bright-green {
  background-color: #92d57a;
}

.dark-green {
  background-color: #0f533d;
  color: white !important;
}

.dark-green h2 {
  color: #fff !important;
}

.white {
  background-color: #ffffff;
}

.off-white {
  background-color: #f5f4f2;
}

.at-flex h2 {
  font-weight: 500 !important;
}

/* little-tweaks */
.button-arrow svg {
  width: 40px;
  /* height: 20px; */
}

.button-arrow .elementor-button-content-wrapper {
  align-items: center;
  /* height: 20px; */
}
/* BG IMage on home section - chevrons */

.news-grid-item .news-category {
  margin-bottom: auto;
  margin-block-end: auto !important;
}
/* HEADER */
/* Top Menu */
#at_topbar {
  /* menu sizings */
  --menuPadding: 10px;
  --menuTopBar: 70px;
  /* position:relative; */
  display: flex;
  justify-content: flex-end;
  background-color: var(--e-global-color-secondary);
  transition: background-color 1000ms;
  position: relative;
  top: 0;
  top: calc(0 + var(--wp-admin--admin-bar--height));
  left: 0;
  right: 0;
  z-index: 100;
}

/* Home page header background color as its transparent*/
.home #at_topbar {
  background-color: #0f533dde;
  transition: background-color 1000ms;
  position: fixed;
}

/* on all pages we fix on scrolling */
#at_topbar.scrolling {
  position: fixed;
}
.open > #at_topbar {
  background-color: var(--e-global-color-primary);
  transition: background-color 1000ms;
}

/* Logo */
#at_topbar .at_logo {
  position: absolute;
  top: 0;
  left: var(--gridGap);
  z-index: 1;
  /* max-width:170px; */
  display: flex;
  align-items: center;
  padding: 24px;
}

#at_topbar .at_logo img {
  width: clamp(6.25rem, 6.41vw + 4.808rem, 12.5rem);
  height: auto;
  /* max-height:20vh;
  max-width:18vw; */
  transition: width 1000ms;
}
#at_topbar.scrolling {
  background-color: var(--e-global-color-secondary);
  /* border-radius: 0 0 10px 10px; */
}

#at_topbar.scrolling .at_logo {
  padding: 6px;
}

/* #at_topbar.scrolling .at_logo a{
  position:absolute;
  inset:0;
  } */

#at_topbar.scrolling .at_logo img {
  padding: 0;
  width: 52px;
}

@media (max-width: 768px) {
  #at_topbar .at_logo {
    padding: 10px;
  }
  #at_topbar .at_menu-text {
    display: none;
  }

  #at_topbar.scrolling .at_logo {
    padding: 10px;
  }

  #at_topbar.scrolling .at_logo a {
    position: relative;
    inset: 0;
  }
  #at_topbar.scrolling .at_logo img {
    padding: 0;
    height: auto;
    width: 80px;
    transition: width 1000ms;
  }
}

/* Menu Items */
#at_topbar .at_nav {
  display: flex;
  align-items: center;
  padding: 0 20px;
  /* align-content: center; */
}

#at_topbar .at_nav ul {
  display: flex;
  list-style-type: none;
  padding: 0;
  height: 100%;
  align-items: center;
}

#at_topbar li.menu-item.level-0 {
  height: 100%;
  display: flex;
  align-items: center;
}
#at_topbar li.menu-item {
  padding-right: 20px;
}

#at_topbar:hover {
  background-color: var(--e-global-color-secondary);
}

#at_topbar .at_nav ul.sub-menu li.menu-item {
  padding: 4px 0;
}

#at_topbar .menu-item:hover ul.sub-menu {
  display: block;
  position: absolute;
  top: var(--topHeaderHeight);

  width: fit-content;
  height: auto;
  background-color: var(--e-global-color-primary);
  padding: 20px;
  transform: translateX(-20px);
}

/* Quick Links */

#at_topbar #at_quick-links {
  border-left: 4px solid var(--e-global-color-accent);
}

#at_topbar #at_quick-links ul {
  display: flex;
  align-items: center;
  list-style-type: none;
  padding: 0;
}

#at_topbar #at_quick-links .at_ql-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 14px;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  font-family: "Work Sans", Sans-serif;
  font-size: 15px;
  /* font-size: clamp(0.875rem, 0.125rem + 1.5625vw, 1.125rem); */
  font-weight: 500;
}
/*Menu Icons*/
#at_topbar #at_quick-links .at_ql-item > img {
  height: 24px;
  /* filter: invert(33%) sepia(73%) saturate(908%) hue-rotate(170deg) brightness(98%) contrast(88%); */
}

#at_topbar .at_ql-item:hover {
  /* color: lightblue; */
  /* filter: invert(33%) sepia(73%) saturate(908%) hue-rotate(170deg) brightness(98%) contrast(88%); */
  filter: brightness(0) saturate(100%) invert(94%) sepia(13%) saturate(6455%)
    hue-rotate(341deg) brightness(87%) contrast(94%);
  filter: brightness(0) saturate(100%) invert(87%) sepia(8%) saturate(1937%)
    hue-rotate(53deg) brightness(90%) contrast(91%);
}
/* Search */
#at_topbar .menu-search-container {
  display: grid;
  grid-template-columns: 1fr 80px;
  align-items: center;
  background-color: #f5f5f5;
  height: 80px;
  max-width: calc(100svw - 220px);
  margin: 0;
  min-width: 20vw;
  transition: all 0.3s ease;
}

#at_menu-container .menu-search-container {
  display: grid;
  grid-template-columns: 1fr 80px;
  align-items: center;
  background-color: #f5f5f5;
  height: 60px;
  max-width: calc(100svw - 40px);
  margin: 0 auto;
  min-width: 20vw;
  transition: all 0.3s ease;
}

.menu-search-container:hover,
.menu-search-container:focus-within {
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.menu-search-container .menu-search-input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  padding: 4px 20px;
  font-size: 18px;
  color: #333;
}

.menu-search-container .menu-search-input::placeholder {
  color: #888;
  font-style: italic;
}

.menu-search-container .menu-search-icon {
  width: 100%;
  height: 100%;
  /* margin-left: 8px; */
  cursor: pointer;
  transition: transform 0.2s ease;
  mask-image: url(/wp-content/themes/hello-theme-child-master/icons/icons_microscope.svg);
  mask-size: 60%;
  background-size: 20px;
  mask-repeat: no-repeat;
  border-radius: 0px !important;
  mask-position: center;
  background-color: var(--e-global-color-primary);
}

.menu-search-icon:hover {
  transform: scale(1.1);
  background-color: var(--e-global-color-secondary);
}
#at_topbar .at_mob-only {
  display: none;
}

@media (max-width: 1299px) {
  #at_topbar .at_desk-only {
    display: none;
  }
  #at_topbar .at_mob-only {
    display: list-item;
  }
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .menu-search-container {
    min-width: 200px;
    margin: 0 10px;
  }
}

@media (max-width: 480px) {
  .menu-search-container {
    min-width: 150px;
    margin: 0 5px;
  }

  .menu-search-input {
    font-size: 12px;
  }
}

/* Integration with WordPress menu */
@media (min-width: 700px) {
  .menu-item-search {
    display: flex !important;
    align-items: center;
  }

  .menu-item-search a {
    padding: 0 !important;
    display: block !important;
    width: 100%;
  }
}
/* Integration with WordPress menu */
.at_search_mob {
  display: none;
}
@media (max-width: 699px) {
  .at_search_mob {
    display: block;
    height: 50px;
    margin: 0 0 0 14px;
  }
  .menu-search-icon {
    width: 100%;
    height: 100%;
    /* margin-left: 8px; */
    cursor: pointer;
    transition: transform 0.2s ease;
    mask-image: url(/wp-content/themes/hello-theme-child-master/icons/icons_microscope.svg);
    mask-size: 80%;
    background-size: 20px;
    mask-repeat: no-repeat;
    border-radius: 0px !important;
    mask-position: center;
    background-color: white;
  }
  .menu-search-icon:active,
  .menu-search-icon:focus,
  .menu-search-icon:hover {
    background-color: var(--e-global-color-accent);
  }
}
/* Hamburger */
#at_topbar .g-hamburger {
  position: relative;
  z-index: 0;
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: opacity 0.2s ease-in-out;
  color: #fff;
}
#at_topbar .g-hamburger .hamburger-inner,
#at_topbar .g-hamburger .hamburger-inner::before,
#at_topbar .g-hamburger .hamburger-inner::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 2px;
  border-radius: 1.5px;
  background: currentColor;
}
#at_topbar .g-hamburger .hamburger-inner {
  top: 11px;
  transition: transform 0.1s ease-in-out;
}
#at_topbar .g-hamburger .hamburger-inner::before,
#at_topbar .g-hamburger .hamburger-inner::after {
  content: "";
  transition: top 0.1s ease-in-out 0.1s, transform 0.1s ease-in-out;
}
#at_topbar .g-hamburger .hamburger-inner::before {
  top: -7.5px;
}
#at_topbar .g-hamburger .hamburger-inner::after {
  top: 7.5px;
}
#at_topbar .at_ql-item.active .g-hamburger .hamburger-inner {
  transition: transform 0.1s ease-in-out 0.1s;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}
#at_topbar .at_ql-item.active .g-hamburger .hamburger-inner::before,
#at_topbar .at_ql-item.active .g-hamburger .hamburger-inner::after {
  top: 0;
  transition: top 0.1s ease-in-out, transform 0.1s ease-in-out 0.1s;
  -webkit-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  transform: rotate(-90deg);
}

/* Mobile Dropdown*/
#at_menu-container {
  position: fixed;
  top: calc(var(--wp-admin--admin-bar--height) + var(--topHeaderHeight));
  /* top: var(--topHeaderHeight); */
  height: calc(100svh - var(--topHeaderHeight));
  right: 0;
  bottom: 0;
  left: 0;
  background-color: var(--e-global-color-primary); /* semi-transparent gray */
  display: grid;
  grid-template-columns: 1fr 500px;
  z-index: 100;
  overflow: scroll;
}

#at_menu {
  padding: 10vh var(--menuColPadding) 0;
  position: relative;
}
#menu-main-menu-1 {
  position: relative;
}

#at_menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Sub Menus*/
#at_topbar .at_nav ul.sub-menu {
  display: none;
}

#at_menu ul.sub-menu {
  visibility: hidden;
  height: 0;
  opacity: 0;
  transition: visibility 0.5s, height 0.5s, opacity 0.5s linear;
}

#at_menu li.menu-open > ul.sub-menu {
  visibility: visible;
  opacity: 1;
  height: 100%;
  padding: 20px 0;
  columns: 2;
}

#at_menu #menu-main-menu-1 {
  padding: 20px;
}

#at_menu li.level-0 {
  padding: 20px 0;
  max-width: var(--menuColWidth);
  border-bottom: 1px solid white;
  /* font-family: 'franklin-gothic-urw', sans-seriff; */
  font-size: clamp(1.5rem, 1.0714rem + 0.6696vw, 1.875rem);
  line-height: 1.2;
  font-weight: 700;
}

#at_menuli.level-0: (first-of-type) {
  border-top: 1px solid white;
}
#at_menu li.level-0:hover {
  color: var(-gold);
}

.at-mi-clicker {
  width: 20px;
  height: 20px;
  background-color: #fff;
  -webkit-mask: url(/wp-content/themes/hello-theme-child-master/icons/icon_arrow.svg)
    no-repeat 50% 50%;
  mask: url(/wp-content/themes/hello-theme-child-master/icons/icon_arrow.svg)
    no-repeat 50% 50%;
  margin: auto 0;
}
.at_mi-head:hover .at-mi-clicker,
a.at_mi-link:hover .at-mi-clicker {
  background-color: var(--e-global-color-accent);
}

.menu-open > .at_mi-head .at-mi-clicker {
  transform: rotateZ(90deg);
}

#at_menu li.level-1 {
  padding: 6px;
  font-size: clamp(1.125rem, 0.6964rem + 0.6696vw, 1.5rem);
  font-weight: 400;
}

.at_mi-head {
  display: flex;
  justify-content: space-between;
}
.at_mi-head,
a.at_mi-link {
  color: white;
}
.at_mi-head:hover,
a.at_mi-link:hover {
  color: var(--e-global-color-accent);
  cursor: pointer;
}
li.current-menu-parent .at_mi-head {
  color: var(--e-global-color-accent);
}
li.current-menu-item > a {
  color: var(--e-global-color-accent);
}

/* Menu COntacts */
#at_menu-contacts {
  display: flex;
  line-height: 1.3;
  flex-direction: column;
  align-items: center;
  color: white;
  padding: calc(var(--topHeaderHeight) + 30px) 20px 20px;
  /* font-family:"Helvetica Neue",sans-serif; */
  text-align: center;
}
#at_menu-contacts a:hover {
  color: var(--e-global-color-accent);
}
#at_menu-contacts a {
  color: white;
}

#at_menu-contacts .at_menu-logo img {
  width: clamp(9.375rem, 6.41vw + 7.933rem, 15.625rem);
}
.at_menu-socials a {
  padding: 10px;
}
.at_menu-socials a i:before {
  font-size: 30px;
}

span.at_menu-contact-title {
  color: white;
  font-weight: bold;
  /* font-family: 'Helvetica Neue', sans-serif; */
}
/* Desktop Sub Menus */
@media (min-width: 1300px) {
  #at_menu .at_menu-wrap li:hover ul.sub-menu {
    display: block;
    columns: 2;
    padding: 20px 0;
    margin: 0;
  }
  #at_menu .at_menu-wrap li:hover {
    /* background-color:red; */
  }

  .at-mi-clicker {
    display: none;
  }
  #at_menu li.level-0 {
    position: absolute;
    left: var(--menuColWidth);
    padding-left: var(--menuColPadding);
    padding-top: 8px;
    top: 0;
    height: 100%;
  }

  #at_menu li.level-0 > ul {
    position: absolute;
    left: var(--menuColWidth);
    padding-left: var(--menuColPadding);
    padding-top: 8px;
    top: 0;
    height: 100%;
  }
}

@media (max-width: 1299px) {
  #at_menu-contacts {
    /* display:none!important; */
  }
  #at_menu-container {
    grid-template-columns: 1fr;
  }
  #at_menu-contacts {
    display: flex;
    line-height: 1.3;
    flex-direction: column;
    align-items: center;
    color: white;
    gap: 10px;
    padding: 50px 20px 20px;
    /* font-family: "Helvetica Neue",sans-serif; */
    text-align: center;
  }
}

@media (max-width: 768px) {
  #at_topbar nav.at_nav {
    line-height: 1 !important;
  }

  nav.at_nav .at_menu-text {
    display: none;
  }
  #at_topbar #at_quick-links {
    height: 60px;
  }
  #at_topbar #at_quick-links ul {
    padding: 0 0 0 6px;
    margin: auto 0;
    height: 100%;
  }

  #at_menu.submenu-open ul#menu-main-menu-1 > li.menu-closed {
    display: none;
  }
  #at_menu.submenu-open li.menu-open {
    display: block;
    position: relative;
  }
  /* display under to item */
  #at_menu.submenu-open li.menu-open > ul.sub-menu {
    display: block;
    position: relative;
    left: 0;
    columns: 1;
  }
  /* reverse so arrow on the left */
  #at_menu.submenu-open li.menu-open > .at_mi-head {
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
  }
  #at_menu.submenu-open li.menu-open > .at_mi-head > .at-mi-clicker {
    transform: rotateZ(180deg);
  }
}
/* Related Pages */

#oc-related article {
  position: relative;
}
#oc-related .elementor-post__text {
  position: absolute;
  bottom: var(--outsidePad);
  left: var(--outsidePad);
}

#oc-related .elementor-post__text a {
  text-align: center;
  color: #fff;
}

#related-pages .elementor-post__thumbnail:after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  background: transparent
    linear-gradient(180deg, rgb(0, 0, 0, 0) 0%, rgb(0, 0, 0, 0.5) 100%) 0% 0%
    no-repeat padding-box;
}

#related-pages .elementor-post__thumbnail:hover {
  background: none !important;
}

/* end related items*/
