/* SavilTech — Missão & Valores: amarelo #FFD60A */

.page-valores {
  --vl-gold: #ffd60a;
  --vl-gold-dark: #e6b800;
}

.page-valores .text-gold {
  color: #ffd60a !important;
  text-shadow: 0 0 28px rgba(255, 214, 10, 0.35);
}

.vl-text-justify {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* —— Banner: ripple + faixas diagonais (≠ sobre / equipa) —— */
.page-valores .vl-banner--fullwidth {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: clamp(300px, 48vh, 520px) !important;
  display: block !important;
  overflow: hidden;
  background: #000;
}

.page-valores .vl-banner__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.page-valores .vl-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation:
    vlBannerFade 1.3s ease-out forwards,
    vlBannerRipple 14s ease-in-out 1.3s infinite;
}

@keyframes vlBannerFade {
  from { opacity: 0; filter: contrast(1.3) brightness(0.5); transform: scale(1.15); }
  to { opacity: 1; filter: contrast(1) brightness(1); transform: scale(1.1); }
}

@keyframes vlBannerRipple {
  0%, 100% { transform: scale(1.1); }
  25% { transform: scale(1.06); }
  50% { transform: scale(1.12); }
  75% { transform: scale(1.08); }
}

.page-valores .vl-banner__bands {
  position: absolute;
  inset: -50%;
  z-index: 1;
  background: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 80px,
    rgba(255, 214, 10, 0.04) 80px,
    rgba(255, 214, 10, 0.04) 82px
  );
  animation: vlBandsMove 12s linear infinite;
  pointer-events: none;
}

@keyframes vlBandsMove {
  to { transform: translate(40px, 40px); }
}

.page-valores .vl-banner__ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 2;
  border-radius: 50%;
  border: 1px solid rgba(255, 214, 10, 0.25);
  pointer-events: none;
  animation: vlRippleRing 4s ease-out infinite;
}

.page-valores .vl-banner__ripple--2 {
  animation-delay: 2s;
}

@keyframes vlRippleRing {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

.page-valores .vl-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(0, 0, 0, 0.9), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 50%, rgba(0, 0, 0, 0.55) 100%);
  animation: vlOverlayBreathe 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes vlOverlayBreathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.88; }
}

.page-valores .vl-banner__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding-bottom: clamp(28px, 4vw, 44px);
}

.page-valores .vl-banner .section-tag {
  background: rgba(255, 214, 10, 0.12);
  border: 1px solid rgba(255, 214, 10, 0.35);
  color: #ffd60a;
}

.page-valores .vl-banner__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 10px;
  background: linear-gradient(120deg, #fff 30%, #ffd60a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-valores .vl-banner__desc {
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
}

/* —— Missão & Visão —— */
.vl-mv-section {
  position: relative;
  padding: clamp(64px, 9vw, 96px) 0 clamp(48px, 6vw, 72px);
  background: #000;
  overflow: hidden;
}

.vl-mv__mesh {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 214, 10, 0.06), transparent 45%),
    linear-gradient(rgba(255, 214, 10, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 214, 10, 0.02) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
  pointer-events: none;
}

.vl-mv-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 36px);
}

.vl-mv-card {
  position: relative;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 22px;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid rgba(255, 214, 10, 0.2);
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.45s ease,
    border-color 0.35s ease;
}

.vl-mv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffd60a, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.vl-mv-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 214, 10, 0.5);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5), 0 0 36px rgba(255, 214, 10, 0.12);
}

.vl-mv-card:hover::before {
  transform: scaleX(1);
}

.vl-mv-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: #0a0a0a;
  background: linear-gradient(135deg, #ffd60a, #e6b800);
  border-radius: 16px;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vl-mv-card:hover .vl-mv-card__icon {
  transform: rotate(-8deg) scale(1.1);
}

.vl-mv-card h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.vl-mv-card h2 span {
  color: #ffd60a;
}

.vl-mv-card p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.85;
  font-size: 0.98rem;
}

.vl-mv-card--vision {
  border-color: rgba(255, 214, 10, 0.28);
}

.vl-mv-card--vision .vl-mv-card__icon {
  background: linear-gradient(135deg, #ffeb3b, #ffd60a);
}

/* —— Timeline de valores —— */
.vl-values-section {
  position: relative;
  padding: 0 0 clamp(88px, 11vw, 120px);
  background: linear-gradient(180deg, #000 0%, #060606 50%, #000 100%);
}

.vl-values-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(48px, 6vw, 64px);
}

.vl-values-header .section-tag {
  background: rgba(255, 214, 10, 0.1);
  border: 1px solid rgba(255, 214, 10, 0.35);
  color: #ffd60a;
}

.vl-values-header h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin: 12px 0 10px;
}

.vl-values-header p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

/* Timeline vertical com nós em losango */
.vl-timeline {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}

.vl-timeline__rail {
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 4px;
  z-index: 0;
}

.vl-timeline__line-bg {
  position: absolute;
  inset: 0;
  background: rgba(255, 214, 10, 0.1);
  border-radius: 4px;
}

.vl-timeline__line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #ffeb3b, #ffd60a, #e6b800);
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(255, 214, 10, 0.6);
  transition: height 0.15s ease-out;
}

.vl-timeline__list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 28px);
  padding-left: 72px;
}

.vl-timeline__item {
  position: relative;
  opacity: 0;
  transform: translateX(24px);
  transition:
    opacity 0.55s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.vl-timeline__item.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.vl-timeline__node {
  position: absolute;
  left: -72px;
  top: 28px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%) rotate(45deg);
  background: #0a0a0a;
  border: 2px solid rgba(255, 214, 10, 0.35);
  z-index: 2;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.vl-timeline__node i {
  transform: rotate(-45deg);
  font-size: 1.1rem;
  color: #ffd60a;
  transition: transform 0.45s ease, color 0.3s ease;
}

.vl-timeline__item.is-active .vl-timeline__node,
.vl-timeline__item:hover .vl-timeline__node {
  background: linear-gradient(135deg, #ffd60a, #e6b800);
  border-color: #ffd60a;
  transform: translateX(-50%) rotate(45deg) scale(1.15);
  box-shadow: 0 0 28px rgba(255, 214, 10, 0.5);
}

.vl-timeline__item.is-active .vl-timeline__node i,
.vl-timeline__item:hover .vl-timeline__node i {
  color: #0a0a0a;
  transform: rotate(-45deg) scale(1.1);
}

.vl-timeline__card {
  position: relative;
  padding: 24px 28px 24px 32px;
  background: rgba(8, 8, 8, 0.9);
  border: 1px solid rgba(255, 214, 10, 0.15);
  border-radius: 18px;
  overflow: hidden;
  cursor: default;
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.35s ease,
    box-shadow 0.4s ease,
    padding 0.35s ease;
}

.vl-timeline__card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #ffd60a, #e6b800);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.vl-timeline__item:hover .vl-timeline__card,
.vl-timeline__item.is-active .vl-timeline__card {
  transform: translateX(12px) scale(1.02);
  border-color: rgba(255, 214, 10, 0.5);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    -8px 0 32px rgba(255, 214, 10, 0.1);
  padding-left: 36px;
}

.vl-timeline__item:hover .vl-timeline__card::after,
.vl-timeline__item.is-active .vl-timeline__card::after {
  transform: scaleY(1);
}

.vl-timeline__card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 50%, rgba(255, 214, 10, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.vl-timeline__item:hover .vl-timeline__card-glow {
  opacity: 1;
}

.vl-timeline__label {
  display: inline-block;
  padding: 4px 14px;
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #0a0a0a;
  background: linear-gradient(135deg, #ffd60a, #e6b800);
  border-radius: 50px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vl-timeline__item:hover .vl-timeline__label {
  transform: translateX(6px);
}

.vl-timeline__card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.vl-timeline__item:hover .vl-timeline__card h3 {
  color: #ffd60a;
}

.vl-timeline__card p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.8;
  transition: color 0.3s ease;
}

.vl-timeline__item:hover .vl-timeline__card p {
  color: rgba(255, 255, 255, 0.9);
}

.vl-timeline__connector {
  position: absolute;
  left: -44px;
  top: 56px;
  width: 32px;
  height: 2px;
  background: rgba(255, 214, 10, 0.2);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.vl-timeline__item:hover .vl-timeline__connector,
.vl-timeline__item.is-active .vl-timeline__connector {
  transform: scaleX(1);
  background: linear-gradient(90deg, #ffd60a, rgba(255, 214, 10, 0.3));
}

/* Fallback */
.page-valores .vl-banner--fullwidth,
.page-valores .vl-mv-section,
.page-valores .vl-values-section {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 768px) {
  .vl-mv-grid {
    grid-template-columns: 1fr;
  }

  .vl-timeline__rail {
    left: 20px;
  }

  .vl-timeline__list {
    padding-left: 56px;
  }

  .vl-timeline__node {
    left: -56px;
    width: 44px;
    height: 44px;
  }

  .vl-timeline__item:hover .vl-timeline__card {
    transform: translateX(6px) scale(1.01);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-valores .vl-banner__img,
  .page-valores .vl-banner__bands,
  .page-valores .vl-banner__ripple,
  .page-valores .vl-banner__overlay {
    animation: none;
  }

  .vl-timeline__item {
    opacity: 1;
    transform: none;
  }
}
