/* S Touch CTA system. Gooey inspiration: CodePen ines/oeZdYv (MIT). */
.st-button-filter {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
:root {
  --st-button-primary: var(--st-color-primary, #d5b981);
  --st-button-accent: var(--st-color-accent, #be9d5b);
  --st-button-ink: #2d271f;
  --st-button-radius-hover: 1rem;
}

.button,
.wp-block-button__link,
body:not(.home) .elementor-button,
.st-button,
.st_contact_button,
.st_treatment_single__button,
.home .st-button-widget .elementor-button,
.home .st_cta__button,
.st_footer__form button {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--st-button-primary);
  border-radius: 0;
  background: var(--st-button-primary);
  box-shadow: none;
  color: var(--st-button-ink);
  text-decoration: none;
  transform: translateY(0) scale(1);
  transition:
    background-color 240ms ease,
    border-color 240ms ease,
    border-radius 320ms ease,
    color 240ms ease,
    transform 170ms ease,
    box-shadow 240ms ease;
}
.button:hover,
.button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
body:not(.home) .elementor-button:hover,
body:not(.home) .elementor-button:focus-visible,
.st-button:hover,
.st-button:focus-visible,
.st_contact_button:hover,
.st_contact_button:focus-visible,
.st_treatment_single__button:hover,
.st_treatment_single__button:focus-visible,
.home .st-button-widget .elementor-button:hover,
.home .st-button-widget .elementor-button:focus-visible,
.home .st_cta__button:hover,
.home .st_cta__button:focus-visible,
.st_footer__form button:hover,
.st_footer__form button:focus-visible {
  border-color: var(--st-button-accent);
  border-radius: var(--st-button-radius-hover);
  background: var(--st-button-accent);
  box-shadow: 0 0.65rem 1.35rem rgba(91, 67, 27, 0.14);
  color: #fff;
  transform: translateY(1px) scale(0.987);
}
/* Gooey applies only to actions whose default surface is primary gold. */
.button:not(.st-button-outline),
.wp-block-button:not(.is-style-outline) > .wp-block-button__link,
body:not(.home) .elementor-button,
.st-button:not(.st-button-outline),
.st_contact_button:not(.st_contact_button--outline),
.st_treatment_single__button,
.home .st-button-frame .elementor-button,
.home .st_cta__button,
.st_footer__form button {
  overflow: visible;
  will-change: border-radius, transform;
}

.button:not(.st-button-outline)::before,
.button:not(.st-button-outline)::after,
.wp-block-button:not(.is-style-outline) > .wp-block-button__link::before,
.wp-block-button:not(.is-style-outline) > .wp-block-button__link::after,
body:not(.home) .elementor-button::before,
body:not(.home) .elementor-button::after,
.st-button:not(.st-button-outline)::before,
.st-button:not(.st-button-outline)::after,
.st_contact_button:not(.st_contact_button--outline)::before,
.st_contact_button:not(.st_contact_button--outline)::after,
.st_treatment_single__button::before,
.st_treatment_single__button::after,
.home .st-button-frame .elementor-button::before,
.home .st-button-frame .elementor-button::after,
.home .st_cta__button::before,
.home .st_cta__button::after,
.st_footer__form button::before,
.st_footer__form button::after {
  position: absolute;
  z-index: -1;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--st-button-accent);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: scale(0.15);
  transition:
    opacity 150ms ease,
    transform 440ms cubic-bezier(0.2, 0.8, 0.25, 1.08);
}

.button:not(.st-button-outline)::before,
.wp-block-button:not(.is-style-outline) > .wp-block-button__link::before,
body:not(.home) .elementor-button::before,
.st-button:not(.st-button-outline)::before,
.st_contact_button:not(.st_contact_button--outline)::before,
.st_treatment_single__button::before,
.home .st-button-frame .elementor-button::before,
.home .st_cta__button::before,
.st_footer__form button::before {
  top: -1.45rem;
  left: 18%;
}

.button:not(.st-button-outline)::after,
.wp-block-button:not(.is-style-outline) > .wp-block-button__link::after,
body:not(.home) .elementor-button::after,
.st-button:not(.st-button-outline)::after,
.st_contact_button:not(.st_contact_button--outline)::after,
.st_treatment_single__button::after,
.home .st-button-frame .elementor-button::after,
.home .st_cta__button::after,
.st_footer__form button::after {
  right: 18%;
  bottom: -1.45rem;
}

.button:not(.st-button-outline):hover,
.button:not(.st-button-outline):focus-visible,
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:focus-visible,
body:not(.home) .elementor-button:hover,
body:not(.home) .elementor-button:focus-visible,
.st-button:not(.st-button-outline):hover,
.st-button:not(.st-button-outline):focus-visible,
.st_contact_button:not(.st_contact_button--outline):hover,
.st_contact_button:not(.st_contact_button--outline):focus-visible,
.st_treatment_single__button:hover,
.st_treatment_single__button:focus-visible,
.home .st-button-frame .elementor-button:hover,
.home .st-button-frame .elementor-button:focus-visible,
.home .st_cta__button:hover,
.home .st_cta__button:focus-visible,
.st_footer__form button:hover,
.st_footer__form button:focus-visible {
  background: var(--st-button-accent);
  filter: url("#st-button-goo");
}

.button:not(.st-button-outline):hover::before,
.button:not(.st-button-outline):hover::after,
.button:not(.st-button-outline):focus-visible::before,
.button:not(.st-button-outline):focus-visible::after,
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover::before,
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover::after,
.wp-block-button:not(.is-style-outline)
  > .wp-block-button__link:focus-visible::before,
.wp-block-button:not(.is-style-outline)
  > .wp-block-button__link:focus-visible::after,
body:not(.home) .elementor-button:hover::before,
body:not(.home) .elementor-button:hover::after,
body:not(.home) .elementor-button:focus-visible::before,
body:not(.home) .elementor-button:focus-visible::after,
.st-button:not(.st-button-outline):hover::before,
.st-button:not(.st-button-outline):hover::after,
.st-button:not(.st-button-outline):focus-visible::before,
.st-button:not(.st-button-outline):focus-visible::after,
.st_contact_button:not(.st_contact_button--outline):hover::before,
.st_contact_button:not(.st_contact_button--outline):hover::after,
.st_contact_button:not(.st_contact_button--outline):focus-visible::before,
.st_contact_button:not(.st_contact_button--outline):focus-visible::after,
.st_treatment_single__button:hover::before,
.st_treatment_single__button:hover::after,
.st_treatment_single__button:focus-visible::before,
.st_treatment_single__button:focus-visible::after,
.home .st-button-frame .elementor-button:hover::before,
.home .st-button-frame .elementor-button:hover::after,
.home .st-button-frame .elementor-button:focus-visible::before,
.home .st-button-frame .elementor-button:focus-visible::after,
.home .st_cta__button:hover::before,
.home .st_cta__button:hover::after,
.home .st_cta__button:focus-visible::before,
.home .st_cta__button:focus-visible::after,
.st_footer__form button:hover::before,
.st_footer__form button:hover::after,
.st_footer__form button:focus-visible::before,
.st_footer__form button:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}
/* White and outline actions use a clean fill transition without blobs. */
.st-button-outline,
.is-style-outline > .wp-block-button__link,
.st_contact_button--outline,
.home .st-button-widget:not(.st-button-frame) .elementor-button {
  border-color: var(--st-button-primary);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: var(--st-button-primary);
  filter: none !important;
}
.st-button-outline:hover,
.st-button-outline:focus-visible,
.is-style-outline > .wp-block-button__link:hover,
.is-style-outline > .wp-block-button__link:focus-visible,
.st_contact_button--outline:hover,
.st_contact_button--outline:focus-visible,
.home .st-button-widget:not(.st-button-frame) .elementor-button:hover,
.home .st-button-widget:not(.st-button-frame) .elementor-button:focus-visible {
  border-color: var(--st-button-accent);
  border-radius: var(--st-button-radius-hover);
  background: var(--st-button-accent);
  box-shadow: 0 0.45rem 1rem rgba(91, 67, 27, 0.11);
  color: #fff;
  filter: none !important;
}
.button:active,
.wp-block-button__link:active,
body:not(.home) .elementor-button:active,
.st-button:active,
.st_contact_button:active,
.st_treatment_single__button:active,
.home .st-button-widget .elementor-button:active,
.home .st_cta__button:active,
.st_footer__form button:active {
  box-shadow: 0 0.2rem 0.55rem rgba(91, 67, 27, 0.13);
  transform: translateY(2px) scale(0.975);
}
@media (hover: none), (prefers-reduced-motion: reduce) {
  .button:not(.st-button-outline),
  .wp-block-button:not(.is-style-outline) > .wp-block-button__link,
  body:not(.home) .elementor-button,
  .st-button:not(.st-button-outline),
  .st_contact_button:not(.st_contact_button--outline),
  .st_treatment_single__button,
  .home .st-button-frame .elementor-button,
  .home .st_cta__button,
  .st_footer__form button {
    filter: none !important;
  }

  .button:not(.st-button-outline)::before,
  .button:not(.st-button-outline)::after,
  .wp-block-button:not(.is-style-outline) > .wp-block-button__link::before,
  .wp-block-button:not(.is-style-outline) > .wp-block-button__link::after,
  body:not(.home) .elementor-button::before,
  body:not(.home) .elementor-button::after,
  .st-button:not(.st-button-outline)::before,
  .st-button:not(.st-button-outline)::after,
  .st_contact_button:not(.st_contact_button--outline)::before,
  .st_contact_button:not(.st_contact_button--outline)::after,
  .st_treatment_single__button::before,
  .st_treatment_single__button::after,
  .home .st-button-frame .elementor-button::before,
  .home .st-button-frame .elementor-button::after,
  .home .st_cta__button::before,
  .home .st_cta__button::after,
  .st_footer__form button::before,
  .st_footer__form button::after {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .wp-block-button__link,
  body:not(.home) .elementor-button,
  .st-button,
  .st_contact_button,
  .st_treatment_single__button,
  .home .st-button-widget .elementor-button,
  .home .st_cta__button,
  .st_footer__form button {
    transform: none !important;
    transition:
      background-color 0s,
      border-color 0s,
      color 0s;
  }
}

/* Text flip layers: visual duplicate is aria-hidden in buttons.js. */
.st-button-has-flip .st-button__flip {
  position: relative;
  z-index: 2;
  display: grid;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  line-height: inherit;
  place-items: center;
}

.st-button-has-flip .st-button__flip-layer {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  grid-area: 1 / 1;
  color: inherit;
  transform: translateY(0);
  transition: transform 350ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.st-button-has-flip .st-button__flip-layer--back {
  transform: translateY(125%);
}

.st-button-has-flip:hover .st-button__flip-layer--front,
.st-button-has-flip:focus-visible .st-button__flip-layer--front {
  transform: translateY(-125%);
}

.st-button-has-flip:hover .st-button__flip-layer--back,
.st-button-has-flip:focus-visible .st-button__flip-layer--back {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .st-button-has-flip .st-button__flip-layer {
    transform: none !important;
    transition: none;
  }

  .st-button-has-flip .st-button__flip-layer--back {
    display: none;
  }
}

@media (max-width: 782px) {
  body.has-st-mobile-booking-bar {
    padding-bottom: calc(4.9rem + env(safe-area-inset-bottom, 0px));
  }

  .st_mobile_booking {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9998;
    padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(190, 157, 91, 0.28);
    background: linear-gradient(
      180deg,
      rgba(255, 248, 238, 0.92),
      rgba(248, 241, 229, 0.98)
    );
    box-shadow: 0 -0.75rem 2rem rgba(39, 30, 17, 0.12);
    backdrop-filter: blur(14px);
  }

  .st_footer__top-link {
    bottom: calc(7.9rem + env(safe-area-inset-bottom, 0px));
  }

  .st_mobile_booking__inner {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.45rem;
    width: min(100%, 36rem);
    margin: 0 auto;
  }

  .st_mobile_booking__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    padding: 0.6rem 0.35rem;
    border: 1px solid rgba(190, 157, 91, 0.68);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--st-button-accent);
    text-align: center;
    text-decoration: none;
    transition:
      background-color 180ms ease,
      border-color 180ms ease,
      transform 180ms ease;
  }

  .st_mobile_booking__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.32rem;
    height: 1.32rem;
  }

  .st_mobile_booking__icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
    stroke: none;
  }

  .st_mobile_booking__link--instagram .st_mobile_booking__icon svg,
  .st_mobile_booking__link--facebook .st_mobile_booking__icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .st_mobile_booking__link:active,
  .st_mobile_booking__link:focus-visible,
  .st_mobile_booking__link:hover {
    border-color: var(--st-button-accent);
    background: rgba(213, 185, 129, 0.14);
    color: var(--st-button-accent);
    transform: translateY(-1px);
  }

  @media (max-width: 420px) {
    .st_mobile_booking__inner {
      gap: 0.32rem;
    }

    .st_mobile_booking__link {
      min-height: 2.45rem;
      padding: 0.5rem 0.2rem;
    }

    .st_mobile_booking__icon {
      width: 1.14rem;
      height: 1.14rem;
    }
  }
}

@media (min-width: 783px) {
  .st_mobile_booking {
    display: none;
  }
}

/* Kadence navigation controls are functional UI, never branded CTA buttons. */
@media (max-width: 1024px) {
  #mobile-header .menu-toggle-open,
  #mobile-header .menu-toggle-open:hover,
  #mobile-header .menu-toggle-open:focus,
  #mobile-header .menu-toggle-open:focus-visible {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    max-width: 46px;
    max-height: 46px;
    padding: 0;
    border: 1px solid rgba(213, 185, 129, 0.7);
    border-radius: 50%;
    aspect-ratio: 1;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.34);
    box-shadow: none;
    filter: none;
    isolation: auto;
    transform: none;
  }

  #mobile-header .menu-toggle-open::before,
  #mobile-header .menu-toggle-open::after {
    display: none;
    content: none;
  }
}
