/* ============================================================
   JC Digital — site institucional
   Marca: navy #0E1A3D · azul #4A8FE7 (info) · laranja #F47B2A (só ação)
   Tipos: Bricolage Grotesque (display) + Hanken Grotesk (corpo)
   ============================================================ */

:root {
  --navy: #0B1A35;
  --navy-deep: #06122A;
  --navy-surface: #15264C;
  --navy-line: rgba(212, 184, 120, 0.16);

  --blue: #D4B673;       /* dourado claro (acento/links) */
  --blue-soft: #E7D4A4;  /* dourado suave (eyebrows) */

  --orange: #C9A24B;     /* DOURADO — cor de ação (CTA) */
  --orange-bright: #DEB962;

  --ink: #EEF1F8;        /* texto sobre navy */
  --ink-dim: #B7C2D6;    /* secundário sobre navy */

  --paper: #FFFFFF;
  --mist: #F2F4F8;
  --ink-dark: #13223F;     /* texto sobre claro */
  --ink-dark-dim: #4C5B79; /* secundário sobre claro */

  --font-display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  --container: 1140px;
  --radius: 12px;
  --radius-lg: 22px;

  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);

  --z-header: 100;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--ink-dark);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; text-wrap: balance; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2rem); }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--orange); color: var(--navy); font-weight: 600;
  padding: 0.6rem 1rem; border-radius: 8px; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 0.95rem 1.6rem; border-radius: var(--radius);
  min-height: 50px; cursor: pointer; border: 1.5px solid transparent;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
  text-align: center;
}
.btn-primary {
  background: var(--orange); color: var(--navy);
  box-shadow: 0 8px 22px -10px rgba(201, 162, 75, 0.7);
}
.btn-primary:hover { background: var(--orange-bright); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(201, 162, 75, 0.85); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--navy-line); }
.btn-ghost:hover { border-color: var(--blue-soft); color: #fff; transform: translateY(-2px); }
.btn-lg { font-size: 1.1rem; padding: 1.15rem 2.1rem; min-height: 58px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(10, 20, 48, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--navy-line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 0.55rem; }
.brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--navy-line); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.18rem; letter-spacing: -0.01em; color: #fff; }
.brand-ads { color: var(--orange); }
.nav { display: flex; gap: 1.7rem; margin-left: auto; }
.nav a { color: var(--ink-dim); font-weight: 500; font-size: 0.97rem; transition: color 0.18s var(--ease); }
.nav a:hover { color: #fff; }
.header-cta { margin-left: 0.5rem; padding: 0.7rem 1.2rem; min-height: 44px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: var(--ink); padding: clamp(7rem, 14vh, 11rem) 0 clamp(3.5rem, 8vh, 6rem); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  top: -22%; right: -14%; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 75, 0.22), transparent 62%);
  filter: blur(6px);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--navy-line) 1px, transparent 1px), linear-gradient(90deg, var(--navy-line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: 0.18;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.eyebrow { font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em; color: var(--blue-soft); margin-bottom: 1.1rem; }
.hero-title { font-size: clamp(2.7rem, 6.4vw, 5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.0; color: #fff; }
.hero-sub { font-family: var(--font-body); font-weight: 400; font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--ink-dim); margin-top: 1.5rem; max-width: 44ch; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 2rem 2.5rem; margin-top: 2.8rem; padding-top: 1.8rem; border-top: 1px solid var(--navy-line); }
.hero-proof li { display: flex; flex-direction: column; }
.hero-proof strong { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.hero-proof span { font-size: 0.86rem; color: var(--ink-dim); }

/* Hero chart visual */
.hero-visual { justify-self: end; width: 100%; max-width: 400px; }
.chart-card {
  background: linear-gradient(180deg, var(--navy-surface), #101d40);
  border: 1px solid var(--navy-line); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.chart-label { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.chart-tag { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--orange); border: 1px solid rgba(201, 162, 75, 0.4); border-radius: 999px; padding: 0.25rem 0.6rem; }
.chart { width: 100%; height: auto; display: block; }
.chart-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; font-size: 0.82rem; color: var(--ink-dim); }
.chart-foot-strong { color: #fff; font-weight: 600; }

/* ---------- Section titles ---------- */
.section-title { font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -0.025em; color: var(--ink-dark); }
.section-title.light { color: #fff; }
.accent-blue { color: var(--blue); }
.accent-orange { color: var(--orange); }

/* ---------- Manifesto (claro) ---------- */
.manifesto { background: var(--mist); color: var(--ink-dark); padding: clamp(4.5rem, 10vh, 8rem) 0; }
.manifesto-lead { font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--ink-dark-dim); max-width: 60ch; margin-top: 1.5rem; line-height: 1.6; }
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 3rem; }
.versus-col { border-radius: var(--radius-lg); padding: 1.8rem; }
.versus-no { background: #fff; border: 1px solid #E5E9F2; }
.versus-yes { background: var(--navy); color: var(--ink); }
.versus-tag { display: inline-block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1.1rem; }
.versus-no .versus-tag { color: var(--ink-dark-dim); }
.versus-yes .versus-tag { color: var(--orange); }
.versus-col ul { display: grid; gap: 0.85rem; }
.versus-col li { position: relative; padding-left: 1.8rem; font-weight: 500; }
.versus-col li::before { position: absolute; left: 0; top: 0.05em; font-weight: 700; }
.versus-no li { color: var(--ink-dark-dim); }
.versus-no li::before { content: "✕"; color: #C2496A; }
.versus-yes li { color: var(--ink); }
.versus-yes li::before { content: "✓"; color: var(--blue-soft); }

/* ---------- Serviços (navy) ---------- */
.servicos { background: var(--navy); color: var(--ink); padding: clamp(4.5rem, 10vh, 8rem) 0; }
.servicos .section-title { margin-bottom: 2.6rem; }
.servicos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.servico { background: var(--navy-surface); border: 1px solid var(--navy-line); border-radius: var(--radius-lg); padding: 1.9rem; transition: transform 0.2s var(--ease), border-color 0.2s var(--ease); }
.servico:hover { transform: translateY(-4px); border-color: rgba(201, 162, 75, 0.5); }
.servico h3 { font-size: 1.4rem; color: #fff; margin-bottom: 0.6rem; }
.servico p { color: var(--ink-dim); }
.servico-core { grid-column: 1 / -1; background: linear-gradient(135deg, #16244D 0%, #182a59 60%, #1d2f63 100%); border-color: rgba(201, 162, 75, 0.35); padding: clamp(1.9rem, 4vw, 2.8rem); }
.servico-core-mark { display: inline-block; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--orange); border: 1px solid rgba(201, 162, 75, 0.45); border-radius: 999px; padding: 0.3rem 0.75rem; margin-bottom: 1rem; }
.servico-core h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.servico-plats { color: var(--blue-soft); font-weight: 600; margin-bottom: 0.7rem; }
.servico-core p { max-width: 52ch; font-size: 1.08rem; }
.servico-cta { display: inline-block; margin-top: 1.3rem; color: var(--orange); font-weight: 600; transition: gap 0.2s var(--ease); }
.servico-cta:hover { color: var(--orange-bright); }

/* ---------- Resultados (claro) ---------- */
.resultados { background: var(--paper); color: var(--ink-dark); padding: clamp(4.5rem, 10vh, 8rem) 0; }
.resultados-head { max-width: 24ch; }
.resultados-figure { font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -0.03em; line-height: 1.04; }
.resultados-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-dark-dim); margin-top: 1.4rem; max-width: 54ch; }
.clientes { margin-top: 3.2rem; padding-top: 2.4rem; border-top: 1px solid #E5E9F2; }
.clientes-label { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-dark-dim); margin-bottom: 1.3rem; }
.clientes-list { display: flex; flex-wrap: wrap; gap: 0.7rem 0.9rem; }
.clientes-list li { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink-dark); background: var(--mist); border: 1px solid #E5E9F2; border-radius: 999px; padding: 0.5rem 1.1rem; }
.social-proof { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 2.6rem; }
.social-stat { display: flex; flex-direction: column; background: var(--mist); border: 1px solid #E5E9F2; border-radius: var(--radius); padding: 1.1rem 1.5rem; transition: transform 0.18s var(--ease), border-color 0.18s var(--ease); }
.social-stat:hover { transform: translateY(-3px); border-color: var(--blue); }
.social-stat strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--ink-dark); letter-spacing: -0.02em; }
.social-stat span { font-size: 0.88rem; color: var(--ink-dark-dim); }

/* ---------- Sobre (navy) ---------- */
.sobre { background: var(--navy-deep); color: var(--ink); padding: clamp(4.5rem, 10vh, 8rem) 0; }
.sobre-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.sobre-copy .eyebrow { margin-bottom: 0.8rem; }
.sobre-copy .section-title { margin-bottom: 1.2rem; }
.sobre-copy p { color: var(--ink-dim); max-width: 52ch; }
.sobre-quote { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 600; line-height: 1.3; color: #fff; padding-left: 1.6rem; border-left: 3px solid var(--orange); }

/* ---------- CTA final (navy) ---------- */
.cta-final { background: var(--navy); color: var(--ink); padding: clamp(5rem, 11vh, 8.5rem) 0; position: relative; overflow: hidden; }
.cta-final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(201, 162, 75, 0.18), transparent 70%); pointer-events: none; }
.cta-inner { position: relative; text-align: center; max-width: 40ch; margin-inline: auto; }
.cta-title { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.03em; color: #fff; }
.cta-sub { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--ink-dim); margin: 1.3rem auto 2.4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--ink-dim); padding: clamp(3.5rem, 7vh, 5rem) 0 2.5rem; border-top: 1px solid var(--navy-line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.95rem; max-width: 30ch; }
.footer-col h3 { font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #fff; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { transition: color 0.18s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--navy-line); }
.footer-bottom p { font-size: 0.84rem; color: var(--ink-dim); }

/* ============================================================
   Motion / reveal
   ============================================================ */
html.js [data-reveal] { opacity: 0; transform: translateY(20px); }
html.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.hero-copy [data-reveal]:nth-child(1).is-in { transition-delay: 0.05s; }
.hero-copy [data-reveal]:nth-child(2).is-in { transition-delay: 0.13s; }
.hero-copy [data-reveal]:nth-child(3).is-in { transition-delay: 0.21s; }
.hero-copy [data-reveal]:nth-child(4).is-in { transition-delay: 0.29s; }
.hero-copy [data-reveal]:nth-child(5).is-in { transition-delay: 0.37s; }
.hero-visual.is-in { transition-delay: 0.32s; }

.chart-line { stroke-dasharray: 460; stroke-dashoffset: 460; }
html.js .hero-visual.is-in .chart-line { animation: draw 1.4s var(--ease) 0.5s forwards; }
.chart-dot { opacity: 0; }
html.js .hero-visual.is-in .chart-dot { animation: pop 0.4s var(--ease) 1.7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .chart-line { stroke-dashoffset: 0 !important; animation: none !important; }
  .chart-dot { opacity: 1 !important; animation: none !important; }
  .btn:hover, .servico:hover, .social-stat:hover { transform: none !important; }
}

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { justify-self: stretch; max-width: 460px; }
  .sobre-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .versus { grid-template-columns: 1fr; }
  .servicos-grid { grid-template-columns: 1fr; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 520px) {
  .hero-proof { gap: 1.3rem 1.8rem; }
  .hero-proof strong { font-size: 1.3rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-actions .btn { width: 100%; }
}
