/*
Theme Name: Totino Wines Theme
Author: Hand to Sky
Author URI: https://handtosky.com.au/
Description: Custom Wordpress theme for Totino Wines
Version: 1.0.0
*/

/* //// Theme setup /////////////////////////////////////////////////*/
:root {
  --primary: #b29146;
  --light: #fff;
  --dark: #0d0d0d;

  --heading: "Work Sans", Arial, Helvetica, sans-serif;
  --font: "Inter", Arial, Helvetica, sans-serif;

  --padding-hori: 42px;

  --trans: 0.3s all ease-in-out;

  --wrapper-padding-inline: 0px;
  --wrapper-max-width: 1280px;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font);
  font-weight: 300;
  font-size: 1rem;
  color: var(--dark);
  line-height: 1.5em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 300;
  margin: 0;
  padding: 0;
  color: var(--primary);
  font-family: var(--heading);
}

h1 b,
h1 strong,
h2 b,
h2 strong,
h3 b,
h3 strong,
h4 b,
h4 strong,
h5 b,
h5 strong,
h6 b,
h6 strong {
  font-weight: 600;
}

.elementor-widget-text-editor h4 {
  line-height: 1.3em;
  padding-top: 10px;
  padding-bottom: 5px;
}

:focus {
  outline: 0;
}

p:last-child {
  margin-bottom: 0;
}

b {
  font-weight: bold;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--trans);
}

a:hover,
a:focus-within {
  outline: 0px;
}

.btn {
  font-family: var(--heading);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--light);
  background: var(--primary);
  padding: 10px 25px;
  border-radius: 0;
  line-height: 1.3em;
  text-transform: uppercase;
  letter-spacing: 3px;
  transition: var(--trans);
  border: 2px solid var(--primary);
}

.btn:hover,
.btn:focus-within {
  background-color: transparent;
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
}

.elementor-slideshow__title {
  display: none !important;
}

/* //// Header /////////////////////////////////////////////////*/
/* Header */
.navbar {
  background-color: var(--light);
  padding-inline: var(--padding-hori);
  padding-block: 10px;
  min-height: 100px;
}

body .logo {
  max-width: 125px;
  width: 100%;
}

.navbar-brand {
  position: absolute;
  z-index: 10;
  top: 50%;
  transform: translate(0%, -25%);
}

.navbar-brand,
.navbar-brand h1 {
  padding: 0;
  margin: 0;
  line-height: 0;
  font-size: 0;
}

.header-wrapper {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 125px 1fr;
  gap: 10px;
  align-items: center;
}

.navbar-header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 0 auto;
}

.header-right {
  display: flex;
  justify-content: flex-end;
}

.navbar-expand-md .navbar-nav .nav-link,
body .nav-link {
  color: var(--dark);
  font-family: var(--heading);
  text-transform: uppercase;
  font-size: 1.125rem;
  font-weight: 300;
  padding-block: 0;
  padding-inline: 10px;
}

.navbar-expand-md .navbar-nav .nav-link:hover,
.navbar-expand-md .navbar-nav .nav-link:focus-within,
.navbar-expand-md .navbar-nav .active .nav-link {
  color: var(--primary);
  background-color: transparent;
}

.navbar-expand-md .navbar-nav li:first-of-type .nav-link {
  padding-inline-start: 0;
}

.header-wrapper .icons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  padding-left: 1rem;
  position: relative;
  top: -3px;
}

.header-wrapper .icons a {
  font-size: 13px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing);
}

.header-wrapper .icons a {
  width: 100%;
  height: auto;
  max-width: 18px;
}

.header-wrapper .icons a img {
  width: 100%;
  filter: invert(58%) sepia(39%) saturate(556%) hue-rotate(4deg) brightness(93%) contrast(89%);
}

.header-wrapper .icons a:hover,
.header-wrapper .icons a:focus-within {
  opacity: 0.75;
}

/************** Hamburger menu toggle ************************/
.navbar-toggler {
  display: block;
  position: relative;
  width: 34px;
  overflow: hidden;
  background-color: transparent !important;
  border: 0px !important;
  outline: 0 !important;
  box-shadow: none !important;
  padding: 0px !important;
  height: 24px;
  z-index: 9999;
}

.navbar-toggler span {
  position: absolute;
  -webkit-transition: 0.3s cubic-bezier(0.8, 0.5, 0.2, 1.4);
  transition: 0.3s cubic-bezier(0.8, 0.5, 0.2, 1.4);
  height: 2px;
  background-color: var(--primary);
  width: 100%;
  box-shadow: none !important;
}

.menu-opened .navbar-toggler span {
  background-color: var(--light);
}

.navbar-toggler span:nth-child(1) {
  top: 0;
  left: 0;
}

.navbar-toggler span:nth-child(2) {
  top: 11px;
  left: 0;
}

.navbar-toggler span:nth-child(3) {
  bottom: 0;
  left: 0;
}

.navbar-toggler.active span:nth-child(1) {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  top: 12px;
}

.navbar-toggler.active span:nth-child(2) {
  -webkit-transform: scale(0);
  transform: scale(0);
  -webkit-transition-duration: 50ms;
  transition-duration: 50ms;
}

.navbar-toggler.active span:nth-child(3) {
  top: 12px;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.offcanvas {
  top: 0;
  transform: translateX(-50%);
  width: 100%;
  background-color: black;
  visibility: hidden;
  opacity: 0;
  padding: 140px 10px;
  transition: var(--trans);
}

.offcanvas.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.offcanvas .nav-link {
  display: inline-block;
  color: var(--light);
  padding-block: 0 15px;
}

.offcanvas .navbar-nav .dropdown-menu {
  position: relative !important;
  background-color: transparent;
  border: 0px;
  padding-block: 0;
  margin: -5px 0 10px 0 !important;
  transform: none !important;
}

.offcanvas .dropdown-item {
  color: var(--light);
  padding-inline: 0;
  font-weight: 300;
}

@media screen and (max-width: 991px) {
  .navbar-expand-md .navbar-toggler {
    display: block !important;
  }
}


/* //// Footer /////////////////////////////////////////////////*/
footer ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

footer ul li a {
  display: inline-block;
  margin-bottom: 4px;
}

footer a {
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: light;
  color: var(--light);
}

footer .copy,
footer .copy p {
  font-size: 14px;
  color: var(--light);
  display: inline-block;
}

footer .copy a {
  color: var(--light);
  cursor: pointer;
  text-decoration: underline !important;
}

footer a:hover,
footer a:focus-within {
  color: var(--light);
  opacity: 0.65;
}

/* //// Global /////////////////////////////////////////////////*/
/* --------Home ------- */
.heading-gold b,
.heading-gold strong {
  color: var(--primary);
}

/* --------Container Break ------- */
@media (min-width: 600px) {
  body:not(.elementor-editor-active) .full-width-split-screen {
    display: grid;
    grid-template-columns:
      minmax(var(--wrapper-padding-inline), 1fr) minmax(0, calc(var(--wrapper-max-width) / 2)) minmax(0, calc(var(--wrapper-max-width) / 2)) minmax(var(--wrapper-padding-inline), 1fr);

    position: relative;
  }

  /* if the image is on the right, it covers the entire right half */
  body:not(.elementor-editor-active) .full-width-split-screen>.e-con:last-child {
    grid-column: 3 / -1;
  }

  /* make sure text doesn't touch the edge of the viewport 
   and the content is vertically centered */
  body:not(.elementor-editor-active) .full-width-split-screen>.e-con:first-child {
    display: grid;
    align-content: start;
    justify-items: start;
  }

  /* if the non-image is first, place it in the second column
     (first column is empty to emulate the .wrapper) */
  body:not(.elementor-editor-active) .full-width-split-screen>.e-con:first-child {
    padding-left: 0;
    grid-column: 2 / 3;
  }
}

/* //// Elements /////////////////////////////////////////////////*/

/* //// Posts /////////////////////////////////////////////////*/
.posts-container .posts {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-gap: 4rem 2rem;
  margin-bottom: 2rem;
}

.archive-post {
  display: flex;
  flex-direction: column;
  background-color: #f6f6f6;
  transition: var(--trans);
  position: relative;
}

.post-image {
  position: relative;
  background-size: cover;
  background-position: center;
}

.post-image:before {
  display: block;
  content: "";
  width: 100%;
  padding-top: calc(1 / 2 * 100%);
}

.post-inner {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.posts-container .title,
.posts-container .title a {
  font-size: 1.5rem;
  text-transform: uppercase;
  line-height: 1.2em;
  color: var(--dark);
  margin-bottom: 5px;
}

.posts-container .post-meta {
  font-size: 0.9rem;
  color: var(--primary);
  font-family: var(--heading);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light);
}

.posts-container .post-meta b {
  font-weight: 600;
}

.posts-container .post-meta span {
  display: block;
}

.post-excerpt {
  font-size: 0.9rem;
  padding-bottom: 30px;
}

.posts-container .btn {
  position: absolute;
  margin-top: auto;
  bottom: -20px;
}

@media (min-width: 992px) {
  .posts-container .posts {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* -------Single Posts */
.post-sidebar .elementor-element h5 {
  font-size: 1.25rem;
  color: var(--dark);
  font-family: var(--heading);
  font-weight: 500;
  margin-bottom: 10px;
  padding-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 3px;
  border-bottom: 2px solid var(--primary);
}

.post-sidebar .elementor-element ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.post-sidebar .elementor-element ul li a {
  margin-bottom: 5px;
  padding-bottom: 5px;
  display: block;
  border-bottom: 1px solid #ccc;
  color: var(--dark);
}

.post-sidebar .elementor-element ul li a:hover,
.post-sidebar .elementor-element ul li a:focus-within {
  color: var(--primary);
}

/* //// Projects /////////////////////////////////////////////////*/

/* //// Woocommerce /////////////////////////////////////////////////*/
/* -----Buttons ---- */
body.woocommerce div #respond input#submit,
body.woocommerce div a.button,
body.woocommerce div button.button,
body.woocommerce div input.button,
body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link),
body .wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link {
  font-family: var(--heading);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--light);
  background: var(--primary) !important;
  padding: 10px 25px;
  border-radius: 0;
  line-height: 1.3em;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--trans);
  border: 2px solid var(--primary);
}

body.woocommerce #respond input#submit:hover,
body.woocommerce a.button:hover,
body.woocommerce button.button:hover,
body.woocommerce input.button:hover,
body.woocommerce #respond input#submit:focus-within,
body.woocommerce a.button:focus-within,
body.woocommerce button.button:focus-within,
body.woocommerce input.button:focus-within,
body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link):hover,
body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link):focus-within,
.wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link:hover,
.wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link:focus-within {
  background-color: transparent !important;
  color: var(--primary) !important;
}


body .wc-block-grid__product .wc-block-grid__product-image:not(.wc-block-components-product-image),
.wc-block-grid__product .wc-block-grid__product-title {
  font-family: "Work Sans", Sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.3em;
  letter-spacing: 2px;
}

body .wc-block-grid__product-price {
  color: var(---primary);
  font-family: "Work Sans", Sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* --------Custom Loop */
.prod-tax-wrapper {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  align-items: center;
  background-color: #fff;
}

.prod-tax-wrapper:nth-child(even) {
  box-shadow: 0 0 0 100vmax #F0F1F3;
  clip-path: inset(0 -100vmax);
  background-color: #F0F1F3;
  padding: 4rem 0;
}

.prod-tax-wrapper:last-of-type {
  margin-bottom: 0;
}

.prod-tax-wrapper h4 a {
  font-size: 2.5rem;
  text-transform: uppercase;
  line-height: 1.2em;
  color: var(--dark);
  font-weight: 400;
  letter-spacing: 3px;
  margin-bottom: 3rem;
  display: inline-block;
}

.prod-tax-prod-container {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 40px;
  padding-bottom: clamp(4rem, -2.8889rem + 11.1111vw, 6rem);
}

.prod-tax-prod,
.prod-tax-prod>a {
  display: flex;
  flex-direction: column;
  align-content: center;
  text-align: center;
}

.prod-tax-prod a.prod-inner {
  display: flex;
  flex-direction: column;
  padding-bottom: 35px;
}

.prod-tax-prod .prod-img {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
}

.prod-tax-prod .prod-img:before {
  display: block;
  content: "";
  width: 100%;
  padding-top: calc(1 / 1 * 100%);
}

.prod-tax-prod a h3 {
  font-family: "Work Sans", Sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.3em;
  letter-spacing: 2px;
  color: var(--dark);
  margin-block: 1.5em 12px;
}

body .prod-tax-prod .price {
  color: var(--primary) !important;
  font-family: "Work Sans", Sans-serif;
  font-size: 1.125rem !important;
  font-weight: 600;
  text-transform: uppercase;
}

body.woocommerce .prod-tax-prod-container .prod-tax-prod a.button {
  margin-top: auto !important;
  align-self: center;
}


/* -------Single Product */
.cat-title {
  font-size: 3rem;
  font-weight: 300;
  text-transform: uppercase;
  line-height: 1.2em;
  letter-spacing: 15px;
  color: var(--light);
  text-align: center;
}

/* //// Gravity Forms /////////////////////////////////////////////////*/
body .gform-theme--foundation .gfield .ginput_password,
body .gform-theme--foundation .gfield input,
body .gform-theme--foundation .gfield select,
.gform-theme--foundation .gfield textarea {
  border: 1px solid #ccc !important;
  border-radius: 0px;
  outline: 0;
  box-shadow: none;
}

body .gform-theme--foundation .gfield .ginput_password.large,
body .gform-theme--foundation .gfield input.large,
body .gform-theme--foundation .gfield select.large {
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 10px;
  min-height: 50px;
}

.gfield_label.gform-field-label {
  font-size: 1.2rem !important;
}

.gform_required_legend {
  display: none !important;
}

.gform-theme.gform-theme--framework.gform_wrapper .button:where( :not(.gform-theme-no-framework):not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)),
.gform-theme.gform-theme--framework.gform_wrapper .gform-theme-button:where( :not(.gform-theme-no-framework):not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)),
.gform-theme.gform-theme--framework.gform_wrapper :where(:not(.mce-splitbtn))>button:not([id*="mceu_"]):not(.mce-open):where( :not(.gform-theme-no-framework):not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)),
.gform-theme.gform-theme--framework.gform_wrapper button.button:where( :not(.gform-theme-no-framework):not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)),
.gform-theme.gform-theme--framework.gform_wrapper input:is([type="submit"], [type="button"], [type="reset"]).button:where( :not(.gform-theme-no-framework):not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)),
.gform-theme.gform-theme--framework.gform_wrapper input:is([type="submit"], [type="button"], [type="reset"]):where( :not(.gform-theme-no-framework):not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)),
.gform-theme.gform-theme--framework.gform_wrapper input[type="submit"].button.gform_button:where( :not(.gform-theme-no-framework):not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)) {
  background-color: var(--primary) !important;
  color: var(--light) !important;
  font-size: 1.25rem !important;
  font-family: var(--heading) !important;
  font-weight: 500 !important;
  padding: 10px 35px !important;
  border-radius: 0 !important;
  line-height: 1.3em !important;
  letter-spacing: 5px !important;
  text-transform: uppercase !important;
}

body .gform-theme--foundation form:has(#gform_2) .gform_footer,
body .gform-theme--foundation form:has(#gform_2) .gform_page_footer {
  margin-block-start: 0px !important;
}

body .gform-theme--framework .gfield_list_group_item::before,
body .gform-theme--framework .gform-field-label:where(:not([class*="gform-field-label--type-"])) {
  font-size: 14px !important;
  font-weight: 400 !important;
}

/* //// Media Queries /////////////////////////////////////////////////*/
@media (max-width: 991px) {
  .navbar-expand-md .navbar-collapse {
    display: none !important;
  }

  .cat-title {
    font-size: 2.25rem;
    letter-spacing: 7px;
  }
}

@media (max-width: 767px) {
  :root {
    --padding-hori: 20px;
  }

  body .logo {
    max-width: 100px;
  }

  .header-wrapper {
    grid-template-columns: 1fr 2fr 1fr;
  }
}

@media (min-width: 768px) {
  .navbar-expand-md .navbar-collapse {
    justify-content: flex-start;
  }

  .navbar-expand-md .header-right .navbar-collapse {
    justify-content: flex-end;
  }

  .page-overlay {
    width: 50vw;
  }
}

@media (min-width: 992px) {
  .page-overlay {
    width: 33vw;
  }

  .dropdown .dropdown-menu {
    transition: 0.2s all ease;
    display: block;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    padding: 1rem;
    background-color: var(--primary);
  }

  .dropdown:hover>.dropdown-menu {
    visibility: visible;
    opacity: 1;
    transition: 0.3s all ease;
    display: block;
    margin-top: 0;
  }

  .dropdown-item {
    color: var(--light);
    padding: 0.35rem 1rem;
    line-height: 1.5em;
    position: relative;
    background-color: transparent !important;
  }

  .dropdown-item:hover,
  .dropdown-item:focus-within {
    color: var(--light);
    opacity: 0.7;
  }
}

@media (min-width: 1200px) {}