/* ════════════════════════════════════════
   IDEIAS AQUI — style.css  v2
   Principais mudanças vs v1:
   · Hero: opacity:0 removido dos elementos críticos → LCP desbloqueado
   · Hero: min-height reduzido (90svh desktop / auto mobile)
   · Hero: trust bar horizontal para mobile (substitui card stack)
   · Hero: H1 versão mobile/desktop via classes
   · Cards: .card-cta--wa com cor verde WhatsApp
   · Seção #processo: removida (bloqueava scroll em Ads)
   · Paddings mobile: reduzidos para melhorar scroll
   · Animações: apenas reveal (scroll) permanece; hero usa transições CSS leves
   ════════════════════════════════════════ */

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── DESIGN TOKENS ── */
:root {
  --red:      #D92B2B;
  --red-dk:   #b82222;
  --green-wa: #25D366;
  --green-wa-dk: #1da851;
  --navy:     #1E2D40;
  --bg:       #f2f0ed;
  --white:    #ffffff;
  --muted:    #6b7280;
  --border:   rgba(30, 45, 64, .12);
  --font:     'Poppins', sans-serif;
  --max-w:    1200px;
  --radius:   10px;
  --header-h: 68px;
}

/* ── BASE ── */
html {
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--navy);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
}

/* ── ACESSIBILIDADE ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--red);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 0 0 6px 6px;
  font-weight: 700;
  font-size: .85rem;
  z-index: 9999;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── HEADER / NAV ── */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(242, 240, 237, .95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 2rem;
}

/* ── LOGO ── */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: .15em;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-ideias { color: var(--navy); }
.logo-aqui   { color: var(--red); }

/* ── NAV LINKS ── */
nav ul {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

nav ul li a {
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .02em;
  transition: color .2s;
  padding: .25rem 0;
}
nav ul li a:hover  { color: var(--navy); }
nav ul li a.active { color: var(--red); }

/* ── NAV PHONE NUMBER ── */
.nav-phone {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .01em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .2s;
}
.nav-phone:hover { color: var(--navy); }

/*
  NAV CTA: verde WhatsApp — cor única no header.
  Diferencia visualmente do vermelho da marca e sinaliza o canal.
*/
.nav-cta {
  background: var(--green-wa);
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .55rem 1.2rem;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--green-wa-dk); transform: translateY(-1px); }

/* ── MENU TOGGLE ── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  border-radius: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .02em;
  text-decoration: none;
  padding: .9rem 2rem;
  border-radius: 6px;
  display: inline-block;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover {
  background: var(--red-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(217, 43, 43, .28);
}

.btn-outline {
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
  padding: .88rem 2rem;
  border-radius: 6px;
  display: inline-block;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ── HERO ──
  PERFORMANCE:
  · min-height: 90svh (era 100svh) — CTA visível sem scroll em viewports normais
  · Elementos do hero NÃO têm opacity:0 inicial — LCP não bloqueado por CSS
  · Animações substituídas por transição leve de entrada via JS (classe .hero-loaded)
  · .hero-h1-short oculto em desktop; .hero-h1-full oculto em mobile
*/
#hero {
  min-height: 90svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3.5rem) 2rem 4rem;
  background: var(--white);
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(217, 43, 43, .08);
  border: 1px solid rgba(217, 43, 43, .2);
  border-radius: 100px;
  padding: .35rem 1rem;
  font-size: .72rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  width: fit-content;
}
.hero-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  display: block;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

/*
  H1: versão completa (desktop) e curta (mobile).
  .hero-h1-short é aria-hidden="true" para não duplicar no leitor de tela.
*/
.hero-text h1 {
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
  color: var(--navy);
}
.hero-text h1 em { font-style: normal; color: var(--red); }

.hero-h1-short { display: none; }
.hero-h1-full  { display: block; }

.hero-sub {
  font-size: .98rem;
  color: var(--muted);
  max-width: 520px;
  margin: 1.2rem 0 2rem;
  line-height: 1.75;
}

/* Subheadline: destaque com borda */
.hero-subheadline {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--navy);
  opacity: .85;
  border-left: 3px solid var(--red);
  padding-left: .9rem;
  margin: .9rem 0 1.6rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/*
  CTA PRIMÁRIO: verde WhatsApp — cor única nessa posição.
  Vermelho é a cor de marca; verde é o canal de conversão.
  Contraste máximo sem redesign.
*/
.hero-main-cta {
  background: var(--green-wa);
}
.hero-main-cta:hover {
  background: var(--green-wa-dk);
  box-shadow: 0 8px 28px rgba(37, 211, 102, .32);
}

.hero-secondary-cta {
  border-color: var(--red);
  color: var(--red);
}
.hero-secondary-cta:hover {
  background: var(--red);
  color: #fff;
}

/*
  TRUST BAR MOBILE: linha horizontal de microprova abaixo dos CTAs.
  Visível apenas em mobile (substitui card stack que some em ≤900px).
*/
.hero-trust-bar {
  display: none;
  list-style: none;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.hero-trust-bar li {
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
}

/* Card stack desktop */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-stack {
  position: relative;
  width: 320px;
  height: 360px;
}

.hcard {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(30, 45, 64, .08);
}

.hcard-1 { width: 240px; top: 0;    left: 0;  transform: rotate(-5deg); background: var(--navy); color: #fff; }
.hcard-2 { width: 240px; top: 60px; right: 0; transform: rotate(3deg); }
.hcard-3 { width: 260px; bottom: 0; left: 50%; transform: translateX(-50%) rotate(-1deg); }

.hcard-label {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .5;
  margin-bottom: .4rem;
}
.hcard-val {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.hcard-val--sm  { font-size: .88rem; line-height: 1.45; color: var(--navy); }
.hcard-val--red { font-size: .88rem; color: var(--red); }
.hcard-1 .hcard-val { color: var(--red); }
.hcard-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); margin-bottom: .8rem;
}

/* ── SEÇÕES COMUNS ── */
section {
  padding: 5rem 2rem;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .8rem;
  display: block;
}

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 2.5rem;
}
.section-title em          { font-style: normal; color: var(--red); }
.section-title--light      { color: var(--white); }

/* ── PROVA SOCIAL ── */
#prova {
  background: var(--white);
  padding: 3rem 2rem;
}

.prova-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.prova-item {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .4rem;
  transition: background .2s;
}
.prova-item:last-child { border-right: none; }
.prova-item:hover { background: rgba(217, 43, 43, .03); }
.prova-item strong { font-size: 1.05rem; font-weight: 700; color: var(--red); display: block; }
.prova-item span   { font-size: .75rem; color: var(--muted); line-height: 1.5; }

/* ── DORES ── */
#dores {
  background: var(--navy);
  padding: 4.5rem 2rem;
}

.dores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.dor-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  padding: 2.25rem;
}
.dor-card--destaque {
  border-color: rgba(217, 43, 43, .35);
  background: rgba(217, 43, 43, .06);
}

.dor-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  background: rgba(217, 43, 43, .12);
  border: 1px solid rgba(217, 43, 43, .25);
  padding: .3rem .8rem;
  border-radius: 100px;
}

.dor-card h3 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: .85rem;
  letter-spacing: -.01em;
}

.dor-card > p {
  font-size: .88rem;
  color: rgba(255, 255, 255, .6);
  line-height: 1.75;
  margin-bottom: 1.1rem;
}
.dor-card > p strong { color: rgba(255, 255, 255, .85); font-weight: 600; }

.dor-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.dor-card ul li {
  font-size: .8rem;
  color: rgba(255, 255, 255, .5);
  padding-left: 1.25rem;
  position: relative;
}
.dor-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: .75rem;
}

/* ── SERVIÇOS ── */
#servicos { background: var(--bg); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  transition: transform .3s, box-shadow .3s;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--red);
  border-radius: 12px 0 0 12px;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(30, 45, 64, .1); }
.card:hover::after { transform: scaleY(1); }

.card--destaque {
  border-color: rgba(217, 43, 43, .25);
  background: linear-gradient(145deg, var(--white) 0%, rgba(217, 43, 43, .03) 100%);
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--red);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 100px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(217, 43, 43, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: .6rem;
  flex-shrink: 0;
}

.card h3 { font-size: .92rem; font-weight: 700; color: var(--navy); }
.card p  { font-size: .83rem; color: var(--muted); line-height: 1.6; flex: 1; }

.card-preco {
  margin: .75rem 0 .25rem;
  font-size: .88rem;
  color: var(--muted);
}
.card-preco strong {
  color: var(--navy);
  font-size: .95rem;
}

.card-obs {
  font-size: .78rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: .25rem;
}

/*
  CARD CTA PADRÃO: texto-link vermelho (âncoras internas).
  CARD CTA WHATSAPP: botão sólido verde — diferenciação clara de ação.
*/
.card-cta {
  display: inline-block;
  margin-top: .85rem;
  font-size: .7rem;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: color .2s;
}
.card-cta:hover { color: var(--red-dk); }

.card-cta--wa {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--green-wa);
  color: #fff;
  padding: .55rem 1rem;
  border-radius: 5px;
  font-size: .72rem;
  letter-spacing: .04em;
  transition: background .2s;
}
.card-cta--wa:hover {
  background: var(--green-wa-dk);
  color: #fff;
}

/* ── NICHOS ── */
#nichos { background: var(--white); }

.nichos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  list-style: none;
}

.nicho-tag {
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: .55rem 1.35rem;
  font-size: .86rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  cursor: default;
  transition: border-color .2s, color .2s, background .2s;
}
.nicho-tag:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(217, 43, 43, .05);
}

/* ── PORTFÓLIO ── */
#portfolio { background: var(--bg); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.portfolio-item {
  aspect-ratio: 4 / 3;
  min-height: 240px;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s;
}
.portfolio-item:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(30, 45, 64, .12); }

.pi-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 55%);
}

.portfolio-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform .4s;
}
.portfolio-item:hover img { transform: scale(1.04); }

.portfolio-item span {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* ── DIFERENCIAIS (ex: seção IA) ── */
#diferenciais { background: var(--navy); }

.ia-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.ia-copy .section-label { color: rgba(217, 43, 43, .9); }

.ia-copy h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--white);
  margin: .8rem 0 1.25rem;
}
.ia-copy h2 em { font-style: normal; color: var(--red); }

.ia-copy > p {
  font-size: .9rem;
  color: rgba(255, 255, 255, .55);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.ia-callout {
  background: rgba(255, 255, 255, .06);
  border-left: 3px solid var(--red);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.5rem;
  font-size: .88rem;
  color: rgba(255, 255, 255, .65);
  line-height: 1.7;
}
.ia-callout strong {
  display: block;
  color: var(--white);
  font-size: .92rem;
  margin-bottom: .5rem;
}

.ia-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.ia-lista li { display: flex; align-items: flex-start; gap: 1rem; }

.ia-icon {
  font-size: 1.15rem;
  background: rgba(255, 255, 255, .07);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ia-lista li div strong {
  display: block;
  color: var(--white);
  font-size: .88rem;
  margin-bottom: .2rem;
}
.ia-lista li div p {
  color: rgba(255, 255, 255, .45);
  font-size: .8rem;
  line-height: 1.55;
}

/* ── ÁREAS ATENDIDAS ── */
#areas { background: var(--white); }

.areas-copy {
  max-width: 920px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.areas-copy strong { color: var(--navy); }

.areas-list {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  font-weight: 600;
  line-height: 2;
  color: var(--navy);
}

/* ── FAQ ── */
#faq { background: var(--bg); }

.faq-list {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  transition: color .2s;
}
.faq-btn:hover,
.faq-btn[aria-expanded="true"] { color: var(--red); }

.faq-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  position: relative;
  transition: background .2s, border-color .2s, transform .3s;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--muted);
  border-radius: 2px;
  transition: background .2s;
}
.faq-icon::before { width: 8px; height: 2px; }
.faq-icon::after  { width: 2px; height: 8px; }

.faq-btn[aria-expanded="true"] .faq-icon {
  background: var(--red);
  border-color: var(--red);
  transform: rotate(45deg);
}
.faq-btn[aria-expanded="true"] .faq-icon::before,
.faq-btn[aria-expanded="true"] .faq-icon::after { background: #fff; }

.faq-resposta {
  padding: 0 1.5rem 1.25rem;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.75;
}
.faq-resposta[hidden] { display: none; }

/* ── CONTATO ── */
#contato { background: var(--navy); color: var(--white); }
#contato .section-label { color: rgba(217, 43, 43, .9); }

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.cta-copy h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--white);
  margin: .8rem 0 1.2rem;
}
.cta-copy h2 em { font-style: normal; color: var(--red); }
.cta-copy > p  { color: rgba(255, 255, 255, .6); font-size: .92rem; line-height: 1.75; margin-bottom: 1.8rem; }

.cta-checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-bottom: 2rem;
}
.cta-checks li { font-size: .83rem; font-weight: 600; color: rgba(255, 255, 255, .72); }

/* Botão WhatsApp direto — alternativa ao form */
.btn-whatsapp-direto {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--green-wa);
  border: 1px solid rgba(37, 211, 102, .3);
  border-radius: 6px;
  padding: .7rem 1.2rem;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.btn-whatsapp-direto:hover {
  background: rgba(37, 211, 102, .1);
  border-color: rgba(37, 211, 102, .5);
}

/* ── FORMULÁRIO ── */
.lead-form {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.form-group label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-group label span[aria-hidden] { color: var(--red); margin-left: .1rem; }

.form-group input,
.form-group select {
  width: 100%;
  padding: .78rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: .88rem;
  color: var(--navy);
  background: var(--bg);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(217, 43, 43, .12);
}
.form-group input::placeholder { color: #b0b8c1; }
.form-group input.has-erro,
.form-group select.has-erro    { border-color: var(--red); background: rgba(217, 43, 43, .04); }

.form-erro {
  font-size: .7rem;
  color: var(--red);
  font-weight: 600;
  min-height: 1em;
  display: block;
}

/*
  BTN FORM: vermelho padrão.
  O verde é reservado para WhatsApp direto — mantém hierarquia de conversão.
*/
.btn-form {
  width: 100%;
  padding: 1rem;
  background: var(--red);
  color: #fff;
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .03em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: .25rem;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-form:hover    { background: var(--red-dk); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(217, 43, 43, .3); }
.btn-form:active   { transform: translateY(0); }
.btn-form:disabled { opacity: .65; cursor: not-allowed; transform: none; box-shadow: none; }

.form-disclaimer { font-size: .68rem; color: var(--muted); text-align: center; }

.form-feedback {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1rem;
  border-radius: 8px;
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .25);
  color: #166534;
  font-size: .82rem;
  font-weight: 600;
}
.form-feedback[hidden] { display: none; }

.form-feedback-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  flex-shrink: 0;
}

/* ── HERO BULLETS ── */
.hero-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin: 1.25rem 0 2rem;
}
.hero-bullets li {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}

/* ── HERO CTA — ícone inline ── */
.hero-main-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

/* ── COMO FUNCIONA ── */
#como-funciona { background: var(--bg); }

.processo-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.pstep {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.pstep:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(30, 45, 64, .1);
}

.pstep-num {
  font-size: 2rem;
  font-weight: 700;
  color: rgba(217, 43, 43, .15);
  line-height: 1;
  letter-spacing: -.04em;
}

.pstep-body h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .4rem;
}
.pstep-body p {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── QUEM SOMOS ── */
#quem-somos { background: var(--white); }

.quem-somos-grid { display: block; }

.qs-copy > p {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 860px;
  margin-bottom: 1rem;
}
.qs-copy > p strong { color: var(--navy); }

.qs-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.qs-trust-item {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.qs-trust-item:last-child { border-right: none; }
.qs-trust-item strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--red);
  display: block;
}
.qs-trust-item span {
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ── PORTFÓLIO CTA ── */
.portfolio-cta {
  margin-top: 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.portfolio-cta-text {
  font-size: .92rem;
  color: var(--muted);
}

/* ── AREAS SEO CLUSTER ── */
.areas-seo-cluster {
  margin-top: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.9;
}
.areas-seo-cluster strong { color: var(--navy); font-weight: 600; }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  padding: 4rem 2rem;
  text-align: center;
  color: rgba(255, 255, 255, .55);
}
footer .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
footer .logo        { font-size: 1.4rem; margin-bottom: .2rem; }
footer .logo-ideias { color: var(--white); }
footer .logo-aqui   { color: var(--red); }
footer p            { font-size: .85rem; line-height: 1.7; max-width: 560px; }

.footer-tagline {
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .28);
  margin-top: -.4rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  margin-top: .5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: rgba(255, 255, 255, .48);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, .12);
  padding: .4rem 1rem;
  border-radius: 100px;
  transition: color .2s, border-color .2s;
}
.footer-links a:hover { color: var(--red); border-color: var(--red); }

.footer-copy { font-size: .68rem; color: rgba(255, 255, 255, .2); margin-top: .5rem; }

/* ── WHATSAPP FLUTUANTE ── */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 200;
  width: 58px;
  height: 58px;
  background: var(--green-wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .45);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(37, 211, 102, .55);
}
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green-wa);
  animation: wapulse 2.5s ease-out infinite;
  z-index: -1;
}

/* ── ANIMAÇÕES ── */
@keyframes wapulse {
  0%   { transform: scale(1);   opacity: .6; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1;  transform: scale(1); }
  50%       { opacity: .5; transform: scale(.8); }
}

/* ── REVEAL (scroll — IntersectionObserver) ── */
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.js-enabled .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .cards-grid  { grid-template-columns: repeat(2, 1fr); }
  .prova-grid  { grid-template-columns: repeat(2, 1fr); }
  .ia-inner    { grid-template-columns: 1fr; gap: 3rem; }
  .processo-steps { grid-template-columns: repeat(3, 1fr); }
  .qs-trust-grid  { grid-template-columns: repeat(2, 1fr); }
  .qs-trust-item:nth-child(2) { border-right: none; }
  .qs-trust-item:nth-child(1),
  .qs-trust-item:nth-child(2) { border-bottom: 1px solid var(--border); }

  .prova-item                { border-right: none; border-bottom: 1px solid var(--border); }
  .prova-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .prova-item:last-child     { border-bottom: none; }
}

@media (max-width: 900px) {
  .hero-inner     { grid-template-columns: 1fr; }
  .hero-visual    { display: none; }            /* card stack some */
  .hero-trust-bar { display: flex; }            /* trust bar aparece */
  .dores-grid     { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-grid       { grid-template-columns: 1fr; gap: 2.5rem; }

  /* Hero mobile: H1 curto, H1 longo oculto */
  .hero-h1-full  { display: none; }
  .hero-h1-short { display: block; }
}

@media (max-width: 768px) {
  nav ul,
  .nav-cta { display: none; }

  nav ul.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--white);
    padding: 1.5rem 2rem;
    gap: 0;
    z-index: 99;
    border-top: 1px solid var(--border);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  nav ul.open li a {
    font-size: 1rem;
    color: var(--navy);
    display: block;
    padding: .9rem 0;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
  }

  .nav-phone       { display: none; }
  .menu-toggle   { display: flex; }
  body.menu-open { overflow: hidden; }

  .cards-grid  { grid-template-columns: 1fr; }
  .prova-grid  { grid-template-columns: 1fr; }
  .prova-item  { border-right: none !important; }
  .faq-list    { max-width: 100%; }
  .lead-form   { padding: 1.75rem; }
  .processo-steps { grid-template-columns: 1fr; }
  .qs-trust-grid  { grid-template-columns: repeat(2, 1fr); }

  /* Sections: padding reduzido em mobile para menos scroll */
  section { padding: 3.5rem 1.25rem; }
  #dores  { padding: 3.5rem 1.25rem; }
  #prova  { padding: 2.5rem 1.25rem; }

  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 540px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero-text h1   { font-size: clamp(1.65rem, 6.5vw, 2.2rem); }
  .dores-grid     { gap: 1rem; }
  .dor-card       { padding: 1.75rem; }
  .qs-trust-grid  { grid-template-columns: 1fr; }
  .qs-trust-item  { border-right: none !important; border-bottom: 1px solid var(--border); }
  .qs-trust-item:last-child { border-bottom: none; }

  /* CTA hero: stack vertical em telas pequenas */
  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-cta .btn-primary,
  .hero-cta .btn-outline {
    width: 100%;
    text-align: center;
    padding: .9rem 1.5rem;
  }
}

/* ── SCROLL SUAVE ── */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ── MID-PAGE CTA ── */
.midpage-cta {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.75rem 2rem;
  background: rgba(217, 43, 43, .05);
  border: 1px solid rgba(217, 43, 43, .18);
  border-radius: 12px;
}
.midpage-cta p {
  flex: 1;
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  min-width: 200px;
}
.midpage-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--green-wa);
  white-space: nowrap;
  flex-shrink: 0;
}
.midpage-cta .btn-primary:hover {
  background: var(--green-wa-dk);
  box-shadow: 0 8px 28px rgba(37, 211, 102, .3);
}
@media (max-width: 600px) {
  .midpage-cta { flex-direction: column; align-items: flex-start; }
  .midpage-cta .btn-primary { width: 100%; justify-content: center; }
}

/* ── PEÇAS PROMOCIONAIS ── */
#pecas { background: var(--white); }

.pecas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.peca-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
}
.peca-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(30, 45, 64, .1);
  border-color: rgba(217, 43, 43, .3);
}

.peca-icon {
  font-size: 1.5rem;
  margin-bottom: .25rem;
}

.peca-card h3 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.peca-card p {
  font-size: .79rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.peca-cta {
  display: inline-block;
  margin-top: .75rem;
  font-size: .7rem;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .2s;
}
.peca-cta:hover { color: var(--red-dk); }
.peca-cta--destaque {
  color: var(--green-wa);
}
.peca-cta--destaque:hover { color: var(--green-wa-dk); }

@media (max-width: 1024px) {
  .pecas-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .pecas-grid { grid-template-columns: 1fr; }
}

/* ── FAQ — controle via CSS (não hidden) para Google indexar o conteúdo ── */
/* Com JS ativo: fecha via data-faq-closed; sem JS: tudo visível (bom para crawler) */
.js-enabled .faq-resposta[data-faq-closed] {
  display: none;
}
.faq-resposta[data-faq-open],
.faq-resposta:not([data-faq-closed]):not([data-faq-open]) {
  /* visível por padrão sem JS — crawler lê tudo */
}

/* ── PORTFÓLIO PLACEHOLDER ── */
.portfolio-placeholder {
  background: var(--bg);
  border: 2px dashed var(--border);
  cursor: default;
  min-height: 240px;
}
.portfolio-placeholder:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(217, 43, 43, .3);
}
.ph-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1.5rem;
  color: var(--muted);
  z-index: 0;
}
.ph-inner svg {
  opacity: .35;
  color: var(--muted);
}
.ph-inner span {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .5;
  text-align: center;
}
/* Quando há imagem real, ocultar o placeholder */
.portfolio-placeholder:has(img) .ph-inner { display: none; }

/* ── DEPOIMENTOS ── */
#depoimentos { background: var(--white); }

.dep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.dep-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.dep-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(30, 45, 64, .1);
}
.dep-card::before {
  content: '\201C';
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 3rem;
  line-height: 1;
  color: var(--red);
  opacity: .15;
  font-family: Georgia, serif;
}

.dep-card blockquote {
  border: none;
  padding: 0;
  margin: 0;
}
.dep-card blockquote p {
  font-size: .9rem;
  color: var(--navy);
  line-height: 1.75;
  font-style: italic;
}

.dep-card figcaption {
  display: flex;
  align-items: center;
  gap: .85rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.dep-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(217, 43, 43, .1);
  border: 2px solid rgba(217, 43, 43, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  color: var(--red);
  flex-shrink: 0;
  overflow: hidden;
}
.dep-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dep-card figcaption strong {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--navy);
}
.dep-card figcaption span {
  font-size: .75rem;
  color: var(--muted);
}

/* ── NICHO TAG COM LINK ── */
.nicho-tag a {
  color: inherit;
  text-decoration: none;
  display: block;
}
.nicho-tag:has(a):hover {
  cursor: pointer;
}

@media (max-width: 900px) {
  .dep-grid { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 768px) {
  .dep-grid { grid-template-columns: 1fr; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .js-enabled .reveal,
  .js-enabled .reveal.visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .hero-badge span,
  .whatsapp-float::before { animation: none !important; }
}
