/* UX refinements layered last: touch targets, mobile fit and focus states.
   Visual language unchanged; only spacing, sizing and wrapping. */

/* Footer: comfortable touch targets without changing the visual rhythm. */
#es-page .es-footer-col { gap: 2px; }
#es-page .es-footer-col h3 { margin-bottom: 12px; }
#es-page .es-footer-col a,
#es-page .es-footer-col button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 0;
  font-family: Roboto, Arial, sans-serif;
  cursor: pointer;
}
#es-page .es-footer-bottom a { display: inline-flex; align-items: center; min-height: 34px; }

/* Visible keyboard focus on interactive elements that had none. */
#es-page :is(.es-footer a, .es-footer button, .es-faq summary, .es-faq button):focus-visible {
  outline: 2px solid #00c96b;
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 700px) {
  /* Hero: stacked CTAs share one width instead of two ragged buttons. */
  #es-page #top .es-actions { flex-direction: column; align-items: stretch; max-width: 340px; }
  #es-page #top .es-actions .v15-btn { margin-right: 0; }

  /* Results: start the copy below the top illustration instead of over it. */
  #es-page #resultados { padding-top: calc(56.2vw + 20px) !important; }
}

@media (max-width: 520px) {
  /* Product selector: both options fit on narrow phones. */
  #es-page #solucoes .es-sx-choice {
    flex: 1 1 0;
    min-width: 0;
    white-space: normal;
    padding: 8px 10px;
    font-size: 12px;
    text-align: center;
  }
}

/* Footer: contact details and the module column (links to the module pages). */
#es-page .es-footer-top { grid-template-columns: 2fr 1fr 1.2fr 1fr 1fr; }
#es-page .es-footer-contact { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 14px; }
#es-page .es-footer-contact a { color: #fff; }
#es-page .es-footer-contact span { display: block; font-size: 12px; color: #7e999d; }
@media (max-width: 1190px) {
  #es-page .es-footer-top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #es-page .es-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  #es-page .es-footer-top { grid-template-columns: 1fr 1fr; }
}

/* Brand arcs (public/estracta-arcs.js): a WebGL2 canvas per dark section. When it is running
   (.es-arcs-ready) it replaces each section's static decoration; otherwise the CSS art stays,
   including the CTA's 2.2 MB artwork as the no-WebGL fallback. */
#es-page .es-arcs-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: block; }
#es-page .es-end-cta-motion.es-arcs-ready #es-end-wave-canvas { background-image: none !important; }
#es-page #clientes.es-arcs-ready::before, #es-page #clientes.es-arcs-ready::after { display: none; }
#es-page #cases.es-arcs-ready :is(.es-v11-aurora-shift, .es-v11-orbits) { display: none; }
#es-page .es-team.es-arcs-ready .team-waves { display: none; }
#es-page .es-team.es-arcs-ready { position: relative; isolation: isolate; }
