/* ============================================================
   SG Consultoria Odoo — folha de estilos
   Paleta derivada do universo Odoo: berinjela + teal sobre claro
   ============================================================ */

:root {
  /* Cores */
  --ink: #221a2b;          /* texto principal */
  --ink-soft: #5c5265;     /* texto secundário */
  --primary: #714b67;      /* roxo Odoo */
  --primary-deep: #4d3247; /* roxo profundo (hover, header escuro) */
  --teal: #0e7c7b;         /* acento secundário */
  --bg: #fbfafc;           /* fundo geral */
  --bg-alt: #f4f1f6;       /* fundo de seções alternadas */
  --surface: #ffffff;      /* cartões */
  --dark: #2a2033;         /* seções escuras */
  --dark-soft: #3a2e46;    /* superfícies sobre o escuro */
  --line: #e6e0ea;         /* bordas */
  --on-dark: #efe9f2;      /* texto sobre escuro */

  /* Tipografia */
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, "Cascadia Mono", monospace;

  /* Métricas */
  --radius: 14px;
  --container: 1120px;
  --section-y: clamp(4rem, 9vw, 6.5rem);
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--primary); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--primary-deep); color: #fff;
  padding: 0.6rem 1rem; border-radius: 0 0 8px 8px;
  text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ---------- Utilitários de layout ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.container-narrow { max-width: 780px; }

.section { padding-block: var(--section-y); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-dark h2 { color: #fff; }

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 600; }
.section-lead { color: var(--ink-soft); font-size: 1.125rem; }
.section-dark .section-lead { color: #c9bdd2; }
.section-foot {
  margin: 2.5rem 0 0; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft); max-width: 640px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

/* Rótulo técnico (eyebrow) */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.9rem;
}
.eyebrow::before { content: "▸ "; }
.section-dark .eyebrow { color: #6fc2c1; }

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 0.8rem 1.6rem;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-deep); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-small { padding: 0.45rem 1.1rem; font-size: 0.9375rem; }

/* ============================================================
   Cabeçalho
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 252, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(34, 26, 43, 0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--ink); font-size: 1.0625rem;
  flex: none; white-space: nowrap;
}
.brand-mark {
  width: auto; height: 2.4rem; flex: none;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  padding-left: 0.65rem;
  border-left: 1px solid var(--line);
}

/* O bloco de ferramentas fica ancorado à direita: a barra mantém a mesma
   geometria em qualquer idioma, mesmo com rótulos de larguras diferentes. */
.site-nav {
  flex: 1 1 auto; min-width: 0;
  display: flex; justify-content: flex-end;
}
.nav-list {
  display: flex; align-items: center; flex-wrap: nowrap;
  gap: clamp(0.7rem, 1.3vw, 1.2rem);
  list-style: none;
}
.nav-list a {
  white-space: nowrap;
}
.nav-list a:not(.btn) {
  text-decoration: none; color: var(--ink-soft);
  font-weight: 500; font-size: 0.9063rem;
  transition: color 0.15s;
}
.nav-list a:not(.btn):hover { color: var(--primary); }

/* Ferramentas do cabeçalho: idioma + botão do menu */
.header-tools { display: flex; align-items: center; gap: 0.6rem; flex: none; }

.lang-switch {
  display: flex;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2px;
  gap: 2px;
}
.lang-btn {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: transparent;
  border: none; border-radius: 8px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(34, 26, 43, 0.1);
}
.lang-btn .flag {
  width: 1.25rem; height: 0.9rem; flex: none;
  border-radius: 2px;
  filter: saturate(0.25) opacity(0.65);
  transition: filter 0.15s;
}
.lang-btn.is-active .flag,
.lang-btn:hover .flag { filter: none; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 2.6rem; height: 2.6rem;
  position: relative; cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: ""; position: absolute; left: 50%;
  width: 1.15rem; height: 2px; border-radius: 2px;
  background: var(--ink); transform: translateX(-50%);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle-bar { top: calc(50% - 1px); }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* ============================================================
   Hero + mapa de módulos (assinatura visual)
   ============================================================ */
.hero {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(113, 75, 103, 0.09), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  max-width: 14ch;
}
.hero-lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.8rem 0 2.2rem; }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem;
  list-style: none;
  font-family: var(--font-mono); font-size: 0.8125rem;
  color: var(--ink-soft);
}
.hero-proof li::before { content: "✓ "; color: var(--teal); }

/* Grade de módulos */
.module-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
.module-tile {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.25;
  padding: 0.7rem 0.65rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 0.4rem;
  box-shadow: 0 1px 3px rgba(34, 26, 43, 0.04);
  opacity: 0;
  transform: translateY(10px);
  animation: tile-in 0.5s ease forwards;
}
/* Entrada escalonada dos 18 blocos */
.module-tile:nth-child(1)  { animation-delay: 0.05s; }
.module-tile:nth-child(2)  { animation-delay: 0.10s; }
.module-tile:nth-child(3)  { animation-delay: 0.15s; }
.module-tile:nth-child(4)  { animation-delay: 0.20s; }
.module-tile:nth-child(5)  { animation-delay: 0.25s; }
.module-tile:nth-child(6)  { animation-delay: 0.30s; }
.module-tile:nth-child(7)  { animation-delay: 0.35s; }
.module-tile:nth-child(8)  { animation-delay: 0.40s; }
.module-tile:nth-child(9)  { animation-delay: 0.45s; }
.module-tile:nth-child(10) { animation-delay: 0.50s; }
.module-tile:nth-child(11) { animation-delay: 0.55s; }
.module-tile:nth-child(12) { animation-delay: 0.60s; }
.module-tile:nth-child(13) { animation-delay: 0.65s; }
.module-tile:nth-child(14) { animation-delay: 0.70s; }
.module-tile:nth-child(15) { animation-delay: 0.75s; }
.module-tile:nth-child(16) { animation-delay: 0.80s; }
.module-tile:nth-child(17) { animation-delay: 0.85s; }
.module-tile:nth-child(18) { animation-delay: 0.90s; }
@keyframes tile-in { to { opacity: 1; transform: none; } }

.module-tile.is-accent {
  background: var(--primary); border-color: var(--primary);
  color: #fff; font-weight: 500;
}
.module-tile.is-accent-2 {
  background: #eaf4f4; border-color: #bcdedd; color: var(--teal); font-weight: 500;
}
.module-tile.is-more {
  border-style: dashed; background: transparent; justify-content: center;
}
.module-ico { font-size: 0.6rem; opacity: 0.8; }

/* ============================================================
   Sobre / listas laterais
   ============================================================ */
.fact-list {
  list-style: none;
  display: grid; gap: 1rem;
}
.fact-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
  color: var(--ink-soft);
  font-size: 0.9688rem;
}
.fact-list strong {
  display: block; color: var(--ink);
  font-family: var(--font-display); font-weight: 600;
  margin-bottom: 0.2rem; font-size: 1.0625rem;
}

/* ============================================================
   Cartões de serviço
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(113, 75, 103, 0.4);
  box-shadow: 0 14px 34px rgba(34, 26, 43, 0.1);
}
.card h3 { font-size: 1.1875rem; font-weight: 600; margin-bottom: 0.75rem; }
.card-icon {
  display: inline-flex; width: 2.75rem; height: 2.75rem;
  align-items: center; justify-content: center;
  background: rgba(113, 75, 103, 0.09);
  color: var(--primary);
  border-radius: 10px;
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 1.4rem; height: 1.4rem; }
.card-list {
  list-style: none;
  display: grid; gap: 0.45rem;
  color: var(--ink-soft); font-size: 0.9375rem;
}
.card-list li { padding-left: 1.2rem; position: relative; }
.card-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.45rem; height: 0.45rem; border-radius: 2px;
  background: var(--teal); opacity: 0.7;
}

/* ============================================================
   Metodologia — etapas numeradas
   ============================================================ */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  counter-reset: etapa;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.5rem;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--primary);
  display: inline-block;
  border: 1px solid rgba(113, 75, 103, 0.35);
  border-radius: 99px;
  padding: 0.15rem 0.7rem;
  margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); font-size: 0.9375rem; margin: 0; }
.step-tag {
  font-family: var(--font-mono); font-size: 0.7rem;
  vertical-align: middle;
  background: #eaf4f4; color: var(--teal);
  border-radius: 6px; padding: 0.15rem 0.5rem;
  margin-left: 0.35rem; letter-spacing: 0.05em;
}

/* ============================================================
   Benefícios
   ============================================================ */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem 2.5rem;
}
.benefit h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.4rem; }
.benefit p { color: var(--ink-soft); font-size: 0.9375rem; margin: 0; }
.benefit-icon {
  display: inline-flex; width: 2.5rem; height: 2.5rem;
  align-items: center; justify-content: center;
  color: var(--teal);
  background: #eaf4f4;
  border-radius: 10px;
  margin-bottom: 0.9rem;
}
.benefit-icon svg { width: 1.35rem; height: 1.35rem; }

/* ============================================================
   Diferenciais (seção escura)
   ============================================================ */
.diff-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.9rem 2.5rem;
  max-width: 60rem;
}
.diff-list li {
  position: relative;
  padding: 0.8rem 1rem 0.8rem 2.5rem;
  background: var(--dark-soft);
  border-radius: 10px;
  font-size: 0.9688rem;
}
.diff-list li::before {
  content: "✓";
  position: absolute; left: 1rem; top: 0.78rem;
  color: #6fc2c1; font-weight: 700;
}

/* ============================================================
   Tecnologias
   ============================================================ */
.tech-stack {
  list-style: none;
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
}
.tech-stack li {
  display: grid;
  grid-template-columns: 10.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft); font-size: 0.9688rem;
}
.tech-stack strong {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 0.875rem; color: var(--ink);
}

.chips-label {
  font-family: var(--font-mono); font-size: 0.8125rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-soft); margin-bottom: 1rem;
}
.chips {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.chips li {
  font-size: 0.875rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.35rem 0.9rem;
  color: var(--ink-soft);
}
.chips li:last-child { border-style: dashed; font-style: italic; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: grid; gap: 0.75rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 1.4rem;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: rgba(113, 75, 103, 0.45); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2rem 1.1rem 0;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.0313rem;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  color: var(--primary); font-size: 1.3rem;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { color: var(--ink-soft); padding-bottom: 1.2rem; margin: 0; }

/* ============================================================
   Contato
   ============================================================ */
.section-cta { background: linear-gradient(160deg, var(--dark) 0%, var(--primary-deep) 100%); }
.cta-inner { text-align: center; }
.cta-inner .section-lead { margin-left: auto; margin-right: auto; }

/* E-mail e telefone: os únicos canais de contato da página */
.contact-channels {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.75rem 1rem;
  font-family: var(--font-mono); font-size: 0.9375rem;
  margin-top: 2rem;
}
.contact-channels a {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border: 1px solid rgba(216, 201, 214, 0.35);
  border-radius: 99px;
  color: #d8c9d6;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.contact-channels a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

/* ============================================================
   Rodapé
   ============================================================ */
.site-footer {
  background: #1d1526;
  color: #9b8fa5;
  font-size: 0.875rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; justify-content: space-between;
  padding-block: 1.75rem;
}
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 1.4rem; }
.footer-inner a { color: #b8abc2; text-decoration: none; }
.footer-inner a:hover { color: #fff; }

/* ============================================================
   Animação de entrada por rolagem (ativada via JS)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Movimento reduzido
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .module-tile { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}

/* ============================================================
   Responsivo
   ============================================================ */
/* Entre o menu completo e o menu móvel, o logotipo já identifica a marca:
   o descritor sai para o menu não encostar nele. */
@media (max-width: 1060px) and (min-width: 881px) {
  .brand-text { display: none; }
}

@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .module-map { max-width: 30rem; }
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-list {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(34, 26, 43, 0.12);
    padding: 0.5rem 1.25rem 1.25rem;
    list-style: none;
  }
  .nav-list.is-open { display: flex; }
  .nav-list li { border-top: 1px solid var(--line); }
  .nav-list li:last-child { border-top: none; padding-top: 0.9rem; }
  .nav-list a:not(.btn) { display: block; padding: 0.85rem 0; }
  .site-nav { position: static; }
  .site-header .container { position: relative; }

  .tech-stack li { grid-template-columns: 1fr; gap: 0.15rem; }
}

@media (max-width: 480px) {
  .module-map { grid-template-columns: repeat(2, 1fr); }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
  .brand-text { font-size: 0.9375rem; }
  .lang-btn { padding: 0.35rem 0.45rem; }
  .lang-code { display: none; }
}
