/* ===== Fonts =====
   Self-hosted (not linked to fonts.googleapis.com at runtime) — one variable
   file covers weights 100–800, so every font-weight in this file just works
   without extra requests. font-display: swap avoids the ~380ms flash-of-
   invisible-text cost the live site pays for its unfinished Space Grotesk setup. */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/sora-variable.woff2') format('woff2');
}

/* ===== Tokens & base ===== */
:root {
  --red: #d32b43;
  --red-deep: #a31f33;
  --ink: #1d1d1f;
  --ink-soft: #5c5c60;
  --paper: #ffffff;
  --paper-dim: #f5f5f7;
  --line: #e4e4e7;
  --star: #f5a623;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }
.eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px;
}
.eyebrow-inverse { color: rgba(255, 255, 255, 0.6); }
.accent { color: var(--red); }
section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }

/* ===== Buttons ===== */
.cta {
  background: var(--red); color: #fff !important; padding: 14px 28px; border-radius: 6px;
  font-weight: 700; font-size: 0.92rem; text-decoration: none; display: inline-block; border: none;
}
.cta:hover { background: var(--red-deep); cursor: pointer; }
.cta-link { color: var(--ink) !important; font-weight: 600; text-decoration: none; }
.cta-link:hover { color: var(--red) !important; }
.cta-white {
  background: #fff; color: var(--red) !important; padding: 14px 30px; border-radius: 6px;
  font-weight: 700; font-size: 0.92rem; text-decoration: none; display: inline-block;
}
.cta-white:hover { background: rgba(255, 255, 255, 0.9); }

/* ===== Header / Nav ===== */
.topbar { height: 4px; background: var(--ink); }
header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 24px;
  position: relative;
}
.logo-link { line-height: 0; }
.logo { height: 40px; width: auto; }
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav nav a { text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--ink); }
.nav nav a:hover { color: var(--red); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 34px; height: 34px; border: none; background: transparent; cursor: pointer; padding: 0; order: 3;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Serviços dropdown (CSS-only, no JS) */
.nav-dropdown { position: relative; }
.dropdown-trigger { display: inline-flex; align-items: center; gap: 5px; }
.dropdown-trigger .chevron { display: inline-block; transition: transform 0.15s ease; flex: none; }
.nav-dropdown:hover .chevron, .nav-dropdown:focus-within .chevron, .nav-dropdown.open .chevron { transform: rotate(180deg); }
.dropdown-panel {
  display: none; flex-direction: column; position: absolute; top: 100%; left: -16px;
  background: var(--red); border-radius: 10px; padding: 10px; min-width: 220px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18); z-index: 60;
}
.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel,
.nav-dropdown.open .dropdown-panel { display: flex; }
.dropdown-panel a {
  color: #fff !important; padding: 10px 12px; border-radius: 6px; font-size: 0.88rem; font-weight: 600;
}
.dropdown-panel a:hover { background: rgba(255, 255, 255, 0.15); color: #fff !important; }
.nav .cta { padding: 12px 22px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .nav nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 16px 24px rgba(0, 0, 0, 0.1);
    max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.25s ease, opacity 0.2s ease;
  }
  header.nav-open .nav nav { max-height: 80vh; opacity: 1; overflow-y: auto; }
  .nav nav a:not(.cta) { display: block; padding: 14px 20px; border-bottom: 1px solid var(--line); }
  .nav nav .dropdown-trigger { display: flex; justify-content: space-between; width: 100%; }
  .dropdown-panel { position: static; box-shadow: none; background: var(--paper-dim); border-radius: 0; padding: 0; }
  .dropdown-panel a { color: var(--ink) !important; padding: 12px 20px 12px 34px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .dropdown-panel a:hover { background: rgba(0, 0, 0, 0.04); color: var(--ink) !important; }
  .nav .cta { margin: 14px 20px; text-align: center; }
}

/* ===== Footer ===== */
footer { background: var(--red); color: rgba(255, 255, 255, 0.9); padding: 64px 0 28px; font-size: 0.9rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 44px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-logo { margin-bottom: 12px; }
.foot-brand p { margin: 0 0 16px; max-width: 30ch; color: rgba(255, 255, 255, 0.85); }
.social { display: flex; gap: 16px; margin-bottom: 16px; }
.social a { font-size: 0.82rem; font-weight: 600; text-decoration: none; color: rgba(255, 255, 255, 0.85); }
.social a:hover { color: #fff; text-decoration: underline; }
.email { font-size: 0.85rem; text-decoration: none; color: #fff; font-weight: 600; }
.email:hover { text-decoration: underline; }
footer h4 {
  color: #fff; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.05em;
  text-transform: uppercase; margin: 0 0 16px;
}
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer a { text-decoration: none; color: rgba(255, 255, 255, 0.85); }
footer a:hover { color: #fff; text-decoration: underline; }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.25); padding-top: 20px;
  font-size: 0.82rem; color: rgba(255, 255, 255, 0.75);
}

/* ===== Generic page hero (servicos / cases) ===== */
.page-hero {
  padding: 72px 0 56px; text-align: center; background: var(--paper-dim);
  background-image: url('/images/hero/home-2026.webp');
  background-size: cover; background-position: center; background-repeat: no-repeat;
  background-attachment: fixed;
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .page-hero { background-attachment: scroll; }
}
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 16px; }
.page-hero .sub { color: var(--ink-soft); max-width: 52ch; margin: 0 auto; font-size: 1.05rem; }

/* ===== Generic red final CTA band ===== */
.final-cta {
  background: var(--red); color: #fff; text-align: center;
  border-radius: 32px; width: min(1132px, 100% - 48px); margin: 0 auto 88px; padding: 64px 24px;
}
.final-cta h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.final-cta p { color: rgba(255, 255, 255, 0.9); margin: 14px 0 28px; }

/* ===== HOME: hero ===== */
.hero {
  background: #fbfbfc;
  background-image: url('/images/hero/home-2026.webp');
  background-size: cover; background-position: center; background-repeat: no-repeat;
  background-attachment: fixed;
  text-align: center; padding: 96px 0 72px;
}
/* Fixed-attachment backgrounds are ignored on iOS Safari (falls back to
   normal scroll there) and can jank on other touch devices, so scope the
   parallax effect to pointer:fine (desktop/trackpad) viewports. */
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .hero { background-attachment: scroll; }
}
.hero-grid { max-width: 760px; margin: 0 auto; }
.hero h1 { margin-bottom: 24px; display: flex; flex-direction: column; align-items: center; gap: 0; }
.hero h1 .line-sm { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 700; line-height: 1.25; }
.hero h1 .line-lg { font-size: clamp(2.8rem, 7vw, 4.4rem); font-weight: 800; line-height: 1.05; }
.hero .sub { font-size: 1.1rem; color: var(--ink-soft); max-width: 52ch; margin: 0 auto 32px; }
.ctas { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ===== HOME: solutions + stats ===== */
.solutions-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .solutions-grid { grid-template-columns: 1fr; } }
.solutions-grid p { color: var(--ink-soft); margin-top: 16px; max-width: 50ch; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); padding: 24px; text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.stat-card:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14); transform: translateY(-3px); }
.stat-num { font-size: 2rem; font-weight: 400; color: var(--ink); }
.stat-label { color: var(--ink-soft); font-size: 0.82rem; margin-top: 4px; }

/* ===== HOME: pillars (compact cards) ===== */
#servicos { background: var(--paper-dim); }
.pillars { background: #fff; }
.services { display: flex; flex-direction: column; gap: 20px; }
.service {
  background: #fff; border-radius: 20px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 32px; display: grid; grid-template-columns: auto 1.4fr 1fr; gap: 28px; align-items: start;
}
@media (max-width: 860px) { .service { grid-template-columns: 1fr; } }
.service-icon { color: var(--red); flex: none; margin-top: 4px; }
.service h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.tags { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tag {
  background: var(--paper-dim); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 14px; font-size: 0.8rem; color: var(--ink); text-align: center; font-weight: 500;
  text-decoration: none; display: block; transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
a.tag:hover { background: var(--red); border-color: var(--red); color: #fff; }
span.tag { opacity: 0.55; cursor: default; }

/* ===== SERVICOS page: detailed pillars ===== */
.pillar { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .pillar { grid-template-columns: 1fr; } }
section.alt { background: #fff; }
.pillar-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 14px; }
.pillar-head p { color: var(--ink-soft); margin: 0 0 24px; }

/* ===== Service page: intro + media, dark checklist panel ===== */
.pillar-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 32px; }
@media (max-width: 820px) { .pillar-top { grid-template-columns: 1fr; } }
.pillar-media {
  background: var(--paper-dim); border: 1px dashed var(--line); border-radius: 20px;
  min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; color: var(--ink-soft); text-align: center; padding: 24px; overflow: hidden;
}
.pillar-media span { font-size: 0.82rem; max-width: 24ch; }
.pillar-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.pillar-media:has(img) { border-style: solid; padding: 0; }
.checklist-panel { background: var(--ink); border-radius: 24px; padding: 40px; }
.checklist-panel h2 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 24px; }
.checklist-panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; }
@media (max-width: 700px) { .checklist-panel ul { grid-template-columns: 1fr; } }
.checklist-panel li { display: flex; align-items: flex-start; gap: 12px; color: #fff; font-size: 0.94rem; line-height: 1.5; }
.checklist-panel .dot {
  width: 20px; height: 20px; border-radius: 50%; background: var(--red);
  flex: none; margin-top: 1px; display: flex; align-items: center; justify-content: center;
}
.checklist-panel .dot::after {
  content: ""; width: 9px; height: 6px; margin-top: -1px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}

/* Light variant: matches the home page's white-card language instead of the dark panel */
.checklist-panel.light { background: var(--paper-dim); border: 1px solid var(--line); }
.checklist-panel.light h2 { color: var(--ink); }
.checklist-panel.light ul { grid-template-columns: repeat(2, 1fr); }
.checklist-panel.light li {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); padding: 16px 18px; align-items: flex-start;
}
.checklist-panel.light .dot { margin-top: 8px; }
.item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px;
  display: block; text-decoration: none; color: inherit; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
a.item:hover { border-color: var(--red); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06); }
section.alt .item { background: var(--paper-dim); }
.item h3 { font-size: 1rem; margin-bottom: 6px; }
.item p { color: var(--ink-soft); font-size: 0.88rem; margin: 0; }

/* ===== Partners row ===== */
.partners { padding-top: 48px; padding-bottom: 64px; }
.partners-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 40px; }
.partners-row img { max-height: 28px; width: auto; filter: grayscale(1); opacity: 0.6; }
.partners-row .akio-logo { max-height: 40px; }
.partners-row .meta-logo { max-height: 42px; }
@media (max-width: 640px) {
  .partners-row { display: grid; grid-template-columns: repeat(2, 1fr); justify-content: normal; justify-items: center; gap: 28px 16px; }
  .partners-row > * { justify-self: center; }
}

/* ===== Impact band ===== */
.impact { background: var(--paper-dim); border-top: 1px solid var(--line); }
.impact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .impact-grid { grid-template-columns: 1fr; } }
.impact h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.impact p { color: var(--ink-soft); margin: 16px 0 24px; max-width: 44ch; }
.impact-num { font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 800; color: var(--red); }
.impact-label {
  color: var(--ink); font-size: 0.85rem; margin-top: 6px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em;
}

/* ===== Testimonials ===== */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .testi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .testi-grid { grid-template-columns: 1fr; } }
.tcard {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04); display: flex; flex-direction: column;
}
/* Must come after the base .tcard rule above: same specificity, so source
   order decides — this needs to win to actually hide it on desktop. */
.tcard-mobile-only { display: none; }
@media (max-width: 560px) { .tcard-mobile-only { display: flex; } }
.stars { color: var(--star); font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 12px; }
.tcard p { font-size: 0.92rem; margin: 0 0 18px; color: var(--ink); flex: 1; }
.who { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.who-name { font-size: 0.86rem; font-weight: 700; }
.who-role { font-size: 0.78rem; color: var(--ink-soft); }
.case-btn {
  border: 1px solid var(--red); color: var(--red); background: transparent; text-align: center;
  padding: 10px; border-radius: 6px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.case-btn:hover { background: var(--red); color: #fff; }

/* ===== Clients wall ===== */
.clients-wall { background: #0a0a0a; border-radius: 32px; padding: 56px 40px; }
.client-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.client-cell { display: flex; align-items: center; justify-content: center; padding: 8px; height: 116px; min-width: 0; }
.client-cell img { max-height: 76px; max-width: 175px; width: auto; height: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.92; }
@media (max-width: 560px) {
  .clients-wall { padding: 40px 20px; }
  .client-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .client-cell { height: 62px; padding: 3px; }
  .client-cell img { max-height: 34px; max-width: 68px; }
}

/* ===== CASES page grid =====
   Case studies are real WordPress posts (category "Trabalhos") with photo
   featured images, so this reuses the blog card's photo-thumbnail language
   instead of the old grayscale-logo-strip layout. */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .case-grid { grid-template-columns: 1fr; } }
.case-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.case-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); transform: translateY(-2px); }
.case-media { position: relative; }
.case-media img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.case-media.logo { background: var(--paper-dim); display: flex; align-items: center; justify-content: center; }
.case-media.logo img { aspect-ratio: auto; width: auto; height: 44px; max-width: 70%; object-fit: contain; filter: grayscale(1); opacity: 0.75; }
.case-tag {
  position: absolute; top: 12px; left: 12px; background: rgba(0, 0, 0, 0.65); color: #fff;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 999px;
}
.case-body { padding: 18px 20px 20px; }
.case-body h3 { font-size: 1.02rem; margin: 0 0 10px; }
.case-card .read { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.case-card:hover .read { color: var(--red); }

/* ===== Blog teaser (home) ===== */
.blog-layout { display: grid; grid-template-columns: 0.8fr 1.6fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .blog-layout { grid-template-columns: 1fr; } }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }
.post {
  text-decoration: none; color: var(--ink); display: block;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); transform: translateY(-2px); }
.post-media { position: relative; }
.post-media img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.post-body { padding: 18px 20px 20px; }
.post-body h3 { font-size: 1.02rem; margin: 0 0 10px; }
.post .read { color: var(--ink-soft); }
.post:hover .read { color: var(--red); }
.post-tag {
  position: absolute; top: 12px; left: 12px; background: rgba(0, 0, 0, 0.65); color: #fff;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 999px;
}
.post .read { font-weight: 700; font-size: 0.78rem; letter-spacing: 0.03em; }

/* ===== ORCAMENTO page ===== */
.quote { background: var(--red); padding: 40px 0; }
.quote h1 { margin: 0 0 18px; font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: #fff; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; color: #fff; font-size: 0.94rem; }
.check {
  background: rgba(255, 255, 255, 0.2); color: #fff; border-radius: 50%;
  width: 22px; height: 22px; flex: none; display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; margin-top: 1px;
}
.quote-copy p { color: rgba(255, 255, 255, 0.9); max-width: 46ch; font-size: 0.98rem; }
.quote-form {
  background: #fff; border-radius: 20px; padding: 36px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}
.quote-form-embed { padding: 24px; }
.quote-form-embed iframe { border-radius: 10px; }
.quote-form label { display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.quote-form label span { color: var(--red); }
.quote-form input, .quote-form select {
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
  font-size: 0.92rem; font-family: inherit; color: var(--ink); background: #fff;
}
.quote-form input:focus, .quote-form select:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.quote-form button {
  background: #1a5fd6; color: #fff; border: none; border-radius: 8px;
  padding: 14px; font-size: 0.95rem; font-weight: 700; cursor: pointer; margin-top: 4px;
}
.quote-form button:hover { background: #144cae; }

/* ===== Legal pages (política de privacidade etc.) ===== */
.legal-copy h2 {
  font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em;
  margin: 40px 0 12px;
}
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy p { color: var(--ink-soft); line-height: 1.7; margin: 0 0 16px; }
.legal-copy ul { margin: 0 0 16px; padding-left: 20px; color: var(--ink-soft); }
.legal-copy li { line-height: 1.7; margin-bottom: 8px; }
.legal-copy li strong { color: var(--ink); }
.legal-copy a { color: var(--red); text-decoration: none; }
.legal-copy a:hover { text-decoration: underline; }

/* ===== Service pages: "Como trabalhamos" process steps ===== */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .process-grid { grid-template-columns: 1fr; } }
.process-step {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04); transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.process-step:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1); transform: translateY(-3px); }
.step-num { color: var(--red); font-weight: 700; font-size: 0.85rem; display: block; margin-bottom: 14px; }
.process-step h3 { font-size: 1.05rem; margin: 0 0 8px; }
.process-step p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* ===== Breadcrumb ===== */
.breadcrumb { border-bottom: 1px solid var(--line); }
.breadcrumb .wrap { padding: 14px 24px; font-size: 0.82rem; color: var(--ink-soft); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { color: var(--line); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* ===== FAQ accordion ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
}
.faq-item summary {
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--red); font-size: 1.3rem; flex: none; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--ink-soft); margin: 12px 0 0; font-size: 0.94rem; line-height: 1.6; }

/* ===== Service page image gallery (scroll-snap, no JS library) ===== */
.pillar-media.gallery {
  position: relative; padding: 0; overflow: hidden; border-style: solid;
  align-items: stretch; justify-content: flex-start; height: 420px; min-height: 0;
}
@media (max-width: 600px) { .pillar-media.gallery { height: 280px; } }
.gallery-track {
  display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img {
  flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover;
  scroll-snap-align: start; scroll-snap-stop: always;
}
/* A couple of source images are horizontal wordmark shots (16:9) that lose
   the edges of the actual logo text when cropped to the gallery's tighter
   aspect ratio — show them uncropped instead. */
.gallery-track img.gallery-contain { object-fit: contain; background: #16161a; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, 0.9); color: var(--ink); font-size: 1.1rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.gallery-nav:hover { background: #fff; }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-count {
  position: absolute; bottom: 10px; right: 12px; z-index: 2;
  background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.72rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}

/* ===== Service page decorative widgets (SVG/CSS, no images, no library) ===== */
.pillar-media.demo {
  align-items: stretch; justify-content: flex-start; flex-direction: column; gap: 14px;
  height: 420px; min-height: 0; text-align: left; padding: 22px;
}
@media (max-width: 600px) { .pillar-media.demo { height: auto; } }

.demo-stats { display: flex; gap: 10px; }
.demo-stats.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); }
.demo-stat { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.demo-stat-label { font-size: 0.7rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 6px; }
.demo-stat-value { font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.demo-stat-trend { display: block; font-size: 0.72rem; font-weight: 700; color: #1a9c5c; margin-top: 2px; }

.demo-chart { flex: 1; display: flex; align-items: flex-end; gap: 7px; padding-top: 8px; border-top: 1px dashed var(--line); height: 110px; min-height: 90px; }
@media (max-width: 600px) { .demo-chart { flex: none; } }
.demo-bar {
  flex: 1; height: 4px; background: linear-gradient(180deg, var(--red), var(--red-deep)); border-radius: 6px 6px 0 0;
  transition: height 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); transform-origin: bottom;
}
.pillar-media.demo.in .demo-bar { height: var(--h); animation: bar-pulse 2.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes bar-pulse { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.82); } }

.demo-line-chart { width: 100%; flex: 1; min-height: 90px; }
.demo-line-path {
  fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 420; stroke-dashoffset: 420; transition: stroke-dashoffset 1.3s ease;
}
.pillar-media.demo.in .demo-line-path { stroke-dashoffset: 0; }
.demo-line-chart circle { fill: var(--red); opacity: 0; transition: opacity 0.3s ease 1.1s; }
.pillar-media.demo.in .demo-line-chart circle { opacity: 1; }
.demo-line-chart .ping { fill: none; stroke: var(--red); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.pillar-media.demo.in .demo-line-chart .ping { animation: line-ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite; animation-delay: 1.3s; }
@keyframes line-ping { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(2.8); opacity: 0; } }

.demo-lead-flow { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.demo-lead-icon {
  width: 34px; height: 34px; border-radius: 50%; background: var(--paper-dim); flex: none; position: relative;
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft);
}
.demo-lead-icon svg { width: 16px; height: 16px; }
.demo-lead-icon.target { color: var(--red); }
.demo-lead-track { position: relative; flex: 1; height: 2px; background: var(--line); border-radius: 999px; }
.demo-lead-dot { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--red); transform: translate(-50%, -50%); opacity: 0; }
.pillar-media.demo.in .demo-lead-dot { animation: lead-travel 2.6s linear infinite; }
@keyframes lead-travel { 0% { left: 0%; opacity: 0; } 10% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.demo-lead-icon.target { transition: transform 0.2s ease; }
.pillar-media.demo.in .demo-lead-icon.target { animation: lead-receive 2.6s ease-in-out infinite; }
@keyframes lead-receive { 0%, 82% { transform: scale(1); } 90% { transform: scale(1.18); } 100% { transform: scale(1); } }
.demo-lead-badge {
  position: absolute; top: -8px; right: -12px; background: var(--red); color: #fff; font-size: 0.6rem; font-weight: 700;
  padding: 2px 6px; border-radius: 999px; opacity: 0; white-space: nowrap;
}
.pillar-media.demo.in .demo-lead-badge { animation: lead-badge 2.6s ease-in-out infinite; }
@keyframes lead-badge {
  0%, 80% { opacity: 0; transform: translateY(4px); }
  90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .demo-bar, .demo-line-chart .ping, .demo-lead-dot, .demo-lead-icon.target, .demo-lead-badge { animation: none !important; }
}

.demo-journey { position: relative; flex: 1; display: flex; align-items: flex-start; justify-content: space-between; padding: 6px 4px 0; }
.demo-journey::before { content: ''; position: absolute; left: 26px; right: 26px; top: 22px; height: 2px; background: var(--line); }
.demo-journey-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.demo-journey-dot {
  width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft);
}
.demo-journey-step.active .demo-journey-dot { border-color: var(--red); color: var(--red); background: #fff5f5; }
.demo-journey-dot svg { width: 18px; height: 18px; }
.demo-journey-label { font-size: 0.7rem; font-weight: 600; text-align: center; color: var(--ink-soft); }
.demo-journey-pulse {
  position: absolute; top: 18px; left: 2%; width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 4px rgba(211, 43, 67, 0.15); animation: journey-travel 4.5s ease-in-out infinite;
}
@keyframes journey-travel {
  0% { left: 2%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: 95%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .demo-journey-pulse { animation: none; opacity: 0; } }

.demo-search {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 12px 18px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.demo-search svg { flex: none; color: var(--ink-soft); }
.demo-search-text {
  font-size: 0.84rem; color: var(--ink); flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.demo-search-text::after { content: ''; display: inline-block; width: 1px; height: 1em; background: var(--ink-soft); margin-left: 2px; vertical-align: -2px; animation: demo-caret 1s step-end infinite; }
@keyframes demo-caret { 50% { opacity: 0; } }
.demo-kw-list { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-kw {
  background: var(--paper-dim); border-radius: 999px; padding: 6px 12px; font-size: 0.74rem; font-weight: 600;
  color: var(--ink); display: inline-flex; align-items: center; gap: 4px;
}
.demo-kw .trend-up { color: #1a9c5c; }
.demo-pies { display: flex; gap: 14px; flex: 1; }
.demo-pie-block { display: flex; align-items: center; gap: 10px; flex: 1; }
.demo-pie-title { display: block; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-soft); margin-bottom: 5px; }
.demo-pie {
  width: 100px; height: 100px; border-radius: 50%; flex: none;
  opacity: 0; transform: scale(0.8); transition: opacity 0.5s ease, transform 0.5s ease;
}
.demo-pie.small { width: 72px; height: 72px; }
.pillar-media.demo.in .demo-pie { opacity: 1; transform: scale(1); }
.demo-pie-legend { display: flex; flex-direction: column; gap: 8px; font-size: 0.8rem; color: var(--ink); }
.demo-pie-legend.small { font-size: 0.72rem; gap: 4px; }
.demo-pie-legend .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.demo-age-row { display: flex; flex-direction: column; gap: 8px; }
.demo-age-chart { display: flex; align-items: flex-end; gap: 10px; }
.demo-age-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.demo-age-track { width: 100%; height: 40px; display: flex; align-items: flex-end; justify-content: center; flex-shrink: 0; }
.demo-age-bar {
  width: 100%; max-width: 26px; height: 4px; flex-shrink: 0; background: linear-gradient(180deg, var(--red), var(--red-deep));
  border-radius: 4px 4px 0 0; transition: height 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pillar-media.demo.in .demo-age-bar { height: var(--h); }
.demo-age-label { font-size: 0.66rem; color: var(--ink-soft); font-weight: 600; }

/* ===== Consultoria: diagnostic scorecard ===== */
.demo-score-list { display: flex; flex-direction: column; gap: 14px; flex: 1; justify-content: center; }
.demo-score-row { display: flex; flex-direction: column; gap: 6px; }
.demo-score-label { font-size: 0.76rem; font-weight: 600; color: var(--ink); }
.demo-score-track { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.demo-score-fill {
  display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--red-deep)); border-radius: 999px;
  transition: width 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: var(--d, 0s);
}
.pillar-media .demo-score-fill { max-width: none; }
.pillar-media.demo.in .demo-score-fill {
  width: var(--w); animation: score-pulse 3.4s ease-in-out infinite; animation-delay: calc(var(--d, 0s) + 1.1s);
}
@keyframes score-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.78; } }
.demo-score-summary {
  display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 16px;
}
.demo-score-summary-label { font-size: 0.76rem; color: var(--ink-soft); font-weight: 600; }
.demo-score-summary-value { font-size: 1.2rem; font-weight: 800; color: var(--red); }
@media (prefers-reduced-motion: reduce) { .demo-score-fill { animation: none !important; } }

/* ===== Implementação CRM: pipeline kanban ===== */
.demo-kanban { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.demo-kanban-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; flex: 1; align-items: start; }
@media (max-width: 500px) { .demo-kanban-cols { grid-template-columns: repeat(2, 1fr); } }
.demo-kanban-col { background: var(--paper-dim); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-height: 60px; }
.demo-kanban-col.win { background: #f0faf4; }
.demo-kanban-head {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink-soft); margin-bottom: 2px;
}
.demo-kanban-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 7px;
  opacity: 1; transform: scale(1); transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.demo-kanban-card::before { content: ''; display: block; width: 65%; height: 5px; background: var(--line); border-radius: 3px; margin-bottom: 4px; }
.demo-kanban-card::after { content: ''; display: block; width: 38%; height: 5px; background: var(--paper-dim); border-radius: 3px; }
.demo-kanban-card.moving { opacity: 0; transform: scale(0.92); }
.demo-kanban-card.won { border-color: #1a9c5c; }
.demo-kanban-card.won::before { background: #1a9c5c66; }
@media (prefers-reduced-motion: reduce) { .demo-kanban-card { transition: none !important; } }

/* ===== Automação com IA: chat mock ===== */
.demo-phone { flex: 1; display: flex; flex-direction: column; background: #efe9e0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.demo-phone-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #1f2c34; flex: none; }
.demo-phone-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.demo-phone-avatar svg { width: 16px; height: 16px; }
.demo-phone-info { display: flex; flex-direction: column; line-height: 1.25; }
.demo-phone-name { color: #fff; font-size: 0.82rem; font-weight: 700; }
.demo-phone-status { color: #8fa6ad; font-size: 0.66rem; }
.demo-phone-status::before { content: '●'; color: #6ee7a8; font-size: 0.55rem; margin-right: 4px; }
.demo-chat { display: flex; flex-direction: column; gap: 10px; flex: 1; justify-content: center; padding: 16px; }
.demo-chat-bubble { max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: 0.8rem; line-height: 1.4; }
.demo-chat-bubble.in { align-self: flex-start; background: var(--paper-dim); color: var(--ink); border-bottom-left-radius: 4px; }
.demo-chat-bubble.out { align-self: flex-end; background: var(--red); color: #fff; border-bottom-right-radius: 4px; }
.demo-chat-bubble.typing { display: flex; gap: 4px; align-items: center; padding: 12px 16px; opacity: 0; }
.demo-chat-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: 0.6; animation: chat-dot 1.1s ease-in-out infinite; }
.demo-chat-dot:nth-child(2) { animation-delay: 0.15s; }
.demo-chat-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }
.demo-chat-badge {
  display: inline-block; background: #fff; color: var(--red); font-size: 0.6rem; font-weight: 800;
  padding: 1px 6px; border-radius: 999px; margin-right: 6px; vertical-align: 1px;
}
.demo-chat-bubble.reply { opacity: 0; transform: translateY(6px); }
.pillar-media.demo.in .demo-chat-bubble.typing { animation: chat-typing-cycle 6s ease-in-out infinite; }
.pillar-media.demo.in .demo-chat-bubble.reply { animation: chat-reply-cycle 6s ease-in-out infinite; }
@keyframes chat-typing-cycle {
  0% { opacity: 0; }
  8% { opacity: 1; }
  38% { opacity: 1; }
  46% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes chat-reply-cycle {
  0%, 44% { opacity: 0; transform: translateY(6px); }
  52% { opacity: 1; transform: translateY(0); }
  88% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .demo-chat-dot, .demo-chat-bubble.typing, .demo-chat-bubble.reply { animation: none !important; }
  .demo-chat-bubble.typing { display: none; }
  .demo-chat-bubble.reply { opacity: 1; transform: none; }
}

/* ===== Projetos Personalizados: rotating challenge headline ===== */
.demo-journey.compact { flex: none; height: 100px; padding-top: 4px; }
.demo-challenge { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.demo-challenge-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--red);
}
.demo-challenge-text {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 800; color: var(--ink); line-height: 1.3; min-height: 2.6em;
}
.demo-challenge-text::after {
  content: ''; display: inline-block; width: 3px; height: 0.85em; background: var(--ink); margin-left: 3px;
  vertical-align: -2px; animation: demo-caret 1s step-end infinite;
}

/* ===== Scroll reveal ===== */
/* Opacity-only: translateY here caused RGB fringing on small text in some
   browsers/GPUs during the transform transition. */
.reveal { opacity: 0; transition: opacity 0.5s ease; }
.reveal.in { opacity: 1; }

/* ===== WhatsApp floating button (injected by external Akio widget script) =====
   Shrunk + inset a bit further on mobile — it's position:fixed so it can
   still land over widget content depending on scroll position, but a
   smaller footprint in the corner overlaps less of it. */
@media (max-width: 600px) {
  #akio-wpp-btn { width: 46px !important; height: 46px !important; bottom: 14px !important; right: 14px !important; }
}
