/* =========================================================
   Rotha Marcas e Patentes — tokens de identidade
   Cores extraídas do site atual (hero + logotipo).
   ========================================================= */
:root {
  /* Marca */
  --brand-dark:        #031B34;  /* navy do hero */
  --brand-primary:     #042F52;
  --brand-secondary:   #0E4A7B;
  --brand-accent:      #C9E265;  /* lima do escudo/lâmpada */
  --brand-accent-ink:  #5E7314;  /* lima escurecido: texto sobre claro */
  --brand-muted:       #A5AEB6;  /* cinza do logotipo */

  /* Superfícies */
  --background:        #FFFFFF;
  --surface:           #F4F7FA;
  --surface-dark:      #041F3A;
  --border:            #DDE5ED;
  --border-dark:       rgba(255,255,255,.14);

  /* Texto */
  --text-primary:      #0E1B29;
  --text-secondary:    #4A5A6B;
  --text-on-dark:      #EAF0F6;
  --text-on-dark-soft: #9FB2C6;

  /* Escala */
  --radius:   14px;
  --radius-sm: 9px;
  --shadow:    0 1px 2px rgba(3,27,52,.06), 0 8px 24px rgba(3,27,52,.07);
  --shadow-lg: 0 2px 4px rgba(3,27,52,.08), 0 18px 48px rgba(3,27,52,.14);
  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(56px, 8vw, 104px);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-secondary); text-underline-offset: 3px; }
a:hover { color: var(--brand-primary); }

h1, h2, h3 { line-height: 1.18; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
p  { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--brand-dark); color: var(--text-on-dark); }
.section--dark h2 { color: #fff; }
.section--dark p { color: var(--text-on-dark-soft); }
.section__head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head p { color: var(--text-secondary); font-size: 1.06rem; }
.section--dark .section__head p { color: var(--text-on-dark-soft); }

.eyebrow {
  display: inline-block; margin: 0 0 14px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-accent-ink);
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--brand-accent); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand-accent); color: var(--brand-dark);
  padding: 12px 18px; font-weight: 700; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand-accent); color: var(--brand-dark); border-color: var(--brand-accent); }
.btn--primary:hover { background: #D6EC80; border-color: #D6EC80; color: var(--brand-dark); }
.btn--solid { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.btn--solid:hover { background: var(--brand-secondary); border-color: var(--brand-secondary); color: #fff; }
.btn--ghost { background: transparent; color: var(--text-on-dark); border-color: var(--border-dark); }
.btn--ghost:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.32); }
.btn--outline { background: transparent; color: var(--brand-primary); border-color: var(--border); }
.btn--outline:hover { background: var(--surface); border-color: var(--brand-secondary); color: var(--brand-primary); }
.btn--block { width: 100%; }

/* =========================================================
   Entrada por scroll
   O estado inicial só existe quando o JS está ativo (.js no <html>),
   então sem JS — ou se o observer falhar — tudo aparece normalmente.
   ========================================================= */
.js .reveal,
.js .reveal-group > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s cubic-bezier(.22, .68, .35, 1),
              transform .75s cubic-bezier(.22, .68, .35, 1);
}
.js .reveal.is-in,
.js .reveal-group > .is-in { opacity: 1; transform: none; }
.js.no-io .reveal,
.js.no-io .reveal-group > * { opacity: 1; transform: none; }

/* Escalonamento: cada item entra logo depois do anterior */
.js .reveal-group > *:nth-child(2)  { transition-delay: .08s; }
.js .reveal-group > *:nth-child(3)  { transition-delay: .16s; }
.js .reveal-group > *:nth-child(4)  { transition-delay: .24s; }
.js .reveal-group > *:nth-child(5)  { transition-delay: .32s; }
.js .reveal-group > *:nth-child(6)  { transition-delay: .40s; }
.js .reveal-group > *:nth-child(7)  { transition-delay: .48s; }
.js .reveal-group > *:nth-child(8)  { transition-delay: .56s; }
.js .grid > .card:nth-child(2) { transition-delay: .07s; }
.js .grid > .card:nth-child(3) { transition-delay: .14s; }
.js .grid > .card:nth-child(4) { transition-delay: .21s; }
.js .grid > .card:nth-child(5) { transition-delay: .28s; }
.js .grid > .card:nth-child(6) { transition-delay: .35s; }

/* Entrada do hero no carregamento */
.js .hero .eyebrow,
.js .hero h1,
.js .hero__sub,
.js .hero__cta,
.js .hero .trust { animation: hero-in .85s cubic-bezier(.22, .68, .35, 1) both; }
.js .hero h1      { animation-delay: .06s; }
.js .hero__sub    { animation-delay: .14s; }
.js .hero__cta    { animation-delay: .22s; }
.js .hero .trust  { animation-delay: .30s; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
/* O botão do WhatsApp tem pulso próprio: quem entra é o contêiner,
   e o pulso só começa depois da entrada. */
.js .hero__cta .btn--wa { animation-delay: 1.1s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal-group > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--brand-dark);
  border-bottom: 1px solid var(--border-dark);
  transition: box-shadow .3s ease, background-color .3s ease;
}
.header.is-scrolled {
  background: rgba(3, 27, 52, .92);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
          backdrop-filter: saturate(150%) blur(10px);
  box-shadow: 0 8px 28px rgba(2, 17, 33, .38);
}
.header__inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand__name { display: block; color: #fff; font-weight: 700; font-size: 1.02rem; letter-spacing: .01em; line-height: 1.1; }
.brand__tag  { display: block; color: var(--text-on-dark-soft); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text-on-dark-soft); font-size: .93rem; font-weight: 500; text-decoration: none;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.header .btn { min-height: 44px; padding: 10px 20px; font-size: .93rem; }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 460px) { .brand__tag { display: none; } .header .btn { padding: 10px 16px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--brand-dark);
  color: var(--text-on-dark);
  padding-block: clamp(48px, 7vw, 88px);
}
.hero { padding-block: clamp(64px, 9vw, 132px); }
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 78% center;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(94deg, rgba(2,17,33,.97) 0%, rgba(2,19,36,.93) 30%, rgba(3,27,52,.66) 56%, rgba(3,27,52,.28) 100%),
    linear-gradient(to top, rgba(2,17,33,.72) 0%, rgba(2,17,33,0) 40%);
}
/* Telas médias cortam mais a imagem: puxa o enquadramento para a esquerda
   de modo que a equipe caia à direita do texto, e não atrás dele. */
@media (min-width: 901px) and (max-width: 1240px) {
  .hero__bg { object-position: 20% center; }
}
.hero .container { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero__grid > div { max-width: 40rem; }
.hero h1 { color: #fff; max-width: 15ch; text-shadow: 0 2px 18px rgba(2,17,33,.5); }
.hero__sub { font-size: clamp(1.05rem, 1.5vw, 1.18rem); color: var(--text-on-dark); max-width: 54ch; margin-bottom: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 36px 0 0; padding: 28px 0 0; border-top: 1px solid var(--border-dark); }
.trust li { display: flex; align-items: center; gap: 9px; font-size: .94rem; color: var(--text-on-dark); }
.trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-accent); flex: none; }
.trust li strong { color: #fff; }

/* No mobile a foto continua como fundo (igual ao desktop): o recorte vertical
   fica sobre a equipe e o scrim vira gradiente de cima para baixo, escurecendo
   só a área do texto e deixando a dupla visível na parte de baixo. */
@media (max-width: 900px) {
  .hero {
    min-height: 100svh;
    display: flex; align-items: center;
    padding-block: clamp(48px, 12vw, 80px);
  }
  /* Foto cobrindo o hero inteiro, igual ao desktop. */
  .hero__bg { object-position: 56% center; }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(2,17,33,.72) 0%, rgba(2,17,33,.52) 45%, rgba(2,17,33,.78) 100%);
  }
  .hero h1 { max-width: none; text-shadow: 0 2px 16px rgba(2,17,33,.8); }
  .hero__sub { text-shadow: 0 1px 10px rgba(2,17,33,.85); }
  .trust { gap: 12px 20px; }
}
@media (max-width: 560px) {
  .hero__cta .btn { width: 100%; }
}

/* ---------- Grids e cards ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 28px); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.card h3 { margin: 0; }
.card p { color: var(--text-secondary); font-size: .96rem; }
.card__icon {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: var(--brand-dark); color: var(--brand-accent);
  font-weight: 700; font-size: 1rem;
}
.section--dark .card { background: var(--surface-dark); border-color: var(--border-dark); box-shadow: none; }
.section--dark .card h3 { color: #fff; }
.section--dark .card p { color: var(--text-on-dark-soft); }
.section--dark .card__icon { background: rgba(201,226,101,.14); }

/* Prosa (bloco SEO) — texto corrido justificado.
   hyphens: auto é obrigatório aqui: sem hifenização o justificado abre
   "rios" de espaço em branco, sobretudo nas colunas estreitas do celular. */
.prose { max-width: 62ch; }
.prose p, .statement p {
  color: var(--text-secondary);
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
          hyphens: auto;
}
.statement p { color: var(--text-on-dark-soft); }
/* Nomes próprios não podem ser hifenizados (ex.: "What-sApp") */
.nowrap-word { -webkit-hyphens: none; hyphens: none; }
.prose__links { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.prose__links a {
  display: inline-block; padding: 8px 15px; font-size: .9rem; font-weight: 600; text-decoration: none;
  background: #fff; border: 1px solid var(--border); border-radius: 999px; color: var(--brand-primary);
}
.prose__links a:hover { border-color: var(--brand-secondary); background: var(--surface); }
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Lista de checagem */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; row-gap: 4px; align-items: start; }
.checks li::before {
  content: "✓"; grid-column: 1; grid-row: 1;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem; font-weight: 700; line-height: 1;
  background: var(--brand-accent); color: var(--brand-dark);
}
.checks li > strong { grid-column: 2; grid-row: 1; align-self: center; }
.checks li > span   { grid-column: 2; grid-row: 2; }
.checks strong { display: block; }
.checks span { color: var(--text-secondary); font-size: .95rem; }
.section--dark .checks span { color: var(--text-on-dark-soft); }

/* Etapas */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: clamp(16px,2vw,24px); grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 12px;
  font-size: 1.4rem; font-weight: 700; color: var(--brand-accent-ink);
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--text-secondary); font-size: .95rem; }

/* Bloco de posicionamento (sem métrica) */
/* Sem max-width no contêiner: senão o bloco centraliza e sai do alinhamento
   das demais seções. Quem limita a medida é o texto. */
.statement__rule { width: 64px; height: 4px; background: var(--brand-accent); border-radius: 2px; margin-bottom: 26px; }
.statement h2 { max-width: 22ch; }
.statement p { font-size: clamp(1.02rem, 1.4vw, 1.15rem); max-width: 62ch; }
.statement p + p { margin-top: 1rem; }

/* FAQ */
.faq { max-width: 54rem; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; position: relative;
  font-weight: 650; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--brand-secondary); line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { background: var(--surface); }
.faq .faq__a { padding: 0 22px 22px; color: var(--text-secondary); }

/* CTA final */
.cta-final { text-align: center; }
.cta-final .section__head { margin-inline: auto; text-align: center; }
.cta-final__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-final__note { margin-top: 22px; font-size: .95rem; color: var(--text-on-dark-soft); }

/* Botão WhatsApp — pulso contínuo para chamar atenção.
   Anel de sombra + escala mínima; para no hover/foco para não brigar
   com o translate do :hover, e some com prefers-reduced-motion. */
.btn--wa svg { flex: none; }
.btn--wa {
  animation: wa-pulse 2.6s cubic-bezier(.4, 0, .2, 1) infinite;
  will-change: transform, box-shadow;
}
.btn--wa:hover, .btn--wa:focus-visible { animation: none; }

@keyframes wa-pulse {
  0%   { transform: scale(1);     box-shadow: 0 0 0 0 rgba(201, 226, 101, .55); }
  55%  { transform: scale(1.025); box-shadow: 0 0 0 14px rgba(201, 226, 101, 0); }
  100% { transform: scale(1);     box-shadow: 0 0 0 0 rgba(201, 226, 101, 0); }
}

/* CTA de fim de seção */
.section-cta {
  width: calc(100% - var(--gutter) * 2);
  max-width: calc(var(--maxw) - var(--gutter) * 2);
  margin-inline: auto;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
}
.section--dark .section-cta { border-top-color: var(--border-dark); }
.section-cta__note { margin: 0; font-size: .95rem; color: var(--text-secondary); }
.section--dark .section-cta__note { color: var(--text-on-dark-soft); }
@media (max-width: 560px) {
  .section-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .section-cta .btn { width: 100%; }
}

/* ---------- Rodapé ---------- */
.footer { background: var(--brand-dark); color: var(--text-on-dark-soft); padding-block: clamp(48px,6vw,72px) 0; font-size: .94rem; }
.footer a { color: var(--text-on-dark-soft); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: clamp(28px,4vw,56px); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h2, .footer h3 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer address { font-style: normal; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__brand img { width: 44px; height: 44px; }
.footer__legal { margin-top: clamp(36px,4vw,52px); padding-block: 24px; border-top: 1px solid var(--border-dark); font-size: .84rem; line-height: 1.6; }
.footer__legal p { margin-bottom: 10px; }
.footer__disclaimer { color: var(--brand-muted); }

/* 404 */
.page-404 { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
