/* SavilTech — Soluções (amarelo #FFD60A) */

.page-solucoes {
  --sol-gold: #ffd60a;
}

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

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

/* Banner: zoom a encolher + scan + mesh (≠ equipa / consultoria / TI) */
.page-solucoes .sol-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-solucoes .sol-banner__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.page-solucoes .sol-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
  animation:
    solBannerReveal 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    solBannerZoomShrink 24s ease-in-out 1.4s infinite alternate;
}

/* Entrada: zoom forte → posição inicial do ciclo */
@keyframes solBannerReveal {
  0% {
    opacity: 0;
    filter: brightness(0.45);
    transform: scale(1.32);
  }
  100% {
    opacity: 1;
    filter: brightness(1);
    transform: scale(1.18);
  }
}

/* Ciclo contínuo: zoom a encolher (e volta a expandir suavemente) */
@keyframes solBannerZoomShrink {
  0% {
    transform: scale(1.18);
    object-position: 50% 45%;
  }
  100% {
    transform: scale(1.02);
    object-position: 50% 52%;
  }
}

.page-solucoes .sol-banner__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 10, 0.9), transparent);
  box-shadow: 0 0 24px rgba(255, 214, 10, 0.6);
  animation: solScanLine 5s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.7;
}

@keyframes solScanLine {
  0% { top: -5%; opacity: 0; }
  8% { opacity: 0.85; }
  90% { opacity: 0.85; }
  100% { top: 105%; opacity: 0; }
}

.page-solucoes .sol-banner__glitch {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 4px
  );
  opacity: 0.35;
  animation: solGlitchFlicker 4s steps(2) infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
}

@keyframes solGlitchFlicker {
  0%, 89%, 100% { opacity: 0.2; transform: translateX(0); }
  90% { opacity: 0.5; transform: translateX(-3px); }
  92% { opacity: 0.15; transform: translateX(4px); }
}

.page-solucoes .sol-banner__mesh {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(125deg, rgba(255, 214, 10, 0.12) 0%, transparent 40%),
    linear-gradient(235deg, rgba(255, 214, 10, 0.08) 0%, transparent 45%);
  animation: solMeshPulse 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes solMeshPulse {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

.page-solucoes .sol-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(0, 0, 0, 0.92), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

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

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

.page-solucoes .sol-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-solucoes .sol-banner__desc {
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
}

/* Intro + spotlight */
.sol-intro-section {
  padding: clamp(56px, 8vw, 88px) 0 clamp(48px, 6vw, 64px);
  background: #000;
  position: relative;
}

.sol-intro-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 80vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 10, 0.4), transparent);
}

.sol-intro__lead {
  max-width: 820px;
  margin: 0 auto clamp(40px, 5vw, 56px);
  text-align: center;
}

.sol-intro__lead p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.85;
}

.sol-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.sol-spotlight {
  position: relative;
  border-radius: 24px;
  padding: 32px 28px;
  background: rgba(8, 8, 8, 0.95);
  border: 1px solid rgba(255, 214, 10, 0.2);
  overflow: hidden;
  transition:
    transform 0.55s cubic-bezier(0.34, 1.2, 0.64, 1),
    border-color 0.4s ease,
    box-shadow 0.45s ease;
}

.sol-spotlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 10, 0.12), transparent);
  transition: left 0.7s ease;
}

.sol-spotlight:hover::before {
  left: 120%;
}

.sol-spotlight:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 214, 10, 0.55);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(255, 214, 10, 0.1);
}

.sol-spotlight__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 214, 10, 0.12);
  border: 1px solid rgba(255, 214, 10, 0.3);
  font-size: 1.5rem;
  color: #ffd60a;
  margin-bottom: 18px;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.sol-spotlight:hover .sol-spotlight__icon {
  transform: scale(1.12) rotate(-6deg);
  box-shadow: 0 0 24px rgba(255, 214, 10, 0.35);
}

.sol-spotlight h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.sol-spotlight p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
}

.sol-spotlight__line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #ffd60a, #e6b800);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.sol-spotlight:hover .sol-spotlight__line {
  width: 100%;
}

/* Tech marquee */
.sol-tech-section {
  padding: clamp(48px, 6vw, 72px) 0;
  background: linear-gradient(180deg, #000, #050505 50%, #000);
  overflow: hidden;
}

.sol-tech-header {
  text-align: center;
  margin-bottom: 32px;
}

.sol-tech-header h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: #fff;
}

.sol-tech-header h2 span {
  color: #ffd60a;
}

.sol-marquee {
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.sol-marquee__track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: solMarqueeL 40s linear infinite;
}

.sol-marquee__track--reverse {
  margin-top: 16px;
  animation: solMarqueeR 36s linear infinite;
}

.sol-marquee:hover .sol-marquee__track,
.sol-marquee:hover .sol-marquee__track--reverse {
  animation-play-state: paused;
}

@keyframes solMarqueeL {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes solMarqueeR {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.sol-tech-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 50px;
  background: rgba(12, 12, 12, 0.95);
  border: 1px solid rgba(255, 214, 10, 0.22);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.3s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.sol-tech-chip:hover {
  transform: scale(1.08) translateY(-4px);
  border-color: rgba(255, 214, 10, 0.6);
  background: rgba(255, 214, 10, 0.08);
  box-shadow: 0 12px 28px rgba(255, 214, 10, 0.15);
}

.sol-tech-chip img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.sol-tech-chip span {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

/* Grid soluções */
.sol-grid-section {
  padding: clamp(48px, 6vw, 80px) 0 clamp(96px, 10vw, 120px);
  background: #000;
  position: relative;
}

.sol-grid-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 214, 10, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  pointer-events: none;
}

.sol-grid-header {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 52px);
  position: relative;
  z-index: 1;
}

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

.sol-grid-header h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  margin-top: 12px;
}

.sol-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
  z-index: 1;
}

.sol-card {
  position: relative;
  border-radius: 22px;
  padding: 28px 24px;
  background: rgba(8, 8, 8, 0.96);
  border: 1px solid rgba(255, 214, 10, 0.16);
  overflow: hidden;
  transform-style: preserve-3d;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.45s ease;
}

.sol-card__glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 214, 10, 0.15), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.sol-card:hover .sol-card__glow {
  opacity: 1;
}

.sol-card:hover {
  border-color: rgba(255, 214, 10, 0.5);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.45),
    0 0 32px rgba(255, 214, 10, 0.08);
}

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

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

.sol-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.sol-card:hover h3 {
  color: #ffd60a;
}

.sol-card p {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.72;
}

.sol-card__reveal {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffd60a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  transition:
    max-height 0.45s ease,
    opacity 0.35s ease,
    margin-top 0.35s ease;
}

.sol-card:hover .sol-card__reveal {
  max-height: 32px;
  opacity: 1;
  margin-top: 14px;
}

.sol-card__reveal i {
  transition: transform 0.35s ease;
}

.sol-card:hover .sol-card__reveal i {
  transform: translateX(6px);
}

/* Fallback visibilidade */
.page-solucoes .sol-banner--fullwidth,
.page-solucoes .sol-intro-section,
.page-solucoes .sol-tech-section,
.page-solucoes .sol-grid-section {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 992px) {
  .sol-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sol-spotlight-grid {
    grid-template-columns: 1fr;
  }
  .sol-cards {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-solucoes .sol-banner__img {
    animation: none;
    transform: scale(1.05);
  }
  .page-solucoes .sol-banner__scan,
  .page-solucoes .sol-banner__glitch,
  .page-solucoes .sol-banner__mesh,
  .sol-marquee__track,
  .sol-marquee__track--reverse {
    animation: none;
  }
  .sol-card__reveal {
    max-height: 32px;
    opacity: 1;
    margin-top: 14px;
  }
}
