/* =========================================================
   CAPITALIZEI ASSESSORIA — Design System (Linha Vitrine temperada)
   Paleta ancorada na marca: navy #010B27 + turquesa #01BFC6
   ========================================================= */

:root {
  /* Cores */
  --navy: #010B27;
  --navy-80: rgba(1, 11, 39, 0.8);
  --teal: #01BFC6;
  --teal-dark: #017A80;
  --teal-light: #7FE3E8;
  --teal-wash: #E4F6F7;
  --panel: #D2ECEF;        /* painel teal suave — banda de contraste sem ser escura */
  --bg: #F3F7F8;
  --surface: #FFFFFF;
  --ink: #071026;
  --ink-soft: #4A5A6B;
  --whatsapp: #25D366;
  --line: rgba(1, 11, 39, 0.08);
  --shadow-sm: 0 2px 8px rgba(1, 11, 39, 0.06);
  --shadow-md: 0 12px 32px rgba(1, 11, 39, 0.10);
  --shadow-lg: 0 24px 60px rgba(1, 11, 39, 0.16);

  /* Tipografia */
  --display: 'Fraunces', Georgia, serif;
  --body: 'Manrope', system-ui, sans-serif;
  --mono: 'Space Mono', monospace;

  /* Métricas */
  --radius: 16px;
  --radius-sm: 8px;
  --container: 1200px;
  --nav-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: var(--navy); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-dark);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 9px; height: 9px; background: var(--teal); transform: rotate(45deg); display: inline-block; }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p.lead { margin-top: 16px; color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 0.98rem;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--teal); color: var(--navy); box-shadow: 0 8px 24px rgba(1, 191, 198, 0.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(1, 191, 198, 0.5); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); transform: translateY(-2px); }
.btn-wa { background: var(--whatsapp); color: #fff; box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35); }
.btn-wa:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(37, 211, 102, 0.5); }
.on-navy .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.25); }
.on-navy .btn-ghost:hover { border-color: var(--teal); color: var(--teal-light); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
.nav.scrolled { background: rgba(243, 247, 248, 0.9); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); }
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 34px; height: 34px; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--navy); letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--ink); position: relative; transition: color .2s; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--teal); transition: width .25s ease; }
.nav-links a:hover { color: var(--teal-dark); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--navy); transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--navy); color: #fff; overflow: hidden;
  padding: calc(var(--nav-h) + 70px) 0 100px;
}
.hero::before, .hero::after { content: ''; position: absolute; opacity: 0.07; pointer-events: none; }
.hero .diamond-bg { position: absolute; top: -80px; right: -60px; width: 520px; opacity: 0.06; pointer-events: none; }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.hero .eyebrow { color: var(--teal-light); }
.hero h1 {
  color: #fff; font-size: clamp(2.4rem, 5.2vw, 4rem); margin: 22px 0 24px; max-width: 16ch;
}
.hero h1 .hl { color: var(--teal-light); }
.hero p.sub { font-size: 1.18rem; color: rgba(255,255,255,0.82); max-width: 52ch; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-visual { position: relative; }
.hero-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px; padding: 30px; backdrop-filter: blur(6px);
}
.hero-card .mark { width: 60px; margin-bottom: 20px; }
.hero-stat { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.hero-stat:last-child { border-bottom: none; padding-bottom: 0; }
.hero-stat:first-of-type { padding-top: 0; }
.hero-stat-num { display: block; font-family: var(--display); font-weight: 600; font-size: 1.35rem; color: var(--teal-light); letter-spacing: -0.01em; margin-bottom: 3px; }
.hero-stat-lbl { display: block; font-size: 0.92rem; line-height: 1.45; color: rgba(255,255,255,0.75); }

/* ---------- Prova rápida (strip) ---------- */
.strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.strip .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-top: 40px; padding-bottom: 40px; }
.strip-item { display: flex; gap: 16px; align-items: flex-start; }
.strip-item .diamond { width: 12px; height: 12px; background: var(--teal); transform: rotate(45deg); margin-top: 6px; flex-shrink: 0; }
.strip-item .num { font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: var(--navy); }
.strip-item .lbl { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- Sobre ---------- */
.sobre .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.sobre-media { position: relative; }
.sobre-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 480px; object-fit: cover; }
.sobre-badge {
  position: absolute; left: -20px; bottom: -20px; background: var(--navy); color: #fff;
  padding: 22px 26px; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 260px;
}
.sobre-badge .diamond { width: 14px; height: 14px; background: var(--teal); transform: rotate(45deg); margin-bottom: 12px; }
.sobre-badge p { font-size: 0.95rem; color: rgba(255,255,255,0.85); }
.sobre-text p.body { margin-top: 20px; color: var(--ink-soft); font-size: 1.06rem; }

/* ---------- Metodologia (Percurso — signature) ---------- */
.percurso { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.percurso .diamond-bg { position: absolute; bottom: -120px; left: -80px; width: 480px; opacity: 0.05; }
.percurso .section-head h2 { color: #fff; }
.percurso .section-head p.lead { color: rgba(255,255,255,0.75); }
.percurso .section-head .eyebrow { color: var(--teal-light); }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.steps::before { /* linha do percurso */
  content: ''; position: absolute; top: 27px; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, var(--teal-dark), var(--teal), var(--teal-dark));
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s ease;
}
.steps.drawn::before { transform: scaleX(1); }
.step { position: relative; }
.step-marker {
  width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 24px;
  background: var(--navy); border: 2px solid var(--teal); border-radius: 50%; position: relative; z-index: 2;
}
.step-marker .diamond { width: 18px; height: 18px; background: var(--teal); transform: rotate(45deg); transition: transform .4s ease; }
.step:hover .step-marker .diamond { transform: rotate(135deg); }
.step .num { font-family: var(--mono); color: var(--teal-light); font-size: 0.85rem; letter-spacing: 0.1em; }
.step h3 { color: #fff; margin: 6px 0 12px; }
.step p { color: rgba(255,255,255,0.78); font-size: 1rem; }

/* ---------- Serviços (vitrine) ---------- */
.servicos .grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.svc {
  background: var(--surface); border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative; overflow: hidden;
}
.svc::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc:hover::before { transform: scaleX(1); }
.svc-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--teal-wash);
  display: grid; place-items: center; margin-bottom: 20px; color: var(--teal-dark); font-size: 1.4rem;
}
.svc:hover .svc-icon { background: var(--teal); color: var(--navy); }
.svc h3 { font-size: 1.22rem; margin-bottom: 10px; }
.svc p { color: var(--ink-soft); font-size: 0.96rem; }
/* destaque nos serviços-âncora */
.svc.featured { background: linear-gradient(160deg, var(--navy), #06183a); color: #fff; }
.svc.featured h3 { color: #fff; }
.svc.featured p { color: rgba(255,255,255,0.8); }
.svc.featured .svc-icon { background: rgba(1,191,198,0.15); color: var(--teal-light); }

/* ---------- Diferenciais ---------- */
.dif { background: var(--panel); }
.dif .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.dif-item { padding: 28px 24px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.dif-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.dif-item .diamond { width: 14px; height: 14px; background: var(--teal); transform: rotate(45deg); margin-bottom: 18px; }
.dif-item h3 { font-size: 1.15rem; margin-bottom: 10px; }
.dif-item p { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- Depoimentos ---------- */
.depo .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.depo-card {
  background: var(--surface); border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); position: relative;
}
.depo-card .quote { font-family: var(--display); font-size: 3.5rem; line-height: 1; color: var(--teal); opacity: 0.35; }
.depo-card p.text { font-size: 1.02rem; color: var(--ink); margin: 6px 0 22px; }
.depo-author { display: flex; align-items: center; gap: 14px; }
.depo-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--teal-light); display: grid; place-items: center; font-family: var(--display); font-weight: 600; }
.depo-author .name { font-weight: 700; font-size: 0.98rem; color: var(--navy); }
.depo-author .ctx { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { background: var(--panel); }
.faq .container { max-width: 840px; }
.faq-item { border-bottom: 1px solid rgba(1, 11, 39, 0.12); }
.faq-q {
  width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-family: var(--display); font-weight: 600; font-size: 1.14rem; color: var(--navy);
}
.faq-q .ico { width: 26px; height: 26px; flex-shrink: 0; position: relative; }
.faq-q .ico::before, .faq-q .ico::after { content: ''; position: absolute; background: var(--teal-dark); transition: transform .3s ease; }
.faq-q .ico::before { top: 12px; left: 4px; right: 4px; height: 2px; }
.faq-q .ico::after { left: 12px; top: 4px; bottom: 4px; width: 2px; }
.faq-item.open .faq-q .ico::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 0 24px; color: var(--ink-soft); font-size: 1rem; max-width: 68ch; }

/* ---------- CTA final ---------- */
.cta-final { background: var(--navy); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-final .diamond-bg { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 620px; opacity: 0.05; }
.cta-final .container { position: relative; z-index: 2; max-width: 720px; }
.cta-final h2 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.cta-final p { color: rgba(255,255,255,0.8); font-size: 1.15rem; margin: 18px auto 34px; max-width: 52ch; }

/* ---------- Blog teaser ---------- */
.blog-teaser .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card img { height: 190px; width: 100%; object-fit: cover; }
.post-body { padding: 24px 26px; }
.post-body .tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-dark); }
.post-body h3 { font-size: 1.2rem; margin: 10px 0; }
.post-body p { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- Footer ---------- */
.footer { background: #010817; color: rgba(255,255,255,0.72); padding: 72px 0 32px; }
.footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer .brand-name { color: #fff; }
.footer .tagline { margin-top: 18px; max-width: 40ch; font-size: 0.98rem; }
.footer h4 { color: #fff; font-family: var(--body); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.footer a { display: block; padding: 6px 0; transition: color .2s; font-size: 0.96rem; }
.footer a:hover { color: var(--teal-light); }
.footer .bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 26px; font-size: 0.85rem; color: rgba(255,255,255,0.5); flex-wrap: wrap; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; display: grid; place-items: center; font-size: 1.7rem;
  box-shadow: 0 10px 30px rgba(37,211,102,0.45); animation: waPulse 2.6s infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes waPulse { 0%,100% { box-shadow: 0 10px 30px rgba(37,211,102,0.45); } 50% { box-shadow: 0 10px 30px rgba(37,211,102,0.75), 0 0 0 14px rgba(37,211,102,0); } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 440px; }
  .servicos .grid, .depo .grid, .blog-teaser .grid { grid-template-columns: repeat(2, 1fr); }
  .dif .grid { grid-template-columns: repeat(2, 1fr); }
  .sobre .container { grid-template-columns: 1fr; gap: 48px; }
  .sobre-media img { height: 400px; }
  .footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column;
    background: var(--surface); padding: 24px; gap: 18px; box-shadow: var(--shadow-md); align-items: flex-start;
  }
  .strip .container { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { display: none; }
  .servicos .grid, .depo .grid, .dif .grid, .blog-teaser .grid { grid-template-columns: 1fr; }
  .sobre-badge { position: static; margin-top: 18px; max-width: none; }
  .footer .top { grid-template-columns: 1fr; }
  .footer .bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 400px) {
  .container { padding: 0 18px; }
  .hero h1 { font-size: 2.1rem; }
}

/* ---------- Acessibilidade / motion ---------- */
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .steps::before { transform: scaleX(1); }
}
