/* =========================================================
   Jonathan Bispo — portfólio / consultoria
   CSS3 vanilla, mobile first
   ========================================================= */

/* ---------- Tokens (tema claro, padrão) ----------
   O claro é sempre o ponto de partida, para todo mundo — não depende do
   sistema operacional de quem visita. O escuro só entra se a pessoa
   escolher manualmente no botão do header (persiste via localStorage). */
:root {
  --bg:            #f6f8fc;
  --bg-alt:        #eef1f8;
  --surface:       #ffffff;
  --surface-2:     #eef1f8;
  --border:        #dbe2f0;
  --text:          #10182c;
  --text-soft:     #3d4a66;
  --text-mute:     #667089;
  --accent:        #0c8fa8;
  --accent-2:      #5457d1;
  --accent-ink:    #ffffff;
  --whatsapp:      #1fa855;
  --whatsapp-dark: #15803d;

  --header-bg:          rgba(255, 255, 255, .82);
  --header-bg-scrolled: rgba(255, 255, 255, .95);

  --radius:   14px;
  --radius-lg: 22px;
  --shadow:   0 10px 30px rgba(16, 24, 44, .12);
  --shadow-sm: 0 4px 14px rgba(16, 24, 44, .08);
  --float-shadow: 0 10px 26px rgba(16, 24, 44, .22);

  --gutter: 20px;
  --maxw: 1140px;

  --ff: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --header-h: 62px;

  color-scheme: light;
}

/* ---------- Tokens (tema escuro) ----------
   Só ativa por escolha manual (botão no header, com [data-theme="dark"]
   no <html>). Não segue mais a preferência do sistema operacional. */
:root[data-theme="dark"] {
  --bg:            #0b0f19;
  --bg-alt:        #101728;
  --surface:       #141c30;
  --surface-2:     #1a2440;
  --border:        #243252;
  --text:          #eef2fb;
  --text-soft:     #b3bed6;
  --text-mute:     #8493b0;
  --accent:        #22d3ee;
  --accent-2:      #7c8cff;
  --accent-ink:    #04222a;
  --whatsapp:      #25d366;
  --whatsapp-dark: #1da851;

  --header-bg:          rgba(11, 15, 25, .82);
  --header-bg-scrolled: rgba(11, 15, 25, .95);

  --shadow:   0 10px 30px rgba(0, 0, 0, .35);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, .25);
  --float-shadow: 0 10px 26px rgba(0, 0, 0, .4);

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--ff);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, picture, svg { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.85rem, 7vw, 3.35rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 5.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  font-weight: 700;
  z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 760px; }

.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { margin-bottom: 30px; }
.section-head h2 { margin-bottom: .35em; }
.section-sub { color: var(--text-soft); font-size: 1.02rem; margin: 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 .7em;
}

.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: .98rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
  min-height: 48px;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 20px; height: 20px; fill: currentColor; flex: none; }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #052e16;
  box-shadow: 0 8px 22px rgba(37, 211, 102, .25);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 9px 16px; min-height: 40px; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: var(--header-bg-scrolled);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  font-weight: 800;
  font-size: .95rem;
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: .95rem; }
.brand-text small { font-size: .72rem; color: var(--text-mute); }

.header-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- Seletor de idioma ----------
   Usa <details>/<summary>: abre e fecha sem JavaScript nenhum, e os links
   ficam no HTML (o Google rastreia as outras versões do site por eles). */
.lang-switch { position: relative; }
.lang-switch > summary {
  height: 46px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  color: var(--text-soft);
  font-size: .84rem;
  font-weight: 700;
  list-style: none;
  transition: border-color .2s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary::marker { content: ""; }
.lang-switch > summary:hover { border-color: var(--accent); color: var(--accent); }
.lang-switch[open] > summary { border-color: var(--accent); color: var(--accent); }
.lang-switch .ico-globe { width: 19px; height: 19px; fill: currentColor; flex: none; }
.lang-current-label { letter-spacing: .04em; }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 120;
}
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
}
.lang-menu a:hover { background: var(--surface-2); color: var(--accent); text-decoration: none; }
.lang-menu a.is-active { color: var(--accent); background: var(--surface-2); }
.lang-menu .lang-code {
  flex: none;
  width: 26px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--text-mute);
}
.lang-menu a.is-active .lang-code { color: var(--accent); }

.theme-toggle {
  width: 46px; height: 46px;
  display: grid;
  place-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  color: var(--text-soft);
  transition: border-color .2s ease, color .2s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .ico-moon, .theme-toggle .ico-sun {
  width: 21px; height: 21px;
  fill: currentColor;
  grid-area: 1 / 1;
}
.theme-toggle .ico-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: block; }

.nav-toggle {
  width: 46px; height: 46px;
  display: grid;
  place-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.nav.is-open { max-height: 80vh; overflow-y: auto; }
.nav ul { padding: 8px var(--gutter) 22px; }
.nav li + li { border-top: 1px solid var(--border); }
.nav li.nav-cta { border-top: 0; padding-top: 16px; }
.nav a:not(.btn) {
  display: block;
  padding: 15px 2px;
  color: var(--text);
  font-weight: 600;
}
.nav a:not(.btn):hover, .nav a.is-active { color: var(--accent); text-decoration: none; }
.nav .btn { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 40px 0 52px;
  background:
    radial-gradient(1000px 520px at 88% -8%, rgba(34, 211, 238, .16), transparent 62%),
    radial-gradient(760px 460px at -10% 12%, rgba(124, 140, 255, .14), transparent 60%),
    var(--bg);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }

.hero-photo { position: relative; flex: none; }
.hero-photo img {
  width: 180px; height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(34, 211, 238, .55);
  box-shadow: 0 0 0 10px rgba(34, 211, 238, .08), var(--shadow);
}

.hero h1 { margin-bottom: .45em; }
.lead { color: var(--text-soft); font-size: 1.05rem; max-width: 62ch; margin-inline: auto; }
.lead strong { color: var(--text); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 22px 0 0;
}
.hero-actions .btn { flex: 1 1 100%; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}
.hero-badges li {
  font-size: .8rem;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 13px;
  border-radius: 999px;
}

/* ---------- Stats ---------- */
.stats { background: var(--bg-alt); border-block: 1px solid var(--border); padding: 34px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
.stat { text-align: center; }
.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-suffix { font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.stat p { margin: 8px 0 0; font-size: .82rem; color: var(--text-mute); line-height: 1.45; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 18px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, .45); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .5em; }
.card p { color: var(--text-soft); font-size: .95rem; margin-bottom: 0; }

.card-ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.card-list { margin-top: 14px; display: grid; gap: 7px; }
.card-list li {
  position: relative;
  padding-left: 20px;
  font-size: .87rem;
  color: var(--text-mute);
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 3px; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.project-tag {
  display: inline-block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--accent);
  background: rgba(34, 211, 238, .1);
  border: 1px solid rgba(34, 211, 238, .28);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tags li {
  font-size: .76rem;
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 8px;
}

.section-cta { margin-top: 28px; display: flex; justify-content: center; }
.section-cta .btn { width: 100%; }

/* ---------- Processo ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 22px 66px;
}
.step-num {
  position: absolute;
  left: 20px; top: 22px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  font-weight: 800;
  font-size: .95rem;
}
.step h3 { margin-bottom: .35em; }
.step p { color: var(--text-soft); font-size: .93rem; margin: 0; }

/* ---------- Stack ---------- */
.stack-grid { display: grid; gap: 16px; }
.stack-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.stack-group h3 { font-size: .95rem; color: var(--accent); margin-bottom: .3em; }
.stack-group .tags { margin-top: 12px; }

/* ---------- Sobre ---------- */
.about-grid { display: grid; gap: 28px; }
.about-photo img {
  width: 100%;
  height: auto;
  max-width: 300px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 1 / 1;
}
.about-content p { color: var(--text-soft); }
.about-content strong { color: var(--text); }

.timeline { margin-top: 28px; }
.timeline h3 { margin-bottom: 14px; }
.timeline ul { border-left: 2px solid var(--border); padding-left: 18px; display: grid; gap: 16px; }
.timeline li { position: relative; display: grid; gap: 2px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -25px; top: .45em;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .14);
}
.tl-when { font-size: .76rem; color: var(--accent); font-weight: 700; letter-spacing: .04em; }
.tl-what { font-size: .92rem; color: var(--text-soft); }
.tl-what strong { color: var(--text); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 50px 18px 20px;
  font-weight: 700;
  font-size: .98rem;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { color: var(--accent); }
.faq-body { padding: 0 20px 18px; }
.faq-body p { color: var(--text-soft); font-size: .93rem; margin: 0; }

/* ---------- Contato ---------- */
.contact {
  background:
    radial-gradient(820px 420px at 50% 0%, rgba(124, 140, 255, .14), transparent 66%),
    var(--bg);
}
.wa-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow);
}
.field { display: grid; gap: 7px; }
.field label { font-size: .85rem; font-weight: 700; color: var(--text-soft); }
.optional { font-weight: 400; color: var(--text-mute); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 13px 14px;
  min-height: 48px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #5f6e8c; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .18);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2322d3ee'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 22px;
  padding-right: 42px;
}
.form-note { margin: 0; font-size: .78rem; color: var(--text-mute); text-align: center; }

.contact-alt { display: grid; gap: 12px; margin-top: 22px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--text);
  font-size: .92rem;
  transition: border-color .2s ease, transform .2s ease;
}
.contact-item:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.contact-item strong { font-size: .8rem; color: var(--text-mute); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.contact-ico {
  width: 42px; height: 42px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 34px 0 calc(34px + env(safe-area-inset-bottom));
  font-size: .88rem;
}
.footer-inner { display: grid; gap: 20px; }
.footer-brand { margin: 0 0 6px; }
.footer-desc { color: var(--text-mute); margin: 0 0 6px; font-size: .85rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-nav a { color: var(--text-soft); font-size: .88rem; }
.footer-nav a:hover { color: var(--accent); }
.copy { margin: 0; color: var(--text-mute); font-size: .78rem; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: var(--float-shadow);
  z-index: 90;
  transform: translateY(120px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .3s ease, opacity .3s ease, visibility .3s, background-color .2s ease;
}
.wa-float.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.wa-float:hover { background: var(--whatsapp-dark); }
.wa-float svg { width: 30px; height: 30px; fill: #052e16; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Breakpoints
   ========================================================= */

@media (min-width: 560px) {
  .hero-actions .btn { flex: 0 0 auto; }
  .section-cta .btn { width: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-alt { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .wa-form { padding: 30px 28px; }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; --header-h: 72px; }

  .section { padding: 90px 0; }
  .section-head { max-width: 760px; margin-bottom: 44px; }

  .nav-toggle { display: none; }
  .nav {
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: 0;
  }
  .nav ul { display: flex; align-items: center; gap: 4px; padding: 0; }
  .nav li + li { border-top: 0; }
  .nav li.nav-cta { padding-top: 0; margin-left: 10px; }
  .nav a:not(.btn) { padding: 8px 12px; font-size: .9rem; border-radius: 8px; }
  .nav .btn { width: auto; }

  .hero { padding: 80px 0 90px; }
  .hero-inner { flex-direction: row-reverse; text-align: left; align-items: center; gap: 56px; }
  .hero-content { flex: 1 1 auto; }
  .hero-photo img { width: 260px; height: 260px; }
  .lead { margin-inline: 0; font-size: 1.12rem; }
  .hero-actions, .hero-badges { justify-content: flex-start; }

  .cards { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .stack-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-alt { grid-template-columns: repeat(3, 1fr); }

  .about-grid { grid-template-columns: 300px 1fr; align-items: start; gap: 48px; }
  .about-photo { position: sticky; top: calc(var(--header-h) + 24px); }

  .stat-num { font-size: 2.9rem; }
  .stat p { font-size: .88rem; }

  .footer-inner { grid-template-columns: 1.6fr 1fr; align-items: start; }
  .copy { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--border); }
  .footer-nav { justify-content: flex-end; }

  .wa-float { right: 28px; bottom: 28px; width: 62px; height: 62px; }
}

/* ---------- Telas muito estreitas (≤ 420px) ----------
   Com o seletor de idioma o header passou a ter 3 botões. Nesta faixa
   o rótulo do idioma sai (fica só o globo) e a marca encolhe, para
   nada espremer nem gerar rolagem horizontal em celulares de 360px. */
@media (max-width: 420px) {
  :root { --gutter: 16px; }
  .lang-current-label { display: none; }
  .lang-switch > summary { padding: 0 12px; }
  .brand { gap: 8px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: .88rem; }
  .brand-text strong { font-size: .88rem; }
  .brand-text small { font-size: .68rem; }
  .header-actions { gap: 6px; }
}

/* ---------- Preferências do usuário ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .wa-float { transform: none; }
  .wa-float:not(.is-visible) { opacity: 0; visibility: hidden; }
}

@media print {
  .site-header, .wa-float, .nav, .section-cta, .wa-form { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .step, .stack-group { border-color: #ccc; box-shadow: none; }
}
