/* /var/www/relyn/static_src/css/values.css */

.values-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 24px 90px;
}

.values-shell {
  position: relative;
  width: 100%;
  max-width: 1920px;
  min-height: 1207px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 77px;

  /* blur controls */
  --values-blur-w: 1650px;
  --values-blur-h: 620px;
  --values-blur-top: 56%;
  --values-blur-blur: 95px;
  --values-blur-opacity: 0.78;
}

.values-blur-layer {
  position: absolute;
  left: 50%;
  top: var(--values-blur-top);
  transform: translate(-50%, -50%);
  width: var(--values-blur-w);
  height: var(--values-blur-h);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%,
      rgba(166, 151, 224, 0.70) 0%,
      rgba(99, 62, 178, 0.82) 45%,
      rgba(0, 0, 0, 0.00) 78%);
  filter: blur(var(--values-blur-blur));
  opacity: var(--values-blur-opacity);
  pointer-events: none;
  z-index: 0;
}

.values-header {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
}

.values-kicker {
  margin: 0;
  font-family: "Urbanist", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.values-title {
  margin: 22px 0 0;
  font-family: "Urbanist", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.18;
  color: #FFFFFF;
}

.values-grid {
  position: relative;
  z-index: 1;
  margin-top: 125px;

  display: grid;
  grid-template-columns: repeat(4, 330px);
  grid-auto-rows: 330px;
  gap: 50px;
  justify-content: center;
  align-items: start;
}

.values-card {
  position: relative;
  width: 330px;
  height: 330px;
  border-radius: 20px;

  background: linear-gradient(135deg,
    rgba(99, 62, 178, 0.80) 0%,
    rgba(99, 62, 178, 0.20) 100%);

  border: 3px solid transparent;
  background-clip: padding-box;

  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  overflow: hidden;
}

.values-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 3px;
  border-radius: 20px;
  background: linear-gradient(135deg,
    rgba(60, 67, 132, 1.00) 0%,
    rgba(99, 62, 178, 0.50) 36%,
    rgba(60, 67, 132, 0.50) 74%,
    rgba(99, 62, 178, 1.00) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.values-icon {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  display: block;

  margin-top: 40px;
  margin-left: 27px;
}

.values-card-title {
  margin: 22px 0 0 27px;
  font-family: "Urbanist", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.12;
  color: #FFFFFF;
  text-align: left;
}

.values-card-text {
  margin: 20px 24px 0 27px;
  font-family: "Urbanist", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
}

/* ✅ In-view animation hook (JS adds .is-inview) */
.values-header,
.values-grid {
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.values-shell.is-inview .values-header,
.values-shell.is-inview .values-grid {
  transform: translateY(0);
  opacity: 1;
}

/* ✅ Laptop (ONLY): reduce title/subtitle + box sizes + text sizes (desktop + mobile untouched) */
@media (max-width: 1440px) and (min-width: 1025px) {
  .values-shell {
    min-height: 1080px;
    --values-blur-w: 1380px;
    --values-blur-h: 560px;
    --values-blur-top: 56%;
    --values-blur-blur: 90px;
  }

  .values-kicker {
    font-size: 16px; /* ✅ reduced */
    letter-spacing: 0.15em;
  }

  .values-title {
    font-size: 34px; /* ✅ reduced */
    line-height: 1.15;
  }

  .values-grid {
    margin-top: 92px; /* ✅ reduced */
    grid-template-columns: repeat(4, 270px); /* ✅ reduced */
    grid-auto-rows: 270px; /* ✅ reduced */
    gap: 34px; /* ✅ reduced */
  }

  .values-card {
    width: 270px; /* ✅ reduced */
    height: 270px; /* ✅ reduced */
    border-radius: 16px;
  }

  .values-card::before {
    border-radius: 16px;
  }

  .values-icon {
    width: 48px; /* ✅ reduced */
    height: 48px; /* ✅ reduced */
    border-radius: 10px;
    margin-top: 28px; /* ✅ reduced */
    margin-left: 20px; /* ✅ reduced */
  }

  .values-card-title {
    margin-left: 20px; /* ✅ reduced */
    margin-top: 18px; /* ✅ reduced */
    font-size: 24px; /* ✅ reduced */
    line-height: 1.12;
  }

  .values-card-text {
    margin-left: 20px; /* ✅ reduced */
    margin-top: 16px; /* ✅ reduced */
    margin-right: 18px; /* ✅ reduced */
    font-size: 13px; /* ✅ reduced */
    line-height: 1.55;
  }
}

/* ✅ Tablet (landscape ONLY): even smaller than laptop (portrait/mobile untouched) */
@media (max-width: 1024px) and (min-width: 769px) and (orientation: landscape) {
  .values-shell {
    min-height: 1020px;
    --values-blur-w: 1240px;
    --values-blur-h: 520px;
    --values-blur-top: 55%;
    --values-blur-blur: 86px;
  }

  .values-kicker {
    font-size: 15px; /* ✅ reduced */
    letter-spacing: 0.14em;
  }

  .values-title {
    font-size: 30px; /* ✅ reduced */
    line-height: 1.15;
  }

  .values-grid {
    margin-top: 84px; /* ✅ reduced */
    grid-template-columns: repeat(4, 230px); /* ✅ reduced */
    grid-auto-rows: 230px; /* ✅ reduced */
    gap: 26px; /* ✅ reduced */
  }

  .values-card {
    width: 230px; /* ✅ reduced */
    height: 230px; /* ✅ reduced */
    border-radius: 15px;
  }

  .values-card::before {
    border-radius: 15px;
  }

  .values-icon {
    width: 42px; /* ✅ reduced */
    height: 42px; /* ✅ reduced */
    border-radius: 10px;
    margin-top: 24px; /* ✅ reduced */
    margin-left: 18px; /* ✅ reduced */
  }

  .values-card-title {
    margin-left: 18px; /* ✅ reduced */
    margin-top: 16px; /* ✅ reduced */
    font-size: 20px; /* ✅ reduced */
    line-height: 1.12;
  }

  .values-card-text {
    margin-left: 18px; /* ✅ reduced */
    margin-top: 14px; /* ✅ reduced */
    margin-right: 16px; /* ✅ reduced */
    font-size: 12px; /* ✅ reduced */
    line-height: 1.55;
  }
}

/* ✅ Mobile + Tablet portrait: 1 column stacked vertically */
@media (max-width: 768px) {
  .values-section {
    padding: 0 16px 96px;
  }

  .values-shell {
    padding-top: 77px;
    min-height: 1207px;

    --values-blur-w: 1300px;
    --values-blur-h: 620px;
    --values-blur-top: 48%;
    --values-blur-blur: 90px;
  }

  .values-kicker {
    font-size: 16px;
    letter-spacing: 0.14em;
  }

  .values-title {
    font-size: 26px;
    line-height: 1.2;
    padding: 0 6px;
  }

  .values-grid {
    margin-top: 70px;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 18px;
    width: 100%;
    max-width: 520px;
  }

  .values-card {
    width: 100%;
    height: auto;
    min-height: 250px;
    border-radius: 18px;
    padding-bottom: 26px;
  }

  .values-card::before {
    border-radius: 18px;
  }

  .values-icon {
    width: 52px;
    height: 52px;
    margin-top: 28px;
    margin-left: 20px;
  }

  .values-card-title {
    margin-left: 20px;
    margin-top: 22px;
    font-size: 22px;
  }

  .values-card-text {
    margin-left: 20px;
    margin-top: 22px;
    margin-right: 20px;
    font-size: 14px;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .values-title {
    font-size: 24px;
  }

  .values-card-title {
    font-size: 20px;
  }

  .values-card-text {
    font-size: 13px;
  }
}
