/* =========================================================
   Guedes e Cruz Advocacia — Funil Estudo de Caso
   Identidade visual extraída de guedesecruzadvocacia.com.br
   ========================================================= */

:root {
  /* Cores da marca */
  --ink:        #001816;  /* verde-petróleo quase preto (fundo principal) */
  --ink-2:      #04211E;  /* superfície elevada */
  --ink-3:      #0A2A27;  /* cards / inputs */
  --navy:       #142E3F;  /* azul profundo (seções alternadas) */
  --gold:       #DABB80;  /* dourado da marca */
  --gold-deep:  #A38C60;  /* dourado escuro */
  --paper:      #F3F3F3;  /* claro */
  --text:       #E8EDEC;
  --muted:      #93A6A3;
  --line:       rgba(218, 187, 128, .22);
  --danger:     #E06A5B;

  --maxw: 1120px;
  --radius: 4px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

/* Garante que o atributo "hidden" vença qualquer display definido por classe
   (sem isto, um .btn escondido continua aparecendo, porque a classe tem
   prioridade sobre a regra padrão do navegador). */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;  /* impede o iPhone de inflar o texto ao girar */
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(218, 187, 128, .18);
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4, .font-display {
  font-family: Montserrat, -apple-system, sans-serif;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0 0 .6em;
  color: #fff;
}

p { margin: 0 0 1.1em; }
a { color: var(--gold); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}
.wrap--narrow { max-width: 860px; }

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--gold);
  color: #16110A;
  text-align: center;
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
  padding: 10px 18px;
}

/* ---------- Cabeçalho ---------- */
.site-header {
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-header img { height: 54px; width: auto; }

/* ---------- Indicador de passos ---------- */
.steps {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 26px 0 0;
  list-style: none;
  margin: 0;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.steps li + li::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--line);
  margin: 0 14px;
}
.steps .dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 12px;
  color: var(--muted);
}
.steps .is-active { color: var(--gold); }
.steps .is-active .dot {
  background: var(--gold);
  border-color: var(--gold);
  color: #16110A;
}
.steps .is-done .dot {
  border-color: var(--gold-deep);
  color: var(--gold-deep);
}

/* ---------- Hero ---------- */
.hero {
  padding: 46px 0 30px;
  text-align: center;
}
.eyebrow {
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
}
.hero h1 {
  font-size: clamp(26px, 3.6vw, 44px);
  max-width: 20ch;
  margin-inline: auto;
  text-wrap: balance;
}
.hero .lead {
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  max-width: 62ch;
  margin: 22px auto 0;
}

/* Página 1: a frase de abertura é o próprio título da página.
   Menor que um título de destaque, maior que um texto de apoio. */
.hero h1.hero__linha {
  font-size: clamp(19px, 2.3vw, 27px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.01em;
  max-width: 66ch;
  margin-inline: auto;
  text-wrap: balance;
}
.rule {
  width: 64px; height: 2px;
  background: var(--gold);
  margin: 26px auto;
  border: 0;
}

/* ---------- Vídeo ---------- */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video iframe,
.video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(120% 90% at 50% 0%, #0C2F2B 0%, #000 72%);
}
.video__placeholder .play {
  width: 66px; height: 66px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  color: var(--gold);
}
.video__placeholder .play svg { width: 22px; height: 22px; margin-left: 4px; }
.video__placeholder small {
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: Montserrat, sans-serif;
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 20px 40px;
  border: 1px solid var(--gold);
  border-radius: 3px;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  text-align: center;
}
.btn--primary {
  background: var(--gold);
  color: #16110A;
}
.btn--primary:hover {
  background: #E7CD9B;
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--gold);
}
.btn--ghost:hover { background: rgba(218, 187, 128, .12); }
.btn--whats {
  background: #1F8A5B;
  border-color: #1F8A5B;
  color: #fff;
}
.btn--whats:hover { background: #23A06A; border-color: #23A06A; transform: translateY(-2px); }
.btn--block { display: flex; width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

.cta-block {
  text-align: center;
  padding: 12px 0 46px;
}
.cta-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Seções ---------- */
.section { padding: 56px 0; }
.section--alt { background: var(--navy); }
.section--paper { background: var(--paper); color: #474747; }
.section--paper h2, .section--paper h3 { color: #001816; }
.section-title {
  text-align: center;
  font-size: clamp(20px, 2.4vw, 30px);
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 58ch;
  margin: 0 auto 34px;
}

/* ---------- Cards de credibilidade ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 {
  font-size: 16px;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card .num {
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}

/* ---------- Área do formulário (Passo 2) ---------- */
.wrap--form { max-width: 720px; }
.form-area { padding: 26px 0 60px; }

.panel {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel__head {
  background: var(--ink-3);
  border-bottom: 1px solid var(--line);
  padding: 16px 22px;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}
.panel__body { padding: 24px 22px 28px; }

.callout {
  background: var(--ink-3);
  border-left: 2px solid var(--gold);
  padding: 18px 20px;
  margin: 0;
}
.callout strong { color: #fff; display: block; margin-bottom: 6px; font-family: Montserrat, sans-serif; }
.callout p { margin: 0; color: var(--muted); font-size: 14px; }

.confidential {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 3px;
  text-align: center;
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 10px;
  margin-bottom: 8px;
}
.confidential + .hint {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 26px;
}

/* ---------- Barra de progresso das partes ---------- */
.progresso { margin: 0 0 26px; }
.progresso__topo {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}
.progresso__titulo {
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--gold);
}
.progresso__contagem {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}
.progresso__contagem b { color: var(--text); font-weight: 600; }
.progresso__trilho {
  height: 3px;
  background: rgba(218, 187, 128, .16);
  border-radius: 3px;
  overflow: hidden;
}
.progresso__preenchido {
  display: block;
  height: 100%;
  width: 33.333%;
  background: var(--gold);
  border-radius: 3px;
  transition: width .35s ease;
}

/* ---------- Navegação entre as partes ---------- */
.form-nav {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}
.form-nav .btn { flex: 1; }
.form-nav [data-voltar] { flex: 0 0 auto; min-width: 132px; }

/* ---------- Formulário ---------- */
.field { margin-bottom: 22px; }
.field > label,
.field > .legend {
  display: block;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -.005em;
}
.field .req { color: var(--gold); }
.field .help {
  display: block;
  font-family: Manrope, sans-serif;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  background: var(--ink-3);
  border: 1px solid rgba(218, 187, 128, .18);
  border-radius: 3px;
  color: var(--text);
  font-family: Manrope, sans-serif;
  /* 16px é obrigatório: abaixo disso o Safari do iPhone
     dá zoom automático sempre que o campo recebe o toque. */
  font-size: 16px;
  padding: 14px 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 110px; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23DABB80'><path d='M8 11 3 5.5h10z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 40px;
}
input::placeholder, textarea::placeholder { color: #5C6F6C; }
input:focus, textarea:focus, select:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(218, 187, 128, .13);
}

.choices { display: grid; gap: 8px; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--ink-3);
  border: 1px solid rgba(218, 187, 128, .14);
  border-radius: 3px;
  padding: 13px 14px;
  min-height: 48px;            /* alvo de toque confortável no celular */
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.choice:hover { border-color: rgba(218, 187, 128, .4); }
.choice input {
  accent-color: var(--gold);
  width: 18px; height: 18px;
  margin: 2px 0 0;
  flex: none;
}
.choice:has(input:checked) {
  border-color: var(--gold);
  background: rgba(218, 187, 128, .08);
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select { border-color: var(--danger); }
.field.has-error .choices { outline: 1px solid var(--danger); outline-offset: 4px; border-radius: 3px; }
.error-msg {
  display: none;
  color: var(--danger);
  font-size: 12.5px;
  margin-top: 6px;
}
.field.has-error .error-msg { display: block; }

.conditional[hidden] { display: none !important; }

.form-footer { margin-top: 30px; }
.form-footer .cta-note { text-align: center; }

/* ---------- Passo 3 ---------- */
.next-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 760px) { .next-steps { grid-template-columns: 1fr; } }

.step-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 0 26px;
  overflow: hidden;
}
.step-card__head {
  background: var(--gold);
  color: #16110A;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
}
.step-card__num {
  font-family: Montserrat, sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  line-height: 1;
  padding: 26px 0 16px;
}
.step-card p {
  margin: 0;
  padding: 0 26px;
  color: var(--muted);
  font-size: 14.5px;
}

.urgency {
  background: var(--ink-2);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 36px 30px;
  text-align: center;
}
.urgency h2 { font-size: clamp(19px, 2.2vw, 26px); }
.urgency p { color: var(--muted); max-width: 60ch; margin-inline: auto; }
.disclaimer {
  font-size: 12.5px;
  color: #6E817E;
  max-width: 64ch;
  margin: 22px auto 0;
  line-height: 1.6;
}

/* ---------- Rodapé ---------- */
.site-footer {
  background: #000E0D;
  border-top: 1px solid var(--line);
  padding: 38px 0;
  text-align: center;
}
.site-footer img { height: 42px; width: auto; margin: 0 auto 18px; opacity: .9; }
.site-footer p {
  font-size: 12.5px;
  color: #667A77;
  margin: 0 auto;
  max-width: 70ch;
}
.site-footer a { color: #8A9C99; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

/* ---------- Utilitários ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* =========================================================
   TABLET  (até 900px)
   ========================================================= */
@media (max-width: 900px) {
  .section { padding: 46px 0; }
  .hero { padding: 38px 0 26px; }
  .next-steps { gap: 14px; }
}

/* =========================================================
   CELULAR  (até 620px)
   ========================================================= */
@media (max-width: 620px) {

  /* Respiro lateral + área segura do notch em paisagem */
  .wrap {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }

  /* Barra superior: cabe em 1–2 linhas em vez de 3 */
  .topbar {
    font-size: 10px;
    letter-spacing: .05em;
    line-height: 1.5;
    padding: 9px 16px;
  }

  .site-header { padding: 15px 0; }
  .site-header img { height: 40px; }

  /* Passos: mostra o rótulo só da etapa atual */
  .steps { padding: 20px 0 0; }
  .steps li { font-size: 10.5px; letter-spacing: .10em; gap: 8px; }
  .steps li:not(.is-active) span:not(.dot) { display: none; }
  .steps li + li::before { width: 20px; margin: 0 9px; }
  .steps .dot { width: 24px; height: 24px; font-size: 11px; }

  /* Topo das páginas */
  .hero { padding: 26px 0 18px; }
  .hero h1 { max-width: none; font-size: clamp(23px, 6.6vw, 31px); }
  .hero h1.hero__linha { font-size: clamp(18px, 4.8vw, 22px); max-width: none; }
  .hero .lead { font-size: 15.5px; margin-top: 18px; }
  .eyebrow { font-size: 10.5px; letter-spacing: .18em; margin-bottom: 14px; }
  .rule { margin: 20px auto; }

  /* Botões ocupam a largura toda e ficam mais compactos */
  .btn {
    width: 100%;
    padding: 16px 18px;
    font-size: 14px;
    letter-spacing: .02em;
    line-height: 1.35;
  }
  .cta-block { padding: 6px 0 34px; }
  .cta-note { font-size: 12.5px; }

  /* Seções e cartões */
  .section { padding: 38px 0; }
  .section-title { font-size: clamp(19px, 5.4vw, 24px); }
  .section-sub { font-size: 14.5px; margin-bottom: 24px; }
  .grid-3 { gap: 12px; }
  .card { padding: 20px 18px; }

  /* Painéis e formulário */
  .form-area { padding: 20px 0 40px; }
  .panel__head { padding: 14px 16px; font-size: 12px; letter-spacing: .08em; }
  .panel__body { padding: 20px 16px 24px; }
  .confidential { font-size: 10px; letter-spacing: .10em; padding: 9px 8px; }
  .confidential + .hint { font-size: 12.5px; margin-bottom: 22px; }

  /* Navegação: botão principal em cima, "Voltar" embaixo */
  .form-nav { flex-direction: column-reverse; gap: 10px; margin-top: 26px; }
  .form-nav .btn { flex: none; width: 100%; }
  .form-nav [data-voltar] { min-width: 0; }
  .progresso { margin-bottom: 22px; }
  .progresso__titulo { font-size: 12px; letter-spacing: .08em; }
  .progresso__contagem { font-size: 12px; }

  .field { margin-bottom: 18px; }
  .field > label,
  .field > .legend { font-size: 14px; margin-bottom: 9px; }
  .field .help { font-size: 12px; }
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select { padding: 13px 14px; }
  textarea { min-height: 96px; }
  .callout { padding: 16px 16px; }

  /* Passo 3 */
  .step-card__head { font-size: 11.5px; letter-spacing: .10em; padding: 11px 14px; }
  .step-card__num { font-size: 38px; padding: 20px 0 12px; }
  .step-card p { padding: 0 18px; font-size: 14px; }
  .urgency { padding: 26px 18px; }
  .urgency h2 { font-size: clamp(19px, 5.2vw, 23px); }
  .urgency p { font-size: 14.5px; }
  .disclaimer { font-size: 12px; }

  .site-footer { padding: 30px 0; }
  .site-footer img { height: 36px; }
  .site-footer p { font-size: 12px; }
}

/* =========================================================
   CELULAR PEQUENO  (iPhone SE e similares, até 380px)
   ========================================================= */
@media (max-width: 380px) {
  .wrap { padding-left: 14px; padding-right: 14px; }
  .panel__body { padding: 18px 13px 22px; }
  .hero h1 { font-size: 22px; }
  .btn { padding: 15px 12px; font-size: 13px; }
  .choice { font-size: 14.5px; padding: 12px 12px; }
  .steps li + li::before { width: 14px; margin: 0 7px; }
}

/* =========================================================
   Respeita quem pediu menos animação no sistema
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}
