/* SavilTech — Serviços TI: amarelo #FFD60A */

.page-servicos-ti {
  --sti-gold: #ffd60a;
  --sti-gold-dark: #e6b800;
}

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

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

/* —— Banner: reveal + grelha + flares (≠ sobre / equipa / valores) —— */
.page-servicos-ti .sti-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-servicos-ti .sti-banner__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.page-servicos-ti .sti-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform, clip-path, filter;
  animation:
    stiRevealClip 1.35s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    stiFloatTech 18s ease-in-out 1.35s infinite;
}

@keyframes stiRevealClip {
  0% {
    opacity: 0;
    clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
    filter: blur(12px) brightness(0.35);
    transform: scale(1.2);
  }
  40% {
    opacity: 0.85;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    filter: blur(2px) brightness(0.85);
  }
  100% {
    opacity: 1;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    filter: blur(0) brightness(1);
    transform: scale(1.07);
  }
}

@keyframes stiFloatTech {
  0%, 100% {
    transform: scale(1.07) translateY(0) rotate(0deg);
    object-position: center 45%;
  }
  33% {
    transform: scale(1.1) translateY(-1.2%) rotate(0.4deg);
    object-position: center 48%;
  }
  66% {
    transform: scale(1.05) translateY(0.6%) rotate(-0.3deg);
    object-position: center 52%;
  }
}

.page-servicos-ti .sti-banner__grid {
  position: absolute;
  inset: -20%;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 214, 10, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 214, 10, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: stiGridFlow 20s linear infinite;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
}

@keyframes stiGridFlow {
  to { transform: translate(56px, 56px); }
}

.page-servicos-ti .sti-banner__flare {
  position: absolute;
  width: 280px;
  height: 280px;
  z-index: 2;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 10, 0.35), transparent 70%);
  pointer-events: none;
  animation: stiFlarePulse 5s ease-in-out infinite;
}

.page-servicos-ti .sti-banner__flare--tl {
  top: -80px;
  left: -80px;
  animation-delay: 0s;
}

.page-servicos-ti .sti-banner__flare--br {
  bottom: -100px;
  right: -60px;
  animation-delay: 2.5s;
}

@keyframes stiFlarePulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 0.9; transform: scale(1.15); }
}

.page-servicos-ti .sti-banner__pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 60%;
  transform: translate(-50%, -50%);
  z-index: 2;
  border: 1px solid rgba(255, 214, 10, 0.2);
  border-radius: 50%;
  pointer-events: none;
  animation: stiCenterPulse 3.5s ease-out infinite;
}

.page-servicos-ti .sti-banner__pulse::before {
  content: '';
  position: absolute;
  inset: -20%;
  border: 1px solid rgba(255, 214, 10, 0.15);
  border-radius: 50%;
  animation: stiCenterPulse 3.5s ease-out 1.2s infinite;
}

@keyframes stiCenterPulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.page-servicos-ti .sti-banner:hover .sti-banner__img {
  animation-play-state: paused;
  filter: brightness(1.06) saturate(1.08);
}

.page-servicos-ti .sti-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 45%, rgba(0, 0, 0, 0.88) 100%);
  pointer-events: none;
}

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

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

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

.page-servicos-ti .sti-banner__desc {
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
}

/* —— Intro + 5 serviços —— */
.sti-intro-section {
  position: relative;
  padding: clamp(56px, 8vw, 88px) 0 clamp(40px, 5vw, 56px);
  background: #000;
}

.sti-intro__mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 214, 10, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 214, 10, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.sti-intro {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto clamp(36px, 5vw, 48px);
  text-align: center;
}

.sti-intro h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.sti-intro p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.85;
  font-size: 1rem;
}

.sti-services-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.sti-service-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 214, 10, 0.08);
  border: 1px solid rgba(255, 214, 10, 0.25);
  border-radius: 50px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, box-shadow 0.3s ease;
}

.sti-service-pill:hover {
  transform: translateY(-4px) scale(1.04);
  background: rgba(255, 214, 10, 0.18);
  border-color: rgba(255, 214, 10, 0.5);
  box-shadow: 0 8px 24px rgba(255, 214, 10, 0.15);
  color: #ffd60a;
}

.sti-service-pill i {
  color: #ffd60a;
}

/* —— Planos —— */
.sti-plans-section {
  position: relative;
  padding: clamp(48px, 6vw, 72px) 0;
  background: linear-gradient(180deg, #000 0%, #050505 100%);
}

.sti-plans-header {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 52px);
}

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

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

.sti-plans-header p {
  color: rgba(255, 255, 255, 0.65);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.75;
}

.sti-plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
  align-items: stretch;
}

.sti-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 28px);
  border-radius: 20px;
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid rgba(255, 214, 10, 0.15);
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.45s ease,
    border-color 0.35s ease;
  cursor: default;
}

.sti-plan::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 214, 10, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.sti-plan:hover,
.sti-plan.is-highlighted {
  transform: translateY(-12px);
  border-color: rgba(255, 214, 10, 0.5);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.5), 0 0 32px rgba(255, 214, 10, 0.12);
}

.sti-plan:hover::before,
.sti-plan.is-highlighted::before {
  opacity: 1;
}

.sti-plan--business {
  border-color: rgba(255, 214, 10, 0.35);
  transform: scale(1.03);
  z-index: 2;
}

.sti-plan--business:hover,
.sti-plan--business.is-highlighted {
  transform: translateY(-14px) scale(1.05);
}

.sti-plan__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: linear-gradient(135deg, #ff6b35, #ffd60a);
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
  animation: stiBadgePulse 2s ease-in-out infinite;
}

@keyframes stiBadgePulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35); }
  50% { box-shadow: 0 8px 28px rgba(255, 214, 10, 0.5); }
}

.sti-plan__medal {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 8px;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sti-plan:hover .sti-plan__medal {
  transform: scale(1.15) rotate(-6deg);
}

.sti-plan h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.sti-plan__price {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}

.sti-plan__price strong {
  display: block;
  font-size: 1.15rem;
  color: #ffd60a;
  margin-top: 4px;
}

.sti-plan__ideal {
  font-size: 0.8rem;
  color: rgba(255, 214, 10, 0.85);
  font-weight: 600;
  margin-bottom: 16px;
  font-style: italic;
}

.sti-plan__block {
  margin-bottom: 14px;
}

.sti-plan__block-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffd60a;
  margin-bottom: 8px;
}

.sti-plan__block--no .sti-plan__block-title {
  color: rgba(255, 255, 255, 0.45);
}

.sti-plan__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sti-plan__list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.sti-plan__list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #ffd60a;
}

.sti-plan__list--no li::before {
  content: '×';
  color: rgba(255, 255, 255, 0.35);
}

.sti-plan__services {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 214, 10, 0.15);
}

.sti-plan__services span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffd60a;
  margin-bottom: 8px;
}

.sti-plan__tag {
  display: inline-block;
  margin: 4px 4px 0 0;
  padding: 4px 8px;
  font-size: 0.65rem;
  background: rgba(255, 214, 10, 0.1);
  border: 1px solid rgba(255, 214, 10, 0.25);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
}

.sti-plan__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 20px;
  width: 100%;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0a0a0a;
  background: linear-gradient(135deg, #ffd60a, #e6b800);
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.sti-plan__cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(255, 214, 10, 0.35);
  color: #0a0a0a;
}

/* —— Matriz comparativa —— */
.sti-matrix-section {
  position: relative;
  padding: clamp(56px, 7vw, 88px) 0 clamp(88px, 10vw, 120px);
  background: #000;
}

.sti-matrix-header {
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.sti-matrix-header h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.sti-matrix-header p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

.sti-matrix-wrap {
  position: relative;
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 214, 10, 0.2);
  background: rgba(8, 8, 8, 0.95);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.sti-matrix {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.sti-matrix th,
.sti-matrix td {
  padding: 16px 14px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.35s ease, color 0.3s ease;
}

.sti-matrix thead th {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 214, 10, 0.08);
  position: sticky;
  top: 0;
  z-index: 2;
}

.sti-matrix thead th:first-child {
  text-align: left;
  min-width: 200px;
}

.sti-matrix thead th[data-col] {
  cursor: pointer;
}

.sti-matrix tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
}

.sti-matrix tbody td:first-child i {
  color: #ffd60a;
  margin-right: 8px;
  width: 18px;
}

.sti-matrix .sti-cell-yes {
  color: #4ade80;
  font-size: 1.1rem;
  filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.4));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sti-matrix .sti-cell-no {
  color: rgba(255, 255, 255, 0.25);
  font-size: 1rem;
}

.sti-matrix tbody tr:hover td:first-child {
  color: #ffd60a;
}

.sti-matrix tbody tr:hover .sti-cell-yes {
  transform: scale(1.2);
}

/* Coluna destacada */
.sti-matrix [data-col].is-col-active {
  background: rgba(255, 214, 10, 0.12) !important;
}

.sti-matrix thead th.is-col-active {
  background: rgba(255, 214, 10, 0.25) !important;
  color: #ffd60a;
}

.sti-matrix-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.sti-matrix-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Fallback */
.page-servicos-ti .sti-banner--fullwidth,
.page-servicos-ti .sti-intro-section,
.page-servicos-ti .sti-plans-section,
.page-servicos-ti .sti-matrix-section {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 1200px) {
  .sti-plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sti-plan--business {
    transform: none;
    grid-column: span 2;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .sti-plans-grid {
    grid-template-columns: 1fr;
  }

  .sti-plan--business {
    grid-column: span 1;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-servicos-ti .sti-banner__img {
    animation: none;
    clip-path: none;
    opacity: 1;
    transform: scale(1);
  }

  .page-servicos-ti .sti-banner__grid,
  .page-servicos-ti .sti-banner__flare,
  .page-servicos-ti .sti-banner__pulse,
  .sti-plan__badge {
    animation: none;
  }
}
