/* =====================================================
   SERVIÇOS — responsivo real oficial (desktop intacto) — v2 clean
   ===================================================== */
.servicos{ /* tokens */
  --wrap-w: 1120px;

  --glass-bg: rgba(255,255,255,.045);
  --glass-bd: rgba(255,255,255,.08);
  --text-dim: rgba(247,248,255,.70);

  --eyebrow: #9aa1ff;
  --kicker:  #cbd2ff;

  --card-r: 18px;
  --gap-xs: clamp(8px, 2vw, 16px);
  --gap-sm: clamp(12px, 2vw, 20px);
  --gap-md: clamp(14px, 2.6vw, 28px);
  --gap-lg: clamp(20px, 4vw, 40px);

  /* helpers p/ componentes */
  --pad-card: clamp(16px, 2.4vw, 22px);
  --pad-card-mobile: clamp(14px, 4vw, 20px);
  --shadow-card: 0 10px 30px rgba(0,0,0,.25);
  --shadow-card-hover: 0 16px 44px rgba(0,0,0,.28);
}

/* ===== Base segura no escopo da página ===== */
.servicos :where(*, *::before, *::after){ box-sizing: border-box; }
.servicos :where(img, video){ max-width: 100%; height: auto; display: block; }

.servicos :where(.wrap, .container){
  width: min(100%, var(--wrap-w));
  margin-inline: auto;
  /* 2 valores = start / end com safe-area */
  --pad-x: clamp(16px, 3vw, 24px);
  padding-inline: max(var(--pad-x), env(safe-area-inset-left))
                  max(var(--pad-x), env(safe-area-inset-right));
}

/* ===== HERO ===== */
.servicos .hero--internal .title{ max-inline-size: 34ch; margin-inline: auto; }
.servicos .hero--internal .lead{  max-inline-size: 70ch; margin-inline: auto; text-wrap: balance; }
.servicos .hero--internal + *{ margin-block-start: clamp(6px, 2vw, 14px); }

@media (max-width: 640px){
  .servicos .hero--internal :where(.title){ max-inline-size: 100%; }
  .servicos .hero--internal :where(.lead){ max-inline-size: 60ch; font-size: clamp(15px, 3.8vw, 17px); }
}

/* ===== Tipografia util ===== */
.servicos .eyebrow{
  display: inline-block;
  font: 700 12px/1 Sora,Inter,sans-serif;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--eyebrow); opacity: .9; margin-block-end: .5rem;
}
.servicos .kicker{ color: var(--kicker); }

/* =====================================================
   LISTA DE SERVIÇOS (cards)
   ===================================================== */
.servicos .cards{
  display: grid;
  gap: clamp(16px, 2.8vw, 28px);
  grid-template-columns: 1fr; /* mobile-first */
}
@media (min-width: 900px){
  .servicos .cards{ grid-template-columns: repeat(2, 1fr); }
}

.servicos .card{
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  border-radius: var(--card-r);
  padding: var(--pad-card);
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  backdrop-filter: saturate(140%) blur(6px);
  content-visibility: auto;
  contain-intrinsic-size: 280px 560px;
  transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease;
}
@media (max-width: 640px){
  .servicos .card{ padding: var(--pad-card-mobile); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
}

.servicos .card .icon{
  inline-size: 56px; block-size: 56px; border-radius: 16px;
  display: grid; place-items: center;
  font-size: 26px; color: #fff;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 8px 26px rgba(47,55,255,.35);
}
@media (max-width: 420px){
  .servicos .card .icon{ inline-size: 48px; block-size: 48px; font-size: 22px; border-radius: 14px; }
}

.servicos .card h3{
  margin: 18px 0 6px;
  font-family: Sora,Inter,sans-serif;
  font-size: clamp(20px, 2.4vw, 28px);
}
@media (max-width: 420px){
  .servicos .card h3{ font-size: clamp(18px, 5vw, 22px); margin: 14px 0 4px; }
}

.servicos .card .eyebrow{ color: #9aa1ff; font-weight: 600; font-size: .95rem; margin-bottom: 10px; }
.servicos .card p{ color: #c9cff8; font-size: clamp(14px, 3.6vw, 16px); }

.servicos .card .features{
  list-style: none; margin: 12px 0 16px; padding: 0;
  display: grid; gap: 10px;
}
.servicos .card .features li{ display: flex; gap: 10px; align-items: flex-start; }
.servicos .card .features .dot{
  inline-size: 8px; block-size: 8px; border-radius: 50%;
  margin-top: 9px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 0 0 3px rgba(91,99,255,.15);
}
@media (max-width: 420px){
  .servicos .card .features{ gap: 8px; }
  .servicos .card .features .dot{ margin-top: 8px; }
}

/* Botão “outline” dentro do card */
.servicos .card .btn-outline{
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; border-radius: 12px;
  color: #fff; background: transparent;
  border: 1px solid rgba(255,255,255,.12);
  transition: background .15s, transform .15s, box-shadow .15s, border-color .15s;
}

/* ===== HOVERs unificados (só em devices com hover) ===== */
@media (hover: hover){
  .servicos .card:hover{
    transform: translateY(-3px);
    border-color: color-mix(in oklab, var(--glass-bd) 60%, white 40%);
    box-shadow: var(--shadow-card-hover);
  }
  .servicos .card .btn-outline:hover{
    border-color: rgba(255,255,255,.24);
    box-shadow: 0 0 0 4px rgba(91,99,255,.12);
    background: rgba(255,255,255,.06);
    transform: translateY(-1px);
  }

  /* NEW: mesmo hover para os steps do “Nosso Processo” */
  .processo .step:hover{
    transform: translateY(-3px);
    border-color: color-mix(in oklab, rgba(255,255,255,.08) 60%, white 40%);
    box-shadow: var(--shadow-card-hover);
  }
}


/* =====================================================
   NOSSO PROCESSO — trilho com “magia”
   ===================================================== */
.processo{
  position: relative;
  padding-block: clamp(56px, 7vw, 96px);
  text-align: center;
}
.servicos .title-section{ margin-block: 0 clamp(24px, 6vw, 56px); }

/* grid das etapas */
.steps--rail{
  list-style: none;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 32px);   /* NEW: respiro lateral */
  max-width: min(92vw, var(--wrap-w));      /* NEW: não ocupa a tela toda */
  display: grid;
   gap: clamp(32px, 6vw, 56px); /* era 24–48px, agora um pouco maior */
  grid-template-columns: repeat(4, minmax(0,1fr)); /* desktop */
  position: relative;
}
@media (max-width: 1100px){ .steps--rail{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px){  .steps--rail{ grid-template-columns: 1fr; } }


/* card da etapa */
.step{
  position: relative; z-index: 1;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
   padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 28px) 28px;
  color: var(--text);
  -webkit-backdrop-filter: blur(6px) saturate(140%);
  backdrop-filter: blur(6px) saturate(140%);
  box-shadow: 0 0 24px rgba(47,55,255,.05);
  transition: transform .2s ease, box-shadow .22s ease;
}
.step h3{ font-weight: 700; font-size: 1.05rem; margin-bottom: .5rem; }
.step p{  font-size: .95rem; color: var(--text-dim); max-width: 32ch; margin-inline: auto; }

/* badge (01–04) */
.step-badge{
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  inline-size: 48px; block-size: 48px; border-radius: 999px;
  display: grid; place-items: center;
  font: 600 13px/1 Inter,system-ui,sans-serif; color: #cfe1ff;
  background:
    radial-gradient(50% 50% at 50% 35%, rgba(91,99,255,.50), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,.15), rgba(0,0,0,.2));
  box-shadow: 0 0 8px rgba(91,99,255,.35), 0 0 20px rgba(91,99,255,.25);
  border: 1px solid rgba(255,255,255,.12);
}

/* =====================================================
   CTA
   ===================================================== */
#cta .box{
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  border-radius: var(--card-r);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  backdrop-filter: saturate(140%) blur(6px);
  display: grid; place-items: center; text-align: center;
  gap: var(--gap-sm);
  max-inline-size: 900px; margin-inline: auto;
  content-visibility: auto;
  contain-intrinsic-size: 240px 900px;
}
#cta .box .zap{ font-size: clamp(22px, 4vw, 28px); line-height: 1; }
#cta .box p{ color: var(--text-dim); margin: 0; }

/* ===== Quebra de linha em "EXTRAORDINÁRIO" no mobile ===== */
/* ===== Quebra de linha em "EXTRAORDINÁRIO" no mobile ===== */
#cta .box h2 strong{
  white-space: nowrap; /* mantém a palavra junta */
}

@media (max-width: 640px){
  #cta .box h2 strong{
    display: block;     /* força quebra de linha */
    margin-top: .15em;  /* leve respiro entre as linhas */
  }
}


/* CTA: botão principal — NOVO */
#cta .box .btn-primary{
  --btn-h: 52px;
  --btn-r: 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: var(--btn-h);
  padding: 0 clamp(16px, 3.2vw, 24px);
  border-radius: var(--btn-r);

  color: #fff;
  font-weight: 700;
  text-decoration: none;

  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 28px rgba(47,55,255,.25), inset 0 0 0 1px rgba(255,255,255,.06);

  transition: transform .16s ease, box-shadow .18s ease, border-color .18s ease, filter .18s ease;
  -webkit-tap-highlight-color: transparent;

  /* mais respiro que o antigo */
  margin-top: var(--gap-sm);
  cursor: pointer;
}

@media (hover:hover){
  #cta .box .btn-primary:hover{
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.28);
    box-shadow: 0 16px 40px rgba(47,55,255,.35), 0 0 0 4px rgba(91,99,255,.14) inset;
    filter: brightness(1.04);
  }
}

#cta .box .btn-primary:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 4px rgba(91,99,255,.18),
    0 16px 40px rgba(47,55,255,.30);
}

/* Mobile: largura total, mas com cap pra não virar monstrão */
@media (max-width: 640px){
  #cta .box .btn-primary{
    width: 100%;
    max-width: 520px;
  }
}


/* =====================================================
   Ritmo Geral + A11y
   ===================================================== */
.servicos .section{ padding-block: clamp(20px, 5vw, 40px); }
.servicos .section + .section{ margin-block-start: 0; }
/* garante respiro final do main (se existir) */
:where(main, #main, .main) > .section:last-of-type{
  padding-block-end: clamp(24px, 6vw, 48px);
}

/* Motion safe */
@media (prefers-reduced-motion: reduce){
  .servicos .card,
  .step{ transition: none !important; }
  .processo .process-rail::before{ animation: none !important; }
}
