/* ==================================================
   SERVICOS - BASE
================================================== */
html {
  background: #04050b;
}

body.services-page {
  background: #04050b;
  color: #ffffff;
  min-height: 100vh;
  min-height: 100svh;
}

body.services-page main {
  min-height: 100vh;
  min-height: 100svh;
  background: #04050b;
}

/* ==================================================
   HERO
================================================== */
.services-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 138px 0 108px;
  overflow: hidden;
}

.services-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 6, 12, 0.78), rgba(5, 6, 12, 0.9)),
    radial-gradient(circle at 8% 8%, rgba(34, 197, 94, 0.2), transparent 44%),
    radial-gradient(circle at 92% 88%, rgba(226, 95, 250, 0.16), transparent 42%),
    url("../img/back.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.06) contrast(1.04);
  transform: scale(1.02);
  z-index: 0;
}

.services-hero__content {
  position: relative;
  z-index: 1;
  max-width: 1260px;
  text-align: center;
}

.services-title {
  font-size: clamp(2.15rem, 4.6vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  text-transform: uppercase;
  text-wrap: balance;
}

.services-title span {
  background: linear-gradient(90deg, #a3e635, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-subtitle {
  max-width: 860px;
  margin: 0 auto;
  color: #c8d6f2;
  line-height: 1.65;
  font-size: 1rem;
}

/* ==================================================
   BOARD MODERNO
================================================== */
.services-board {
  margin-top: 36px;
  border-radius: 26px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(7, 14, 28, 0.88), rgba(5, 9, 20, 0.94));
  border: 1px solid rgba(165, 193, 255, 0.18);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.services-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.service-tab {
  appearance: none;
  border: 1px solid rgba(133, 167, 255, 0.22);
  background: linear-gradient(180deg, rgba(14, 27, 46, 0.82), rgba(10, 16, 30, 0.9));
  color: #dbe7ff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.service-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(163, 230, 53, 0.46);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
}

.service-tab.is-active {
  color: #062010;
  border-color: rgba(163, 230, 53, 0.6);
  background: linear-gradient(120deg, #a3e635, #22c55e);
  box-shadow: 0 14px 30px rgba(35, 204, 137, 0.32);
}

.service-tab:focus-visible {
  outline: 2px solid rgba(163, 230, 53, 0.88);
  outline-offset: 2px;
}

.services-panels {
  margin-top: 14px;
}

.service-panel {
  position: relative;
  display: grid;
  gap: 14px;
  border-radius: 20px;
  padding: 24px 22px;
  text-align: left;
  background: linear-gradient(180deg, rgba(9, 20, 36, 0.88), rgba(8, 12, 24, 0.94));
  border: 1px solid rgba(187, 213, 255, 0.2);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.service-panel::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #a3e635, #22c55e, #e25ffa);
}

.service-panel[hidden] {
  display: none !important;
}

.service-panel.is-active {
  animation: service-panel-in 0.34s ease;
}

@keyframes service-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-panel__top {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.service-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #a3e635, #22c55e);
  display: grid;
  place-items: center;
  box-shadow: 0 0 22px rgba(163, 230, 53, 0.42);
}

.service-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(5, 35, 15, 0.34));
}

.service-kicker {
  width: fit-content;
  margin-bottom: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #defde7;
  border: 1px solid rgba(117, 247, 187, 0.32);
  background: rgba(50, 219, 158, 0.14);
  font-weight: 700;
}

.service-title {
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  line-height: 1.18;
  color: #f6fbff;
  text-wrap: balance;
}

.service-text {
  color: #cad7f3;
  font-size: 0.98rem;
  line-height: 1.66;
}

.service-points {
  list-style: none;
  display: grid;
  gap: 8px;
}

.service-points li {
  position: relative;
  padding-left: 15px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #d7e2f7;
}

.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #a3e635, #22c55e);
  box-shadow: 0 0 12px rgba(163, 230, 53, 0.5);
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(160, 190, 255, 0.24);
  background: linear-gradient(180deg, rgba(20, 35, 58, 0.78), rgba(12, 20, 36, 0.92));
  color: #e7f0ff;
  font-size: 0.73rem;
}

.service-cta {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(120deg, #a3e635, #22c55e);
  color: #04190f;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(35, 204, 137, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.service-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(35, 204, 137, 0.42);
  filter: brightness(1.04);
}

/* ==================================================
   LIGHT MODE (SUAVE)
================================================== */
html.theme-light {
  background: #e8eef7;
}

body.theme-light.services-page {
  background: #e8eef7;
  color: #1d2c49;
}

body.theme-light.services-page main {
  background: #e8eef7;
}

body.theme-light .services-hero__bg {
  background:
    linear-gradient(180deg, rgba(244, 250, 255, 0.82), rgba(237, 245, 254, 0.9)),
    radial-gradient(circle at 8% 8%, rgba(34, 197, 94, 0.12), transparent 46%),
    radial-gradient(circle at 92% 88%, rgba(226, 95, 250, 0.12), transparent 44%),
    url("../img/Back-White.png");
  background-size: auto, auto, auto, cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.02) contrast(1.02);
}

body.theme-light .services-title {
  color: #1f3357;
}

body.theme-light .services-title span {
  background: linear-gradient(90deg, #1f9b64, #16a34a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.theme-light .services-subtitle {
  color: #4e648b;
}

body.theme-light .services-board {
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.94), rgba(236, 244, 254, 0.97));
  border-color: rgba(111, 136, 193, 0.3);
  box-shadow:
    0 28px 58px rgba(35, 51, 86, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

body.theme-light .service-tab {
  border-color: rgba(114, 139, 195, 0.28);
  background: linear-gradient(180deg, rgba(243, 249, 255, 0.92), rgba(229, 239, 253, 0.94));
  color: #2d426d;
}

body.theme-light .service-tab:hover {
  border-color: rgba(55, 167, 114, 0.44);
  box-shadow: 0 12px 24px rgba(42, 60, 97, 0.16);
  background: linear-gradient(180deg, rgba(250, 253, 255, 0.95), rgba(236, 244, 255, 0.96));
}

body.theme-light .service-tab.is-active {
  color: #062111;
  border-color: rgba(44, 172, 107, 0.54);
  background: linear-gradient(120deg, #8de58a, #2dc37d);
  box-shadow: 0 14px 28px rgba(45, 162, 116, 0.28);
}

body.theme-light .service-tab:focus-visible {
  outline-color: rgba(44, 172, 107, 0.78);
}

body.theme-light .service-panel {
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.95), rgba(237, 245, 255, 0.97));
  border-color: rgba(120, 145, 198, 0.3);
  box-shadow:
    0 22px 46px rgba(43, 61, 98, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

body.theme-light .service-icon {
  box-shadow: 0 0 16px rgba(45, 195, 125, 0.3);
}

body.theme-light .service-kicker {
  color: #0f5f4e;
  border-color: rgba(60, 160, 128, 0.32);
  background: rgba(50, 219, 158, 0.12);
}

body.theme-light .service-title {
  color: #20365a;
}

body.theme-light .service-text {
  color: #50678e;
}

body.theme-light .service-points li {
  color: #465f86;
}

body.theme-light .service-points li::before {
  box-shadow: 0 0 8px rgba(45, 195, 125, 0.34);
}

body.theme-light .service-meta span {
  border-color: rgba(112, 138, 196, 0.32);
  background: linear-gradient(180deg, rgba(245, 250, 255, 0.92), rgba(230, 240, 254, 0.92));
  color: #2a426b;
}

body.theme-light .service-cta {
  background: linear-gradient(120deg, #2cb777, #2ec3a2, #ecd47c);
  color: #08221c;
  box-shadow: 0 12px 24px rgba(39, 145, 108, 0.24);
}

body.theme-light .service-cta:hover {
  box-shadow: 0 16px 30px rgba(39, 145, 108, 0.3);
  filter: brightness(1.03);
}

/* ==================================================
   REVEAL
================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==================================================
   RESPONSIVO
================================================== */
@media (max-width: 1024px) {
  .services-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-panel {
    padding: 22px 18px;
  }
}

@media (max-width: 768px) {
  .services-hero {
    padding: 118px 0 88px;
  }

  .services-title {
    font-size: 1.95rem;
    line-height: 1.08;
  }

  .services-subtitle {
    font-size: 0.93rem;
    line-height: 1.58;
  }

  .services-board {
    margin-top: 28px;
    padding: 12px;
    border-radius: 18px;
  }

  .services-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .service-tab {
    flex: 0 0 auto;
    min-width: 170px;
    font-size: 0.72rem;
    padding: 11px 12px;
  }

  .service-panel {
    padding: 18px 14px;
    border-radius: 15px;
    gap: 12px;
  }

  .service-panel__top {
    gap: 10px;
  }

  .service-icon {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .service-icon img {
    width: 24px;
    height: 24px;
  }

  .service-title {
    font-size: 1.12rem;
  }

  .service-text {
    font-size: 0.91rem;
  }

  .service-points li {
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .service-meta {
    gap: 6px;
  }

  .service-meta span {
    font-size: 0.68rem;
    padding: 5px 8px;
  }

  .service-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
