/* ============================================================
   bloco. — site styles · Brand M1 "Ponto" (direção moderna)
   Wordmark: "bloco" grotesk minúsculas + quadrado azul (o ponto)
   Paleta: ink #0A0A0C · cream #FAF7EB · navy #14264C · blue #3E7BF0
   Tipo: Hanken Grotesk 800 (display/wordmark) · Inter (corpo/nav/labels)
   Fonte oficial: brand/brand-assets-m1 (pack canónico)
   Um só tema: paper com secções ink; azul como acento estrutural
   Regras de copy: sem "&", sem "mandato", tom sóbrio
   ============================================================ */

:root {
  --ink:     #0a0a0c;                 /* primary · pack oficial */
  --ink-2:   #12131a;
  --ink-3:   #1b1c26;
  --navy:    #14264c;                 /* support · secções, dados */
  --paper:   #faf7eb;                 /* cream · pack oficial */
  --white:   #fffdf6;
  --blue:    #3e7bf0;
  --blue-d:  #2f63c9;

  --text:    #0f0f13;                 /* texto sobre claro */
  --line:    rgba(10,10,12,0.14);
  --line-i:  rgba(250,247,235,0.16);  /* hairline sobre ink */
  --mute:    rgba(10,10,12,0.62);
  --mute-i:  rgba(250,247,235,0.66);

  --font-display: 'Hanken Grotesk', 'Inter', sans-serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --header-h: 84px;
  --header-h-mob: 64px;
  --radius: 2px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --sp-md: 28px;
  --sp-lg: 84px;
  --sp-xl: 148px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
p a, .body a, .lead a { text-underline-offset: 3px; }
p a:hover, .body a:hover, .lead a:hover { color: var(--blue); }

/* ---- idiomas ---- */
html[lang="pt"] .lang-en { display: none !important; }
html[lang="en"] .lang-pt { display: none !important; }

/* ============================================================
   WORDMARK — "bloco" + ponto azul
   ============================================================ */
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  display: inline-flex; align-items: baseline;
}
.logo .dot {
  display: inline-block;
  width: 0.16em; height: 0.16em;
  background: var(--blue);
  margin-left: 0.07em;
}
.logo.sm { font-size: 27px; }
.logo.lg { font-size: clamp(64px, 9vw, 130px); }

/* quadrado azul como marcador de destaque (fim de títulos) */
.sq {
  display: inline-block;
  width: 0.16em; height: 0.16em;
  background: var(--blue);
  margin-left: 0.12em;
}
/* mantém o quadrado colado à última palavra (nunca sozinho numa linha) */
.nsq { white-space: nowrap; }

/* ============================================================
   SECÇÕES — contexto de cor
   ============================================================ */
.s-paper { background: var(--paper); color: var(--text); }
.s-white { background: var(--white); color: var(--text); }
.s-ink   { background: var(--ink);   color: var(--paper); }
.s-ink-2 { background: var(--ink-2); color: var(--paper); }
.s-ink .eyebrow, .s-ink-2 .eyebrow { color: var(--mute-i); }
.s-ink hr.rule, .s-ink-2 hr.rule { border-color: var(--line-i); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,235,0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: transform 0.45s var(--ease);
}
.header.header-hide { transform: translateY(-100%); }
.header-inner {
  max-width: 1360px; margin: 0 auto;
  height: var(--header-h);
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 36px;
}
.nav {
  display: flex; align-items: center; gap: 32px;
  font-weight: 500;
  font-size: 11.5px; letter-spacing: 0.13em;
  text-transform: uppercase;
}
.nav a { opacity: 0.6; transition: opacity 0.18s ease; position: relative; padding: 4px 0; }
.nav a:hover, .nav a.active { opacity: 1; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav .nav-cta { display: none; }

.header-right { display: flex; align-items: center; gap: 20px; }
.lang-toggle {
  display: inline-flex; gap: 2px;
  font-weight: 500; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
}
.lang-toggle button {
  background: none; border: none; color: inherit; cursor: pointer;
  padding: 6px 7px; font: inherit; opacity: 0.4; transition: opacity 0.18s ease;
}
.lang-toggle button:hover { opacity: 0.8; }
.lang-toggle button.active { opacity: 1; }
.lang-toggle .sep { opacity: 0.3; padding: 6px 0; }

.nav-toggle { display: none; background: none; border: none; color: inherit; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 1020px) {
  html { scroll-padding-top: calc(var(--header-h-mob) + 16px); }
  .header-inner { height: var(--header-h-mob); padding: 0 22px; gap: 18px; }
  .logo.sm { font-size: 23px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); flex-direction: column; align-items: flex-start;
    padding: 28px 40px; gap: 18px; border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .header.header-hide { transform: none; }        /* mobile: header fica fixo, não se esconde ao scroll */
  .header-right .btn { display: none; }           /* esconde o CTA solto do header */
  .nav .nav-cta { display: inline-flex; width: 100%; justify-content: center; margin-top: 6px; } /* CTA dentro do menu */
}

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 14px; letter-spacing: 0.01em;
  padding: 15px 28px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  cursor: pointer; transition: all 0.2s ease;
  background: transparent; color: inherit; white-space: nowrap;
}
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn:hover { border-color: var(--blue); color: var(--blue); }

.btn-blue {
  background: var(--blue); border-color: var(--blue); color: #fff;
}
.btn-blue:hover { background: var(--blue-d); border-color: var(--blue-d); color: #fff; }

.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-ink:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.s-ink .btn-ink, .s-ink-2 .btn-ink { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.s-ink .btn-ink:hover, .s-ink-2 .btn-ink:hover { background: transparent; color: var(--paper); border-color: var(--paper); }

/* ============================================================
   LAYOUT · TIPOGRAFIA
   ============================================================ */
.container { max-width: 1360px; margin: 0 auto; padding: 0 40px; }
.section { padding: var(--sp-xl) 0; }
.section-tight { padding: var(--sp-lg) 0; }
@media (max-width: 640px) { .container { padding: 0 22px; } }

.eyebrow {
  font-weight: 500; font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 26px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--blue); flex: none; }

.h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 6.6vw, 96px);
  letter-spacing: -0.03em; line-height: 1.0; margin: 0;
}
.h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4.2vw, 58px);
  letter-spacing: -0.025em; line-height: 1.04; margin: 0 0 24px;
}
.h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
  letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px;
}
.lead {
  font-size: 18px; line-height: 1.65; margin: 0;
  color: var(--mute); max-width: 62ch;
}
.s-ink .lead, .s-ink-2 .lead, .hero .lead { color: var(--mute-i); }
.body { font-size: 15.5px; line-height: 1.7; color: var(--mute); }
.s-ink .body, .s-ink-2 .body { color: var(--mute-i); }
.body strong, .lead strong { color: inherit; font-weight: 600; }

/* ============================================================
   HERO — imagem full-bleed
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  min-height: 92vh;
  display: flex; align-items: flex-end;
  color: var(--paper);
}
.hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,12,0.55) 0%, rgba(10,10,12,0.22) 55%, rgba(10,10,12,0.10) 100%),
    linear-gradient(180deg, rgba(10,10,12,0.34) 0%, rgba(10,10,12,0.16) 40%, rgba(10,10,12,0.82) 100%);
}

/* legibilidade sobre fotografia: texto claro forte + sombra subtil */
.hero, .page-hero, .band { --mute-i: rgba(250,247,235,0.95); }
.hero .h1, .page-hero .h1, .band-quote {
  text-shadow: 0 1px 3px rgba(0,0,0,0.30), 0 10px 44px rgba(0,0,0,0.35);
}
.hero .lead, .page-hero .lead, .hero .eyebrow, .page-hero .eyebrow, .hero-tags {
  text-shadow: 0 1px 2px rgba(0,0,0,0.35), 0 6px 28px rgba(0,0,0,0.30);
}
.page-hero .lead { color: var(--mute-i); }
.hero .container { position: relative; padding-top: 160px; padding-bottom: 76px; width: 100%; }
.hero .h1 { max-width: 20ch; }
.hero .lead { margin-top: 30px; }
.hero-foot {
  margin-top: 54px;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap;
}
.hero-tags {
  font-weight: 500; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--mute-i);
  line-height: 2.1;
}

/* banner das subpáginas */
.page-hero {
  position: relative; overflow: hidden;
  min-height: 54vh;
  display: flex; align-items: flex-end;
  color: var(--paper);
}
.page-hero .container { position: relative; padding-top: 140px; padding-bottom: 58px; width: 100%; }
.page-hero .h1 { max-width: 18ch; font-size: clamp(40px, 5.4vw, 76px); }
.page-hero .lead { margin-top: 24px; max-width: 58ch; }

/* ============================================================
   CARDS DE SERVIÇO (home)
   ============================================================ */
.svc-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px 44px;
}
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; gap: 48px; } }
.svc { display: block; }
.svc-img {
  aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--ink-3);
  border-radius: var(--radius);
}
.svc-img > div {
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
  transition: transform 0.8s var(--ease);
}
.svc:hover .svc-img > div { transform: scale(1.045); }
.svc-label {
  margin: 22px 0 10px;
  font-weight: 500; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--mute);
  display: flex; align-items: center; gap: 10px;
}
.svc-label::before { content: ""; width: 7px; height: 7px; background: var(--blue); }
.svc-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 27px; letter-spacing: -0.02em; margin: 0 0 10px;
}
.svc-body { font-size: 14.5px; line-height: 1.65; color: var(--mute); margin: 0 0 14px; max-width: 52ch; }
.svc-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 14px;
  border-bottom: 1px solid var(--line); padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}
.svc:hover .svc-more { color: var(--blue); border-color: var(--blue); gap: 13px; }

/* ============================================================
   NÚMEROS / STATS
   ============================================================ */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.s-ink .stats-row, .s-ink-2 .stats-row { background: var(--line-i); border-color: var(--line-i); }
@media (max-width: 900px) { .stats-row { grid-template-columns: 1fr 1fr; } }
.stat { background: inherit; padding: 40px 30px 36px; }
.s-paper .stat { background: var(--paper); }
.s-white .stat { background: var(--white); }
.s-ink .stat { background: var(--ink); }
.s-ink-2 .stat { background: var(--ink-2); }
.stat .n {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 3.4vw, 52px); letter-spacing: -0.02em; line-height: 1;
}
.stat .n em { font-style: normal; color: var(--blue); }
.stat .l {
  margin-top: 12px;
  font-weight: 500; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mute);
}
.s-ink .stat .l, .s-ink-2 .stat .l { color: var(--mute-i); }

/* ============================================================
   MÉTODO / PASSOS · LISTAS
   ============================================================ */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 44px;
}
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step .num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 15px; color: var(--blue);
  margin-bottom: 14px;
}
.step-title { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; margin-bottom: 10px; }
.step-body { font-size: 14px; line-height: 1.7; color: var(--mute); }
.s-ink .step-body, .s-ink-2 .step-body { color: var(--mute-i); }

/* lista com quadrados azuis */
.list { list-style: none; padding: 0; margin: 0; }
.list li {
  position: relative; padding-left: 26px;
  font-size: 15.5px; line-height: 1.65; color: var(--mute);
  margin-bottom: 14px;
}
.s-ink .list li, .s-ink-2 .list li { color: var(--mute-i); }
.list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; background: var(--blue);
}
.list li strong { color: inherit; font-weight: 600; }

/* ============================================================
   SPLIT · MEDIA
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 940px) { .split { grid-template-columns: 1fr; gap: 44px; } }
.split-img {
  aspect-ratio: 4 / 3.4; border-radius: var(--radius); overflow: hidden;
  background: var(--ink-3);
}
.split-img > div { width: 100%; height: 100%; background-size: cover; background-position: center; }

/* banda de imagem com afirmação */
.band {
  position: relative; overflow: hidden;
  min-height: 52vh;
  display: flex; align-items: center;
  color: var(--paper);
}
.band .container { position: relative; }
.band-quote {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 3.4vw, 44px);
  letter-spacing: -0.02em; line-height: 1.15;
  max-width: 26ch; margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--paper); padding: 90px 0 34px; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; flex-wrap: wrap; margin-bottom: 70px;
}
.footer .tagline {
  margin-top: 20px;
  font-size: 14px; color: var(--mute-i); max-width: 34ch; line-height: 1.7;
}
.footer-cols {
  display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 40px;
}
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer h4 {
  font-weight: 500; font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--mute-i); margin: 0 0 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { font-size: 14px; line-height: 2.2; }
.footer li a { opacity: 0.85; transition: opacity 0.18s ease, color 0.18s ease; }
.footer li a:hover { opacity: 1; color: var(--blue); }
.footer-bottom {
  margin-top: 70px; padding-top: 24px;
  border-top: 1px solid var(--line-i);
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute-i);
}

/* ============================================================
   FORM
   ============================================================ */
.form { display: flex; flex-direction: column; gap: 18px; }
.form label {
  font-weight: 500; font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mute); margin-bottom: 7px;
}
.form input, .form textarea, .form select {
  font-family: var(--font-sans); font-size: 15px;
  padding: 15px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%; max-width: 100%;   /* impede overflow horizontal em mobile (selects longos) */
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* selects uniformes com o resto do site (sem estilo nativo do OS) */
.form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%23101014' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
  text-overflow: ellipsis;
}
.form select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%233e7bf0' stroke-width='1.6'/%3E%3C/svg%3E");
}
.form select::-ms-expand { display: none; }

.form input:hover, .form textarea:hover, .form select:hover { border-color: rgba(10,10,12,0.32); }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(62,123,240,0.16);
}
.form textarea { resize: vertical; min-height: 140px; }
.form .field { display: flex; flex-direction: column; min-width: 0; }
.cond { display: flex; flex-direction: column; gap: 18px; }
.cond[hidden] { display: none !important; }
.cond:not([hidden]) { animation: cond-in 0.5s var(--ease); }
@keyframes cond-in { from { opacity: 0; transform: translateY(10px); } }

/* ============================================================
   UTILITIES
   ============================================================ */
.center { text-align: center; }
.mt-sm { margin-top: 16px; } .mt-md { margin-top: 28px; } .mt-lg { margin-top: 64px; }
.mb-md { margin-bottom: 28px; }
.flex { display: flex; gap: 16px; flex-wrap: wrap; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.muted { color: var(--mute); }

/* ============================================================
   MOTION — reveals (JS adiciona .rv; sem JS fica estático)
   ============================================================ */
.rv {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.rv.in { opacity: 1; transform: none; }

/* hero: imagem ganha escala e o conteúdo sobe */
.hero-img, .page-hero .hero-img, .band .hero-img { transition: transform 1.6s var(--ease); }
html.motion-ready .hero-img { transform: scale(1.0); }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .header { transition: none; }
  .nav a::after { transition: none; }
  .cond:not([hidden]) { animation: none; }
  .hero-img { transition: none; transform: none; }
  .svc-img > div { transition: none; }
  html { scroll-behavior: auto; }
}
