/* Isolated styles for the two Vetrix Elementor sections. */

.vxs {
  --vxs-green: #76b947;
  --vxs-lime: #8fd14f;
  --vxs-ink: #0c0e0b;
  --vxs-paper: #f3f4ee;
  --vxs-muted: #5f6558;
  --vxs-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --vxs-steps-h: 10.25rem;
  box-sizing: border-box;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.vxs *,
.vxs *::before,
.vxs *::after {
  box-sizing: border-box;
}

@media (min-width: 1025px) {
  .vxs { --vxs-steps-h: 13.25rem; }
}

.vxs-clips {
  position: absolute;
  width: 0;
  height: 0;
}

.vxs-wrap {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 1024px) {
  .vxs-wrap { padding-inline: 2rem; }
}

.vxs--steps {
  position: relative;
  z-index: 4;
  overflow: visible;
}

.vxs-steps {
  position: relative;
  z-index: 5;
  margin-top: -2.75rem;
  margin-bottom: 0.75rem;
}

.vxs-steps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  width: 100%;
  max-width: 24.5rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 1025px) {
  .vxs-steps {
    margin-top: calc(var(--vxs-steps-h) * -0.42);
    margin-bottom: calc(var(--vxs-steps-h) * -0.28);
  }

  .vxs-steps__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 64rem;
    gap: 2.25rem;
    padding-inline: 1.5rem;
  }
}

.vxs-card-wrap {
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.22));
}

.vxs-card {
  position: relative;
  isolation: isolate;
  height: 14.25rem;
  width: 100%;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .vxs-card {
    clip-path: polygon(0 0, 100% 0, 100% 86%, 90% 100%, 0 100%) !important;
  }
}

@media (min-width: 1025px) {
  .vxs-card {
    height: var(--vxs-steps-h);
  }
}

.vxs-card__media,
.vxs-card__shade,
.vxs-card__panel {
  position: absolute;
  inset: 0;
}

.vxs-card__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25);
  transform: scale(1.04);
  transition: transform 0.7s var(--vxs-ease);
}

.vxs-card:hover .vxs-card__media,
.vxs-card:focus-visible .vxs-card__media {
  transform: scale(1.1);
}

.vxs-card__shade {
  background: linear-gradient(180deg, rgba(12, 14, 11, 0.22) 0%, rgba(12, 14, 11, 0.8) 100%);
}

.vxs-card__copy {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 82%;
  padding: 1rem 0.85rem 0.9rem 1rem;
}

@media (min-width: 1025px) {
  .vxs-card__copy {
    width: 70%;
    padding: 0.9rem 0.55rem 0.8rem 0.95rem;
  }
}

.vxs-card__step {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--vxs-lime);
}

.vxs-card__copy h2 {
  margin: 0;
  max-width: 16ch;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

@media (min-width: 1025px) {
  .vxs-card__copy h2 {
    max-width: 9ch;
    font-size: 1rem;
  }
}

.vxs-card__panel {
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem;
  background: var(--vxs-paper);
  color: #161814;
  text-align: left;
  padding: 0.7rem 22% 0.7rem 0.75rem;
  transform: translateY(102%);
  transition: transform 0.55s var(--vxs-ease);
}

.vxs-card__panel .vxs-card__step {
  color: var(--vxs-green);
}

.vxs-card__panel h2 {
  margin: 0;
  max-width: 12ch;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--vxs-ink);
}

.vxs-card__panel p {
  width: 100%;
  margin: 0;
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.35;
  color: #3d4338;
}

@media (min-width: 768px) {
  .vxs-card__panel {
    gap: 0.4rem;
    padding: 0.8rem 24% 0.8rem 0.95rem;
  }

  .vxs-card__panel h2 { font-size: 0.8rem; }
  .vxs-card__panel p { font-size: 0.72rem; }
}

.vxs-card:hover .vxs-card__panel,
.vxs-card:focus-visible .vxs-card__panel,
.vxs-card.is-open .vxs-card__panel {
  transform: translateY(0);
}

.vxs-card:focus-visible {
  outline: none;
}

/* Size tiles */

.vxs--sizes {
  background: var(--vxs-ink);
  color: #fff;
  padding-block: 5.5rem;
  overflow: visible;
}

@media (min-width: 1024px) {
  .vxs--sizes { padding-block: 7.5rem; }
}

.vxs-kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--vxs-green);
}

.vxs-kicker::before {
  content: "";
  width: 1.35rem;
  height: 1px;
  background: var(--vxs-green);
}

.vxs-sizes__title {
  margin: 1rem 0 0;
  max-width: 18ch;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}

.vxs-size-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 2.75rem;
  overflow: visible;
  padding: 0 0 2.25rem;
}

@media (min-width: 1025px) {
  .vxs-size-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.25rem;
  }
}

.vxs-tile {
  position: relative;
  z-index: 1;
  display: block;
  height: 100%;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.vxs-tile__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem 1.35rem 1.5rem;
  background: #000;
}

.vxs-tile::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 59px;
  right: 40px;
  bottom: 0;
  left: 0;
  background: #6ABF4B;
  border-radius: 0 171px 171px 0;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.23) inset;
  opacity: 0;
  pointer-events: none;
  transition: all 200ms linear;
}

.vxs-tile:hover,
.vxs-tile:focus-visible {
  color: #fff;
}

.vxs-tile:hover::before,
.vxs-tile:focus-visible::before {
  opacity: 1;
  bottom: -33px;
  left: -30px;
}

.vxs-tile__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 12.5rem;
  margin-bottom: 1.35rem;
  padding: 0 0.5rem;
}

.vxs-tile__art {
  display: block;
  width: 78%;
  max-height: 11rem;
  height: auto;
  pointer-events: none;
  user-select: none;
  object-fit: contain;
  object-position: center bottom;
}

.vxs-tile[data-size="20"] .vxs-tile__art { width: 64%; }
.vxs-tile[data-size="30"] .vxs-tile__art { width: 78%; }
.vxs-tile[data-size="40"] .vxs-tile__art { width: 92%; }

.vxs-tile__body {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  align-items: center;
  column-gap: 1rem;
  margin-top: auto;
}

.vxs-tile__size {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vxs-tile__num {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-size: 4rem;
  line-height: 0.8;
  color: #fff;
}

.vxs-tile__unit {
  margin: 0.55rem 0 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.vxs-tile__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.vxs-tile__meta p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
  color: #fff;
}

.vxs-tile__meta p + p {
  margin-top: 0.2rem;
}

.vxs-tile__meta span {
  color: rgba(255, 255, 255, 0.55);
}

.vxs-tile__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.95rem;
  padding: 0.62rem 1.2rem;
  border-radius: 999px;
  background: var(--vxs-green);
  color: #1a1c16;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.vxs-tile:hover .vxs-tile__btn {
  background: #689f3d;
}

/* Beat Elementor defaults without touching the rest of the site */

.elementor-widget-vxs_booker,
.elementor-widget-vxs_sizes,
.elementor-widget-vxs_booker > .elementor-widget-container,
.elementor-widget-vxs_sizes > .elementor-widget-container {
  padding: 0 !important;
  overflow: visible !important;
}

.elementor-element:has(> .vxs),
.elementor-widget-wrap:has(.vxs),
.e-con:has(.vxs),
.elementor-section:has(.vxs),
.elementor-column:has(.vxs) {
  overflow: visible !important;
}

.elementor-widget-container .vxs-card__media {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
}

.elementor-widget-container .vxs-tile__art {
  max-width: 100% !important;
  max-height: 11rem !important;
  height: auto !important;
  object-fit: contain !important;
}

.elementor-widget-container .vxs-tile[data-size="20"] .vxs-tile__art { width: 64% !important; }
.elementor-widget-container .vxs-tile[data-size="30"] .vxs-tile__art { width: 78% !important; }
.elementor-widget-container .vxs-tile[data-size="40"] .vxs-tile__art { width: 92% !important; }
