﻿.values {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.values::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 38%;
  height: 1px;
  background: var(--gold);
  transform-origin: right;
  transition: transform 0.9s cubic-bezier(0.16, 0.85, 0.25, 1);
}
.values article {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  transition:
    background 0.35s ease,
    transform 0.45s cubic-bezier(0.16, 0.85, 0.25, 1),
    box-shadow 0.45s ease;
}
.values article::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -45px;
  width: 150px;
  height: 150px;
  border: 1px solid #c7a34c33;
  border-radius: 50%;
  transform: scale(0.65);
  transition:
    transform 0.6s ease,
    opacity 0.4s ease;
  opacity: 0.55;
}
.value-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.value-card strong {
  color: var(--gold);
  font-family: Manrope, sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
}
.value-card h3 {
  position: relative;
  margin: 0 0 10px;
  font-size: 27px;
}
.value-card p {
  position: relative;
  z-index: 1;
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}
.value-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border: 1px solid #c7a34c66;
  border-radius: 50%;
  color: var(--gold);
  background: #fffaf0;
  transition:
    color 0.35s ease,
    background 0.35s ease,
    transform 0.45s cubic-bezier(0.16, 0.85, 0.25, 1),
    box-shadow 0.35s ease;
}
.value-icon svg {
  width: 31px;
  height: 31px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#about.values-visible .value-card {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.65s ease,
    transform 0.7s cubic-bezier(0.16, 0.85, 0.25, 1),
    background 0.35s ease,
    box-shadow 0.45s ease;
}
#about.values-visible .value-card:nth-child(2) {
  transition-delay: 0.1s;
}
#about.values-visible .value-card:nth-child(3) {
  transition-delay: 0.2s;
}
#about.values-visible .value-icon {
  animation: valueIconFloat 3.8s ease-in-out infinite;
}
.values article:hover {
  z-index: 2;
  background: #fffdf8;
  transform: translateY(-7px) !important;
  box-shadow: 0 18px 38px #55451d18;
}
.values article:hover .value-icon {
  color: #fff;
  background: var(--gold);
  transform: rotate(-8deg) scale(1.08);
  box-shadow: 0 8px 22px #a17d2d33;
}
.values article:hover::after {
  transform: scale(1.15);
  opacity: 1;
}
@keyframes valueIconFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -4px;
  }
}
@media (max-width: 680px) {
  .values article {
    min-height: 0;
  }
  .value-card-top {
    margin-bottom: 18px;
  }
  .value-icon {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }
  .value-card h3 {
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #about.values-visible .value-card,
  .values article:hover {
    transform: none !important;
  }
  .values article,
  .value-icon,
  .values::before,
  .values article::after {
    transition: none !important;
  }
  .value-icon {
    animation: none !important;
  }
}

