/* Seven Code · site v2 · Direção A (claro editorial)
   Tokens oficiais: identidade/design-guide.md do SevenCodeOS (15/07/2026) */

/* Fontes self-hosted (variáveis, subset latin): sem request pro Google */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --roxo: #491793;
  --lilas: #D6BFF2;
  --papel: #FAFAF7;
  --tinta: #111113;
  --cinza: #55555C;
  --linha: #E4E2DC;
  --escuro: #0A0A0F;
  --btn-fg: #ffffff;
  --btn-hover: #3A1276;
  --ghost-hover: #F1EFE9;
  --fundo-fim: #0A0A0F;
  --fim-btn-bg: #FAFAF7;
  --fim-btn-hover: #E8E6E0;
}

/* modo escuro (Direção B: base quase-preta, lilás como acento, zero glow) */
[data-theme="dark"] {
  --roxo: #D6BFF2;
  --papel: #0A0A0F;
  --tinta: #FAFAF7;
  --cinza: #A3A3AD;
  --linha: #1E1E26;
  --btn-fg: #111113;
  --btn-hover: #C4A9E8;
  --ghost-hover: #17171F;
  --fundo-fim: #12121A;
  --fim-btn-bg: #D6BFF2;
  --fim-btn-hover: #C4A9E8;
}

html { scroll-behavior: smooth; }

body {
  background: var(--papel); color: var(--tinta);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3 { font-family: "Archivo", "Bahnschrift", "Segoe UI", sans-serif; letter-spacing: -0.03em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 40px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.kicker {
  font-size: 12.5px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--roxo); font-weight: 700; margin-bottom: 26px;
}

.btn {
  display: inline-block; background: var(--roxo); color: var(--btn-fg);
  padding: 13px 26px; border-radius: 6px; font-weight: 600; font-size: 15px;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover { background: var(--btn-hover); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-nav { padding: 10px 20px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--tinta); border: 1px solid var(--linha); }
.btn-ghost:hover { background: var(--ghost-hover); box-shadow: none; }

/* botão de tema (lua/sol) */
.tema {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--linha); background: transparent; color: var(--tinta);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.tema:hover { background: var(--ghost-hover); transform: translateY(-1px); }
.tema .ico-sol { display: none; }
[data-theme="dark"] .tema .ico-lua { display: none; }
[data-theme="dark"] .tema .ico-sol { display: block; }

/* logo por tema */
.logo-escuro { display: none; }
[data-theme="dark"] .logo-claro { display: none; }
[data-theme="dark"] .logo-escuro { display: block; }

/* ===== header ===== */
header { padding: 24px 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.marca { display: flex; align-items: center; gap: 12px; }
.marca img { height: 34px; }
.marca span { font-family: "Archivo", sans-serif; font-weight: 700; letter-spacing: 0.14em; font-size: 14px; color: var(--tinta); }
.nav-links { display: flex; gap: 32px; font-size: 14.5px; color: var(--cinza); font-weight: 500; align-items: center; }
.nav-links a:hover, .nav-links a.ativo { color: var(--tinta); }
.menu-toggle {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.menu-toggle:focus-visible + .menu-btn { outline: 2px solid var(--roxo); outline-offset: 2px; }
.menu-btn { display: none; }

/* ===== hero (home) ===== */
.hero { padding: 100px 0 70px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: 1.02; font-weight: 800; max-width: 980px; }
.hero h1 em, .page-hero h1 em { font-style: normal; color: var(--roxo); }
.hero p.sub, .page-hero p.sub {
  margin-top: 30px; font-size: 20px; color: var(--cinza); max-width: 640px; line-height: 1.55;
}
.hero-cta { margin-top: 44px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ===== hero (páginas internas) ===== */
.page-hero { padding: 80px 0 0; }
.page-hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.04; font-weight: 800; max-width: 880px; }
.page-hero p.sub { font-size: 19px; }

/* ===== faixa de prova ===== */
.prova { border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); padding: 22px 0; margin-top: 90px; }
.prova .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.prova p { font-size: 15px; color: var(--cinza); }
.prova strong { color: var(--tinta); font-weight: 600; }
.prova .site { font-size: 14px; font-weight: 600; color: var(--roxo); letter-spacing: 0.04em; }

/* ===== seções ===== */
section { padding: 110px 0 0; }
.sec-head h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.08; font-weight: 700; max-width: 780px; }
.sec-head .kicker { margin-bottom: 18px; }
.sec-head p.apoio { margin-top: 16px; font-size: 17px; color: var(--cinza); max-width: 640px; line-height: 1.6; }

/* ===== colunas de serviço (home) ===== */
.servicos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; margin-top: 70px; }
.servico .num {
  font-family: "Archivo", sans-serif; font-size: 15px; font-weight: 700; color: var(--roxo);
  display: block; margin-bottom: 18px;
}
.servico h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.02em; }
.servico p { font-size: 15.5px; color: var(--cinza); line-height: 1.6; }
.servico .mais { display: inline-block; margin-top: 14px; font-size: 14.5px; font-weight: 600; color: var(--roxo); }

/* ===== lista com check ===== */
.lista { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 48px; }
.item { display: flex; gap: 14px; align-items: flex-start; }
.item .ck {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--roxo); color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 3px;
}
.item h3 { font-size: 17.5px; margin-bottom: 4px; letter-spacing: -0.01em; }
.item p { font-size: 15px; color: var(--cinza); line-height: 1.55; }

/* ===== timeline ===== */
.linha-tempo { display: flex; gap: 0; margin-top: 60px; }
.etapa { flex: 1; padding-right: 32px; }
.etapa::before { content: ""; display: block; height: 3px; background: var(--roxo); margin-bottom: 20px; }
.etapa .quando { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--roxo); font-weight: 700; }
.etapa h3 { font-size: 18px; margin: 8px 0 6px; }
.etapa p { font-size: 14px; color: var(--cinza); line-height: 1.55; }

/* ===== case / stats ===== */
.case-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 70px; margin-top: 64px; align-items: start; }
.case-grid p.desc { font-size: 17px; color: var(--cinza); line-height: 1.65; }
.case-stats { display: grid; border-top: 1px solid var(--linha); }
.stat { padding: 22px 0; border-bottom: 1px solid var(--linha); }
.stat .valor { font-family: "Archivo", sans-serif; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.stat .valor span { color: var(--roxo); }
.stat .rotulo { font-size: 13.5px; color: var(--cinza); margin-top: 2px; }
.case-link { display: inline-block; margin-top: 28px; font-weight: 600; color: var(--roxo); font-size: 15.5px; }

/* ===== projetos ===== */
.projeto { margin-top: 70px; padding-top: 50px; border-top: 1px solid var(--linha); display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; }
.projeto:first-of-type { border-top: 0; padding-top: 0; }
.projeto .tipo { font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--roxo); font-weight: 700; }
.projeto h3 { font-size: 30px; font-weight: 800; margin-top: 10px; letter-spacing: -0.02em; }
.projeto p { font-size: 16px; color: var(--cinza); line-height: 1.65; }
.projeto ul { list-style: none; margin-top: 18px; }
.projeto ul li { font-size: 15px; color: var(--cinza); padding-left: 22px; position: relative; margin-bottom: 8px; }
.projeto ul li::before { content: "✓"; color: var(--roxo); font-weight: 700; position: absolute; left: 0; }

/* ===== sobre ===== */
.sobre-grid { display: grid; grid-template-columns: 420px 1fr; gap: 70px; align-items: center; margin-top: 64px; }
.foto-real { border-radius: 8px; overflow: hidden; }
.sobre-grid .texto p { font-size: 18px; color: var(--cinza); line-height: 1.7; max-width: 540px; }
.sobre-grid .texto p + p { margin-top: 18px; }
.sobre-grid .texto strong { color: var(--tinta); }

/* ===== FAQ ===== */
.faq { margin-top: 56px; max-width: 780px; }
.faq details { border-top: 1px solid var(--linha); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--linha); }
.faq summary {
  font-family: "Archivo", sans-serif; font-weight: 600; font-size: 17.5px; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--roxo); font-size: 22px; font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; font-size: 15.5px; color: var(--cinza); line-height: 1.6; max-width: 680px; }

/* ===== CTA final escuro ===== */
.fim { background: var(--fundo-fim); color: #FAFAF7; margin-top: 120px; padding: 100px 0; transition: background-color 0.3s ease; }
.fim h2 { font-size: clamp(34px, 4vw, 58px); font-weight: 800; line-height: 1.06; max-width: 820px; letter-spacing: -0.03em; }
.fim h2 em { font-style: normal; color: var(--lilas); }
.fim p { margin-top: 24px; color: #A3A3AD; font-size: 18px; max-width: 560px; }
.fim .hero-cta { margin-top: 40px; }
.fim .btn { background: var(--fim-btn-bg); color: #111113; }
.fim .btn:hover { background: var(--fim-btn-hover); }

/* ===== footer ===== */
footer { background: var(--fundo-fim); color: #8A8A94; padding: 0 0 48px; transition: background-color 0.3s ease; }
footer .wrap { border-top: 1px solid #1E1E26; padding-top: 32px; }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; font-size: 13.5px; }
.foot-grid .marca-f { color: #FAFAF7; font-weight: 600; letter-spacing: 0.1em; font-family: "Archivo", sans-serif; }
.foot-grid a:hover { color: #FAFAF7; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* ===== movimento sóbrio =====
   Entrada suave dos elementos ao rolar (classe aplicada via site.js) e
   intro do hero. Sem partícula, sem 3D, sem glow: vida, não circo. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.on { opacity: 1; transform: none; }

@keyframes entrada {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.js .hero .kicker, .js .page-hero .kicker { animation: entrada 0.6s ease both 0.05s; }
.js .hero h1, .js .page-hero h1 { animation: entrada 0.7s ease both 0.15s; }
.js .hero .sub, .js .page-hero .sub { animation: entrada 0.7s ease both 0.3s; }
.js .hero .hero-cta, .js .page-hero .hero-cta { animation: entrada 0.7s ease both 0.45s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero .kicker, .js .hero h1, .js .hero .sub, .js .hero .hero-cta,
  .js .page-hero .kicker, .js .page-hero h1, .js .page-hero .sub, .js .page-hero .hero-cta { animation: none; }
  .btn, .tema, body, .fim, footer { transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== responsivo ===== */
@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  section { padding: 72px 0 0; }
  .hero { padding: 64px 0 48px; }
  .page-hero { padding: 56px 0 0; }
  .prova { margin-top: 64px; }
  .servicos, .case-grid, .sobre-grid, .lista, .projeto { grid-template-columns: 1fr; gap: 40px; }

  /* empilhado no celular, cada bloco claramente separado por linha */
  .servicos { gap: 0; margin-top: 36px; }
  .servico { padding: 28px 0; border-top: 1px solid var(--linha); }
  .servico:first-child { border-top: 0; padding-top: 4px; }
  .lista { gap: 0; margin-top: 28px; }
  .item { padding: 22px 0; border-top: 1px solid var(--linha); }
  .item:first-child { border-top: 0; padding-top: 6px; }
  .linha-tempo { flex-direction: column; gap: 40px; margin-top: 44px; }
  .etapa { padding-right: 0; }
  .projeto { gap: 22px; margin-top: 44px; padding-top: 40px; }

  .foto-real { max-width: 420px; }

  /* rodapé centralizado: marca, mantra, WhatsApp+Instagram, email, privacidade */
  .foot-grid { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
  .foot-links { justify-content: center; gap: 12px 22px; margin-top: 8px; }
  .foot-links a[href^="mailto"], .foot-links a[href="/privacidade"] { flex-basis: 100%; text-align: center; }

  /* menu mobile (sem JavaScript) */
  .menu-btn {
    display: block; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--tinta);
    border: 1px solid var(--linha); border-radius: 6px; padding: 9px 16px; user-select: none;
  }
  .nav-links {
    display: none; position: absolute; top: 76px; left: 0; right: 0; z-index: 10;
    background: var(--papel); border-bottom: 1px solid var(--linha);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 16px;
  }
  .nav-links a { padding: 12px 0; width: 100%; font-size: 16px; }
  .menu-toggle:checked ~ .nav-links { display: flex; }
  header { position: relative; }
  .nav .btn-nav { display: none; }
}
