
/* ===================================================
   NG Flow — Power Platform Consultancy
   =================================================== */

:root {
  /* Brand palette */
  --primary-blue: #0461C2;
  --primary-blue-dark: #034a99;
  --primary-blue-light: #1a78d8;
  --light-blue: #66A9E0;
  --light-blue-soft: #e3f0fb;

  --dark-gray: #2D2D2D;
  --dark-gray-soft: #3a3a3a;
  --light-gray: #F2F4F8;
  --light-gray-2: #e8ebf2;

  --green: #27AE60;
  --red: #E63946;
  --orange: #F39C12;
  --yellow: #F4C430;

  /* Semantic */
  --bg: #ffffff;
  --bg-soft: var(--light-gray);
  --bg-dark: var(--dark-gray);
  --text: var(--dark-gray);
  --text-soft: #4d4d4d; /* WCAG AA: 8.6:1 */
  --text-muted: #666666; /* WCAG AA: 5.7:1 (era #8a8a8a com 3.5:1 - reprovado) */
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);

  /* Typography */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Spacing & radius */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(4, 97, 194, 0.04), 0 2px 6px rgba(4, 97, 194, 0.04);
  --shadow: 0 4px 12px rgba(4, 97, 194, 0.06), 0 12px 32px rgba(4, 97, 194, 0.08);
  --shadow-lg: 0 8px 24px rgba(4, 97, 194, 0.10), 0 24px 60px rgba(4, 97, 194, 0.12);

  /* Container */
  --container: 1240px;
  --container-narrow: 880px;

  /* Header height */
  --header-h: 76px;
}

/* ============ RESET ============ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }

/* Skip link */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--primary-blue); color: #fff;
  padding: 12px 20px; z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ============ CONTAINER ============ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.container-narrow { max-width: var(--container-narrow); }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
.gradient-text {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gradient-text-light {
  background: linear-gradient(135deg, #66A9E0 0%, #B4D4F0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary-blue);
  color: #fff;
  box-shadow: 0 1px 2px rgba(4,97,194,0.18), 0 4px 14px rgba(4,97,194,0.25);
}
.btn-primary:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(4,97,194,0.22), 0 12px 24px rgba(4,97,194,0.30);
}
.btn-primary svg { transition: transform .25s ease; }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-soft);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}
.btn-lg {
  padding: 16px 28px;
  font-size: 1rem;
}
.btn-block { width: 100%; }
.btn-header { padding: 10px 20px; font-size: 0.9rem; }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: all .3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.92);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-img {
  display: block;
  height: 44px;
  width: auto;
}
.logo-footer .logo-img {
  height: 48px;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav > ul > li {
  display: flex;
  align-items: center;
}
.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-soft);
  position: relative;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--primary-blue);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all .25s ease;
  border-radius: 2px;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 80px) 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(4,97,194,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(4,97,194,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at top, rgba(0,0,0,0.6), transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at top, rgba(0,0,0,0.6), transparent 65%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}
.hero-orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--light-blue) 0%, transparent 70%);
  top: -100px; left: -120px;
  animation: orbFloat 18s ease-in-out infinite;
}
.hero-orb-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--primary-blue) 0%, transparent 70%);
  bottom: -100px; right: -80px;
  opacity: 0.25;
  animation: orbFloat 22s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-tag {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  animation: fadeUp .8s ease both;
  text-align: left;
}
.hero-tag .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.2);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
  margin-top: 7px;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(39,174,96,0.2); }
  50% { box-shadow: 0 0 0 8px rgba(39,174,96,0); }
}
.hero-title {
  margin-bottom: 24px;
  animation: fadeUp .9s ease .1s both;
}
.hero-sub {
  max-width: 680px;
  margin: 0 auto 40px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-soft);
  line-height: 1.6;
  animation: fadeUp .9s ease .2s both;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeUp .9s ease .3s both;
}
.hero-trust {
  display: flex;
  gap: 56px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp .9s ease .4s both;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.trust-item strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 6px;
}
.trust-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stack pills floating */
.stack-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
  transition: all .3s ease;
}
.stack-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--light-blue);
}
.stack-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}

/* ============ TRUST BAR ============ */
.trust-bar {
  background: var(--bg-soft);
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-bar-label {
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 22px;
}
.trust-bar-pills {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
}

/* ============ SECTIONS ============ */
.section {
  padding: 80px 0;
  position: relative;
}
.section-tinted {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.section-dark {
  background: var(--bg-dark);
  color: #fff;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--light-blue-soft);
}
.eyebrow-light {
  color: var(--light-blue);
  background: rgba(102, 169, 224, 0.15);
}
.section-title { margin-bottom: 20px; }
.section-sub {
  font-size: 1.1rem;
  color: var(--text-soft);
  line-height: 1.6;
}
.section-sub-light { color: rgba(255, 255, 255, 0.82); /* WCAG AA em fundo escuro */ }

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.service-card {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all .35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--light-blue-soft);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: transform .3s ease;
  flex-shrink: 0;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card:hover .service-icon { transform: rotate(-5deg) scale(1.05); }
.service-icon-powerapps    { background: rgba(116, 39, 116, 0.10);  color: #742774; } /* Power Apps roxo */
.service-icon-powerautomate{ background: rgba(11, 83, 206, 0.10);   color: #0B53CE; } /* Power Automate azul */
.service-icon-powerbi      { background: rgba(242, 200, 17, 0.18);  color: #b8901a; } /* Power BI amarelo (escurecido p/ contraste) */
.service-icon-copilot      { background: rgba(0, 164, 239, 0.12);   color: #00A4EF; } /* Copilot Studio ciano */
.service-icon-ux           { background: rgba(243, 156, 18, 0.14);  color: #F39C12; } /* UX laranja da paleta */
.service-icon-arch         { background: rgba(39, 174, 96, 0.12);   color: var(--green); } /* Verde da paleta */
.service-card h3 { margin-bottom: 12px; font-size: 1.3rem; }
.service-card p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

/* ============ METHOD ============ */
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}
.method-grid::before {
  content: '';
  position: absolute;
  top: 36px; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(102,169,224,0.4) 20%,
    rgba(102,169,224,0.4) 80%,
    transparent 100%);
}
.method-step {
  text-align: left;
  position: relative;
  padding: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  transition: all .3s ease;
}
.method-step:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-4px);
}
.method-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 18px;
  margin-top: -8px;
  box-shadow: 0 8px 20px rgba(4,97,194,0.35);
}
.method-step h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}
.method-step p {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ============ SOLUTIONS ============ */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.solution-card {
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all .3s ease;
  position: relative;
}
.solution-card:hover {
  border-color: var(--light-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.solution-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-blue);
  margin-bottom: 16px;
  padding: 4px 10px;
  background: var(--light-blue-soft);
  border-radius: 6px;
}
.solution-card h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}
.solution-card p {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ============ ABOUT / DIFF ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-content .eyebrow { margin-bottom: 18px; }
.about-content .section-title { text-align: left; }
.about-text {
  font-size: 1.08rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 32px;
}
.diff-list {
  margin-bottom: 40px;
}
.diff-list li {
  padding: 18px 0 18px 36px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
  color: var(--text-soft);
  line-height: 1.55;
}
.diff-list li:last-child { border-bottom: none; }
.diff-list li strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 4px;
  font-family: var(--font-display);
}
.diff-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 22px;
  width: 22px; height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230461C2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* About visual cards */
.about-visual {
  position: relative;
  height: 480px;
}
.visual-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  transition: transform .4s ease;
}
.visual-card-1 {
  top: 0; left: 0;
  width: 78%;
  z-index: 3;
  animation: floatY 6s ease-in-out infinite;
}
.visual-card-2 {
  top: 38%; right: 0;
  width: 65%;
  z-index: 2;
  animation: floatY 6s ease-in-out infinite -2s;
}
.visual-card-3 {
  bottom: 0; left: 18%;
  width: 55%;
  z-index: 1;
  text-align: center;
  animation: floatY 6s ease-in-out infinite -4s;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.vc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 14px;
}
.vc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.vc-bar {
  height: 8px;
  background: var(--light-gray);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
}
.vc-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), #6ee7a1);
  border-radius: 4px;
}
.vc-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}
.vc-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.vc-comparison {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.vc-before, .vc-after {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.vc-before { color: var(--text-muted); text-decoration: line-through; }
.vc-after { color: var(--primary-blue); }
.vc-tag-mini {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-top: 4px;
}
.vc-nps {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green), #6ee7a1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}

/* ============ FAQ ============ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .25s ease;
}
.faq-item[open] {
  border-color: var(--light-blue);
  box-shadow: var(--shadow);
}
.faq-item summary {
  padding: 22px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--primary-blue);
  transition: transform .3s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--primary-blue); }
.faq-item p {
  padding: 0 26px 22px;
  color: var(--text-soft);
  line-height: 1.65;
}

/* ============ CTA / CONTACT ============ */
.section-cta {
  background: var(--bg-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-cta::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(4,97,194,0.4) 0%, transparent 70%);
  top: -200px; left: -150px;
  filter: blur(60px);
}
.section-cta::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102,169,224,0.3) 0%, transparent 70%);
  bottom: -150px; right: -100px;
  filter: blur(60px);
}
.cta-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.cta-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  color: #fff;
  margin: 16px 0 18px;
}
.cta-sub {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 36px;
}
.cta-contacts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cta-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: #fff;
  transition: all .25s ease;
}
.cta-contact:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--light-blue);
  transform: translateX(4px);
}
.cta-contact svg { color: var(--light-blue); flex-shrink: 0; }
.cta-contact small {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 2px;
}
.cta-contact strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
}

/* Contact form */
.cta-form {
  background: #fff;
  color: var(--text);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.form-row {
  margin-bottom: 18px;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-size: 0.95rem;
  transition: all .2s ease;
  font-family: var(--font-body);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(4,97,194,0.12);
}
.form-row textarea { resize: vertical; min-height: 100px; }
.form-row select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D2D2D' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}
.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}
.form-note a { color: var(--primary-blue); text-decoration: underline; }

/* Indicador de campos obrigatórios */
.form-required-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  text-align: left;
}
.req-marker {
  color: var(--red);
  font-weight: 700;
  margin-left: 2px;
}

/* Mensagem de erro inline */
.form-error {
  display: none;
  font-size: 0.8rem;
  color: var(--red);
  margin-top: 6px;
  font-weight: 500;
  line-height: 1.4;
}
.form-row.has-error .form-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  animation: errorShake 0.3s ease;
}
.form-row.has-error .form-error::before {
  content: '!';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Estado inválido dos inputs */
.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea {
  border-color: var(--red);
  background: rgba(230, 57, 70, 0.03);
}
.form-row.has-error input:focus,
.form-row.has-error select:focus,
.form-row.has-error textarea:focus {
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.12);
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.form-success {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(39,174,96,0.1);
  border: 1px solid rgba(39,174,96,0.3);
  border-radius: var(--radius-sm);
  color: var(--green);
  font-size: 0.92rem;
}
.form-success strong { display: block; margin-bottom: 2px; }

/* ============ FOOTER ============ */
.site-footer {
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.78); /* WCAG AAA em fundo #1a1a1a */
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand p {
  margin-top: 16px;
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 360px;
}
.logo-footer { color: #fff; }
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul a {
  color: rgba(255, 255, 255, 0.72); /* WCAG AA */
  font-size: 0.92rem;
  transition: color .2s ease;
}
.footer-col ul a:hover { color: var(--light-blue); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer-tag { font-style: italic; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .method-grid::before { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .cta-wrap { grid-template-columns: 1fr; gap: 50px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }

  /* Centraliza conteúdo do "Por que NG Flow" quando vira coluna única */
  .about-content {
    text-align: center;
  }
  .about-content .section-title {
    text-align: center;
  }
  .about-content .diff-list {
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
  }
  .about-content > .btn,
  .about-content > .btn-primary {
    display: inline-flex;
  }

  /* Empilha os cards visuais verticalmente (em vez de flutuantes) */
  .about-visual {
    position: static !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    max-width: 520px !important;
    margin: 0 auto !important;
  }
  .visual-card,
  .visual-card-1,
  .visual-card-2,
  .visual-card-3 {
    position: static !important;
    width: 100% !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    animation: none !important;
    transform: none !important;
  }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .btn-header { display: none; }
  .menu-toggle { display: flex; }

  .main-nav.is-open {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    padding: 24px 28px 32px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav.is-open ul li a {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }

  .section { padding: 60px 0; }
  .hero { padding: calc(var(--header-h) + 50px) 0 70px; }
  .hero-trust { gap: 32px; }
  .trust-item strong { font-size: 1.8rem; }
  .section-head { margin-bottom: 40px; }

  .services-grid,
  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .method-grid { grid-template-columns: 1fr; }

  .cta-form { padding: 28px; }
  .form-grid-2 { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .stack-pill { font-size: 0.8rem; padding: 6px 12px; }
  .trust-bar-pills { gap: 8px; }
}

/* ============ ACCESSIBILITY ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

::selection {
  background: var(--primary-blue);
  color: #fff;
}

/* ============================================
   BOTÃO FLUTUANTE WHATSAPP
   ============================================ */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 999;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35),
              0 8px 28px rgba(37, 211, 102, 0.25);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  /* Aparece com fade in suave após carregar */
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  animation: whatsappEnter .6s cubic-bezier(0.16, 1, 0.3, 1) 1.5s forwards;
}

@keyframes whatsappEnter {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.08);
  background: #1ebe57;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45),
              0 16px 40px rgba(37, 211, 102, 0.35);
}

.whatsapp-float-icon {
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 2;
}

/* Pulsação suave atrás do botão */
.whatsapp-float-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: whatsappPulse 2.5s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes whatsappPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Balão "Posso te ajudar?" */
.whatsapp-float-bubble {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: #fff;
  padding: 12px 18px 12px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10),
              0 8px 28px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all .35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.whatsapp-float-bubble::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #fff;
  box-shadow: 2px -2px 4px rgba(0, 0, 0, 0.04);
}

.whatsapp-float-bubble strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.2;
}

.whatsapp-bubble-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.whatsapp-bubble-close {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 1;
  font-weight: 400;
  transition: all .2s ease;
  pointer-events: auto;
}

.whatsapp-bubble-close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text);
}

/* Mostra o balão quando .show */
.whatsapp-float.show-bubble .whatsapp-float-bubble {
  opacity: 1;
  pointer-events: none;
  transform: translateY(-50%) translateX(0);
}
/* Só o botão "×" do balão capta clique (pra fechar o balão sem ir pro WhatsApp) */
.whatsapp-float.show-bubble .whatsapp-bubble-close {
  pointer-events: auto;
}

/* Esconde o botão quando .hide (perto da seção de contato) */
.whatsapp-float.hide {
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  visibility: hidden;
}
.whatsapp-float.hide .whatsapp-float-bubble,
.whatsapp-float.hide .whatsapp-float-pulse,
.whatsapp-float.hide .whatsapp-float-icon {
  pointer-events: none;
}

/* Responsivo: menor no mobile */
/* Tablet (até 1024px) */
@media (max-width: 1024px) {
  .whatsapp-float {
    right: 20px;
    bottom: 20px;
  }
  /* No tablet, encurta o texto do balão pra caber bem */
  .whatsapp-float-bubble {
    right: calc(100% + 12px);
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 54px;
    height: 54px;
    right: 18px;
    bottom: 18px;
  }
  .whatsapp-float-icon {
    width: 28px;
    height: 28px;
  }
  /* No mobile, mantém o balão visível só por menos tempo */
  .whatsapp-float-bubble {
    right: calc(100% + 12px);
    padding: 10px 14px;
  }
  .whatsapp-float-bubble strong { font-size: 0.85rem; }
  .whatsapp-bubble-sub { font-size: 0.72rem; }
}

@media (max-width: 480px) {
  /* Em telas muito pequenas, esconde o balão (botão sozinho) */
  .whatsapp-float-bubble {
    display: none;
  }
  .whatsapp-float {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 16px;
  }
  .whatsapp-float-icon {
    width: 26px;
    height: 26px;
  }
}

/* Respeitar usuários que preferem menos animação */
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float-pulse {
    animation: none;
    opacity: 0;
  }
  .whatsapp-float {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   WIDGET DE ACESSIBILIDADE
   ============================================ */
.a11y-widget {
  position: fixed !important;
  left: 24px;
  bottom: 24px;
  z-index: 999;
  box-sizing: border-box;
}
.a11y-widget *,
.a11y-widget *::before,
.a11y-widget *::after {
  box-sizing: border-box;
}

.a11y-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(4, 97, 194, 0.35),
              0 8px 28px rgba(4, 97, 194, 0.25);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  padding: 0;
}
.a11y-toggle:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(4, 97, 194, 0.45),
              0 16px 40px rgba(4, 97, 194, 0.35);
}
.a11y-toggle:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.a11y-toggle svg {
  width: 28px;
  height: 28px;
}

.a11y-panel {
  position: absolute !important;
  left: 0;
  bottom: calc(100% + 14px);
  width: 320px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10),
              0 24px 60px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transform-origin: bottom left;
  pointer-events: none;
  visibility: hidden;
  transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  color: var(--text);
  z-index: 1000;
}
.a11y-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}

.a11y-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  color: #fff;
}
.a11y-panel-header h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.a11y-close {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .2s ease;
}
.a11y-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.a11y-panel-body {
  padding: 18px 20px 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.a11y-section {
  margin-bottom: 18px;
}
.a11y-section:last-of-type {
  margin-bottom: 0;
}
.a11y-section h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-family: var(--font-body);
}

.a11y-buttons-row {
  display: flex;
  gap: 6px;
}
.a11y-btn {
  flex: 1;
  padding: 10px 0;
  border: 1.5px solid var(--border-strong);
  background: #fff;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  color: var(--text);
  font-size: 0.95rem;
}
.a11y-btn:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: var(--light-blue-soft);
}
.a11y-btn-reset {
  font-size: 0.85rem;
}

.a11y-toggle-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 6px;
  transition: all .2s ease;
  font-family: var(--font-body);
  text-align: left;
}
.a11y-toggle-option:last-child {
  margin-bottom: 0;
}
.a11y-toggle-option:hover {
  border-color: var(--primary-blue);
  background: var(--light-blue-soft);
}
.a11y-toggle-option[aria-pressed="true"] {
  background: var(--light-blue-soft);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}
.a11y-toggle-option[aria-pressed="true"] .a11y-option-status::before {
  content: '✓';
  color: var(--primary-blue);
  font-weight: 700;
}
.a11y-option-icon {
  font-size: 1.05rem;
  flex-shrink: 0;
}
.a11y-option-label {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
}
.a11y-option-status {
  font-size: 1rem;
  font-weight: 700;
  min-width: 16px;
  text-align: center;
}

.a11y-reset-all {
  width: 100%;
  margin-top: 18px;
  padding: 12px;
  background: transparent;
  border: 1.5px dashed var(--border-strong);
  border-radius: 10px;
  color: var(--text-soft);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all .2s ease;
}
.a11y-reset-all:hover {
  color: var(--red);
  border-color: var(--red);
  background: rgba(230, 57, 70, 0.04);
}

/* ============================================
   ESTADOS DE ACESSIBILIDADE (aplicados ao <html>)
   ============================================ */

/* Aumentar/diminuir texto via CSS var (dinâmico via JS) */
html { font-size: var(--a11y-font-scale, 16px); }

/* Alto contraste */
html.a11y-high-contrast,
html.a11y-high-contrast body {
  background: #000 !important;
  color: #fff !important;
}
html.a11y-high-contrast * {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
  box-shadow: none !important;
}
html.a11y-high-contrast img,
html.a11y-high-contrast svg {
  filter: grayscale(100%) contrast(120%);
}
html.a11y-high-contrast a,
html.a11y-high-contrast a * {
  color: #ffff00 !important;
  text-decoration: underline !important;
}
html.a11y-high-contrast button,
html.a11y-high-contrast .btn,
html.a11y-high-contrast .btn-primary {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #fff !important;
}

/* Modo escuro */
html.a11y-dark-mode body {
  background: #1a1a1a;
  color: #f0f0f0;
}

/* Correção específica: elementos que usam var(--text) mas precisam ficar visíveis no fundo escuro */
html.a11y-dark-mode .vc-num,
html.a11y-dark-mode .diff-list li strong,
html.a11y-dark-mode .main-nav a:hover,
html.a11y-dark-mode .hero-sub strong {
  color: #fff !important;
}
html.a11y-dark-mode .vc-label,
html.a11y-dark-mode .vc-comparison-item {
  color: #d0d0d0 !important;
}
/* Textos "antes" (riscados) mais legíveis no fundo escuro */
html.a11y-dark-mode .vc-before {
  color: #999 !important;
}
/* "After" (destaque em azul) mais claro no fundo escuro */
html.a11y-dark-mode .vc-after {
  color: #78a8ff !important;
}
/* Tags mini (ANTES / COM NG FLOW) */
html.a11y-dark-mode .vc-tag-mini {
  color: #b0b0b0 !important;
}
/* Barras de progresso e elementos com fundo claro nos visual cards */
html.a11y-dark-mode .vc-bar {
  background: rgba(255, 255, 255, 0.08) !important;
}
/* Elementos com fundo próprio branco (form, modais) mantêm texto escuro para contraste */
html.a11y-dark-mode .cta-form,
html.a11y-dark-mode .cookie-modal-content,
html.a11y-dark-mode .a11y-panel {
  /* fundos já definidos abaixo - mantém texto legível dentro */
}
html.a11y-dark-mode .section-tinted,
html.a11y-dark-mode .trust-bar {
  background: #232323;
}
html.a11y-dark-mode .section-cases {
  background: linear-gradient(180deg, #1a1a1a 0%, #202020 100%);
}
html.a11y-dark-mode .service-card,
html.a11y-dark-mode .solution-card,
html.a11y-dark-mode .faq-item,
html.a11y-dark-mode .visual-card,
html.a11y-dark-mode .stack-pill,
html.a11y-dark-mode .cta-form,
html.a11y-dark-mode .case-card {
  background: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f0f0f0;
}
html.a11y-dark-mode .service-card p,
html.a11y-dark-mode .solution-card p,
html.a11y-dark-mode .faq-item p,
html.a11y-dark-mode .case-body p {
  color: #d0d0d0;
}
html.a11y-dark-mode h1,
html.a11y-dark-mode h2,
html.a11y-dark-mode h3,
html.a11y-dark-mode h4 {
  color: #fff;
}
html.a11y-dark-mode .site-header {
  background: rgba(26, 26, 26, 0.92);
}
html.a11y-dark-mode .hero-tag {
  background: rgba(255, 255, 255, 0.08);
  color: #f0f0f0;
}
html.a11y-dark-mode .form-row input,
html.a11y-dark-mode .form-row select,
html.a11y-dark-mode .form-row textarea {
  background: #1f1f1f;
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
html.a11y-dark-mode .form-row label {
  color: #f0f0f0;
}

/* ===== TEXTOS GERAIS COM CONTRASTE ADEQUADO (WCAG AA) ===== */

/* Hero e textos principais */
html.a11y-dark-mode .hero-sub {
  color: #d0d0d0;
}
html.a11y-dark-mode .hero-sub strong {
  color: #fff !important;
}
html.a11y-dark-mode .about-text {
  color: #d0d0d0;
}
html.a11y-dark-mode .section-sub {
  color: #d0d0d0;
}

/* Lista de diferenciais (Por que NG Flow) - o pior caso identificado */
html.a11y-dark-mode .diff-list li {
  color: #d0d0d0;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
html.a11y-dark-mode .diff-list li strong {
  color: #fff;
}
/* Checkmarks precisam ficar mais visíveis no escuro */
html.a11y-dark-mode .diff-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378a8ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* Visual cards (Adoção, Tempo aprovação, NPS) */
html.a11y-dark-mode .vc-head {
  color: #d0d0d0;
}
html.a11y-dark-mode .visual-card strong,
html.a11y-dark-mode .visual-card [class*="value"],
html.a11y-dark-mode .visual-card [class*="stat"] {
  color: #fff;
}

/* Botão secundário (ghost) - "Ver serviços" */
html.a11y-dark-mode .btn-ghost {
  color: #f0f0f0;
  border-color: rgba(255, 255, 255, 0.3);
}
html.a11y-dark-mode .btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

/* Trust bar pills (Power Apps, Power Automate, etc no hero) */
html.a11y-dark-mode .stack-pill {
  color: #f0f0f0;
}

/* Eyebrows (pequenos rótulos "POR QUE NG FLOW", "SERVIÇOS", etc) */
html.a11y-dark-mode .eyebrow {
  color: #78a8ff;
  background: rgba(120, 168, 255, 0.12);
}

/* Textos menores diversos */
html.a11y-dark-mode .form-note,
html.a11y-dark-mode .form-required-note {
  color: #b0b0b0;
}
html.a11y-dark-mode .form-note a {
  color: #78a8ff;
}

/* Footer */
html.a11y-dark-mode .site-footer {
  background: #0a0a0a;
}

/* Cases no modo escuro - detalhes específicos */
html.a11y-dark-mode .case-industry {
  color: #b5b5b5;
}
html.a11y-dark-mode .case-title {
  color: #fff;
}
html.a11y-dark-mode .case-block-label {
  color: #78a8ff;
}
html.a11y-dark-mode .case-metrics {
  border-top-color: rgba(255, 255, 255, 0.1);
}
html.a11y-dark-mode .case-metric span {
  color: #b5b5b5;
}
html.a11y-dark-mode .cases-cta-text {
  color: #d0d0d0;
}
/* Badges de tecnologia ficam mais visíveis no fundo escuro */
html.a11y-dark-mode .case-tech-badge[data-tech="powerapps"] {
  background: rgba(180, 100, 180, 0.2);
  color: #d89ad8;
}
html.a11y-dark-mode .case-tech-badge[data-tech="powerautomate"] {
  background: rgba(80, 140, 240, 0.2);
  color: #8fb8ff;
}
html.a11y-dark-mode .case-tech-badge[data-tech="powerbi"] {
  background: rgba(220, 180, 60, 0.2);
  color: #f0d47a;
}
html.a11y-dark-mode .case-tech-badge[data-tech="copilot"] {
  background: rgba(80, 180, 240, 0.2);
  color: #7dd0f5;
}
html.a11y-dark-mode .case-tech-badge[data-tech="sharepoint"] {
  background: rgba(60, 180, 180, 0.2);
  color: #82d5d5;
}
html.a11y-dark-mode .case-tech-badge[data-tech="dataverse"] {
  background: rgba(70, 200, 200, 0.2);
  color: #82d5d5;
}
html.a11y-dark-mode .case-tech-badge[data-tech="teams"] {
  background: rgba(140, 135, 220, 0.22);
  color: #b5b1e8;
}

/* Destacar links */
html.a11y-highlight-links a:not(.btn):not(.logo):not(.whatsapp-float):not(.a11y-close):not(.a11y-toggle):not(.cta-contact) {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px !important;
  outline: 2px dashed currentColor;
  outline-offset: 3px;
  padding: 2px 4px;
  border-radius: 4px;
}

/* Fonte legível (sans-serif simples) */
html.a11y-readable-font,
html.a11y-readable-font body,
html.a11y-readable-font * {
  font-family: Arial, Verdana, sans-serif !important;
}

/* Espaçamento ampliado (ajuda dislexia/idosos) */
html.a11y-spacing body {
  line-height: 1.9 !important;
  letter-spacing: 0.05em !important;
}
html.a11y-spacing p,
html.a11y-spacing li,
html.a11y-spacing a,
html.a11y-spacing label {
  line-height: 1.9 !important;
  letter-spacing: 0.05em !important;
  word-spacing: 0.1em !important;
}

/* Pausar animações */
html.a11y-pause-animations *,
html.a11y-pause-animations *::before,
html.a11y-pause-animations *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}
/* Mas o próprio painel a11y precisa funcionar (senão o usuário não consegue fechar) */
html.a11y-pause-animations .a11y-panel,
html.a11y-pause-animations .a11y-toggle {
  transition-duration: 0.2s !important;
}

/* Cursor grande */
html.a11y-big-cursor,
html.a11y-big-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M3 3 L3 22 L9 17 L13 28 L17 26 L13 16 L21 16 Z' fill='%23000' stroke='%23fff' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"), auto !important;
}
html.a11y-big-cursor a,
html.a11y-big-cursor button,
html.a11y-big-cursor input,
html.a11y-big-cursor select,
html.a11y-big-cursor textarea {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M12 2 L12 24 L16 20 L20 28 L24 26 L20 18 L26 18 Z' fill='%230461C2' stroke='%23fff' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"), pointer !important;
}

/* ============================================
   RESPONSIVO DO WIDGET A11Y
   ============================================ */
@media (max-width: 1024px) {
  .a11y-widget {
    left: 20px;
    bottom: 20px;
  }
}

@media (max-width: 768px) {
  .a11y-widget {
    left: 18px;
    bottom: 18px;
  }
  .a11y-toggle {
    width: 48px;
    height: 48px;
  }
  .a11y-toggle svg {
    width: 24px;
    height: 24px;
  }
  .a11y-panel {
    width: calc(100vw - 36px);
    max-width: 340px;
  }
}

@media (max-width: 480px) {
  .a11y-widget {
    left: 14px;
    bottom: 14px;
  }
  .a11y-toggle {
    width: 44px;
    height: 44px;
  }
  .a11y-panel {
    width: calc(100vw - 28px);
  }
}


/* Quando painel A11y está aberto em mobile, esconde WhatsApp pra não conflitar */
.whatsapp-float.hide-by-a11y {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

/* ============================================
   BANNER DE COOKIES (LGPD)
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: calc(100% - 32px);
  max-width: 980px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12),
              0 24px 60px rgba(0, 0, 0, 0.16);
  z-index: 998;
  opacity: 0;
  transition: all .4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  border: 1px solid var(--border);
}
.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner-inner {
  padding: 22px 26px;
}

.cookie-banner-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.cookie-banner-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 2px;
}

.cookie-banner-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px 0;
}

.cookie-banner-text {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin: 0;
}

.cookie-banner-link {
  color: var(--primary-blue);
  text-decoration: underline;
  font-weight: 500;
}
.cookie-banner-link:hover {
  color: var(--primary-blue-dark);
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-btn {
  padding: 10px 22px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all .2s ease;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.cookie-btn-primary {
  background: var(--primary-blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(4, 97, 194, 0.25);
}
.cookie-btn-primary:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(4, 97, 194, 0.35);
}

.cookie-btn-secondary {
  background: var(--bg-soft);
  color: var(--text);
  border-color: var(--border-strong);
}
.cookie-btn-secondary:hover {
  background: var(--light-gray-2);
  border-color: var(--text-soft);
}

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

/* ============================================
   MODAL DE PREFERÊNCIAS DE COOKIES
   ============================================ */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.cookie-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cookie-modal-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-modal.open .cookie-modal-content {
  transform: scale(1);
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--border);
}

.cookie-modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.cookie-modal-close {
  background: var(--bg-soft);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background .2s ease;
  line-height: 1;
}
.cookie-modal-close:hover {
  background: var(--light-gray-2);
}

.cookie-modal-body {
  padding: 22px 26px;
  overflow-y: auto;
  flex: 1;
}

.cookie-modal-intro {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 22px;
}

.cookie-category {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-category h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: var(--text);
}

.cookie-category-desc {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.5;
  margin: 0;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}
.cookie-toggle.disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 26px;
  transition: background .25s ease;
}
.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--green);
}
.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(20px);
}

.cookie-modal-policy {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
}
.cookie-modal-policy a {
  color: var(--primary-blue);
  text-decoration: underline;
}

.cookie-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 18px 26px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

/* ============================================
   RESPONSIVO DO BANNER DE COOKIES
   ============================================ */
@media (max-width: 768px) {
  .cookie-banner {
    bottom: 14px;
    width: calc(100% - 24px);
  }
  .cookie-banner-inner {
    padding: 18px 20px;
  }
  .cookie-banner-content {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 14px;
  }
  .cookie-banner-icon {
    font-size: 1.6rem;
  }
  .cookie-banner-title {
    font-size: 1rem;
  }
  .cookie-banner-text {
    font-size: 0.85rem;
  }
  .cookie-banner-actions {
    justify-content: stretch;
    flex-direction: column;
  }
  .cookie-banner-actions .cookie-btn {
    width: 100%;
  }
  .cookie-modal-header h2 {
    font-size: 1.1rem;
  }
  .cookie-modal-footer {
    flex-direction: column-reverse;
  }
  .cookie-modal-footer .cookie-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cookie-banner-actions .cookie-btn {
    font-size: 0.88rem;
    padding: 12px 16px;
  }
}

/* Link de preferências de cookies no footer */
.footer-cookie-link {
  margin-top: 8px;
}
.footer-cookie-link a {
  color: rgba(255, 255, 255, 0.75); /* WCAG AA: 8.5:1 em fundo preto */
  font-size: 0.82rem;
  text-decoration: underline;
  transition: color .2s ease;
}
.footer-cookie-link a:hover {
  color: var(--light-blue);
}

/* ============================================
   SEÇÃO CASES DE SUCESSO
   ============================================ */
.section-cases {
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.case-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow .3s ease,
              border-color .3s ease;
  position: relative;
  overflow: hidden;
}
.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
  opacity: 0;
  transition: opacity .3s ease;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(4, 97, 194, 0.08),
              0 8px 20px rgba(0, 0, 0, 0.04);
  border-color: rgba(4, 97, 194, 0.15);
}
.case-card:hover::before {
  opacity: 1;
}

/* Header do card: industry + tech badges */
.case-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.case-industry {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--text-muted);
  padding-top: 4px;
}

.case-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.case-tech-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  font-family: var(--font-body);
}
.case-tech-badge[data-tech="powerapps"] {
  background: rgba(116, 39, 116, 0.1);
  color: #742774;
}
.case-tech-badge[data-tech="powerautomate"] {
  background: rgba(11, 83, 206, 0.1);
  color: #0B53CE;
}
.case-tech-badge[data-tech="powerbi"] {
  background: rgba(184, 144, 26, 0.14);
  color: #a37817;
}
.case-tech-badge[data-tech="copilot"] {
  background: rgba(0, 164, 239, 0.1);
  color: #0091d1;
}
.case-tech-badge[data-tech="sharepoint"] {
  background: rgba(3, 120, 124, 0.1);
  color: #03787c;
}
.case-tech-badge[data-tech="dataverse"] {
  background: rgba(21, 128, 128, 0.1);
  color: #158080;
}
.case-tech-badge[data-tech="teams"] {
  background: rgba(70, 68, 148, 0.1);
  color: #464494;
}

/* Título do case */
.case-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin: 0;
}

/* Corpo: desafio + solução */
.case-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.case-block-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--primary-blue);
  display: block;
  margin-bottom: 4px;
}

.case-block p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0;
}

/* Métricas: 3 colunas */
.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.case-metric {
  text-align: center;
}

.case-metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 3px;
}

.case-metric span {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
  display: block;
  font-weight: 500;
}

/* CTA no final da seção */
.cases-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 48px;
  padding: 32px 20px 0;
  text-align: center;
}

.cases-cta-text {
  font-size: 1rem;
  color: var(--text-soft);
  max-width: 620px;
  line-height: 1.55;
  margin: 0;
}

/* ============================================
   RESPONSIVO DOS CASES
   ============================================ */
@media (max-width: 1024px) {
  .cases-grid {
    gap: 20px;
  }
  .case-card {
    padding: 24px 22px;
  }
  .case-title {
    font-size: 1.08rem;
  }
  .case-metric strong {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .case-card {
    padding: 22px 20px;
    gap: 16px;
  }
  .case-card-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .case-title {
    font-size: 1.1rem;
    line-height: 1.3;
  }
  .case-block p {
    font-size: 0.88rem;
  }
  .case-metric strong {
    font-size: 1.2rem;
  }
  .case-metric span {
    font-size: 0.68rem;
  }
  .cases-cta {
    margin-top: 32px;
    padding: 20px 0 0;
  }
  .cases-cta-text {
    font-size: 0.92rem;
  }
}

@media (max-width: 480px) {
  .case-card {
    padding: 20px 18px;
  }
  .case-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 14px;
  }
  .case-metric strong {
    font-size: 1.05rem;
  }
  .case-metric span {
    font-size: 0.62rem;
    line-height: 1.2;
  }
  .case-industry {
    font-size: 0.66rem;
  }
  .case-tech-badge {
    font-size: 0.68rem;
    padding: 3px 8px;
  }
}

/* ============================================
   WCAG AA — MELHORIAS DE ACESSIBILIDADE
   ============================================ */

/* Placeholders com contraste adequado */
::placeholder {
  color: #767676; /* WCAG AA: 4.6:1 em fundo branco */
  opacity: 1;
}
::-webkit-input-placeholder { color: #767676; opacity: 1; }
::-moz-placeholder { color: #767676; opacity: 1; }
:-ms-input-placeholder { color: #767676; opacity: 1; }

/* Focus visible reforçado em TODOS os elementos interativos */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Focus visible em botões coloridos (ficaria invisível no azul) */
.btn-primary:focus-visible,
.cta-contact:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

/* No modo escuro, focus com cor visível */
html.a11y-dark-mode a:focus-visible,
html.a11y-dark-mode button:focus-visible,
html.a11y-dark-mode input:focus-visible,
html.a11y-dark-mode select:focus-visible,
html.a11y-dark-mode textarea:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

html.a11y-dark-mode ::placeholder {
  color: #a0a0a0; /* Adequado no fundo escuro */
}

/* Preferência de menos movimento (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Alvo mínimo de toque (WCAG 2.5.5 - 44x44px em mobile) */
@media (max-width: 768px) {
  /* Aplicar min-height apenas em elementos interativos "primários" */
  .btn,
  .cta-contact,
  .cookie-btn,
  .a11y-btn,
  .a11y-toggle-option,
  .a11y-reset-all,
  .menu-toggle,
  .main-nav ul li a,
  .mobile-menu a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  /* Botões de fechar precisam ser clicáveis mas mantêm tamanho */
  .cookie-modal-close,
  .a11y-close {
    min-width: 44px;
    min-height: 44px;
  }
  /* Links da lista do footer: aumenta padding em vez de min-height */
  .footer-col ul li {
    margin-bottom: 12px;
  }
  .footer-col ul a {
    padding: 8px 0;
    display: inline-block;
  }
}

/* Skip link (já existe, só reforçar visibilidade no foco) */
.skip-link:focus {
  top: 0 !important;
  outline: 3px solid var(--yellow);
  outline-offset: -3px;
}


/* ============================================
   RESPONSIVIDADE: cookies vs botões flutuantes
   ============================================ */
/* Quando banner de cookies está visível em mobile, esconde botões flutuantes */
.whatsapp-float.hide-by-cookies,
.a11y-widget.hide-by-cookies {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

/* Telas MUITO pequenas (iPhone SE original, alguns Android antigos <380px) */
@media (max-width: 380px) {
  .case-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: left;
  }
  .case-metric {
    display: flex;
    align-items: baseline;
    gap: 10px;
    text-align: left;
  }
  .case-metric strong {
    font-size: 1.1rem;
    min-width: 60px;
  }
  .case-metric span {
    font-size: 0.75rem;
    text-align: left;
  }
}

html.a11y-dark-mode .svc-usecase p strong,
html.a11y-dark-mode .svc-benefit h3,
html.a11y-dark-mode .svc-minicase h3,
html.a11y-dark-mode .svc-hero-content h1,
html.a11y-dark-mode .svc-related-card h3 { color:#fff; }
html.a11y-dark-mode .svc-breadcrumb,
html.a11y-dark-mode .svc-breadcrumb a { color:#a0a0a0; }
html.a11y-dark-mode .svc-breadcrumb a:hover { color:#78a8ff; }
html.a11y-dark-mode .svc-hero-lead { color:#d0d0d0; }
html.a11y-dark-mode .svc-usecase-tag,
html.a11y-dark-mode .svc-minicase-tag { background:rgba(120,168,255,.15); color:#78a8ff; }
html.a11y-dark-mode .svc-minicase-metric span,
html.a11y-dark-mode .svc-benefit-icon { color:#a0a0a0; }
html.a11y-dark-mode .svc-related-card span,
html.a11y-dark-mode .svc-related-card .arrow { color:#78a8ff; }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.nav-dropdown-arrow { transition: transform .25s ease; flex-shrink: 0; }
.nav-dropdown:hover .nav-dropdown-arrow, .nav-dropdown.is-open .nav-dropdown-arrow { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08), 0 16px 40px rgba(0,0,0,0.12);
  padding: 8px; min-width: 210px; flex-direction: column !important; gap: 2px !important;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility .25s; z-index: 200;
}
.nav-dropdown-menu::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu li { width: 100%; }
.nav-dropdown-menu a {
  display: block; padding: 10px 14px; border-radius: 8px; font-size: 0.9rem;
  color: var(--text-soft); transition: background .2s ease, color .2s ease; white-space: nowrap;
}
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a:hover { background: var(--light-blue-soft); color: var(--primary-blue); }
html.a11y-dark-mode .nav-dropdown-menu { background: #2a2a2a; border-color: rgba(255,255,255,0.12); }
html.a11y-dark-mode .nav-dropdown-menu a { color: #d0d0d0; }
html.a11y-dark-mode .nav-dropdown-menu a:hover { background: rgba(120,168,255,0.15); color: #78a8ff; }
@media (max-width: 768px) {
  .nav-dropdown-menu {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    box-shadow: none; border: none; background: transparent; padding: 0 0 0 16px; min-width: auto;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown.is-open .nav-dropdown-menu { max-height: 300px; transform: none; }
  .nav-dropdown-menu a { padding: 12px 0; }
  html.a11y-dark-mode .nav-dropdown-menu { background: transparent; }
}
