/* ==========================================================================
   L2 DESENVOLVIMENTO WEB — style.css
   Mobile-first. Breakpoints: 640px (tablet), 960px (desktop), 1200px (wide)
   ========================================================================== */

:root {
  /* Cores */
  --ink: #0F1B2D;          /* fundo escuro principal */
  --ink-soft: #16233A;     /* fundo escuro secundário */
  --mint: #38E1A6;         /* acento dados / crescimento */
  --coral: #FF6B4A;        /* acento call to action */
  --paper: #F5F3EE;        /* fundo claro */
  --paper-alt: #ECE9E1;    /* fundo claro secundário */
  --text-dark: #17202E;
  --text-muted: #5B6472;
  --text-on-ink: #E7EAF0;
  --text-on-ink-muted: #9AA4B5;
  --border-light: #DEDAD0;
  --border-ink: rgba(231, 234, 240, 0.14);

  /* Tipografia */
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  /* Espaçamento */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --radius: 14px;
  --radius-sm: 8px;
  --max-width: 1180px;
  --header-height: 84px;
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; color: inherit; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--mint);
  color: var(--ink);
  padding: var(--space-1) var(--space-2);
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-2);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: var(--space-1);
  font-weight: 600;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--coral);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); background: #ff5734; }
.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--mint); color: var(--mint); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(15, 27, 45, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-ink);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.logo {
  display: flex;
  align-items: center;
}
.logo-full-img {
  display: block;
  height: 40px;
  width: auto;
}
.footer-logo-img { height: 40px; }

@media (min-width: 480px) {
  .logo-full-img { height: 54px; }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  z-index: 110;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-on-ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--ink);
  padding: var(--space-4) var(--space-2);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.nav.is-open { transform: translateX(0); }
.nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: 1.25rem;
}
.nav-link { color: var(--text-on-ink); font-weight: 600; }
.nav-link:hover { color: var(--mint); }
.nav-cta { align-self: flex-start; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav {
    position: static;
    background: none;
    padding: 0;
    transform: none;
    flex-direction: row;
    align-items: center;
    gap: var(--space-4);
  }
  .nav-list { flex-direction: row; gap: var(--space-3); font-size: 0.95rem; }
  .nav-cta { padding: 0.6rem 1.25rem; font-size: 0.9rem; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  background: var(--ink);
  color: var(--text-on-ink);
  padding: calc(var(--header-height) + var(--space-5)) 0 var(--space-6);
  background-image:
    linear-gradient(rgba(15,27,45,0.97), rgba(15,27,45,0.97)),
    repeating-linear-gradient(0deg, rgba(56,225,166,0.06) 0, rgba(56,225,166,0.06) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, rgba(56,225,166,0.06) 0, rgba(56,225,166,0.06) 1px, transparent 1px, transparent 40px);
}
.hero-inner {
  display: grid;
  gap: var(--space-5);
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 800;
  margin-bottom: var(--space-2);
  max-width: 16ch;
}
.hero-lead {
  font-size: 1.08rem;
  color: var(--text-on-ink-muted);
  max-width: 52ch;
  margin-bottom: var(--space-3);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hero-actions .btn-ghost { color: var(--text-on-ink); }

.funnel-card {
  background: var(--ink-soft);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius);
  padding: var(--space-3);
  max-width: 420px;
}
.funnel-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-on-ink-muted);
  margin-bottom: var(--space-3);
}
.funnel-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.funnel-name { font-size: 0.85rem; color: var(--text-on-ink-muted); }
.funnel-bar {
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  height: 30px;
  overflow: hidden;
}
.funnel-fill {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  width: 0%;
  padding-inline: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint), #6FF0C4);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.funnel-fill.is-visible { width: var(--w); }
.funnel-footnote {
  font-size: 0.8rem;
  color: var(--text-on-ink-muted);
  margin-top: var(--space-2);
}

@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
}

/* ==========================================================================
   SEÇÕES GERAIS
   ========================================================================== */
section:not(.hero) { padding: var(--space-6) 0; }
section h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); max-width: 22ch; margin-bottom: var(--space-4); }

.grid-cards {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .grid-cards { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.card-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--paper-alt);
  color: var(--ink);
  margin-bottom: var(--space-2);
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.1rem; margin-bottom: var(--space-1); }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Diferenciais ---------- */
.diferenciais { background: var(--paper-alt); }
.grid-diferenciais {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid-diferenciais { grid-template-columns: repeat(2, 1fr); } }
.diferencial-num {
  font-family: var(--font-mono);
  color: var(--coral);
  font-weight: 600;
  font-size: 0.9rem;
}
.diferencial h3 { margin: var(--space-1) 0; font-size: 1.15rem; }
.diferencial p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Processo / timeline ---------- */
.timeline { display: flex; flex-direction: column; gap: var(--space-4); }
.timeline-item { display: grid; grid-template-columns: 56px 1fr; gap: var(--space-3); }
.timeline-index {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--mint);
  background: var(--ink);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-content h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.timeline-content p { color: var(--text-muted); font-size: 0.95rem; }

@media (min-width: 768px) {
  .timeline { position: relative; }
  .timeline::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 22px;
    bottom: 22px;
    width: 2px;
    background: var(--border-light);
  }
}

/* ---------- Portfólio (placeholder) ---------- */
.portfolio { background: var(--paper); text-align: left; }
.portfolio-placeholder-text {
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: var(--space-3);
}

/* ---------- Sobre ---------- */
.sobre-inner {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}
.avatar-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--mint);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
}
.sobre-copy p { color: var(--text-muted); margin-bottom: var(--space-2); }
.sobre-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--ink);
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

@media (min-width: 768px) {
  .sobre-inner { grid-template-columns: 220px 1fr; }
}

/* ---------- Depoimentos ---------- */
.depoimentos { background: var(--paper-alt); }
.depoimento-estrelas { color: var(--coral); font-family: var(--font-mono); font-size: 0.85rem; margin-bottom: var(--space-1); }
.depoimento-texto { color: var(--text-muted); font-size: 0.95rem; margin-bottom: var(--space-2); }
.depoimento-autor { font-weight: 600; font-size: 0.9rem; }
.depoimento-cargo { color: var(--text-muted); font-size: 0.82rem; }

/* ---------- Contato ---------- */
.contato { background: var(--ink); color: var(--text-on-ink); }
.contato-inner { display: grid; gap: var(--space-4); }
.contato-info p { color: var(--text-on-ink-muted); margin-bottom: var(--space-2); }
.contato-canais { display: flex; flex-direction: column; gap: var(--space-1); margin-top: var(--space-3); }
.contato-canais a { color: var(--mint); font-weight: 600; }
.contato-canais a:hover { text-decoration: underline; }

.form { display: flex; flex-direction: column; gap: var(--space-2); }
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-size: 0.88rem; color: var(--text-on-ink-muted); }
.form-row input,
.form-row select,
.form-row textarea {
  background: var(--ink-soft);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  color: var(--text-on-ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: var(--mint); }
.form-row-checkbox { flex-direction: row; align-items: flex-start; gap: 0.6rem; }
.form-row-checkbox label { font-size: 0.85rem; }
.form-row-checkbox a { color: var(--mint); text-decoration: underline; }
.form-submit { margin-top: var(--space-1); }
.form-feedback { font-size: 0.9rem; min-height: 1.2em; }
.form-feedback.is-success { color: var(--mint); }
.form-feedback.is-error { color: var(--coral); }

/* honeypot: escondido de humanos, visível para bots que ignoram CSS */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width: 960px) {
  .contato-inner { grid-template-columns: 0.9fr 1.1fr; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: #0B1421; color: var(--text-on-ink-muted); padding: var(--space-4) 0; }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}
.footer-brand { display: flex; align-items: center; gap: var(--space-2); font-size: 0.9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-3); font-size: 0.9rem; }
.footer-links a:hover { color: var(--mint); }
.footer-social { display: flex; gap: var(--space-2); }
.footer-social svg { width: 20px; height: 20px; }
.footer-social a:hover { color: var(--mint); }
.footer-copy { font-size: 0.8rem; }

@media (min-width: 960px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}
