/* ============================================================
   RAINER ALMEIDA — ASSESSORIA DIGITAL
   Tema claro · accent azul #1A56F0 · header/footer pretos
   ============================================================ */

:root {
  /* Surfaces (light theme) */
  --bg:          #F4F8FD;   /* page                   */
  --bg-2:        #E6EEFA;   /* alt sections           */
  --surface:     #FFFFFF;   /* card                   */
  --surface-2:   #F4F8FC;   /* elevated card          */
  --border:      rgba(22, 48, 86, 0.16);
  --border-2:    rgba(22, 48, 86, 0.24);

  /* Header (navbar) — fundo preto */
  --nav-bg:      #0A0E1A;

  /* Accent (azul vivo) — tweakable */
  --accent:      #1A56F0;
  --accent-deep: #1238C4;
  --accent-soft: rgba(26, 86, 240, 0.16);
  --accent-line: rgba(26, 86, 240, 0.52);
  --accent-glow: rgba(26, 86, 240, 0.40);

  /* Text — "--white" is repurposed as the highest-contrast ink */
  --white:       #060F24;
  --text:        #16243C;
  --text-dim:    #324563;
  --text-faint:  #566884;

  /* Type */
  --font-display: 'Bricolage Grotesque', 'Sora', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;

  /* Geometry */
  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --maxw:      1240px;
  --gutter:    clamp(20px, 5vw, 64px);

  --shadow:     0 26px 60px -28px rgba(20, 40, 75, 0.18);
  --shadow-acc: 0 24px 60px -24px var(--accent-glow);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(120% 70% at 50% -8%, rgba(26,86,240,0.08), transparent 55%),
    linear-gradient(180deg, #FBFCFF 0%, #F2F7FD 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Background ambience: subtle grid + turquoise glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right,  rgba(30,60,100,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30,60,100,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.002em;
  margin: 0;
  color: var(--white);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

section { position: relative; z-index: 1; }
/* Compensa o header fixo ao navegar por âncoras (#sobre, #servicos, etc.) */
:where(section[id], main[id]) { scroll-margin-top: 88px; }

.section-pad { padding-block: clamp(72px, 11vw, 150px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(26px, 3.3vw, 42px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  max-width: 22ch;
}
.section-lead {
  margin-top: 22px;
  max-width: 56ch;
  color: var(--text-dim);
  font-size: clamp(16px, 1.5vw, 19px);
}

/* ---- Cabeçalhos de seção centralizados (apenas seções de largura total) ---- */
#problema .problem-head,
#servicos > .wrap > .reveal,
#metodo   > .wrap > .reveal,
#cases    > .wrap > .reveal,
#conteudo > .wrap > .reveal {
  text-align: center;
}
#problema .problem-head .section-title,
#servicos > .wrap > .reveal .section-title,
#metodo   > .wrap > .reveal .section-title,
#cases    > .wrap > .reveal .section-title,
#conteudo > .wrap > .reveal .section-title,
#problema .problem-head .section-lead,
#servicos > .wrap > .reveal .section-lead,
#metodo   > .wrap > .reveal .section-lead,
#cases    > .wrap > .reveal .section-lead,
#conteudo > .wrap > .reveal .section-lead {
  margin-inline: auto;
  line-height: 1.08;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, background .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 16px 40px -16px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px -16px var(--accent-glow);
  background: #2A56A8;
}
.btn-ghost {
  background: rgba(22,48,86,0.035);
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover {
  border-color: var(--accent-line);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
/* Logo em versão branca só no header (rodapé mantém a logo azul) */
.nav .brand-logo { filter: brightness(0) invert(1); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--accent), var(--accent-deep));
  color: #FFFFFF;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 8px 22px -8px var(--accent-glow);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 16px; color: var(--white); }
.brand-text span {
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 600;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase; letter-spacing: 0.14em;
  transition: color .2s;
}
.nav-links a:hover { color: #FFFFFF; }

/* Botão hambúrguer (só aparece no mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 11px;
  background: none; border: none; cursor: pointer;
  border-radius: 10px;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px;
  background: #FFFFFF; border-radius: 2px;
  transition: transform .28s cubic-bezier(.2,.7,.3,1), opacity .2s;
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 110px); overflow: hidden; }
.hero-glow {
  position: absolute;
  width: 760px; height: 760px;
  top: -260px; right: -160px;
  background: radial-gradient(circle, var(--accent-glow), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: rgba(22,48,86,0.035);
  font-size: 13px; font-weight: 600; color: var(--text-dim);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.hero h1 {
  font-size: clamp(32px, 3.9vw, 50px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: pretty;
}
.hero h1 .hl {
  background: linear-gradient(110deg, var(--accent), #13B5F0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 30px;
  font-size: clamp(17px, 1.7vw, 21px);
  color: var(--text-dim);
  max-width: 50ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* Hero portrait */
.hero-photo { position: relative; }
.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow);
}
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--accent-line);
  pointer-events: none;
  opacity: .5;
}
/* ---------- Sobre ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow);
}
.about-photo { position: relative; }
.about-sign {
  margin-top: 28px;
  display: flex; align-items: center; gap: 14px;
}
.about-sign .l { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--white); }
.about-sign .r { font-size: 13px; color: var(--text-faint); }
.about-points { display: flex; flex-direction: column; gap: 16px; margin-top: 30px; }
.about-point { display: flex; gap: 14px; align-items: flex-start; }
.about-point .ic { color: var(--accent); flex: none; margin-top: 2px; }
.about-point span { color: var(--text-dim); }
.about-point b { color: var(--white); font-weight: 700; }

/* ---------- Problema ---------- */
.problem-head { max-width: 760px; margin-inline: auto; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 56px;
}
.problem-card {
  padding: 38px 26px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  transition: border-color .3s, transform .3s, background .3s, box-shadow .3s;
}
.problem-card:hover { border-color: var(--accent); transform: translateY(-6px); box-shadow: 0 22px 44px -18px var(--accent-glow); }
.problem-card .n {
  width: 60px; height: 60px;
  margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--font-display); font-weight: 800; font-size: 23px;
  letter-spacing: 0.01em;
  color: #FFFFFF;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  box-shadow: 0 12px 26px -12px var(--accent-glow);
  transition: transform .3s, box-shadow .3s;
}
.problem-card:hover .n {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 16px 32px -10px var(--accent-glow);
}
.problem-card h3 { font-size: 19px; line-height: 1.2; }
.problem-card p { margin-top: 12px; font-size: 14.5px; color: var(--text-dim); }

/* ---------- Serviços ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.service-card {
  position: relative;
  padding: 34px 32px;
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  transition: border-color .3s, transform .3s, box-shadow .3s;
  overflow: hidden;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-6px); box-shadow: 0 24px 46px -18px var(--accent-glow); }
.service-card .ic {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  color: #FFFFFF;
  box-shadow: 0 12px 26px -12px var(--accent-glow);
  margin-bottom: 24px;
  transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.service-card:hover .ic { transform: translateY(-2px) scale(1.06); }
.service-card .ic svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 21px; }
.service-card p { margin-top: 12px; color: var(--text-dim); font-size: 15px; }
.service-card .tag { margin-top: 20px; font-size: 13px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Método (cronograma conectado) ---------- */
.method-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 64px;
}
.method-flow::before,
.method-flow::after {
  content: "";
  position: absolute;
  top: 27px;
  height: 2px;
  border-radius: 2px;
}
.method-flow::before {
  left: calc(100% / 12);
  right: calc(100% / 12);
  background: var(--border-2);
  z-index: 0;
}
.method-flow::after {
  left: calc(100% / 12);
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  z-index: 1;
  transition: width 1.5s cubic-bezier(.4, 0, .2, 1) .25s;
}
.method-flow.in::after { width: calc(100% - 100% / 6); }

.method-step {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 6px;
}
.method-node {
  width: 54px; height: 54px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 17px;
  color: var(--accent);
  background: var(--surface);
  border: 2px solid var(--accent-line);
  box-shadow: 0 0 0 7px var(--bg-2);
  transition: transform .45s cubic-bezier(.2,.7,.3,1), background .45s, color .45s, border-color .45s, box-shadow .45s;
}
.method-step.in .method-node {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 0 0 7px var(--bg-2), 0 12px 28px -8px var(--accent-glow);
  transform: translateY(-2px);
}
.method-step:nth-child(2).in .method-node { transition-delay: .12s; }
.method-step:nth-child(3).in .method-node { transition-delay: .24s; }
.method-step:nth-child(4).in .method-node { transition-delay: .36s; }
.method-step:nth-child(5).in .method-node { transition-delay: .48s; }
.method-step:nth-child(6).in .method-node { transition-delay: .60s; }
.method-step h3 { font-size: 18px; }
.method-step p { margin-top: 10px; font-size: 13.5px; color: var(--text-dim); }

/* ---------- Cases · grade de logos das marcas (estilo premium) ---------- */
.logos-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.logo-item {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  padding: 22px 18px;
  border-radius: 22px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 6px 16px -10px rgba(16, 24, 40, 0.08);
  transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s, border-color .3s;
}
.logo-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px -12px rgba(16, 24, 40, 0.18);
  border-color: var(--border-2, #e6e8ec);
}
.logo-item img {
  max-width: 88%;
  max-height: 52px;
  width: auto;
  object-fit: contain;
}
/* Emblemas quadrados precisam de mais altura p/ equilibrar com os wordmarks */
.logo-item--emblem img { max-height: 66px; }
/* Logos extra-largas (wordmarks): usam quase toda a largura p/ legibilidade,
   com padding lateral menor garantindo só uma folga (sem colar na borda) */
.logo-item--wide { padding-left: 12px; padding-right: 12px; }
.logo-item--wide img { max-width: 100%; max-height: 64px; }
/* Cases — responsivo: 5 (desktop) → 3 (tablet) → 2 (mobile) */
@media (max-width: 1080px) { .logos-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .logos-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* ---------- Conteúdo / Reels ---------- */
/* Carrossel de reels: setas laterais avançam 1 card por clique */
.reels-carousel {
  position: relative;
  margin-top: 56px;
  --reels-visible: 4;   /* quantos cards aparecem por vez */
  --reels-gap: 18px;
}
.reels-track {
  display: flex;
  gap: var(--reels-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* Firefox */
  padding: 2px 2px 6px;
  margin: -2px -2px 0;            /* compensa o padding pra não cortar a borda/sombra */
}
.reels-track::-webkit-scrollbar { display: none; }   /* Chrome/Opera/Safari */
.reels-track .reel {
  flex: 0 0 calc((100% - (var(--reels-visible) - 1) * var(--reels-gap)) / var(--reels-visible));
  scroll-snap-align: start;
}
.reels-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border: none; border-radius: 50%;
  display: grid; place-items: center;
  background: #FFFFFF; color: var(--accent);
  cursor: pointer; z-index: 5;
  box-shadow: 0 8px 22px -6px rgba(10, 28, 66, 0.45);
  transition: background .25s, color .25s, opacity .25s, transform .25s cubic-bezier(.2,.7,.3,1);
}
.reels-nav svg { width: 22px; height: 22px; }
.reels-nav:hover { background: #FFFFFF; color: #1340C9; transform: translateY(-50%) scale(1.08); }
.reels-nav.prev { left: -16px; }
.reels-nav.next { right: -16px; }
.reels-nav:disabled { opacity: 0; pointer-events: none; }

/* Aviso de consentimento abaixo do botão do formulário */
.form-consent { margin: 14px 0 0; text-align: center; font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }
.form-consent a { color: var(--accent); font-weight: 600; }
.form-consent a:hover { text-decoration: underline; }
.reel {
  position: relative;
  display: block;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s;
}
.reel:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 24px 46px -18px var(--accent-glow);
}
.reel:hover .play .circ { transform: scale(1.12); }
/* Micro-feedback no clique (press mais marcante) */
.reel:active { transform: translateY(0) scale(.955); }
.reel:active .play .circ { transform: scale(.92); }
.reel .play .circ { transition: transform .3s cubic-bezier(.2,.7,.3,1); }
.reel img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 0; display: block; }
.reel .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  pointer-events: none;
}
.reel .play .circ {
  width: 56px; height: 56px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 90%, transparent);
  display: grid; place-items: center; color: #FFFFFF;
  box-shadow: 0 10px 30px -8px var(--accent-glow);
}
.reel .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 18px 16px;
  background: linear-gradient(to top, rgba(6,11,23,0.92), transparent);
  font-weight: 700; font-size: 14.5px; color: #FFFFFF;
}

/* ---------- CTA Final ---------- */
.cta-final {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 90px) clamp(28px, 5vw, 80px);
  background: linear-gradient(150deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--accent-line);
  overflow: hidden;
  text-align: center;
}
.cta-final::before {
  content: ""; position: absolute; width: 600px; height: 600px;
  top: -300px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  pointer-events: none;
}
.cta-final h2 { font-size: clamp(26px, 3.3vw, 42px); line-height: 1.12; letter-spacing: 0.005em; text-transform: uppercase; max-width: 20ch; margin-inline: auto; position: relative; }
.cta-final p { margin: 24px auto 0; max-width: 56ch; color: var(--text-dim); position: relative; font-size: 18px; }
.cta-final .hero-actions { justify-content: center; margin-top: 40px; position: relative; }

/* ---------- Contato · modelo "pílula" (paleta do site) ---------- */
.contato-section {
  background:
    radial-gradient(120% 80% at 50% -10%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%),
    var(--bg-2);
}
.contato-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}
.contato-head { max-width: 30ch; }
.contato-head .section-title.has-rule { position: relative; padding-bottom: 22px; }
.contato-head .section-title.has-rule::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 64px; height: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.form-pill {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-pill .field { margin: 0; }
.form-pill .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-pill input,
.form-pill select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 19px 26px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15.5px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-pill input::placeholder { color: var(--text-faint); }
.form-pill input:focus,
.form-pill select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.form-pill select {
  appearance: none; -webkit-appearance: none;
  cursor: pointer;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2321468C' stroke-width='2.2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 22px center;
}
.form-pill select:required:invalid { color: var(--text-faint); }
.form-pill select option { color: var(--white); background: var(--surface); }
.form-pill .btn-pill {
  width: 100%;
  margin-top: 6px;
  padding: 20px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 86%, white), var(--accent-deep));
  box-shadow: 0 18px 44px -18px var(--accent-glow);
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, filter .25s;
}
.form-pill .btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px -18px var(--accent-glow);
  filter: brightness(1.05);
}

@media (max-width: 860px) {
  .contato-grid { grid-template-columns: 1fr; }
  .contato-head { max-width: none; }
}

/* ---------- Footer (mesma identidade da navbar: fundo preto) ---------- */
.footer {
  background: var(--nav-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-block: 48px;
  margin-top: 0;
}
/* Logo do Rainer em branco no rodapé escuro */
.footer .brand-logo { filter: brightness(0) invert(1); }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.footer .muted { color: #FFFFFF; font-size: 16px; font-weight: 600; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 14px; color: var(--text-dim); transition: color .2s; }
.footer-links a:hover { color: var(--accent); }

/* Assinatura ASBOT (centralizada abaixo do copyright) */
.asbot-credit-wrap {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  justify-content: center;
}
.asbot-credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: .85;
  transition: opacity .3s ease;
}
.asbot-credit:hover { opacity: 1; }
.asbot-credit span {
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
}
.asbot-credit img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: transform .3s ease;
}
.asbot-credit:hover img { transform: scale(1.05); }

/* Rodapé centralizado e empilhado no mobile */
@media (max-width: 640px) {
  .footer { padding-block: 44px; }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }
  .footer .brand-logo { height: 34px; }
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 26px;
  }
  .footer .muted { font-size: 15px; }
}

/* ---------- Botão voltar ao topo ---------- */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 60;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border: none; cursor: pointer;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 16px 40px -14px var(--accent-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.9);
  transition: opacity .3s ease, transform .3s cubic-bezier(.2,.7,.3,1), visibility .3s, background .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { transform: translateY(-3px) scale(1.05); background: var(--accent-deep); }
.to-top svg { width: 22px; height: 22px; }
@media (max-width: 560px) {
  .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity .2s ease, visibility .2s; transform: none; }
  .to-top.show { transform: none; }
}

/* ---------- Reveal animation ----------
   Base state is VISIBLE. The entrance only plays when JS adds .in (on scroll-in),
   so static captures / PDF export / no-JS always show content. */
@media (prefers-reduced-motion: no-preference) {
  .reveal.in { animation: reveal-in .7s cubic-bezier(.2,.7,.3,1) both; }
}
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .reels-carousel { --reels-visible: 3; }
  .method-flow { grid-template-columns: repeat(3, 1fr); gap: 40px 14px; }
  .method-flow::before, .method-flow::after { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav.open { background: var(--nav-bg); }
  /* Menu vira painel dropdown abaixo da barra */
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--nav-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6);
    padding: 8px 0;
    /* fechado por padrão */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav.open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-links a {
    padding: 14px var(--gutter);
    font-size: 15px;
  }
  .nav-links a::after { display: none; }
  .nav-links a.active { background: var(--accent-soft); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { margin-top: 8px; max-width: 480px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-logo { height: 30px; }
  .problem-grid,
  .services-grid,
  .method-flow,
  .form-row { grid-template-columns: 1fr; }
  .reels-carousel { --reels-visible: 1.5; }   /* mostra meio card do próximo */
  .reels-nav.prev { left: 4px; }
  .reels-nav.next { right: 4px; }
}

@media (max-width: 420px) {
  .brand-logo { height: 32px; }
}

/* ============================================================
   MODERN MICRO-INTERACTIONS (subtle)
   ============================================================ */

/* Cursor spotlight on cards */
.spotlight { position: relative; isolation: isolate; }
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%),
              color-mix(in srgb, var(--accent) 15%, transparent), transparent 62%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  z-index: 1;
}
.spotlight:hover::after { opacity: 1; }

/* Nav active link + hover underline */
.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: #FFFFFF; }

/* Header subtle condense + elevation on scroll */
.nav { transition: background .3s ease, box-shadow .3s ease; }
.nav-inner { transition: height .3s cubic-bezier(.2,.7,.3,1); }
.nav.scrolled {
  background: var(--nav-bg);
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.55);
}
.nav.scrolled .nav-inner { height: 64px; }

@media (prefers-reduced-motion: reduce) {
  .spotlight::after { display: none; }
  .nav-inner, .nav-links a::after { transition: none; }
}
