/* ==========================================================================
   G Company — Estilo institucional compartilhado
   Tema escuro sóbrio (navy profundo) + 1 accent controlado
   ========================================================================== */

:root {
  /* Superfícies / base */
  --ink-950: #070B14;
  --ink-900: #0A0F1C;
  --ink-850: #0E1424;
  --ink-800: #121A2E;
  --ink-700: #17203A;

  /* Linhas e véus */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --veil: rgba(7, 11, 20, 0.72);

  /* Texto */
  --text: #EAEFF7;
  --text-muted: #9BA8C0;
  --text-dim: #6E7B95;

  /* Accent controlado */
  --accent: #5B8CFF;
  --accent-hover: #7AA1FF;
  --accent-soft: rgba(91, 140, 255, 0.14);
  --accent-ring: rgba(91, 140, 255, 0.45);

  /* Feedback */
  --ok: #34D399;
  --err: #F87171;

  /* Tipografia */
  --font-head: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Ritmo / medidas */
  --wrap: 1120px;
  --wrap-narrow: 760px;
  --radius: 14px;
  --radius-lg: 20px;
  --header-h: 72px;

  /* Sombra */
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);

  /* Transições */
  --t: 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset básico ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 82% -12%, rgba(91, 140, 255, 0.10), transparent 60%),
    radial-gradient(900px 600px at -8% 8%, rgba(91, 140, 255, 0.06), transparent 55%),
    var(--ink-950);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--text);
}

p { margin: 0 0 1em; }

::selection { background: var(--accent-soft); color: #fff; }

/* Foco visível global */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Salto para conteúdo (acessibilidade) */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: #071022;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 10px;
  transition: top var(--t);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section { padding-block: clamp(64px, 10vw, 120px); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.section-tag::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.eyebrow-lead { color: var(--text-muted); max-width: 60ch; }

/* ---------- Botões ---------- */
.btn {
  --_bg: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t), background var(--t), border-color var(--t), color var(--t);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--accent);
  color: #071022;
  box-shadow: 0 10px 30px -12px var(--accent-ring);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--veil);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* Wordmark / logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
}
.brand:focus-visible { outline-offset: 6px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-text b { color: var(--accent); font-weight: 700; }

/* Navegação desktop */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--text-muted);
  padding: 9px 14px;
  border-radius: 9px;
  transition: color var(--t), background var(--t);
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-link[aria-current="page"] { color: var(--text); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.nav-cta { margin-left: 10px; }

/* Botão hambúrguer */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; left: 0; }
.nav-toggle span::after { position: absolute; top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(72px, 13vw, 148px) clamp(56px, 9vw, 104px);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 78%);
  opacity: 0.5;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero-title {
  font-size: clamp(2.4rem, 6.4vw, 4.3rem);
  max-width: 15ch;
  margin-bottom: 0.55em;
}
.hero-title .grad {
  background: linear-gradient(120deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  color: var(--text-muted);
  max-width: 58ch;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: linear-gradient(180deg, var(--ink-850), var(--ink-900));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.4vw, 36px);
  transition: transform var(--t), border-color var(--t), background var(--t);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }

.card-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-soft);
  border: 1px solid rgba(91, 140, 255, 0.28);
  margin-bottom: 20px;
  color: var(--accent);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.28rem; margin-bottom: 0.5em; }
.card p { color: var(--text-muted); margin-bottom: 0; }

.pillar-num {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 14px;
}

/* Lista de checagem */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--text-muted);
}
.check-list li strong { color: var(--text); font-weight: 600; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--accent-soft);
  border: 1px solid rgba(91, 140, 255, 0.28);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235B8CFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- Section header (título + intro) ---------- */
.section-head { max-width: 62ch; margin-bottom: clamp(38px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
.section-head p { color: var(--text-muted); font-size: 1.08rem; margin-bottom: 0; }

/* ---------- Split (texto + painel) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(700px 300px at 80% 0%, rgba(91, 140, 255, 0.18), transparent 60%),
    linear-gradient(180deg, var(--ink-800), var(--ink-900));
  padding: clamp(38px, 6vw, 68px);
  text-align: center;
}
.cta-banner h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); max-width: 20ch; margin-inline: auto; }
.cta-banner p { color: var(--text-muted); max-width: 52ch; margin-inline: auto 0; margin-inline: auto; margin-bottom: 30px; }
.cta-banner .hero-actions { justify-content: center; }

/* ---------- Contato ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: start;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}
.contact-email:hover { color: var(--accent); }

.contact-methods { display: grid; gap: 14px; margin-top: 28px; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  transition: border-color var(--t), transform var(--t);
}
.contact-method:hover { border-color: var(--accent); transform: translateX(3px); }
.contact-method .ico {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.contact-method .ico svg { width: 20px; height: 20px; }
.contact-method .m-label { font-size: 0.82rem; color: var(--text-dim); }
.contact-method .m-value { font-weight: 600; }

/* ---------- Formulário ---------- */
.form-card {
  background: linear-gradient(180deg, var(--ink-850), var(--ink-900));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.field .req { color: var(--accent); }
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--ink-950);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 14px 15px;
  transition: border-color var(--t), box-shadow var(--t);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-dim); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 140px; }

.field-error {
  display: none;
  color: var(--err);
  font-size: 0.85rem;
  margin-top: 7px;
}
.field.has-error input,
.field.has-error textarea { border-color: var(--err); }
.field.has-error .field-error { display: block; }

.form-status {
  display: none;
  align-items: flex-start;
  gap: 11px;
  padding: 15px 17px;
  border-radius: 12px;
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.form-status.is-visible { display: flex; }
.form-status.is-ok { background: rgba(52, 211, 153, 0.10); border: 1px solid rgba(52, 211, 153, 0.4); color: #b7f5df; }
.form-status.is-err { background: rgba(248, 113, 113, 0.10); border: 1px solid rgba(248, 113, 113, 0.4); color: #ffc9c9; }
.form-status svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }

.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn .spinner {
  display: none;
  width: 17px; height: 17px;
  border: 2px solid rgba(7, 16, 34, 0.35);
  border-top-color: #071022;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: 0.65; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-note { font-size: 0.85rem; color: var(--text-dim); margin-top: 4px; margin-bottom: 0; }

/* ---------- Sobre: fatos ---------- */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255, 255, 255, 0.02);
}
.fact .k { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 6px; }
.fact .v { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; color: var(--text); }

.values { display: grid; gap: 18px; }
.value-item { display: flex; gap: 16px; align-items: flex-start; }
.value-item .ico {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid rgba(91, 140, 255, 0.28);
  color: var(--accent);
}
.value-item .ico svg { width: 21px; height: 21px; }
.value-item h3 { font-size: 1.12rem; margin-bottom: 0.3em; }
.value-item p { color: var(--text-muted); margin-bottom: 0; }

.prose p { color: var(--text-muted); }
.prose p strong { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-950);
  padding-block: clamp(48px, 7vw, 72px) 30px;
  margin-top: clamp(40px, 6vw, 80px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; max-width: 40ch; margin-bottom: 0; }

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-nav a { color: var(--text-muted); font-size: 0.96rem; transition: color var(--t); }
.footer-nav a:hover { color: var(--accent); }

.footer-legal { color: var(--text-muted); font-size: 0.9rem; font-style: normal; line-height: 1.7; }
.footer-legal .company-name { color: var(--text); font-weight: 600; }
.footer-legal a { color: var(--text-muted); }
.footer-legal a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.88rem;
}
.footer-bottom .tag { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom .tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Reveal ao rolar ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 640ms var(--t), transform 640ms var(--t);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 80ms; }
.reveal.d2 { transition-delay: 160ms; }
.reveal.d3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .nav-toggle { display: inline-flex; }

  /* Menu mobile */
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-900);
    border-bottom: 1px solid var(--line);
    padding: 12px clamp(20px, 5vw, 40px) 22px;
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--t), transform var(--t), visibility var(--t);
  }
  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav-link { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .nav-link[aria-current="page"]::after { display: none; }
  .nav-link[aria-current="page"] { background: rgba(255, 255, 255, 0.04); }
  .nav-cta { margin-left: 0; margin-top: 12px; }
  .nav-cta .btn { width: 100%; }

  .facts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* Bloqueia scroll do body com menu aberto */
body.nav-open { overflow: hidden; }
