/* SavilTech — Desenvolvimento & Integração */

.page-servicos-dev {
  --sdev-gold: #ffd60a;
}

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

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

/* Banner: código + deslize vertical (≠ TI / equipa / valores) */
.page-servicos-dev .sdev-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-dev .sdev-banner__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.page-servicos-dev .sdev-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation:
    sdevBannerZoom 1.2s ease-out forwards,
    sdevBannerSlide 22s ease-in-out 1.2s infinite alternate;
}

@keyframes sdevBannerZoom {
  from { opacity: 0; transform: scale(1.25); filter: contrast(1.4) brightness(0.35); }
  to { opacity: 1; transform: scale(1.09); filter: contrast(1) brightness(1); }
}

@keyframes sdevBannerSlide {
  from { transform: scale(1.09) translateY(0); object-position: center 40%; }
  to { transform: scale(1.05) translateY(-2%); object-position: center 60%; }
}

.page-servicos-dev .sdev-banner__code {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255, 214, 10, 0.04) 3px,
    rgba(255, 214, 10, 0.04) 4px
  );
  animation: sdevCodeScroll 8s linear infinite;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}

@keyframes sdevCodeScroll {
  to { background-position: 0 80px; }
}

.page-servicos-dev .sdev-banner__beam {
  position: absolute;
  left: -10%;
  right: -10%;
  height: 40%;
  top: 30%;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 10, 0.2), transparent);
  transform: skewY(-6deg) translateX(-100%);
  animation: sdevBeam 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sdevBeam {
  0%, 40% { transform: skewY(-6deg) translateX(-100%); }
  100% { transform: skewY(-6deg) translateX(100%); }
}

.page-servicos-dev .sdev-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, transparent 40%, rgba(0,0,0,.9) 100%);
}

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

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

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

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

.sdev-intro-section .sti-intro,
.sdev-intro-section .sti-intro h2,
.sdev-intro-section .sti-intro p {
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* Flip cards — hover 3D flip dourado */
.sdev-flip-section {
  padding: clamp(40px, 6vw, 64px) 0;
  background: linear-gradient(180deg, #000, #050505);
}

.sdev-flip-section .section-title {
  text-align: center;
  color: #fff;
  font-weight: 800;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.sdev-flip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.sdev-flip-wrap {
  perspective: 1200px;
  min-height: 320px;
}

.sdev-flip-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.sdev-flip-wrap:hover .sdev-flip-card {
  transform: rotateY(180deg) scale(1.03);
}

.sdev-flip-wrap:hover {
  filter: drop-shadow(0 20px 40px rgba(255, 214, 10, 0.2));
}

.sdev-flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 214, 10, 0.2);
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: rgba(10, 10, 10, 0.95);
  overflow: hidden;
}

.sdev-flip-face--back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, rgba(20, 18, 0, 0.98), rgba(8, 8, 8, 0.98));
  border-color: rgba(255, 214, 10, 0.45);
}

.sdev-flip-face .plan-icon {
  font-size: 2rem;
  color: #ffd60a;
  margin-bottom: 12px;
}

.sdev-flip-face h3 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.sdev-flip-face .plan-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  line-height: 1.65;
  text-align: justify;
  flex: 1;
}

.sdev-flip-hint {
  margin-top: 12px;
  font-size: 0.72rem;
  color: rgba(255, 214, 10, 0.7);
  text-align: center;
}

.sdev-flip-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #0a0a0a;
  background: linear-gradient(135deg, #ffd60a, #e6b800);
  border-radius: 50px;
  width: fit-content;
}

.sdev-flip-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  flex: 1;
  overflow-y: auto;
  max-height: 200px;
}

.sdev-flip-features li {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.78);
  padding: 5px 0 5px 20px;
  position: relative;
  line-height: 1.45;
}

.sdev-flip-features li i {
  position: absolute;
  left: 0;
  color: #ffd60a;
  font-size: 0.7rem;
  top: 7px;
}

.sdev-flip-cta {
  position: relative;
  z-index: 5;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  width: 100%;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0a0a0a;
  background: linear-gradient(135deg, #ffd60a, #e6b800);
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sdev-flip-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(255, 214, 10, 0.35);
  color: #0a0a0a;
}

/* Tabs planos */
.sdev-tabs-section {
  padding: clamp(48px, 6vw, 72px) 0;
  background: #000;
}

.sdev-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.sdev-tab {
  padding: 12px 22px;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 214, 10, 0.06);
  border: 1px solid rgba(255, 214, 10, 0.2);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.35s ease;
}

.sdev-tab:hover,
.sdev-tab.is-active {
  color: #0a0a0a;
  background: linear-gradient(135deg, #ffd60a, #e6b800);
  border-color: #ffd60a;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 214, 10, 0.25);
}

.sdev-tab-panel {
  display: none;
  animation: sdevTabIn 0.5s ease;
}

.sdev-tab-panel.is-active {
  display: block;
}

@keyframes sdevTabIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Plan cards — base TI com hover diferente (inclinação + brilho lateral) */
.page-servicos-dev .sdev-plans-grid {
  display: grid;
  gap: clamp(16px, 2.5vw, 24px);
  align-items: stretch;
}

.page-servicos-dev .sdev-plans-grid--web {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.page-servicos-dev .sdev-plans-grid--android {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
  margin: 0 auto;
}

.page-servicos-dev .sdev-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.55s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.45s ease,
    border-color 0.35s ease;
}

.page-servicos-dev .sdev-plan::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, #ffd60a, #e6b800);
  border-radius: 0 20px 20px 0;
  transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-servicos-dev .sdev-plan:hover,
.page-servicos-dev .sdev-plan.is-highlighted {
  transform: translateY(-14px) rotate(1.5deg) scale(1.03);
  border-color: rgba(255, 214, 10, 0.55);
  box-shadow:
    -12px 24px 48px rgba(0, 0, 0, 0.5),
    12px 0 36px rgba(255, 214, 10, 0.12);
}

.page-servicos-dev .sdev-plan:hover::after,
.page-servicos-dev .sdev-plan.is-highlighted::after {
  height: 100%;
}

.page-servicos-dev .sdev-plan--featured {
  border-color: rgba(255, 214, 10, 0.35);
}

.page-servicos-dev .sdev-plan__icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.page-servicos-dev .sdev-plan h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.page-servicos-dev .sdev-plan__price {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 6px;
}

.page-servicos-dev .sdev-plan__price strong {
  display: block;
  font-size: 1.25rem;
  color: #ffd60a;
  margin-top: 4px;
}

.page-servicos-dev .sdev-plan__ideal {
  font-size: 0.78rem;
  color: rgba(255, 214, 10, 0.85);
  font-style: italic;
  margin-bottom: 14px;
}

.page-servicos-dev .sdev-plan__list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  flex: 1;
}

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

.page-servicos-dev .sdev-plan__list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #ffd60a;
}

.page-servicos-dev .sdev-plan__cta {
  position: relative;
  z-index: 5;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 12px 18px;
  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;
}

.page-servicos-dev .sdev-plan__cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(255, 214, 10, 0.35);
  color: #0a0a0a;
}

.page-servicos-dev .sdev-plan--corp {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  border: 2px solid rgba(255, 214, 10, 0.35);
}

.page-servicos-dev .sdev-plan--corp .sdev-plan__list {
  text-align: left;
}

/* Matriz */
.sdev-matrix-section {
  padding: 0 0 clamp(88px, 10vw, 120px);
  background: linear-gradient(180deg, #050505, #000);
}

.sdev-matrix-section .sti-matrix-wrap,
.sdev-matrix-section .sti-matrix,
.sdev-matrix-section .sti-matrix-legend {
  /* reutiliza estilos servicos-ti-premium */
}

.page-servicos-dev .sdev-banner--fullwidth,
.page-servicos-dev .sdev-intro-section,
.page-servicos-dev .sdev-flip-section,
.page-servicos-dev .sdev-tabs-section,
.page-servicos-dev .sdev-matrix-section {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 992px) {
  .page-servicos-dev .sdev-plans-grid--android {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sdev-flip-wrap:hover .sdev-flip-card {
    transform: none;
  }
  .sdev-flip-wrap.is-flipped .sdev-flip-card {
    transform: rotateY(180deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-servicos-dev .sdev-banner__img,
  .page-servicos-dev .sdev-banner__code,
  .page-servicos-dev .sdev-banner__beam {
    animation: none;
  }
  .sdev-flip-wrap:hover .sdev-flip-card {
    transform: none;
  }
}
