/* ============================================================
   PÁGINAS DE SERVIÇO — compartilhado entre /servicos/*
   Herda tokens de css/styles.css (paleta, tipografia, espaçamento)
   Cada página de serviço troca só o JS do .service-hero__canvas
   (efeito visual próprio); a estrutura e o layout são os mesmos.
   ============================================================ */

body.service-page {
  min-height: 100dvh;
  background: var(--black);
  color: var(--white);
}

/* ---------- HERO ---------- */
.service-hero {
  position: relative;
  padding: clamp(7rem, 14vw, 9rem) var(--gutter) var(--space-2xl);
  overflow: hidden;
}

.service-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}

.service__breadcrumb {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--gray-500);
  margin-bottom: var(--space-l);
}

.service__breadcrumb a { color: var(--gray-500); transition: color 0.25s; }
.service__breadcrumb a:hover { color: var(--white); }
.service__breadcrumb span[aria-current] { color: var(--gray-300); }

.service__label { position: relative; z-index: 1; margin-bottom: var(--space-m); }

.service__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  max-width: 14ch;
}

.service__tagline {
  position: relative;
  z-index: 1;
  margin-top: 0.75rem;
  color: var(--gray-300);
  font-size: var(--step-1);
  max-width: 40ch;
}

.service__tldr {
  position: relative;
  z-index: 1;
  margin-top: var(--space-l);
  padding: var(--space-m);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: rgba(245, 245, 242, 0.03);
  color: var(--gray-100);
  line-height: 1.6;
  max-width: 62ch;
}

.service__tldr strong { color: var(--white); }

.service__ctas {
  position: relative;
  z-index: 1;
  margin-top: var(--space-l);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
}

/* ---------- CONTAINER / SEÇÕES ---------- */
.service__container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* .service-hero já fecha com padding-bottom var(--space-2xl); sem isso, a
   primeira seção somava mais var(--space-2xl) de margin-top em cima, dobrando
   o respiro (mais visível no mobile, tela mais curta). */
.service__container > .service__section:first-child {
  margin-top: 0;
}

.service__section {
  margin-top: var(--space-2xl);
  padding-top: var(--space-l);
  border-top: 1px solid var(--line-dark);
}

.service__section-label { margin-bottom: var(--space-m); }

.service__h2 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  max-width: 24ch;
  margin-bottom: var(--space-m);
}

.service__text {
  color: var(--gray-300);
  line-height: 1.7;
  max-width: 62ch;
}

.service__text + .service__text { margin-top: var(--space-s); }

.service__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  max-width: 62ch;
  color: var(--gray-300);
  line-height: 1.6;
}

.service__list li {
  padding-left: 1.25em;
  position: relative;
}

.service__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gray-500);
}

/* ---------- STEPS ---------- */
.service__steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.service__step {
  display: flex;
  gap: var(--space-m);
  align-items: flex-start;
}

.service__step-num { color: var(--gray-500); flex-shrink: 0; }

.service__step-title {
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.service__step-desc {
  font-size: var(--step--1);
  color: var(--gray-500);
  max-width: 56ch;
  line-height: 1.6;
}

/* ---------- TAGS GRID ---------- */
.service__tags-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-s) var(--space-m);
  max-width: 62ch;
}

.service__tags-grid li {
  padding: 0.9em 1.1em;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gray-100);
}

@media (width < 560px) {
  .service__tags-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.service__faq {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 62ch;
}

.service__faq-item {
  border-bottom: 1px solid var(--line-dark);
  padding: var(--space-m) 0;
}

.service__faq-question {
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-m);
}

.service__faq-question::-webkit-details-marker { display: none; }

.service__faq-question::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--gray-500);
  flex-shrink: 0;
  transition: transform 0.25s;
}

.service__faq-item[open] .service__faq-question::after {
  transform: rotate(45deg);
}

.service__faq-answer {
  margin-top: var(--space-s);
  color: var(--gray-300);
  line-height: 1.65;
}

/* ---------- CTA FINAL ---------- */
.service__cta-final {
  margin-top: var(--space-2xl);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--line-dark);
  text-align: center;
}

.service__cta-final .service__h2 { max-width: none; margin-left: auto; margin-right: auto; }
.service__cta-final .service__text { margin: 0 auto var(--space-l); text-align: center; }

/* ---------- SERVIÇOS RELACIONADOS ---------- */
.service__related {
  margin-top: var(--space-2xl);
  padding-top: var(--space-l);
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m) var(--space-l);
  align-items: center;
}

.service__related .mono-label { color: var(--gray-500); width: 100%; margin-bottom: 0.25rem; }

.service__related-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gray-100);
  transition: color 0.25s;
}

.service__related-link:hover { color: var(--white); }

/* ---------- FOOTER ---------- */
.service__footer {
  width: 100%;
  max-width: 760px;
  margin: var(--space-2xl) auto 0;
  padding: var(--space-l) var(--gutter);
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-m);
}

.service__footer .mono-label { color: var(--gray-500); transition: color 0.3s; }
.service__footer .mono-label:hover { color: var(--white); }

.service__footer .footer__copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray-700);
}

@media (width < 480px) {
  .service__footer { flex-direction: column; align-items: flex-start; }
  .service__title { font-size: var(--step-4); }
}
