/**
 * Héjakút Contact page components.
 */

.hk-contact-page,
.hk-contact-page > *,
.hk-contact-page > .wp-block-post-content > * {
  margin-block: 0;
}

.hk-contact-section {
  margin: 0;
  padding-block: var(--wp--preset--spacing--section);
  padding-inline: var(--wp--custom--container--gutter);
}

.hk-contact-section > .alignwide {
  margin-inline: auto;
  max-width: var(--wp--style--global--wide-size);
  width: 100%;
}

.hk-contact-section__heading > *,
.hk-contact-store__copy > *,
.hk-contact-message__intro > *,
.hk-contact-wholesale__inner > *,
.hk-contact-trust__layout > * {
  margin-inline: 0 !important;
  max-width: none;
}

.hk-contact-section__heading {
  max-width: 56rem !important;
}

.hk-contact-section__heading h2,
.hk-contact-store__copy h2,
.hk-contact-message__intro h2,
.hk-contact-wholesale h2,
.hk-contact-trust h2 {
  margin-block: 0 var(--wp--preset--spacing--sm);
}

.hk-contact-hero {
  align-items: center;
  background: var(--wp--preset--color--primary);
  box-sizing: border-box;
  color: var(--wp--preset--color--white);
  display: flex;
  margin: 0;
  min-height: 36rem;
  padding-block: clamp(5.5rem, 7vw, 7.5rem) clamp(6rem, 7.5vw, 8rem);
  padding-inline: var(--wp--custom--container--gutter);
}

.hk-contact-hero::before {
  bottom: -4rem;
  height: min(38rem, 43vw);
  opacity: 1;
  width: min(48rem, 43vw);
  z-index: 10;
}

.hk-contact-hero::after {
  bottom: -4.9375rem;
  height: 5rem;
}

.hk-contact-hero__inner {
  align-items: center;
  display: grid;
  gap: clamp(var(--wp--preset--spacing--xl), 5vw, var(--wp--preset--spacing--3-xl));
  grid-template-columns: 1fr;
  margin-inline: auto;
  max-width: var(--wp--style--global--wide-size);
  position: relative;
  width: 100%;
  z-index: 4;
}

.hk-contact-hero__copy,
.hk-contact-hero__copy > * {
  margin-inline: 0 !important;
  max-width: none;
}

.hk-contact-hero :where(h1, p),
.hk-contact-hero .hk-breadcrumbs a {
  color: var(--wp--preset--color--white);
}

.hk-contact-hero h1 {
  margin-block: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--md);
}

.hk-contact-hero__lead {
  max-width: 52rem !important;
}

.hk-contact-hero__actions {
  margin-block-start: var(--wp--preset--spacing--xl);
}

.hk-contact-hero .hk-button--inverse .wp-block-button__link {
  background: var(--wp--preset--color--white);
  border-color: var(--wp--preset--color--white);
  color: var(--wp--preset--color--primary);
}

.hk-contact-hero .hk-button--light .wp-block-button__link {
  background: transparent;
  border-color: var(--wp--preset--color--white);
  color: var(--wp--preset--color--white);
}

.hk-contact-hero :where(.hk-button--inverse, .hk-button--light) .wp-block-button__link:is(:hover, :focus-visible) {
  background: var(--wp--preset--color--primary-dark);
  border-color: var(--wp--preset--color--primary-dark);
  color: var(--wp--preset--color--white);
}

.hk-contact-hero__visual {
  display: none;
}

.hk-contact-hero__visual img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hk-contact-help {
  padding-block-start: calc(4.9375rem + var(--wp--preset--spacing--xl));
}

.hk-contact-help__grid,
.hk-contact-assortment__grid {
  display: grid;
  gap: var(--wp--preset--spacing--sm);
  margin-block-start: var(--wp--preset--spacing--2-xl);
}

.hk-contact-help__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hk-contact-help__card,
.hk-contact-assortment__card {
  border-radius: var(--wp--custom--radius--md);
  margin: 0 !important;
  padding: var(--wp--preset--spacing--lg);
}

.hk-contact-help__card {
  display: flex;
  flex-direction: column;
  min-height: 16rem;
  position: relative;
  transition: transform 180ms ease;
}

.hk-contact-help__card:is(:hover, :focus-within) {
  transform: translateY(-0.2rem);
}

.hk-contact-help__card.is-selected {
  box-shadow: 0 0 0 0.18rem var(--wp--preset--color--primary);
}

.hk-contact-help__card:nth-child(1) {
  background: var(--wp--custom--need--sleep);
}

.hk-contact-help__card:nth-child(2) {
  background: var(--wp--custom--need--digestion);
}

.hk-contact-help__card:nth-child(3) {
  background: var(--wp--custom--need--skin);
}

.hk-contact-help__card:nth-child(4) {
  background: var(--wp--custom--need--female);
}

.hk-contact-help__card h3,
.hk-contact-assortment__card h3 {
  font-size: var(--wp--preset--font-size--h-4);
  margin-block: 0 var(--wp--preset--spacing--sm);
}

.hk-contact-help__card > p:not(.hk-contact-help__action),
.hk-contact-assortment__card p {
  margin-block: 0;
}

.hk-contact-help__action {
  margin-block: auto 0 !important;
  padding-block-start: var(--wp--preset--spacing--lg);
}

.hk-contact-help__action a {
  color: var(--wp--preset--color--primary-dark);
  font-weight: 600;
  text-decoration: none;
  font-family: var(--wp--preset--font-family--ui);
  font-size: var(--wp--preset--font-size--h-6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hk-contact-help__action a::after {
  content: "";
  inset: 0;
  position: absolute;
}

.hk-contact-help__action a:focus-visible {
  outline: 0;
}

.hk-contact-help__card:focus-within {
  outline: 0.18rem solid var(--wp--preset--color--primary-dark);
  outline-offset: 0.2rem;
}

.hk-contact-reveal-ready .hk-contact-page .hk-reveal {
  opacity: 0;
  transform: translateY(1.125rem);
  transition:
    opacity 640ms ease,
    transform 640ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hk-contact-reveal-ready .hk-contact-page .hk-reveal--delay-1 {
  transition-delay: 70ms;
}

.hk-contact-reveal-ready .hk-contact-page .hk-reveal--delay-2 {
  transition-delay: 140ms;
}

.hk-contact-reveal-ready .hk-contact-page .hk-reveal--delay-3 {
  transition-delay: 210ms;
}

.hk-contact-reveal-ready .hk-contact-page .hk-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hk-contact-store {
  margin-block-end: 8.3125rem;
  position: relative;
  z-index: 1;
}

.hk-contact-store::after {
  background: url("../images/home-divider-recommendations.svg") no-repeat center bottom / 100% 100%;
  bottom: -8.25rem;
  content: "";
  height: 8.3125rem;
  inset-inline: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.hk-contact-store__layout,
.hk-contact-message__layout,
.hk-contact-wholesale__inner,
.hk-contact-trust__layout {
  align-items: start;
  display: grid;
  gap: clamp(var(--wp--preset--spacing--xl), 6vw, var(--wp--preset--spacing--3-xl));
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hk-contact-store__details,
.hk-contact-channels {
  display: grid;
  gap: var(--wp--preset--spacing--sm);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block: var(--wp--preset--spacing--xl);
}

.hk-contact-store__details p,
.hk-contact-channels p {
  background: var(--wp--preset--color--white);
  border-radius: var(--wp--custom--radius--sm);
  margin: 0;
  padding: var(--wp--preset--spacing--sm);
}

.hk-contact-store__details a,
.hk-contact-channels a {
  color: var(--wp--preset--color--primary-dark);
  font-weight: 600;
  text-decoration: none;
}

.hk-contact-store__details a:is(:hover, :focus-visible),
.hk-contact-channels a:is(:hover, :focus-visible) {
  color: var(--wp--preset--color--primary);
  text-decoration: none;
}

.hk-contact-map {
  aspect-ratio: 4 / 3;
  border-radius: var(--wp--custom--radius--md);
  min-height: 26rem;
  overflow: clip;
}

.hk-contact-map iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.hk-contact-message {
  background: var(--wp--preset--color--background);
  padding-block-start: calc(var(--wp--preset--spacing--section) + 5rem);
}

.hk-contact-message__intro {
  position: sticky;
  top: 7rem;
}

.hk-contact-channels {
  grid-template-columns: 1fr;
}

.hk-contact-channels p {
  border: 1px solid var(--wp--preset--color--neutral-200);
}

.hk-contact-channels .hk-contact-social {
  align-items: center;
  display: flex;
}

.hk-contact-social a {
  align-items: center;
  display: flex;
  gap: var(--wp--preset--spacing--sm);
  min-height: 2rem;
  text-decoration: none;
  width: 100%;
}

.hk-contact-social a::before {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  flex: 0 0 2rem;
  height: 2rem;
  width: 2rem;
}

.hk-contact-social--instagram a::before {
  background-image: url("../images/instagram.svg");
}

.hk-contact-social--facebook a::before {
  background-image: url("../images/facebook.svg");
}

.hk-contact-message__safety {
  border-inline-start: 0.2rem solid var(--wp--preset--color--primary);
  font-size: var(--wp--preset--font-size--sm);
  margin-block-start: var(--wp--preset--spacing--xl);
  padding-inline-start: var(--wp--preset--spacing--sm);
}

.hk-contact-resellers__grid {
  align-items: stretch;
  display: grid;
  gap: var(--wp--preset--spacing--lg);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block-start: var(--wp--preset--spacing--2-xl);
}

.hk-contact-reseller-card {
  background: var(--wp--preset--color--white);
  border-radius: var(--wp--custom--radius--md);
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  padding: clamp(var(--wp--preset--spacing--lg), 4vw, var(--wp--preset--spacing--2-xl));
}

.hk-contact-reseller-card > * {
  margin-inline: 0 !important;
  max-width: none;
}

.hk-contact-reseller-card h3 {
  font-size: var(--wp--preset--font-size--h-4);
  margin-block: 0 var(--wp--preset--spacing--xs);
}

.hk-contact-reseller-card__description {
  margin-block: 0;
}

.hk-contact-reseller-card__url {
  margin-block: 0 var(--wp--preset--spacing--lg);
  padding: 0;
}

.hk-contact-reseller-card__url a {
  color: var(--wp--preset--color--primary);
  font-weight: 600;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

.hk-contact-wholesale__inner {
  background: var(--wp--preset--color--background);
  border-radius: var(--wp--custom--radius--md);
  padding: clamp(var(--wp--preset--spacing--lg), 5vw, var(--wp--preset--spacing--3-xl));
}

.hk-contact-wholesale__audience {
  background: var(--wp--preset--color--white);
  border-radius: var(--wp--custom--radius--md);
  margin: 0 !important;
  padding: var(--wp--preset--spacing--lg);
}

.hk-contact-wholesale__audience h3 {
  margin-block-start: 0;
}

.hk-contact-wholesale__audience .wp-block-list {
  padding-inline-start: 1.25rem;
}

.hk-contact-trust {
  overflow: hidden;
  position: relative;
}

.hk-contact-trust::after {
  background: url("../images/footer-botanical-optimized.webp") no-repeat left bottom / contain;
  bottom: -2rem;
  content: "";
  height: min(28rem, 40vw);
  mix-blend-mode: multiply;
  opacity: 0.75;
  pointer-events: none;
  position: absolute;
  left: 0;
  right: auto;
  transform: scaleX(-1);
  width: min(28rem, 35vw);
}

.hk-contact-trust__layout {
  position: relative;
  z-index: 1;
}

.hk-contact-trust :where(h2, p) {
  color: var(--wp--preset--color--white);
}

.hk-contact-trust__copy {
  display: grid;
  gap: var(--wp--preset--spacing--lg);
}

.hk-contact-trust__copy p,
.hk-contact-trust__quote {
  margin-block: 0;
}

.hk-contact-trust__quote {
  border-inline-start: 0.2rem solid var(--wp--preset--color--white);
  font-family: var(--wp--preset--font-family--heading);
  font-size: var(--wp--preset--font-size--h-4);
  padding-inline-start: var(--wp--preset--spacing--lg);
}

.hk-contact-assortment__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hk-contact-assortment__card {
  background: var(--wp--preset--color--background);
  min-height: 15rem;
}

.hk-contact-assortment__card:nth-child(even) {
  background: var(--wp--preset--color--surface-mint);
}

.hk-contact-faq {
  background: var(--wp--preset--color--surface-mint);
  overflow: hidden;
  position: relative;
}

.hk-contact-faq::before {
  background: url("../images/gyik-bg.webp") no-repeat left bottom / contain;
  content: "";
  height: 63.4375rem;
  left: 0;
  mix-blend-mode: multiply;
  pointer-events: none;
  position: absolute;
  top: 17rem;
  width: 51.5rem;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 46%, transparent 66%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 46%, transparent 66%);
}

.hk-contact-faq > * {
  position: relative;
  z-index: 1;
}

.hk-contact-faq__grid {
  align-items: start;
  display: grid;
  gap: var(--wp--preset--spacing--sm);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block-start: var(--wp--preset--spacing--xl);
}

.hk-contact-faq__item {
  background: var(--wp--preset--color--white);
  border-radius: var(--wp--custom--radius--sm);
  margin: 0;
  padding: 1.5rem var(--wp--preset--spacing--lg);
}

.hk-contact-faq__item summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-family: var(--wp--preset--font-family--heading);
  font-size: var(--wp--preset--font-size--h-4);
  font-weight: 700;
  gap: var(--wp--preset--spacing--sm);
  justify-content: space-between;
  line-height: 1.1;
  list-style: none;
}

.hk-contact-faq__item summary::-webkit-details-marker {
  display: none;
}

.hk-contact-faq__item summary::after {
  background-color: var(--wp--preset--color--primary);
  background-image: url("../images/faq-plus.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 1.5rem 1.5rem;
  border-radius: 50%;
  content: "";
  display: block;
  flex: 0 0 2.75rem;
  height: 2.75rem;
  width: 2.75rem;
}

.hk-contact-faq__item[open] summary::after {
  background-image: url("../images/faq-minus.svg");
}

.hk-contact-faq__item p {
  margin-block-end: 0;
}

.hk-contact-cta {
  background: var(--wp--preset--color--white);
  color: var(--wp--preset--color--body-text);
  overflow: visible;
  padding-block-end: var(--wp--preset--spacing--section);
  text-align: left;
}

.hk-contact-cta__inner {
  background: var(--wp--preset--color--surface-mint);
  border-radius: var(--wp--custom--radius--md);
  min-height: 25.0625rem;
  overflow: visible;
  padding: var(--wp--preset--spacing--2-xl);
  position: relative;
}

.hk-contact-cta__inner::after {
  background: url("../images/cta-bg.webp") no-repeat center / contain;
  bottom: 0;
  content: "";
  height: 31.4375rem;
  mix-blend-mode: multiply;
  pointer-events: none;
  position: absolute;
  right: -4rem;
  width: 32.6875rem;
}

.hk-contact-cta__inner > * {
  margin-inline: 0 !important;
  max-width: 52rem;
  position: relative;
  z-index: 1;
}

.hk-contact-cta__inner :where(h2, p) {
  text-align: left;
}

.hk-contact-cta__inner .wp-block-buttons {
  justify-content: flex-start;
  margin-block-start: var(--wp--preset--spacing--2-xl);
}

.hk-contact-cta__inner .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
}

.hk-contact-cta__inner .is-style-outline .wp-block-button__link {
  background: transparent;
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
}

.hk-contact-cta__inner .wp-block-button .wp-block-button__link:is(:hover, :focus-visible) {
  background: var(--wp--preset--color--primary-dark);
  border-color: var(--wp--preset--color--primary-dark);
  color: var(--wp--preset--color--white);
}

:where(#uzlet, #kapcsolati-urlap, #viszonteladok) {
  scroll-margin-top: 7rem;
}

@media (max-width: 64rem) {
  .hk-contact-hero__inner,
  .hk-contact-store__layout,
  .hk-contact-message__layout,
  .hk-contact-wholesale__inner,
  .hk-contact-trust__layout {
    grid-template-columns: 1fr;
  }

  .hk-contact-hero__visual {
    max-width: 44rem;
  }

  .hk-contact-help__grid,
  .hk-contact-assortment__grid,
  .hk-contact-resellers__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hk-contact-message__intro {
    position: static;
  }
}

@media (max-width: 47.9375rem) {
  .hk-contact-section {
    padding-block: var(--wp--preset--spacing--section);
  }

  .hk-contact-store__layout {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  .hk-contact-map,
  .hk-contact-map iframe {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .hk-contact-map {
    overflow: hidden;
    position: relative;
  }

  .hk-contact-map iframe {
    inset: 0;
    position: absolute;
  }

  .hk-contact-hero {
    min-height: 25.2rem;
    padding-block: 4rem 5.2rem;
  }

  .hk-contact-hero::before {
    bottom: -3rem;
    height: 14rem;
    width: min(24rem, 88vw);
  }

  .hk-contact-hero::after {
    bottom: -3.5rem;
    height: 3.5rem;
  }

  .hk-contact-hero__actions,
  .hk-contact-hero__actions .wp-block-button,
  .hk-contact-hero__actions .wp-block-button__link {
    width: 100%;
  }

  .hk-contact-help {
    padding-block-start: calc(2.8rem + var(--wp--preset--spacing--lg));
  }

  .hk-contact-message {
    padding-block-start: 7.2rem;
  }

  .hk-contact-help__grid,
  .hk-contact-assortment__grid,
  .hk-contact-faq__grid,
  .hk-contact-store__details,
  .hk-contact-resellers__grid {
    grid-template-columns: 1fr;
  }

  .hk-contact-reseller-card__url a {
    overflow-wrap: anywhere;
  }

  .hk-contact-faq__item {
    padding: var(--wp--preset--spacing--sm);
  }

  .hk-contact-help__card,
  .hk-contact-assortment__card {
    min-height: 0;
  }

  .hk-contact-map {
    min-height: 0;
  }

  .hk-contact-store {
    margin-block-end: 4rem;
  }

  .hk-contact-store::after {
    bottom: -4rem;
    height: 4rem;
  }

  .hk-contact-trust::after,
  .hk-contact-faq::before,
  .hk-contact-cta__inner::after {
    content: none;
  }

  .hk-contact-cta__inner {
    min-height: 0;
    overflow: hidden;
    padding: var(--wp--preset--spacing--lg);
  }

  .hk-contact-cta__inner .wp-block-buttons,
  .hk-contact-cta__inner .wp-block-button,
  .hk-contact-cta__inner .wp-block-button__link {
    width: 100%;
  }

  .hk-contact-cta__inner .wp-block-buttons {
    align-items: stretch;
    flex-direction: column;
    gap: var(--wp--preset--spacing--xs);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hk-contact-page *,
  .hk-contact-page *::before,
  .hk-contact-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
